Example 116: Defining a triangular 2D FEM element simplex mesh

The comfile run by this example is as follows:

#Example_116 Defining a 2D triangular FEM mesh                            
fem                             #Set the FEM environment                  
fem define nodes;r;triangle;example #Defines 5 nodes
fem define window;c                                                    
fem draw nodes    
fem define bases;l;;example         #Define a 2D_linear_simplex basis and output
#                               !what is read in to screen
fem list bases                  #List out the basis
fem define elements;m           #define 3 elements (each with 3 nodes) with 
#                               !element 1 having nodes 1,2 and 3; element
#                               !2 nodes 1,3 and 4; and element 3 nodes 4,3 and
#                               !5
fem list elements               #Show the element parameters
fem draw gauss                  #Show the location of the element Gauss
#                               !  points  

Files used by this example are:

Name             Modified     Size

example_116.com 10-Apr-2000 1.0k triangle.ipbase 10-Apr-2000 1.0k triangle.ipelem 10-Apr-2000 877 triangle.ipnode 10-Apr-2000 1.1k

Download the entire example:

Name                      Modified     Size

examples_1_11_116.tar.gz 18-Aug-2006 62k

Graphical output from this problem is given here.

Html last generated: Wed Mar 9 16:00:54 2016

Input last modified: Thu Apr 13 09:51:18 2000

CMISS Help / Examples / 1 / 11 / 116