Example i13: The oesophagus, crura, stomach, diaphragm, IVC and aorta

This example loads in the meshes of the oesophagus, crura, diaphragm, stomach, IVC and aorta. The example reads in the .ipnode and .ipelem files and exports them to be viewed in CMGUI


The comfile run by this example is as follows:

# Example i13
# This file reads in the meshes of the oesophagus, crura, stomach, diaphragm, IVC, and aorta
# and exports them to be viewed in CMGUI
# Author: Rita Yassi
# Last updated: 14/04/08
#
# INPUT: .ipnode, .ipelem files
# OUTPUT: .exnode, .exelem files

if (!defined $example)
{
    $example ='.';
}

# set array sizes
fem define param;r;$example/Mesh 
# set coordinate system
fem define coor 3,1
# set basis functions
# --1 Geometry-- 
fem define bases;r;$example/TriCubic 
# --2 Faces--
fem define ;add bases;r;$example/BiCubic


#-----Read in and export the nodes and elements-----

# *** Oesophagus ***
fem define nodes;r;$example/Oesophagus
fem define element;r;$example/Oesophagus
fem export node;Oesophagus as Oesophagus
fem export elem;Oesophagus as Oesophagus

fem reallocate # wipe out everything to be able to read the next mesh

# ************************** Aorta ************************************

# set array sizes
fem define param;r;$example/Mesh 
# set coordinate system
fem define coor 3,1
# set basis functions
# --1 Geometry-- 
fem define ;add bases;r;$example/BiCubic

fem define nodes;r;$example/Aorta
fem define element;r;$example/Aorta
fem export node;Aorta as Aorta
fem export elem;Aorta as Aorta

fem reallocate # wipe out everything to be able to read the next mesh

# ************************** Stomach ************************************
# set array sizes
fem define param;r;$example/Mesh 
# set coordinate system
fem define coor 3,1
# set basis functions
# --1 Geometry-- 
fem define bases;r;$example/TriCubic 
# --2 Faces--
fem define ;add bases;r;$example/BiCubic

fem define nodes;r;$example/Stomach
fem define element;r;$example/Stomach
fem export node;Stomach as Stomach
fem export elem;Stomach as Stomach

fem reallocate # wipe out everything to be able to read the next mesh

# ************************** Diaphragm ************************************
# set array sizes
fem define param;r;$example/Mesh 
# set coordinate system
fem define coor 3,1
# set basis functions
# --1 Geometry-- 
fem define ;add bases;r;$example/BiCubic

fem define nodes;r;$example/Diaphragm
fem define element;r;$example/Diaphragm
fem export node;Diaphragm as Diaphragm
fem export elem;Diaphragm as Diaphragm

fem reallocate # wipe out everything to be able to read the next mesh

# ************************** Inferior Vena Cava (IVC) ************************************
# set array sizes
fem define param;r;$example/Mesh 
# set coordinate system
fem define coor 3,1
# set basis functions
# --1 Geometry-- 
fem define ;add bases;r;$example/BiCubic

fem define nodes;r;$example/IVC
fem define element;r;$example/IVC
fem export node;IVC as IVC
fem export elem;IVC as IVC

fem reallocate # wipe out everything to be able to read the next mesh

# ************************** Crura: Left Crus (LC)  ************************************
# set array sizes
fem define param;r;$example/Mesh 
# set coordinate system
fem define coor 3,1
# set basis functions
# --1 Geometry-- 
fem define ;add bases;r;$example/BiCubic

fem define nodes;r;$example/LC
fem define element;r;$example/LC
fem export node;LC as LC
fem export elem;LC as LC

fem reallocate # wipe out everything to be able to read the next mesh

# ************************** Crura: Right Crus (LC)  ************************************
# set array sizes
fem define param;r;$example/Mesh 
# set coordinate system
fem define coor 3,1
# set basis functions
# --1 Geometry-- 
fem define ;add bases;r;$example/BiCubic

fem define nodes;r;$example/RC
fem define element;r;$example/RC
fem export node;RC as RC
fem export elem;RC as RC


Files used by this example are:

Name               Modified     Size

example_i13.com 27-Jun-2008 3.5k Aorta.ipelem 27-Jun-2008 6.6k Aorta.ipnode 27-Jun-2008 21k BiCubic.ipbase 27-Jun-2008 1.5k Diaphragm.ipelem 27-Jun-2008 24k Diaphragm.ipnode 27-Jun-2008 85k IVC.ipelem 27-Jun-2008 13k IVC.ipnode 27-Jun-2008 42k LC.ipelem 27-Jun-2008 6.6k LC.ipnode 27-Jun-2008 21k Mesh.ippara 27-Jun-2008 5.9k Oesophagus.ipelem 27-Jun-2008 91k Oesophagus.ipnode 27-Jun-2008 981k RC.ipelem 27-Jun-2008 19k RC.ipnode 27-Jun-2008 57k Stomach.ipelem 27-Jun-2008 111k Stomach.ipnode 27-Jun-2008 382k TriCubic.ipbase 27-Jun-2008 1.9k draw.com 27-Jun-2008 4.8k

Download the entire example:

Name                      Modified     Size

examples_i_i1_i13.tar.gz 18-Sep-2008 736k

Testing status by version:

StatusTestedReal time (s)
rs6000-aix
cm64SuccessWed Mar 4 01:25:12 200954
cm64-debugSuccessTue Mar 3 01:56:49 2009247
x86_64-linux
cmSuccessSun Mar 6 00:02:17 201620
cm-debugSuccessSat Mar 5 00:09:06 2016135

Testing status by file:


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

Input last modified: Wed Sep 17 12:04:26 2008


CMISS Help / Examples / i / i1 / i13