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

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 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


to compile the tutorial source code, and


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

Last modified 3 years ago Last modified on Sep 27, 2017, 8:20:27 PM