how to conduct cardiac simulation
Hi,
I tried to simulate cardiac electrical propagation with the steps below. I used the code of 22_simple, tried to modify some lines, and ran it. But it always reports a bug:
L4 : Warning: Legacy stimuli and default stimuli are defined. Only default stimuli will be used!
L5 : error: Empty stimulus[0] electrode def! Aborting!
My modification of 22_simple experiment was:
-
modify the meshname to a self-defined 3d cardiac model:
meshname=name/of/my/cardiac/model
-
choose two neighbor points in the cardiac model as the stimulus block, and use
stim
to define the box of stimulus.
stim = [
'-stim[0].elec.p0[0]', -62.8687,
'-stim[0].elec.p0[1]', -19.8587,
'-stim[0].elec.p0[2]', 33.5442,
'-stim[0].elec.p1[0]', 62.9376,
'-stim[0].elec.p1[1]', -18.9636,
'-stim[0].elec.p1[2]', 33.9297]
- run
run.py
Could you provide some suggestions about this bug, and how to simulate cardiac electrical propagation? Thank you so much!
Best,