UserTutorials/CardiacExecutable/Propagation3d

3D on a realistic cardiac geometry

Getting the data

Download and save the attached file Propagation3d.tgz. Either use an Archive Manager to extract the content to disk or save it and then unpack it with

tar xvfz  Propagation3d.tgz

Running the simulation

Change directory to Propagation3d

cd Propagation3d

In this folder you will find the following files:

Run the simulation by doing

<path_to_chaste>/Chaste.sh ChasteParameters.xml

Note: in releases up to and including version 2.0, the executable would be called directly (ie: <path_to_chaste>/Chaste ChasteParameters.xml), in release 2.1 the executable should be called via the shell script Chaste.sh; as above.

A folder called testoutput will appear once the simulation has finished.

Visualising the results

Move into the newly created output folder

cd testoutput/ChasteResults

In this folder you will find the following files and folders:

There are more details on visualising your results at ChasteGuides/VisualisationGuides.

Visualising with Meshalyzer

For Meshalyzer visualisation, now move into the Meshalyzer-compatible output folder

cd output

Launch Meshalyzer with

<path_to_meshalyzer>/meshalyzer 3dResults_mesh

and visualise the results by loading the 3dResults_V.dat file.

Visualising with Cmgui

For Cmgui visualisation, now move into the Cmgui-compatible output folder

cd cmgui_output

Launch the cmgui visualiser with

<path_to_cmgui>/cmgui script.com

The script will ensure that all the time-step files are loaded into Cmgui.

Visualising the VTK data with Paraview

For Paraview visualisation, now move into the VTK output folder

cd vtk_output

For easy animation of cardiac simulations, we have written a Python script to add Paraview-specific time annotation features to the standard VTK output. Run this with

<path_to_Chaste>/python/utils/AddVtuTimeAnnotations.py 3dResults.vtu 3dResultsAnnotated.vtu

Launch Paraview with

paraview --data=3dResultsAnnotated.vtu

Understanding the XML parameters file

Open ChasteParameters.xml (it is sensible to do this in a web-browser or XML editor in order to get syntax highlighting). The file should be reasonably readable; it defines:

Attachments