First time here? Checkout the FAQ!
x
0 votes
by (1.3k points)
edited by

Hi,

I am aware that there was already a question about the new stim defintion, but I couldn't find in the documentation how to define the geometry of the stimulus.

On one side how are the stimulus[int].x0, etc.. defined now?

On the other side, is there still a way to define the electrode with something like:

mesh.block_boundary_condition(geom, 'stimulus', 0, 'x', True)

Thanks!

Teo

1 Answer

0 votes
by (7.8k points)
selected by
 
Best answer

Hi!

With the new stimulus interface, for a block you define the points p0 and p1, that span the axis-aligned box.

stim[0].elec.p0[0]
stim[0].elec.p0[1]
stim[0].elec.p0[2]
stim[0].elec.p1[0]
stim[0].elec.p1[1]
stim[0].elec.p1[2]

Regarding an alternative for block_boundary_condition(), there is block_bc_opencarp() which takes the same parameters and generates the new stimulus definition.

Best, Aurel

by (1.3k points)
Perfect! Thanks for the info Aurel!!
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
...