Example d121: Muscle fibre from a volume mesh

This example creates a 1d fibre from a volume mesh of the rectus femoris muscle using the cmiss perl utilities and writes out a new IPNODE file.


The comfile run by this example is as follows:

# This comfile reads in a *.ipxi file and converts it into an    #
#   ipnode file which can be read into CMISS                     #

if( !$example ) {
	$example = ".";
}

# Specify cmiss perl module
use CmUtils::File qw(cmRead cmWrite);

# Read in the volume mesh
fem define coor 3,1
fem define node;r;$example/Volume_mesh
fem define base;r;$example/sector
fem define elem;r;$example/Volume_mesh

# Generate the data points
fem define xi;r;$example/data
fem define data;c from_xi
fem define data;w;points

# Write out the ipnode
$group = cmRead( 'points.ipdata' );
$group->offset_number(109);
cmWrite( 'fibre.ipnode', $group );

Additional testing commands:

fem list node

Files used by this example are:

Name                Modified     Size

example_d121.com 17-Dec-2003 631 Volume_mesh.ipelem 13-Nov-2001 9.0k Volume_mesh.ipnode 13-Nov-2001 74k data.ipxi 13-Nov-2001 622 fibre.ipelem 13-Nov-2001 8.0k fibre.ipnode 17-Dec-2003 6.5k points.ipdata 13-Nov-2001 2.9k sector.ipbase 13-Nov-2001 6.6k test_output.com 13-Nov-2001 14 volume.exelem 13-Nov-2001 52k volume.exnode 13-Nov-2001 25k

Download the entire example:

Name                           Modified     Size

examples_d_d1_d12_d121.tar.gz 19-Aug-2006 28k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:02:32 20160
cm-debugSuccessSat Mar 5 00:04:25 20161
mips-irix
cmSuccessSun Aug 19 01:32:17 20076
cm-debugSuccessWed Aug 15 01:28:51 20077
cm-debug-clear-mallocSuccessSat Aug 18 01:30:38 200720
cm-debug-clear-malloc7SuccessMon Aug 20 01:27:03 200712
cm64SuccessSun Aug 19 01:39:15 20076
cm64-debugSuccessTue Aug 21 01:26:10 20079
cm64-debug-clear-mallocSuccessThu Apr 1 11:52:30 20043
rs6000-aix
cmSuccessWed Mar 4 01:08:36 20092
cm-debugSuccessMon Mar 2 01:07:35 20093
cm64SuccessWed Mar 4 01:08:36 20092
cm64-debugSuccessTue Mar 3 01:13:03 20093
x86_64-linux
cmSuccessSun Mar 6 00:01:06 20160
cm-debugSuccessSat Mar 5 00:01:44 20160

Testing status by file:


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

Input last modified: Tue Mar 2 19:26:26 2004


CMISS Help / Examples / d / d1 / d12 / d121