See code in GitLab.
Author: Andrew Crozier andrew.crozier@medunigraz.at, Axel Loewe axel.loewe@kit.edu
This is a simple monodomain example that is primarily a demonstration of the carputils framework. This is not a real example but more of a template to base your own experiment on. It includes all typical building blocks of a cardiac electrophysiology experiment starting from mesh generation / loading, stimulus definition, conductivity and ionic model definition and launching the simulation. Finally, local activation times are determined as a postprocessing step and the results are visualized using meshalzyer. As such, this script can be a good starting point to build your own experiment using carputils.
This webpage only shows the basic documentation, to use it as a starting point for building your own experiment, you should look at the Python code of this experiment.
For detailed information on the different functions and parameters, consult the carputils documentation.
This example defines a small cuboid on the domain:
\[-1.0 \leq x \leq 1.0\]\[-0.25 \leq y \leq 0.25\]\[-0.25 \leq z \leq 0.25\]
And applies an electrical stimulus on the \(x = -1.0\) face.
This example specifies just one optional argument, --tend
. Use it to
specify how long to simulate for after stimulus, in milliseconds:
./run.py --tend 100
As with other examples, add the --visualize
option to automatically load
the results in meshalyzer:
./run.py --tend 100 --visualize
© Copyright 2020 openCARP project Supported by DFG Contact Imprint and data protection