Example 121: Defining a 3D rectangular cartesian mesh


The comfile run by this example is as follows:

#Example_121  Defining a 3D rectangular cartesian mesh               
                                                                     
fem                           #set the FEM environment              
fem define coordinates;r;3drcmesh;example #defines 3D rectangular 
#                             !  cartesian coordinates               
fem define nodes;r;;example       #defines 8 nodes in a cube             
fem define bases;r;;example       #defines 1)trilinear & 2) bilinear bases 
fem define element;r;;example     #defines 1 element                      
fem define window;c on xz     #define window with xz view
fem define window;c on xy     #define window with xy view
fem define window;c on yz     #define window with yz view            
fem draw axes                 #                                     
fem draw nodes                #drawn on all three windows            
fem draw lines                #
fem refine xi 1               #refine in the xi(1) direction.  That is,
#                             !  there are now two elements in the 
#                             !  xi(1) direction.
fem draw lines                #note that new lines are visible in the xy
#                             !  and xz windows  
fem refine xi 2               #refine in the xi(2) direction.
fem draw lines                #note that new lines are visible in the xy
#                             !  and yz windows  
fem refine xi 3               #refine in the xi(3) direction.
fem draw lines                #note that new lines are visible in the zy
#                             !  and xz windows  


#new test output
#
fem export node;temp as temp
fem export elem;temp as temp

Additional testing commands:

FEM list node 
FEM list element

Files used by this example are:

Name             Modified     Size

example_121.com 10-Apr-2000 1.7k 3drcmesh.ipbase 10-Apr-2000 2.5k 3drcmesh.ipcoor 10-Apr-2000 607 3drcmesh.ipelem 10-Apr-2000 429 3drcmesh.ipnode 10-Apr-2000 1.8k test_output.com 10-Apr-2000 32

Download the entire example:

Name                      Modified     Size

examples_1_12_121.tar.gz 18-Aug-2006 121k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:01:28 20161
cm-debugSuccessSat Mar 5 00:01:47 20160
mips-irix
cmSuccessSun Aug 19 01:23:54 20072
cm-debugSuccessWed Aug 15 01:20:31 20074
cm-debug-clear-mallocSuccessSat Aug 18 01:23:22 20079
cm-debug-clear-malloc7SuccessMon Aug 20 01:20:35 20078
cm64SuccessSun Aug 19 01:23:17 20073
cm64-debugSuccessTue Aug 21 01:20:25 20076
cm64-debug-clear-mallocSuccessThu Apr 1 10:09:50 20043
rs6000-aix
cmSuccessWed Mar 4 01:06:43 20091
cm-debugSuccessMon Mar 2 01:08:28 20091
cm64SuccessWed Mar 4 01:07:53 20091
cm64-debugSuccessTue Mar 3 01:12:52 20090
x86_64-linux
cmSuccessSun Mar 6 00:01:00 20160
cm-debugSuccessSat Mar 5 00:01:11 20161

Testing status by file:


Graphical output from this problem is given here.


Html last generated: Sun Mar 6 05:50:04 2016

Input last modified: Wed Oct 2 10:32:33 2002


CMISS Help / Examples / 1 / 12 / 121