Documentation for Release 2024.1

Using the cardiac executable

This page provides examples of how to use the Chaste cardiac executable.

Building the cardiac executable

Please see Building Executable Apps for instructions on how to compile the cardiac executable, called simply Chaste.

Running the executable

If you have built the executable yourself from source on the same machine, then your paths will (probably) be set up already, and you can simply run

./apps/src/Chaste <PATH TO CONFIG FILE>/ChasteParameters.xml

Then to run this in parallel you should use mpirun (or perhaps mpiexec) associated with the mpi/PETSc you used to compile Chaste:

mpirun -np N ./apps/src/Chaste <PATH TO CONFIG FILE>/ChasteParameters.xml

where N is the number of processes to run with.

Visualization

In all of these examples, you can change to use the visualizer that you want by setting one of these options (meshalyzer, vtk or cmgui) in the <Simulation> block:

<OutputVisualizer meshalyzer="yes" vtk="yes" cmgui="yes" precision="8"/>

vtk (visualized using paraview) seems to be the most well supported and likely to still work if you are reading this in a few years, if not the simplest to use!

Basic simulations

Examples of further functionality

Further examples using dynamic loading of CellML files

See CodeGenerationFromCellML for more details and options for annotations within CellML files.

Utilities