Example 115: Defining a quadratic-linear 2D FEM element


The comfile run by this example is as follows:

#Example_115 Defining a quadratic-linear FEM mesh                           
                                                                    
fem                              #sets the environment to FEM         
fem define nodes;r;quad_lin;example  #Read in 6 nodes for the quadratic-linear
#                                !element.       
fem define window;c              #bring up the xy window
fem draw axes                    #draw the axes
fem draw node                    #draw the nodes
fem define bases;p;quad_lin      #Define one type of basis function 
#                                !to be a Lagrange tensor product. 
#                                !Define 2 Xi coordinates and define the
#                                !interpolant type in the Xi(1) direction to
#                                !be quadratic (type 2). All other options
#                                !are defaults. The file QUAD_LIN.IPBASE will
#                                !be created in your directory.
fem define elements;p            #Define one element with element number 1
#                                !and 2 geometric coordinates (ie. 2D)
#                                !that uses basis function type 1 for both.
#                                !coordinates. The 6 global node numbers are
#                                !1 2 3 4 5 6 (in that order). The file
#                                !QUAD_LIN.IPELEM will be created in your
#                                !directory.
fem draw line                    #draw the element lines
fem draw element                 #draw the element number
fem list bases                   #lists the defined bases             
fem list elements                #lists the defined elements

Files used by this example are:

Name             Modified     Size

example_115.com 20-Feb-2004 1.7k quad_lin.ipbase 10-Apr-2000 1.1k quad_lin.ipelem 10-Apr-2000 345 quad_lin.ipnode 10-Apr-2000 1.1k

Download the entire example:

Name                      Modified     Size

examples_1_11_115.tar.gz 18-Aug-2006 20k

Graphical output from this problem is given here.


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

Input last modified: Fri Feb 20 13:09:21 2004


CMISS Help / Examples / 1 / 11 / 115