First time here? Checkout the FAQ!
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.5k points)

The relevant parameter group is Stim.

You can use it directly in your openCAPR .par file as described in the manual / parameter list: (stimulation -> Stim)

If you prefer to encode it in a carputils script, this is the relevant python class:

There is also an example on various types of 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