Example cellml/BRDR_defib: BRDR Defibrillation Model

This example solves the BRDR defibrillation model, defined by a CellML version of the model.

NOTE: This example requires a CellML 1.0 enabled version of CMISS to run.


The comfile run by this example is as follows:

# If the example path is not set, default to current directory
if (! defined $example) {
    $example = "./";
}
# Drop off the trailing / in the example path
$chopped = chop $example;
if ($chopped ne "/") {
    $example .= $chopped;
}
fem define parameters;r;$example/cellml;
fem define node;d;
fem define bas;d;
fem define elem;d;
fem define grid;d;
fem update grid geometry;
fem update grid metric;
fem define equation;r;$example/cellml;
fem define cell;r;$example/BRDR_defib;
fem define material;d cell;
fem define material;d;
fem update grid material;
fem define initial;d;
fem define solve;r;$example/lsoda;
fem solve to 0;
fem open history;BRDR_defib write variables yqs niqslist 1..12 binary;
$Tend = 1500;
$dt = 1.0;
for ($time=0;$time<$Tend;$time+=$dt) {
    fem solve restart to $time;
    fem write history time $time variables yqs binary;
}
fem close history binary;
fem evaluate electrode;BRDR_defib history BRDR_defib from grid yqs iy 1..12 binary;
fem define export;r;$example/BRDR_defib;
fem export signal;BRDR_defib electrodes signal BRDR_defib names cell;
# For testing we compare the generated CMISS signal files
if ($TESTING) {
    fem compare signal;BRDR_defib basis both masterfile $example/BRDR_defib comparefile BRDR_defib binary;
}

Files used by this example are:

Name               Modified     Size

BRDR_defib.com 29-Jul-2003 1.2k BRDR_defib.binsig 29-Jul-2003 122k BRDR_defib.cml 05-Oct-2003 56k BRDR_defib.ipcell 29-Jul-2003 4.2k BRDR_defib.ipexpo 29-Jul-2003 658 cellml.ipequa 29-Jul-2003 1.5k cellml.ippara 29-Jul-2003 5.9k lsoda.ipsolv 29-Jul-2003 1.2k

Download the entire example:

Name                               Modified     Size

examples_cellml_BRDR_defib.tar.gz 19-Aug-2006 75k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:04:29 20164
cm-debugSuccessSat Mar 5 00:18:16 20167
mips-irix
cmSuccessSun Aug 19 02:49:14 200772
cm-debugSuccessWed Aug 15 02:26:12 2007132
cm-debug-clear-mallocSuccessSat Aug 18 02:43:15 2007134
cm-debug-clear-malloc7SuccessMon Aug 20 02:41:54 2007143
cm64SuccessSun Aug 19 02:49:28 200772
cm64-debugSuccessTue Aug 21 02:25:48 2007132
cm64-debug-clear-mallocSuccessThu Apr 1 11:34:55 200464
rs6000-aix
cmSuccessWed Mar 4 01:14:26 200911
cm-debugSuccessMon Mar 2 01:12:49 200924
cm64SuccessWed Mar 4 01:14:46 200911
cm64-debugSuccessTue Mar 3 01:19:42 200924
x86_64-linux
cmSuccessSun Mar 6 00:01:14 20163
cm-debugSuccessSat Mar 5 00:02:00 20164

Testing status by file:


Html last generated: Sun Mar 6 05:51:18 2016

Input last modified: Sun Oct 5 13:44:57 2003


CMISS Help / Examples / cellml / BRDR_defib