This example solves the Luo & Rudy 1994 model (more commonly known as the LR II or LRd model), defined by a CellML version of the model.
Please note: While this version of the model qualitatively compares well to the LR II paper for the action potential, the intracellular calcium dynamics have not been included correctly - namely there is no calcium-induced calcium-release (CICR) process in this version of the model. The original version of the model simulates CICR via a mechanism whereby CICR is induced if and only if the calcium accumulated in the cell in the 2 ms following (dV/dt)max exceeds a given threshold. This sort of process is a bit tricky to include in the CellML (or at least in a way that will work with the CellML abilitites of CMISS) so has been left out for now. I (Andre) don't see this as too much of a problem as the later LRd based models improve on this mechanism and their CellML implementations should be much better.
NOTE: This example requires a CellML 1.0 enabled version of CMISS to run.
# 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/LR_II_model_1994; 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;LR_II_model_1994 write variables yqs niqslist 1..36 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;LR_II_model_1994 history LR_II_model_1994 from grid yqs iy 1..36 binary; fem define export;r;$example/LR_II_model_1994; fem export signal;LR_II_model_1994 electrodes signal LR_II_model_1994 names cell; # For testing we compare the generated CMISS signal files if ($TESTING) { fem compare signal;LR_II_model_1994 basis both masterfile $example/LR_II_model_1994 comparefile LR_II_model_1994 binary; }
Name Modified Size
LR2.com 04-Aug-2003 1.3k LR_II_model_1994.binsig 04-Aug-2003 263k LR_II_model_1994.cml 09-Oct-2003 146k LR_II_model_1994.ipcell 04-Aug-2003 16k LR_II_model_1994.ipexpo 04-Aug-2003 658 cellml.ipequa 04-Aug-2003 1.5k cellml.ippara 04-Aug-2003 5.9k rk.ipsolv 04-Aug-2003 907
Name Modified Size
examples_cellml_LR2.tar.gz 19-Aug-2006 169k
Status | Tested | Real time (s) | |
i686-linux | |||
cm | Success | Sun Mar 6 00:04:35 2016 | 6 |
cm-debug | Success | Sat Mar 5 00:17:30 2016 | 8 |
mips-irix | |||
cm | Success | Sun Aug 19 02:57:31 2007 | 83 |
cm-debug | Success | Wed Aug 15 02:30:09 2007 | 134 |
cm-debug-clear-malloc | Success | Sat Aug 18 02:47:52 2007 | 147 |
cm-debug-clear-malloc7 | Success | Mon Aug 20 02:46:43 2007 | 140 |
cm64 | Success | Sun Aug 19 02:58:57 2007 | 84 |
cm64-debug | Success | Tue Aug 21 02:30:51 2007 | 136 |
cm64-debug-clear-malloc | Success | Thu Apr 1 11:41:20 2004 | 126 |
rs6000-aix | |||
cm | Success | Wed Mar 4 01:17:27 2009 | 17 |
cm-debug | Success | Mon Mar 2 01:15:37 2009 | 28 |
cm64 | Success | Wed Mar 4 01:18:35 2009 | 14 |
cm64-debug | Success | Tue Mar 3 01:20:02 2009 | 25 |
x86_64-linux | |||
cm | Success | Sun Mar 6 00:01:15 2016 | 4 |
cm-debug | Success | Sat Mar 5 00:01:59 2016 | 5 |
i686-linux | |||
Success | cm: | cmiss_test.log.retain. | |
Success | cm-debug: | cmiss_test.log.retain. | |
mips-irix | |||
Success | cm: | cmiss_test.log.retain. | |
Success | cm-debug: | cmiss_test.log.retain. | |
Success | cm-debug-clear-malloc: | cmiss_test.log.retain. | |
Success | cm-debug-clear-malloc7: | cmiss_test.log.retain. | |
Success | cm64: | cmiss_test.log.retain. | |
Success | cm64-debug: | cmiss_test.log.retain. | |
Success | cm64-debug-clear-malloc: | cmiss_test.log.retain. | |
rs6000-aix | |||
Success | cm: | cmiss_test.log.retain. | |
Success | cm-debug: | cmiss_test.log.retain. | |
Success | cm64: | cmiss_test.log.retain. | |
Success | cm64-debug: | cmiss_test.log.retain. | |
x86_64-linux | |||
Success | cm: | cmiss_test.log.retain. | |
Success | cm-debug: | cmiss_test.log.retain. |
i686-linux | |||
Success | cm: | ndiff test: no significant differences with generic answer. | |
Success | cm-debug: | ndiff test: no significant differences with generic answer. | |
mips-irix | |||
Success | cm: | ndiff test: no significant differences with generic answer. | |
Success | cm-debug: | ndiff test: no significant differences with generic answer. | |
Success | cm-debug-clear-malloc: | ndiff test: no significant differences with generic answer. | |
Success | cm-debug-clear-malloc7: | ndiff test: no significant differences with generic answer. | |
Success | cm64: | ndiff test: no significant differences with generic answer. | |
Success | cm64-debug: | ndiff test: no significant differences with generic answer. | |
Success | cm64-debug-clear-malloc: | ndiff test: no significant differences with generic answer. | |
rs6000-aix | |||
Success | cm: | ndiff test: no significant differences with generic answer. | |
Success | cm-debug: | ndiff test: no significant differences with generic answer. | |
Success | cm64: | ndiff test: no significant differences with generic answer. | |
Success | cm64-debug: | ndiff test: no significant differences with generic answer. | |
x86_64-linux | |||
Success | cm: | ndiff test: no significant differences with generic answer. | |
Success | cm-debug: | ndiff test: no significant differences with generic answer. |
Html last generated: Sun Mar 6 05:51:19 2016
Input last modified: Thu Oct 9 11:36:57 2003