Chaste Tutorials

Before you start

If you are viewing this on the Chaste wiki, the tutorials here are automatically updated to work with the latest development version of Chaste. They are not guaranteed to work with any release version, in fact they are unlikely to! If you are working with a release version of the code then this page is archived upon releases; the tutorials corresponding to each release version of Chaste can be found at https://chaste.github.io/releases/

The basics

These tutorials assume prior knowledge or understanding of various C++ language features and some libraries, including (at least): std::vectors, c_vectors, and object-oriented inheritance including abstract classes and virtual methods.

If you don't know anything about these we recommend a first course in C++, there are plenty online (here is one from cplusplus.com). There is also a Scientific Computing in C++ book by some of our team available too.

To run any of these tutorials, it is assumed you have first configured Chaste using CMake:

cmake /path/to/chaste/src

Then, run

make <NAME_OF_TUTORIAL_FILE>

to compile the tutorial source code, and

ctest -V -R <NAME_OF_TUTORIAL_FILE>

to run it.

For instance:

make TestSolvingOdesTutorial
ctest -V -R TestSolvingOdesTutorial

Core functionality

Solving ODEs

Solving PDEs

Writing new PDE solvers (advanced)

Solid Mechanics


Cardiac Chaste

For executable users:

Source code users:

See also cardiac Chaste practical for details of a practical we have used to teach cardiac Chaste.


Cell-based Chaste

Where to start with cell-based simulations:

Running basic simulations:

Running crypt-specific simulations:

More advanced examples:

Adding new functionality:

See also cell-based Chaste practical for details of a practical we have used to teach cell-based Chaste.


Lung Chaste

Generation and manipulation of airway geometries

Simulating ventilation and impedance

Automatically generated alphabetical listing