Example 113: Refining the mesh


The comfile run by this example is as follows:

#Example_113 Refining the mesh           
                                                                      
fem                            #Set the FEM environment              
fem define nodes;r;fem_mesh;example    #Read the previously defined nodal
#                              !  coordinates from FEM_MESH.ipnode.   
fem define window;c            #Calculate the window size to fit the 
#                              !  size of the mesh         
fem define bases;r;;example             #Read in the basis function defined in
#                              !  FEM_MESH.ipbase                
fem define elements;r;;example          #Read in the elements defined in 
#                              !  FEM_MESH.ipelem               
fem draw lines                 #Make the line segments visible     
fem draw elements              #Make the element numbers visible   
fem draw nodes                 #Make the node numbers visible       
fem refine xi 1                #Refine the two elements at Xi(1)=0.5
fem draw lines                 #Draws in two new vertical lines
fem draw elements              #Draws new element numbers  
fem draw nodes                 #Draws new node numbers       
fem refine xi 1 elements 1,3 at 0.25 #Refine elements 1 and 3 at Xi(1)=0.25 
fem draw lines                 #Draws new vertical lines for the
#                              !  refined elements
fem draw elements              #Draws new element numbers  
fem draw nodes                 #Draws new node numbers       
fem define nodes;w;refine      #Writes nodes to a file REFINE.ipnode
fem define elements;w          #Writes elements to a file REFINE.ipelem

Additional testing commands:

FEM list node
FEM list element


Files used by this example are:

Name             Modified     Size

example_113.com 10-Apr-2000 1.6k fem_mesh.ipbase 10-Apr-2000 1.1k fem_mesh.ipelem 10-Apr-2000 611 fem_mesh.ipnode 10-Apr-2000 1.3k test_output.com 10-Apr-2000 32

Download the entire example:

Name                      Modified     Size

examples_1_11_113.tar.gz 18-Aug-2006 56k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:01:27 20160
cm-debugSuccessSat Mar 5 00:01:45 20160
mips-irix
cmSuccessSun Aug 19 01:23:52 20073
cm-debugSuccessWed Aug 15 01:20:17 20074
cm-debug-clear-mallocSuccessSat Aug 18 01:23:00 20078
cm-debug-clear-malloc7SuccessMon Aug 20 01:19:47 200726
cm64SuccessSun Aug 19 01:25:06 20072
cm64-debugSuccessTue Aug 21 01:18:25 20076
cm64-debug-clear-mallocSuccessThu Apr 1 10:09:43 200413
rs6000-aix
cmSuccessWed Mar 4 01:08:40 20090
cm-debugSuccessMon Mar 2 01:06:08 20091
cm64SuccessWed Mar 4 01:09:27 20090
cm64-debugSuccessTue Mar 3 01:11:32 20095
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: Wed Mar 9 16:00:53 2016

Input last modified: Wed Oct 2 10:31:15 2002


CMISS Help / Examples / 1 / 11 / 113