Example cellml/LR1: Luo - Rudy I (1991)

This example solves the Luo & Rudy 1991 model (more commonly known as the LR I 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/luo_rudy_I_model_1991;
fem define material;d cell;
fem define material;d;
fem update grid material;
fem define initial;d;
fem define solve;r;$example/rk;
fem solve to 0;
fem open history;luo_rudy_I_model_1991 write variables yqs niqslist 1..17 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;luo_rudy_I_model_1991 history luo_rudy_I_model_1991 from grid yqs iy 1..17 binary;
fem define export;r;$example/luo_rudy_I_model_1991;
fem export signal;luo_rudy_I_model_1991 electrodes signal luo_rudy_I_model_1991 names cell;
# For testing we compare the generated CMISS signal files
if ($TESTING) {
    fem compare signal;luo_rudy_I_model_1991 basis both masterfile $example/luo_rudy_I_model_1991 comparefile luo_rudy_I_model_1991 binary;
}

Files used by this example are:

Name                          Modified     Size

LR1.com 31-Jul-2003 1.3k cellml.ipequa 31-Jul-2003 1.5k cellml.ippara 31-Jul-2003 5.9k luo_rudy_I_model_1991.binsig 31-Jul-2003 151k luo_rudy_I_model_1991.cml 05-Oct-2003 97k luo_rudy_I_model_1991.ipcell 31-Jul-2003 7.3k luo_rudy_I_model_1991.ipexpo 31-Jul-2003 658 rk.ipsolv 31-Jul-2003 907

Download the entire example:

Name                        Modified     Size

examples_cellml_LR1.tar.gz 19-Aug-2006 99k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:04:06 20164
cm-debugSuccessSat Mar 5 00:16:11 20168
mips-irix
cmSuccessSun Aug 19 02:42:45 200768
cm-debugSuccessWed Aug 15 02:11:19 2007111
cm-debug-clear-mallocSuccessSat Aug 18 02:28:02 2007125
cm-debug-clear-malloc7SuccessMon Aug 20 02:27:32 2007115
cm64SuccessSun Aug 19 02:42:55 200769
cm64-debugSuccessTue Aug 21 02:13:36 2007115
cm64-debug-clear-mallocSuccessThu Apr 1 11:39:14 200471
rs6000-aix
cmSuccessWed Mar 4 01:14:39 200912
cm-debugSuccessMon Mar 2 01:11:40 200923
cm64SuccessWed Mar 4 01:16:42 200913
cm64-debugSuccessTue Mar 3 01:18:45 200921
x86_64-linux
cmSuccessSun Mar 6 00:01:11 20162
cm-debugSuccessSat Mar 5 00:01:58 20164

Testing status by file:


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

Input last modified: Sun Oct 5 16:50:14 2003


CMISS Help / Examples / cellml / LR1