Example cellml/beeler_reuter_1977: Beeler - Reuter 1977

This example solves the Beeler & Reuter 1977 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/beeler_reuter_model_1977;
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;beeler_reuter_model_1977 write variables yqs niqslist 1..15 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;beeler_reuter_model_1977 history beeler_reuter_model_1977 from grid yqs iy 1..15 binary;
fem define export;r;$example/beeler_reuter_model_1977;
fem export signal;beeler_reuter_model_1977 electrodes signal beeler_reuter_model_1977 names cell;
# For testing we compare the generated CMISS signal files
if ($TESTING) {
    fem compare signal;beeler_reuter_model_1977 basis both masterfile $example/beeler_reuter_model_1977 comparefile beeler_reuter_model_1977 binary;
}

Files used by this example are:

Name                             Modified     Size

beeler_reuter_1977.com 26-Jul-2003 1.4k beeler_reuter_model_1977.binsig 26-Jul-2003 139k beeler_reuter_model_1977.cml 04-Oct-2003 68k beeler_reuter_model_1977.ipcell 26-Jul-2003 4.2k beeler_reuter_model_1977.ipexpo 26-Jul-2003 658 cellml.ipequa 26-Jul-2003 1.5k cellml.ippara 26-Jul-2003 5.9k lsoda.ipsolv 26-Jul-2003 1.2k

Download the entire example:

Name                                       Modified     Size

examples_cellml_beeler_reuter_1977.tar.gz 19-Aug-2006 95k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:04:48 20165
cm-debugSuccessSat Mar 5 00:16:15 20168
mips-irix
cmSuccessSun Aug 19 02:45:32 200772
cm-debugSuccessWed Aug 15 02:28:26 2007132
cm-debug-clear-mallocSuccessSat Aug 18 02:45:24 2007138
cm-debug-clear-malloc7SuccessMon Aug 20 02:42:00 2007136
cm64SuccessSun Aug 19 02:50:42 200773
cm64-debugSuccessTue Aug 21 02:30:45 2007134
cm64-debug-clear-mallocSuccessThu Apr 1 11:44:07 200467
rs6000-aix
cmSuccessWed Mar 4 01:17:09 200914
cm-debugSuccessMon Mar 2 01:12:31 200925
cm64SuccessWed Mar 4 01:17:11 200913
cm64-debugSuccessTue Mar 3 01:20:18 200925
x86_64-linux
cmSuccessSun Mar 6 00:01:14 20162
cm-debugSuccessSat Mar 5 00:01:58 20164

Testing status by file:


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

Input last modified: Sat Oct 4 17:48:12 2003


CMISS Help / Examples / cellml / beeler_reuter_1977