Example b16: 1D to 2D matrices.

Tests reading in 1-D matrix and copying onto a 2-D sheet.

The comfile run by this example is as follows:

# Reads in a solution matrix (YQS) from a one dimensional fibre simulation
# and copies the 1-D fibre onto the rows of grid points in a two dimensional
# sheet.

#set the problem size
fem define para;r;spiral;example

#set up the 2-D sheet
fem define base;r;spiral;example
fem define mesh;r;spiral;example

#Export the mesh
fem export node;spiral as sheet
fem export elem;spiral as sheet

#define the FD grid
fem define grid;r;spiral;example
fem update grid geometry
fem update grid metric
fem group grid external as boundary
fem group grid xi1 low as stimulus oneoff
fem group grid square 1117 as S2

#define an ionic current model
fem define equa;r;spiral;example

#define material parameters
fem define cell;r;try_IKrblocked_S1;example
fem define mate;r;spiral_epi_M_endoS1;example cell
fem define mate;r;spiral_epi_M_endo;example
fem update grid material

#set initial conditions
fem define init;r;spiral;example

#define the solve
fem define solv;r;spiral_adaptive;example

#set the number of threads for multiprocessing
# not for examples rgb set num_threads 32

#export the cellular material parameters
fem export elem;cell_parameters field cell as sheet

#initialise the solve
### Cannot solve without the user cell model
#fem solve to 0

#read in the 1-D matrix and spread over the 2-D sheet
fem read matrix;$example."test_Ikrblocked_10beats" binary one2two

#export the potential field
fem export elem;potential field as sheet

Additional testing commands:

#write out the 2-d matrix
fem write matrix;2d_matrix matrices yq,yqs binary

#list some grid points
fem list grid grid 100..150

Files used by this example are:

Name                               Modified     Size

example_b16.com 14-Oct-2002 1.4k spiral.exelem 10-Apr-2000 51k spiral.exnode 10-Apr-2000 14k spiral.ipbase 10-Apr-2000 1.1k spiral.ipequa 26-May-2003 1.5k spiral.ipgrid 06-Mar-2003 541 spiral.ipinit 10-Apr-2000 217 spiral.ipmesh 10-Apr-2000 770 spiral.ippara 12-Nov-2002 5.9k spiral_adaptive.ipsolv 03-Oct-2001 1.4k spiral_adaptive.ipsolv.old 10-Apr-2000 1.3k spiral_epi_M_endo.ipcell 10-Apr-2000 1.7k spiral_epi_M_endo.ipmate 10-Apr-2000 2.9k spiral_epi_M_endo.ipmate_cell_old 10-Apr-2000 3.5k spiral_epi_M_endoS1.ipmatc 03-Feb-2003 5.3k test_Ikrblocked_10beats.binmat 10-Apr-2000 63k test_output.com 11-Oct-2002 128 try_IKrblocked_S1.ipcell 10-Apr-2000 4.1k

Download the entire example:

Name                      Modified     Size

examples_b_b1_b16.tar.gz 19-Aug-2006 575k

Testing status by version:

StatusTestedReal time (s)
cmSuccessSun Mar 6 00:03:45 20163
cm-debugFailureSun Mar 6 00:06:57 20160
last breakFri Apr 15 00:17:00 20111
last successThu Apr 7 00:34:00 201111
cmSuccessSun Aug 19 01:58:45 200728
cm-debugSuccessWed Aug 15 01:47:28 200749
cm-debug-clear-mallocSuccessSat Aug 18 02:15:49 200786
cm-debug-clear-malloc7SuccessMon Aug 20 02:10:43 200789
cm64SuccessSun Aug 19 01:58:51 200729
cm64-debugSuccessTue Aug 21 01:47:14 200752
cm64-debug-clear-mallocSuccessThu Apr 1 11:10:39 200428
cmSuccessWed Mar 4 01:10:52 20093
cm-debugSuccessMon Mar 2 01:11:20 200911
cm64SuccessWed Mar 4 01:10:46 20094
cm64-debugSuccessTue Mar 3 01:15:53 200912
cmSuccessSun Mar 6 00:01:10 20162
cm-debugSuccessSat Mar 5 00:01:50 20163

Testing status by file:

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

Input last modified: Mon May 26 18:05:36 2003

CMISS Help / Examples / b / b1 / b16