Example b152: Node based fields

This example reads in a 3-d cube with spatially varying cellular material parameters and exports the parameters as a node based field. The parameters can be viewed using the view.com command file.


The comfile run by this example is as follows:

#Read in a 3d cube with spatially varying cellular material parameters and 
#export the parameters as a node based field.

#Set up problem size
fem define para;r;cube;example

#Define geometry of the problem
fem define coor;r;cube;example
fem define node;r;cube;example
fem define base;r;cube;example
fem define elem;r;cube;example
fem define fibr;d
fem define elem;r;cube;example fibre
fem define grid;r;cube;example
fem update grid geometry
fem update grid metric
#  Some useful groups
fem group grid external as boundary
fem group grid grid 92,93,101 as stimulus_site

#Define equation to solve
#  Define monodomain with LR2 kinetics
fem define equa;r;lr;example

#Define material properties for the problem

#  Define cellular material properties
fem define cell;r;lr;example
#    Define cell variants and spatially varying material parameters
fem define mate;r;variants;example cell
#  Define continuum material parameters
fem define mate;r;cube;example
fem update grid material

#Define continuum initial conditions
#  Set no-flux boundary condition
fem define init;r;cube;example

#Define the explicit solve, using the adams integrator
fem define solv;r;test;example

#The geometry can be exported to CMGUI via these commands
fem export node;3dcube as cube              #Export node geometry
fem export elem;3dcube as cube              #Export element geometry

#Export the cellular material parameters as a node based field
fem export point;grid grid material as grid

Additional testing commands:

#not really anything to do, but need it for the testing!

Files used by this example are:

Name                  Modified     Size

example_b152.com 10-Apr-2000 1.4k cube.ipbase 10-Apr-2000 2.4k cube.ipcell 10-Apr-2000 643 cube.ipcoor 10-Apr-2000 570 cube.ipelem 10-Apr-2000 404 cube.ipelfb 10-Apr-2000 233 cube.ipequa 26-May-2003 1.4k cube.ipexpo 10-Apr-2000 580 cube.ipgrid 06-Mar-2003 600 cube.ipinit 10-Apr-2000 213 cube.ipmate 10-Apr-2000 1.7k cube.ipmate_cell_old 10-Apr-2000 2.4k cube.ipnode 10-Apr-2000 1.8k cube.ippara 12-Nov-2002 5.9k cube.ipsolv 13-Apr-2007 1.8k cube.ipsolv.old 10-Apr-2000 1.4k lr.ipcell 29-Jan-2003 7.9k lr.ipequa 26-May-2003 1.4k test.ipsolv 03-Oct-2001 1.3k test.ipsolv.old 10-Apr-2000 1.3k test_output.com 10-Apr-2000 57 variants.ipmatc 29-Jan-2003 1.4k view.com 20-Nov-2001 1.7k

Download the entire example:

Name                           Modified     Size

examples_b_b1_b15_b152.tar.gz 14-Apr-2007 18k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:02:10 20160
cm-debugSuccessSat Mar 5 00:04:14 20161
mips-irix
cmSuccessSun Aug 19 01:30:18 20074
cm-debugSuccessWed Aug 15 01:27:29 200710
cm-debug-clear-mallocFailureTue Aug 21 01:55:26 200717
last breakTue Apr 17 04:00:00 200717
last successSat Feb 18 01:30:00 200617
cm-debug-clear-malloc7FailureTue Aug 21 01:55:11 200717
last breakTue Apr 17 04:00:00 200716
last successMon Feb 20 01:25:00 200616
cm64SuccessSun Aug 19 01:30:23 20075
cm64-debugSuccessTue Aug 21 01:25:45 200710
cm64-debug-clear-mallocSuccessThu Apr 1 11:09:59 20046
rs6000-aix
cmSuccessWed Mar 4 01:07:35 20091
cm-debugSuccessMon Mar 2 01:07:15 20093
cm64SuccessWed Mar 4 01:07:35 20091
cm64-debugSuccessTue Mar 3 01:13:09 20093
x86_64-linux
cmSuccessSun Mar 6 00:01:04 20160
cm-debugSuccessSat Mar 5 00:01:35 20161

Testing status by file:


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

Input last modified: Fri Apr 13 10:37:36 2007


CMISS Help / Examples / b / b1 / b15 / b152