Professional Documents
Culture Documents
Here a number of triangular elements are discussed. Two linear elements, the standard linear
element and the nonconforming linear element are discussed in quite some detail. The
quadratic triangular element is briefly introduced towards the end.
The most basic type of triangular element is the linear element, with three nodes at the
vertices, for which the shape functions vary linearly. The shape functions for this element can
be constructed as follows: consider a triangle with vertices
( x1 , y1 ), ( x 2 , y 2 ), ( x3 , y 3 )
( x2 , y 2 )
a1 x1 b1 y1 c1 1
( x1 , y1 ) N 1 ( x, y ) a1 x b1 y c1 a1 x 2 b1 y 2 c1 0 (7.1)
a1 x3 b1 y 3 c1 0
y 2 y3 x x3 x2 y x2 y3 x3 y 2
N 1 ( x, y ) (7.2)
2
2 x1 y 2 y 3 x 2 y 3 y1 x3 y1 y 2
x1 x 2 y 2 y 3 x 2 x3 y1 y 2
, (7.3)
x 2 x3 y 3 y1 x3 x1 y 2 y 3
x3 x1 y1 y 2 x1 x 2 y 3 y1
185
and the other two shape functions can be determined similarly. Note that the nodes should be
numbered counterclockwise around the triangle, as is
done here, so that the area is positive. ( x2 , y 2 )
x x1 y3 y1 y y1 x3 x1 x x1 y3 y1 y y1 x3 x1
x2 x1 y3 y1 y 2 y1 x3 x1 2
(7.4)
x x y y1 y 2 y1 x x1 x2 x1 y y1 y 2 y1 x x1
2 1
x2 x1 y3 y1 y 2 y1 x3 x1 2
( x2 , y 2 )
(0,1) 3
2
3
( x3 , y3 )
1 1 2
( x1 , y1 ) (0,0) (1,0)
global local
coordinates coordinates
186
With these definitions, the local coordinates of the three nodes ( x1 , y1 ), ( x 2 , y 2 ), ( x 3 , y 3 ) are
(0,0) , (1,0) and (0,1) .
4
x( , ) N i ( , ) xi
i 1
4
(7.5)
y ( , ) N i ( , ) y i
i 1
N1 1
N2 (7.6)
N3
For the transformation from the physical coordinate system into the local coordinate system,
one again uses the transformation matrices (6.7). Again, as in (6.9), one can write
3 N i N i
i 1 xi
3
yi
i 1
J Nd x (7.7)
3 N i x 3 N i
i 1 i i1 yi
N i x1 y1
1 1 0
Nd , x x 2 y 2 (7.8)
N
i 1 0 1
x3 y 3
187
One also has the Jacobian of the transformation J J N d x and the relation between the
derivatives in local and physical coordinates (as in 6.11):
N i N i
x
1
N J J 1 N d
i
iN
y
Because of the simplicity of the element, these quantities can be evaluated in closed form:
x x1 y 2 y1 1 y 3 y1 y1 y 2
J 2 , J 1 , J 2 (7.9)
x3 x1 y 3 y1
2 x1 x3 x 2 x1
and
N i
x 1 y y y 3 y1 y1 y 2
N 2 3
x3 x 2 x1 x3 x 2 x1
(7.10)
i
2
y
Li
N i ni (7.11)
2
where Li is the length of the element edge opposite node/vertex i and n i is the unit normal to
that edge. This is a constant vector over the element.
ey
For example, from the figure, with 3 n1
e x n1 cos n sin y3 y2 ex
L1
e y n1 sin n cos
x2 x3 2
1
188
where n is perpendicular to n1 , then
N 1 N
N 1 ex 1 ey
x y
1
2
y 2 y3 e x x3 x2 e y
L
1 n1
2
Once the values of p have been obtained at the three nodes, the gradient can be evaluated
through
n
p p i N i
i 1
(7.12)
1 y 2 y3 y y1 y y2
p1 p2 3 p3 1
2 x 3 x 2 x1 x3 x 2 x1
or
1
p p1 L1n1 p 2 L2 n 2 p3 L3n 3 (7.13)
2
n1
1
L1
y3 y 2 e x x2 x3 e y
n2
1
L2
y1 y3 e x x3 x1 e y (7.14)
n3
1
L3
y 2 y1 e x x1 x2 e y
189
The gradient can also be conveniently written in terms of a shifted global coordinate system,
where the vertex 1 is position at position x1 , y1 . In terms of these coordinates,
1
x 2 y 3
2
and
1 1
0 p1
x 2 x 2
p p (7.15)
1 x3 x 1 2
3 p
y 3 x 2 y 3 x 2 y 3 y 3 3
3
x3 , y3
1 0,0 x2 ,0
1 1
2 1 1
E N j dS 3 , j 1, 2, 3 , E N i N j dS 12 1 2 1 (7.17)
1 1 2
190
7.1.5 The Boundary Integrals
1 1 1 1
dC1 L1 d ,
1 2 0
dC 2 L2 d L2 d ,
2 3 0 0
dC3 L3 d
31 0
(7.18)
The shape functions along the three edges are given in the following table:
N1 N2 N3
C1 1 0
C2 0 (or 1 ) 1 (or )
C3 1 0
Table 7.1: Shape Functions for the Linear Element along Element Edges
p
A, (7.19)
n
1 0 1
L1 L2 L3
C N j dC1 2 1, C N j dC 2 2 1, C N j dC3 2 0 (7.20)
1
0 2
1 3
1
The numerical integration rule for triangular regions takes the form
191
1 1
f ( , )dd
N
i 1
Wi f ( i , i ) (7.21)
0 0
where the weights Wi and integration points si are given in the table below. The rule
integrates polynomials of the order r exactly using an N – point rule.
N i i Wi r
1 1 1
1 3 3 2 1
3
1
2 , ,0
1
2
1
2 , 0, 1
2
1
6 , ,
1
6
1
6 2
Table 7.2: Quadrature for triangles
N 1 1 2 2
N 2 1 2 (7.22)
N 3 1 2
( x1 , y1 ) (0,1) 3
2 N 1 1
3 N 0
1 3 N 1 0 2
N 1
2 2 N 3 0
2 ( x3 , y3 ) 1
N 3 0
( x2 , y 2 ) 3 2
1 1
(0,0) N1 0
N 0
(1,0)
2
N 3 1
global local
coordinates coordinates
192
If the shape functions of the standard, conforming, element are denoted by N i , then
N i 1 2N i (7.23)
The equations
3
x( , ) N i ( , ) xi
i 1
3
(7.24)
y ( , ) N i ( , ) y i
i 1
still hold only the coordinates xi , y i refer to the nodes which are now mid-way along element
edges, not at the vertices.
N i x1 y1
1 1 0
Nd 2 , x x 2 y 2 (7.25)
N i 1 0 1 x3
y 3
x y 3 N i N i
3
xi yi
i 1
i 1 x 2 x1 y 2 y1
J N d x 2 (7.26)
x y 3 N i 3 N
x3 x1 y 3 y1
x
i 1 i
i1 i yi
193
x 1 1 y 3 y1 y1 y 2
J 1 x (7.27)
2 2 x1 x3 x 2 x1
y y
J J N d x 8 s 2 (7.28)
where s is the area of the triangle with vertices ( xi , y i ) and is the area of the complete
triangular element.
N i
x 1 y 2 y3 y 3 y1 y1 y 2
N x 2 x1
(7.29)
i 2 s x 3 x 2 x1 x3
y
In this case,
Li
N i ni (7.30)
where Li is the length of he element edge associated with node i and n i is the unit normal to
the edge.
194
e x n1 cos n sin ey
e y n1 sin n cos n1
where n is perpendicular to n1 , then 2 1 ex
L1 / 2
y2 y3
N 1 N 2
N 1 ex ey 3
x y
x3 x2
1
2 s
y 2 y3 e x x3 x 2 e y
L1
n1
Once the values of p have been obtained, the gradient can be evaluated through
n
p p i N i
i 1
(7.31)
1 y 2 y3 y y1 y y2
p1 p2 3 p3 1
2 s x3 x 2 x1 x3 x 2 x1
or
1
p p1 L1n1 p 2 L2 n 2 p3 L3n 3 (7.32)
n1
2
L1
y3 y 2 e x x 2 x3 e y
n2
2
L2
y1 y3 e x x3 x1 e y (7.33)
n3
2
L3
y 2 y1 e x x1 x 2 e y
195
7.3.2 The Boundary Integrals
1 1 1 1
dC1 L1 d ,
1 2 0
dC 2 L2 d L2 d ,
2 3 0 0
dC3 L3 d
31 0
(7.34)
The shape functions along the three edges are given in the following table:
N1 N2 N3
C1 2 1 2 1 2 1
C 2 3 1 1 2 1 2
(or 1 2 ) (or 1 2 )
C 31 1 2 1 1 2
Table 7.3: Shape Functions for the Nonconforming Element along Element Edges
p
A,
n
0 1 0
N j dC1 L1 0, N j dC 2 L2 0, N j dC 3 L3 1 (7.35)
C1 2
1 C2 3
0 C3 1
0
196
N
E
j dS
3
, i 1, 2, 3 (7.36)
The shape functions have a useful orthogonality property; when integrated over an element,
0 if i j
E N i N j dS if i j
(7.37)
3
The quadratic triangular element has midside nodes in addition to those at the vertices, and a
function is interpolated as
p a1 a 2 x a3 y a 4 x 2 a5 xy a6 y 2 (7.38)
N 1 1 1 2 2
3 N 2 2 1
N 3 2 1
(7.39)
N 4 4 1
(0, )
1
5 ( , ) 1 1
N 5 4
N 6 4 1
2 2 2
6
1 4 2
( 12 ,0)
N 1 1 3 2 2 , N 2 2 2 , N 4 4 4 2 (7.40)
197
7.5 Problems
198