Simple Bidomain Example
Module: devtests.bidomain.simple.run
Section author: Andrew Crozier <andrew.crozier@medunigraz.at>
This is a simple bidomain example that is primarily a demonstration of the carputils example and testing framework. In that vein, this documentation illustrates some of the features available when writing test documentation.
Please see the examples and tests sections of the carputils documentation for more information, in particular the subsection on Documenting Examples.
This example defines a small cuboid on the domain:
And applies an electrical stimulus on the face. This is illustrated below:
This example specifies just one optional argument, --tend
. Use it to
specify how long to simulate for after stimulus, in milliseconds:
./run.py --tend 100
As with other examples, add the --visualize
option to automatically load
the results in meshalyzer:
./run.py --tend 100 --visualize
Generate short activation sequence on small cuboid and compare against reference.
Checks:
Last run: 2024-02-29 01:04:06.028445, revision {‘base’: ‘cbf8efd0’}, dependency revisions {PT_C: 31642c1e,cvsys: 593686bc,eikonal: 5fbbfda3,elasticity: 4d92ddfc}
Runtime: 0:00:00.469493
ALL PASSED
PASS max_error(vm.igb.gz): 7.62939453125e-06
Run longer activation sequence on small cuboid and compare against reference.
Checks:
Last run: 2024-02-29 01:04:06.536831, revision {‘base’: ‘cbf8efd0’}, dependency revisions {PT_C: 31642c1e,cvsys: 593686bc,eikonal: 5fbbfda3,elasticity: 4d92ddfc}
Runtime: 0:00:03.325376
ALL PASSED
PASS max_error(vm.igb.gz): 1.52587890625e-05