Documentation for Release 2024.2
Running a simple example: propagation in a tissue fibre
Getting the data
Download and save the attached file: Propagation1d.tgz. Either use an Archive Manager to extract the contents to disk or save it and then unpack it with
Running the simulation
Change directory to the Propagation1d
directory:
In this folder you will find the following files:
ChasteParameters.xml
– this file describes the simulation, and can be used to override the default parameter values (in releases of the executable up to and including version 2.0, the default parameters were read in from another xml file,ChasteDefaults.xml
).ChasteParameters_2_1.xsd
– XML schema for input validation (in general never has to be altered or touched).
Run the simulation by doing
A folder called
will appear once the simulation has finished.
Visualising the results
Move into the newly created output folder
In this folder you will find the following files and folders:
progress_status.txt
– this file can be viewed whilst the simulation is running to gauge how long it will take1dResults.h5
– the output of the simulation, in HDF5 formatoutput
(folder) – contains the output converted into meshalyzer format
Move now into the Meshalyzer-compatible output folder
Launch Meshalyzer with
and visualise the results by loading the 1dResults_V.dat
file.
There are more details on visualising your results at ChasteGuides/VisualisationGuides.
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:
- a 1D simulation that lasts for 500ms
- the use of the monodomain model
- to use bidomain, the only thing that needs to be done is to change
Mono
toBi
- to use bidomain, the only thing that needs to be done is to change
- a Luo-Rudy cell model as the default cell model
- a 1D autogenerated mesh of length 4cm
- a stimulated region in the first 0.2cm (stimulus is applied every 100ms)
- note: in the
Cuboid
definition, y and z coordinates are ignored in 1D simulations
- note: in the
- output directory and filenames
- physiological parameters: conductivities, capacitance, surface-area-to-volume ratio
- in monodomain problems, the defined intracellular conductivity is used not a harmonic mean. The extracellular conductivity is therefore ignored, as are the components in the transverse (sheet) and normal directions since this is a 1D simulation.
- Numerical parameters including timesteps and KSP (linear solver) options
Running a 2D tissue simulation instead
Now we are going to change our geometry description to create a tissue sheet instead of a fibre.
Go to
and find the following section:
We can change the geometry to be a tissue sheet:
In addition, the following parameters need to be modified:
Rerun the simulation and follow the previous section to visualise the results.