Example b211t: Simple 2d box simulation using grid-based Finite Elements

This example is a simple 2d box which is solved with a time integration parameter of 0.5 using a cubic ionic current model. This example uses the Grid-based Finite Element method.

The solver options for this problem are the optimised options for the Grid-based FE method. (For large problems, a Conjugate gradient iterative solver with Symmetric succesive relaxation preconditioning is the most efficient).


The comfile run by this example is as follows:

#Example b211t
# ------------
fem define para;r;box;example
fem define coor;r;box;example

fem define node;r;box;example
fem define base;r;box;example
fem define elem;r;box;example

fem define fibr;d
fem define elem;r;box;example fibre

fem define grid;r;box;example
fem update grid geometry
fem group grid external as boundary
fem define equa;r;box;example
fem group grid xi1=low as stimulus

fem define mate;r;box;example
fem define cell;r;box;example
fem define init;r;box;example
fem define solv;r;box;example
fem solve to 0

fem def win

for $M ( 0..9 ) 
{
fem solve restart to $M
fem draw field grid 1 zmin=-85 zmax=40
fem dr grid 
refresh graphics
}

Additional testing commands:

fem list grid yq index v

Files used by this example are:

Name               Modified     Size

example_b211t.com 05-Dec-2000 657 box.ipbase 05-Dec-2000 1.1k box.ipcell 05-Dec-2000 1.7k box.ipcoor 05-Dec-2000 858 box.ipelem 05-Dec-2000 336 box.ipelfb 05-Dec-2000 225 box.ipequa 26-May-2003 1.5k box.ipgrid 06-Mar-2003 535 box.ipinit 05-Dec-2000 508 box.ipmate 05-Dec-2000 1.7k box.ipnode 05-Dec-2000 820 box.ippara 12-Nov-2002 5.9k box.ipsolv 13-Apr-2007 2.1k box.ipsolv.old 07-Feb-2001 1.6k test_output.com 23-Apr-2001 25

Download the entire example:

Name                                 Modified     Size

examples_b_b2_b21_b211_b211t.tar.gz 14-Apr-2007 7.5k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:02:18 20161
cm-debugSuccessSat Mar 5 00:04:17 20160
mips-irix
cmSuccessSun Aug 19 01:28:34 20074
cm-debugSuccessWed Aug 15 01:23:14 20076
cm-debug-clear-mallocSuccessSat Aug 18 01:26:34 200710
cm-debug-clear-malloc7SuccessMon Aug 20 01:24:23 200710
cm64SuccessSun Aug 19 01:28:37 20074
cm64-debugSuccessTue Aug 21 01:22:20 20077
cm64-debug-clear-mallocSuccessThu Apr 1 11:16:30 20043
rs6000-aix
cmSuccessWed Mar 4 01:07:37 20091
cm-debugSuccessMon Mar 2 01:06:26 20092
cm64SuccessWed Mar 4 01:07:37 20091
cm64-debugSuccessTue Mar 3 01:11:57 20091
x86_64-linux
cmSuccessSun Mar 6 00:01:05 20161
cm-debugSuccessSat Mar 5 00:01:35 20160

Testing status by file:


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

Input last modified: Fri Apr 13 10:38:12 2007


CMISS Help / Examples / b / b2 / b21 / b211 / b211t