First time here? Checkout the FAQ!
x
0 votes
by (420 points)

I am trying to run stimulation on an existing 3d mesh model, I have been able to read the mesh into the code and set some parameter for the stimulation, yet I got an error saying that I did not set up the electrode:

L5 : error: Empty stimulus[0] electrode def! Aborting!

In the examples, electrode was set up by mesh.block_region on the model created using the code, what should I do for external meshes?

1 Answer

0 votes
by (17.4k points)

The relevant parameter group is Stim.

You can use it directly in your openCAPR .par file as described in the manual / parameter list:

https://opencarp.org/documentation/opencarp-parameters#master (stimulation -> Stim)

https://opencarp.org/documentation/user-manual

If you prefer to encode it in a carputils script, this is the relevant python class: https://opencarp.org/documentation/carputils-documentation#master/classcarputils_1_1model_1_1stimulus_1_1Stimulus.html

There is also an example on various types of stimulation:

https://opencarp.org/documentation/examples/02_ep_tissue/02_stimulation

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
...