Example b121 - Single Cell Hodgkin-Huxley This example solves the Hodgkin-Huxley ionic current model. The results are written to an ascii CMISS signal file, and then converted to a CMISS binary signal file, before being exported to a UnEMAP signal file.
# Example b121 - Single cell Hodgkin-Huxley # 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 para;r;$example/test; #Define geometry of the problem # Define underlying geometry fem define base;d; fem define node;d; fem define elem;d; # Define grid geometry fem define grid;d; fem update grid geometry; fem update grid metric; #Define equation to solve # Define monodomain with HH kinetics fem define equa;r;$example/test; #Define material properties for the problem # Define cellular material properties fem define cell;r;$example/hh; # Define cell variants and spatially varying material parameters fem define mate;r;$example/test cell; # Define the continuum material parameters fem define mate;r;$example/test; fem update grid material; #Define continuum initial conditions # Set no-flux boundary condition fem define init;r;$example/test; #Define the explicit solve, using the adams integrator fem def solv;r;$example/test; #Solve the problem # Initialise the solve fem solve to 0; # Open a binary history file to store the membrane potential, # the h, m, and n gates and the three currents: INa, IK, and Il and # the stimulus current fem open history;test write variables yqs niqslist 1..8 binary; # Loop through time $Tend = 100; $dt = 1.0; for ($time=0;$time<$Tend;$time+=$dt) { # Solve for the current time fem solve restart to $time; # Write the membrane potential to the history file fem write history time $time variables yqs binary; } # Close the history file fem close history binary; # Calculate the binary signal file from the history file # for the membrane potential (YQS(1)) fem evaluate electrode;test history test from gvariables yqs iy 1,2,3,4,5,6,7,8 electrodes 1 binary; # Define UnEmap export properties fem define export;r;$example/test; # Define names for the signals fem define leads;r;$example/test; # Export the binary signal file to UnEmap fem export signal;test leads signal test; # For testing we compare the generated CMISS signal files if ($TESTING) { fem compare signal;test basis both masterfile $example/test comparefile test binary; }
Name Modified Size
example_b121.com 29-Jan-2003 2.3k hh.ipcell 29-Jan-2003 1.6k test.binsig 29-Jan-2003 6.9k test.ipequa 26-May-2003 1.4k test.ipexpo 29-Jan-2003 658 test.ipinit 10-Apr-2000 212 test.iplead 29-Jan-2003 2.2k test.ipmatc 29-Jan-2003 430 test.ipmate 10-Apr-2000 3.2k test.ippara 12-Nov-2002 5.9k test.ipsolv 03-Oct-2001 1.3k test.ipsolv.old 10-Apr-2000 1.3k
Name Modified Size
examples_b_b1_b12_b121.tar.gz 19-Aug-2006 10k
Status | Tested | Real time (s) | |
i686-linux | |||
cm | Success | Sun Mar 6 00:02:08 2016 | 0 |
cm-debug | Success | Sat Mar 5 00:03:33 2016 | 1 |
mips-irix | |||
cm | Success | Sun Aug 19 01:36:07 2007 | 7 |
cm-debug | Success | Wed Aug 15 01:29:08 2007 | 13 |
cm-debug-clear-malloc | Success | Sat Aug 18 01:34:43 2007 | 16 |
cm-debug-clear-malloc7 | Success | Mon Aug 20 01:34:14 2007 | 17 |
cm64 | Success | Sun Aug 19 01:33:27 2007 | 8 |
cm64-debug | Success | Tue Aug 21 01:28:37 2007 | 13 |
cm64-debug-clear-malloc | Success | Thu Apr 1 11:08:49 2004 | 7 |
rs6000-aix | |||
cm | Success | Wed Mar 4 01:07:32 2009 | 1 |
cm-debug | Success | Mon Mar 2 01:07:14 2009 | 2 |
cm64 | Success | Wed Mar 4 01:07:32 2009 | 0 |
cm64-debug | Success | Tue Mar 3 01:13:06 2009 | 2 |
x86_64-linux | |||
cm | Success | Sun Mar 6 00:01:04 2016 | 1 |
cm-debug | Success | Sat Mar 5 00:01:35 2016 | 1 |
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:04 2016
Input last modified: Mon May 26 18:03:17 2003