Example 212: 2D rectangular cartesian bilinear element fitted to stripe data


The comfile run by this example is as follows:

#Example_212 2D rectangular cartesian bilinear element fitted to stripe data                                                        
#                                                                                                                                   
fem define window                                                                                                                   
fem define node;m      #define four nodes                                                                                           
fem define base;p      #choose bilinear basis                                                                                       
fem define element;m   #pick four nodes (LH top,RH top,LH bott,RH bot)                                                                                             
fem define data;m      #locate say 5 data points in a line within element                                                           
fem define xi;c data   #calculate Xi material positions within element                                                              
fem define xi;w data   #write Xi positions to file                                                                                  
fem cancel data        #gets rid of initial data positions                                                                          
fem define field;d     #defaults to 2 field variables, initially all zero 
fem define elem;d field #defaults with elements                                                                                                              
fem define data;m      #locate new data positions                                                                                   
fem define xi;r data   #associates old Xi material coords with new data                                                             
fem list data          #list data positions and Xi material coords                                                                  
fem draw data          #draws data points                                                                                           
fem draw data proj     #draws data point projections to material points                                                             
fem define fit;p geom  #fix 2 nodes to stop translation and rotation                                                                
fem list nodes         #notice that field positions have initial coords                                                             
fem fit geometry       #least-squares fit of nodal x,y coords                                                                       
fem list nodes         #notice that unfixed field values have changed                                                               
fem update nodes       #updates nodal coords to new fitted values                                                                   
fem list nodes         #notice that field values have moved to coords                                                               
fem draw;add line      #draws new mesh                                                                                              
fem draw data proj     #draws new data point projections to material points                                                         
fem list data error    #lists error for least squares fit                                                                           
fem quit                                                                                                                            

Files used by this example are:

Name                Modified     Size

example_212.com 19-Jul-2001 3.5k data.ipxi 10-Apr-2000 175 example_212.ipbase 10-Apr-2000 1.1k example_212.ipdata 10-Apr-2000 676 example_212.ipelem 10-Apr-2000 351 example_212.ipfit 13-Apr-2007 2.0k example_212.ipnode 10-Apr-2000 977 example_212.ipxi 10-Apr-2000 175 file.ipbase 10-Apr-2000 1.1k file.ipelem 10-Apr-2000 351 file.ipnode 10-Apr-2000 977

Download the entire example:

Name                      Modified     Size

examples_2_21_212.tar.gz 14-Apr-2007 3.7k

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

Input last modified: Fri Apr 13 10:30:36 2007


CMISS Help / Examples / 2 / 21 / 212