Example i55: Generate Varying Excitation Curve for 3D Cylinder from Example_i56

This example illustrates how to generate a fully varying ipmatc file for example_i56. This is used for gastrointestinal modelling when wanting to produce varying excitation curves per the Aliev cell model. An additional perl scrip called insert_ipmatc.pl and the file ICCcmiss_mono_ref.ipmatc have been included since both of them are used to create the final ipmatc file, here called ICCcmiss_mono.ipmatc, for use in the simulations. This is produced by executing perl insert_ipmatc.pl

The epsilon curve placed on the cylinder showing the variance from the botton to the top.

Epsilon Curve varying from Botton to Top


The comfile run by this example is as follows:

$LAYER = 2;


# Define the geometry.
gfx read node $example/domain.exnode
gfx read elem $example/domain.exelem
gfx read elem $example/potential.exelem
gfx read elem $example/grid.exelem


# Define the curves.
open com $example/xi1.curve.com exec
open com $example/xi2.curve.com exec
open com $example/xi3.curve.com exec


# Group the different layers.
gfx create egroup LM add 13..16,29..32
gfx create egroup ICC add 21..24
gfx create egroup CM add 1..4,17..20,9..12,25..28,5..8

if($LAYER == 1) {
  $SEED_ELEMENT = 13;
  $GROUP = "LM";
} elsif($LAYER == 2) {
  $SEED_ELEMENT = 21;
  $GROUP = "ICC";
} elsif($LAYER == 3) {
  $SEED_ELEMENT = 1;
  $GROUP = "CM";
}

# Define the curves on the layer.
gfx define field xi_texture xi_texture_coordinates seed_element $SEED_ELEMENT
gfx define field xi1_curve curve_lookup curve xi1 source xi_texture.1
gfx define field xi2_curve curve_lookup curve xi2 source xi_texture.2
gfx define field xi3_curve curve_lookup curve xi3 source xi_texture.3
gfx define field temp multiply fields xi1_curve xi2_curve
gfx define field values multiply fields temp xi3_curve


# Calculate "values" and store them.
gfx evaluate egroup $GROUP destination potential source values
gfx write elem values_$GROUP group $GROUP fields potential
gfx write elem number_$GROUP group $GROUP fields grid_point_number


# Write the values to $GROUP.txt.
open com $example/parse_grid.com exec
parse_grid( $GROUP );


# Delete files.
unlink( "number_$GROUP.exelem" );
unlink( "values_$GROUP.exelem" );

Files used by this example are:

Name                      Modified     Size

example_i55.com 07-Jul-2006 1.5k ICCcmiss_mono_ref.ipmatc 07-Jul-2006 2.4k domain.exelem 07-Jul-2006 84k domain.exnode 07-Jul-2006 48k grid.exelem 07-Jul-2006 798k insert_ipmatc.pl 07-Jul-2006 515 parse_grid.com 07-Jul-2006 1.9k potential.exelem 07-Jul-2006 1.0M xi1.curve.com 07-Jul-2006 146 xi1.curve.exelem 07-Jul-2006 622 xi1.curve.exnode 07-Jul-2006 359 xi2.curve.com 07-Jul-2006 147 xi2.curve.exelem 07-Jul-2006 622 xi2.curve.exnode 07-Jul-2006 359 xi3.curve.com 07-Jul-2006 143 xi3.curve.exelem 07-Jul-2006 622 xi3.curve.exnode 07-Jul-2006 359

Download the entire example:

Name                      Modified     Size

examples_i_i5_i55.tar.gz 19-Aug-2006 291k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmguiSuccessWed Jul 11 01:14:48 20072
cmgui-debugSuccessWed Jul 11 01:17:11 20073
cmgui-debug-memorycheckSuccessWed Jul 11 01:19:26 20075
cmgui-debug-valgrindSuccessTue Jul 10 06:01:56 2007174
cmgui-motifSuccessFri Jun 11 00:25:51 20101
cmgui-motif-debugSuccessFri Jun 11 00:28:25 20102
cmgui-motif-debug-memorycheckSuccessFri Jun 11 00:31:04 20103
cmgui-motif-debug-valgrindSuccessFri Jun 11 01:43:36 201082
cmgui-wxSuccessSun Mar 6 00:07:03 20161
cmgui-wx-debugSuccessSun Mar 6 00:07:03 20161
cmgui-wx-debug-memorycheckSuccessSun Mar 6 00:07:11 20162
cmgui-wx-debug-valgrindSuccessSun Mar 6 00:47:09 201636
mips-irix
cmguiSuccessWed Jul 11 01:15:34 20079
cmgui-debugSuccessWed Jul 11 01:19:30 200713
cmgui-debug-memorycheckSuccessWed Jul 11 01:28:57 200735
cmgui-motifSuccessWed Oct 7 02:10:22 20099
cmgui-motif-debugSuccessWed Oct 7 02:13:54 200914
cmgui-motif-debug-memorycheckSuccessWed Oct 7 02:23:23 200930
cmgui64SuccessWed Jul 11 01:16:04 20078
cmgui64-motifSuccessWed Oct 7 02:10:27 200910
rs6000-aix
cmguiSuccessWed Jul 11 02:11:29 20071
cmgui-debugSuccessWed Jul 11 02:13:42 20073
cmgui-motifSuccessWed Mar 4 01:10:41 20092
cmgui-motif-debugSuccessWed Mar 4 01:12:48 20092
x86_64-linux
cmguiSuccessWed Jul 11 01:12:48 20072
cmgui-debugSuccessWed Jul 11 01:13:02 20071
cmgui-debug-memorycheckSuccessWed Jul 11 01:13:50 20072
cmgui-motifSuccessFri Jun 11 00:14:46 20101
cmgui-motif-debugSuccessFri Jun 11 00:15:26 20101
cmgui-motif-debug-memorycheckSuccessFri Jun 11 00:15:27 20102
cmgui-wxSuccessThu Jan 7 00:01:37 20160
cmgui-wx-debugSuccessThu Jan 7 00:01:38 20160
cmgui-wx-debug-memorycheckSuccessThu Jan 7 00:01:38 20160
cmgui-wx-debug-valgrindSuccessThu Jan 7 00:06:20 201627
cmgui-wx-gcc-cad-debugSuccessTue May 24 00:16:28 201119
cmgui-wx-gcc-cad-debug-valgrindSuccessThu Jan 7 00:06:04 201623

Testing status by file:


Graphical output from this problem is given here.


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

Input last modified: Mon Jul 10 10:03:38 2006


CMISS Help / Examples / i / i5 / i55