Example b151: 3D Cube

This example reads in a 3-d cube with spatially varying cellular material parameters and exports the parameters as element based fields. 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 element based field
fem export element;grid as parameters field cell

Additional testing commands:

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

Files used by this example are:

Name                    Modified     Size

example_b151.com 10-Apr-2000 1.4k 3dcube.exelem 10-Apr-2000 4.4k 3dcube.exnode 10-Apr-2000 1.3k cell_parameters.exelem 10-Apr-2000 3.7M 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 cubemate 10-Apr-2000 2.4k grid.exelem 10-Apr-2000 11k lr.ipcell 29-Jan-2003 7.9k lr.ipequa 26-May-2003 1.4k potential.exelem 10-Apr-2000 422k spiral.exelem 10-Apr-2000 51k spiral.exnode 10-Apr-2000 14k test.ipsolv 03-Oct-2001 1.3k test.ipsolv.old 10-Apr-2000 1.3k test_output.com 10-Apr-2000 58 variants.ipmatc 29-Jan-2003 1.4k view.com 20-Nov-2001 1.8k

Download the entire example:

Name                           Modified     Size

examples_b_b1_b15_b151.tar.gz 14-Apr-2007 73k

Testing status by version:

StatusTestedReal time (s)
cmSuccessSun Mar 6 00:02:09 20160
cm-debugSuccessSat Mar 5 00:04:14 20161
cmSuccessSun Aug 19 01:30:10 20074
cm-debugSuccessWed Aug 15 01:26:19 200710
cm-debug-clear-mallocFailureTue Aug 21 01:55:06 200717
last breakTue Apr 17 04:00:00 200716
last successSat Feb 18 01:30:00 200617
cm-debug-clear-malloc7FailureTue Aug 21 01:54:46 200717
last breakTue Apr 17 04:23:00 200716
last successMon Feb 20 01:24:00 200616
cm64SuccessSun Aug 19 01:30:15 20074
cm64-debugSuccessTue Aug 21 01:25:42 200711
cm64-debug-clear-mallocSuccessThu Apr 1 11:09:54 20046
cmSuccessWed Mar 4 01:07:34 20091
cm-debugSuccessMon Mar 2 01:07:41 20092
cm64SuccessWed Mar 4 01:07:34 20091
cm64-debugSuccessTue Mar 3 01:13:02 20093
cmSuccessSun Mar 6 00:01:04 20160
cm-debugSuccessSat Mar 5 00:01:35 20160

Testing status by file:

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

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

CMISS Help / Examples / b / b1 / b15 / b151