First time here? Checkout the FAQ!
0 votes
by (120 points)
We are trying to specify the voltage value at each node in a mesh. Using sv_init lets us easily specify a voltage value for all of the cells in a region.

Is it possible to specify the voltage value of each cell (or node) using sv_init? Or would we have to create individual regions in the mesh and use sv_init for each region? Or is there another way?

1 Answer

0 votes
by (18.3k points)
The voltage just as an initial condition for the ionic model or as a boundary condition for the whole time?
by (120 points)
The voltage as an initial condition.

Our workflow for context:
We are trying to initialize every node of an ellipsoid mesh to a specified starting voltage. We want to be able to specify the value on a per node basis.
by (18.3k points)
The .nodal() markup with an adjustment on the state variable should be the best way:

Similar to adjusting for example maximum conductances in the ionic model:
Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance