Introduction To Nonlinear Finite Element Analysis
Introduction To Nonlinear Finite Element Analysis
2.1 Introduction
The main ideas of the Þnite element method were presented in Chapter 1. To
summarize, the Þnite element method has the following three basic features:
1. Divide the whole (i.e. domain) into parts, called Þnite elements.
2. Over each representative element, develop the relations among the
secondary and primary variables (e.g. “forces” and “displacements”,
“heats” and “temperatures”, and so on).
3. Assemble the elements (i.e. combine the relations of all elements) to obtain
the relations between the secondary and primary variables of the whole
system.
In the present chapter, we review the basic steps of the Þnite element model
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
Table 2.2.1 List of Þelds in which the model equation (2.2.1) arises, with
meaning of various parameters and variables (see the bottom
of the table for the meaning of some parameters*).
where ϕej (x) are functions to be selected and cej are constants to be determined
such that Eq. (2.2.2) satisÞes the differential equation (2.2.1) and appropriate
end conditions over the element. Since there are n unknown parameters, we
need n relations to determine them. Substituting the approximate solution
(2.2.2) into the left-hand side of Eq. (2.2.1), we obtain an expression that, in
general, will not be equal to the right-hand side of the equation, f(x). The
difference between the two sides of the equation is called the residual
µ ¶
d due
− a h + cueh (x) − f (x) ≡ Re (x, ce1 , ce2 , . . . , cen ) 6= 0 (2.2.3)
dx dx
We wish to determine cej (j = 1, 2, · · · , n) such that the residual is zero, in
some sense, over the element.
One way of making the residual zero is in weighted-integral sense
Z xb
wie (x)Re (x, c1 , c2 , . . .) dx = 0, i = 1, 2, . . . , n (2.2.4)
xa
set of n algebraic relations among the parameters cej (j = 1, 2, . . . , n). The set
{w1e (x), w2e (x), . . . , wne (x)} must be linearly independent so that the algebraic
equations (2.2.4) are also linearly independent and invertible.
There are other choices of wie that may be used. In the present study
we take wie (x) to be the same as the approximation functions ϕei (x). This
particular choice is known as the Galerkin method. Different choice of the
weight functions will result in a different set of algebraic equations or different
Þnite element models of the same differential equation.
f(x)
⎛ du ⎞ 1 2 ⎛ du ⎞
⎜− a ⎟ = Qa ⎜a ⎟ = Qb
⎝ dx ⎠ x = x ⎝ dx ⎠ x = xb
a u(xa) = u1 u(xb) = u2
Step 2. The second step is to trade differentiation from ueh to wie , using
integration by parts. We obtain
Z xb µ ¶ ∙ ¸xb
dwie dueh dueh
0= a + cwie ueh − wie f dx − wie · a (2.2.6)
xa dx dx dx xa
Step 3. Examining the boundary term appearing in the weak form (2.2.6),
namely, the expression ∙ ¸
e du xb
wi · a
dx xa
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
The coefficient of the weight function wie in the boundary expression, a(du/dx),
is called the secondary variable, and its speciÞcation constitutes the natural
or Neumann boundary condition. The primary variable is the dependent
unknown of the differential equation, u, in the same form as the weight
function in the boundary expression (i.e. replace wie with u). The speciÞcation
of a primary variable on the boundary constitutes the essential or Dirichlet
boundary condition. For the model equation at hand, the primary and
secondary variables are
du
Primary variable: u Secondary variable: a ≡Q (2.2.7)
dx
In writing the Þnal weak form, we denote the secondary variables at the
ends of the element as
µ ¶ µ ¶
du du
Qea = − a , Qeb = a (2.2.8)
dx xa dx xb
The primary and secondary variables at the nodes are shown on the typical
element in Figure 2.2.1. Students of engineering who have taken a course in
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
THE FINITE ELEMENT METHOD: A REVIEW 17
Remarks
1. The weak form in (2.2.9) contains two types of expressions: those
containing both wie and ueh , and those containing only wie . The expression
containing both wie and ueh is called the bilinear form (i.e. linear in wie and
linear in ueh ):
Z xb µ ¶
dwie dueh
B(wie , ueh ) ≡ a + cwie ueh dx (2.2.10)
xa dx dx
Similarly, the expression containing only wie (but not ueh ) is called the linear
form: Z xb
`(wie ) = wie f dx + wie (xa )Qea + wie (xb )Qeb
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
(2.2.11)
xa
More formally, we say that B(u, v) is linear in both u and v, and `(v) is
linear in v, if and only if the following conditions hold:
Equation (2.2.14) holds only when the bilinear form B(w, u) is symmetric
in u and w,
B(w, u) = B(u, w) (2.2.16)
and `(u) is linear in u. The expression 12 B(ueh , ueh ) represents the elastic
strain energy stored in the bar Þnite element and `(ueh ) represents the work
done by applied distributed force f (x) and point loads Qea and Qeb .
Recall that the weak form over an element is equivalent to the differential
equation, and it contains the end conditions on the “forces” Qei (see Figure
2.2.1). Therefore, the approximate solution ueh (x) should be selected such that
the differentiability (or continuity) conditions implied by the weak form are
met and the end conditions on the primary variables u(xi ) = uei are satisÞed.
Since the weak form contains the Þrst-order derivative of ueh , any function
with a non-zero Þrst derivative would be a candidate for ueh . Thus, the Þnite
element approximation ueh of u(x) can be an interpolant, that is, must be equal
to uea at xa and ueb at xb . Thus, a linear polynomial (see Figure 2.2.2)
ueh (xa ) = ce1 + ce2 xa = uea , ueh (xb ) = ce1 + ce2 xb = ueb
or
∙ ¸½ e ¾ ½ e¾
1 xa c u ueb xb − uea xa ueb − uea
1 = a → ce1 = , ce2 = (2.2.18)
1 xb ce2 ueb xb − xa xb − xa
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
THE FINITE ELEMENT METHOD: A REVIEW 19
2
X
ueh (x) = Le1 (x)ue1 + Le2 (x)ue2 = Lej (x)uej (2.2.19)
j=1
where
xb − x x − xa
Le1 (x) = , Le2 (x) = (2.2.20)
xb − xa xb − xa
are the linear Lagrange interpolation functions, and
are the nodal values of ueh (x) at x = xa and x = xb , respectively. Note that
Lei (x) satisfy the interpolation property
½
1, if i = j
Lei (xej ) = (2.2.22)
0, if i = j
where xe1 = xa and xe2 = xb (see Figure 2.2.2). In addition, the Lagrange
interpolation functions satisfy the property, known as the “partition of unity”:
n
X
Lej (x) = 1 (2.2.23)
j=1
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
u ( x) ≈ c1 + c 2 x
u(x) True solution
= u1e L1e ( x) + u 2e Le2 ( x )
u1e L1e ( x)
u 2e Le2 ( x )
x = xa = x e
1 u e
2
x = xb = x2e
u1e
1 2
x
x he
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
20 NONLINEAR FINITE ELEMENT ANALYSIS
Since there are three parameters ce1 , ce2 , and ce3 , we must identify one more
nodal point in the element to express all three c, s in terms of the values of ueh
at three nodes. Of course, we can also carry the nodal values uea and ueb (so
that they can be used to join adjacent elements) and the parameter ce3 as the
unknowns of the approximation. Identifying the third node at the center of
the element [see Figure 2.2.3(a)], we can write
where
he
xe1 = xa , xe2 = xa + , xe3 = xa + he = xb (2.2.26)
2
Solving Eqs. (2.2.33) for cei in terms of uei , we obtain
3
X
ueh (x) = Le1 (x)ue1 + Le2 (x)ue2 + Le3 (x)ue3 = Lej (x)uej (2.2.27)
j=1
where Lei (x) are the quadratic Lagrange interpolation functions [see Figure
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
2.2.3(b)]
µ ¶µ ¶
x − xe2 x − xe3
Le1 (x) =
xe − xe2 xe1 − xe3
µ 1 ¶ µ ¶
x − xe1 x − xe3
Le2 (x) = (2.2.28)
xe − xe1 xe2 − xe3
µ 2 ¶ µ ¶
e x − xe1 x − xe2
L3 (x) =
xe3 − xe1 xe3 − xe2
Higher-order Lagrange interpolation of u(x) can be developed along the
similar lines. Thus, an (n − 1)st degree Lagrange interpolation of u(x) can be
written as
n
X
ueh (x) = Le1 (x)ue1 + Le2 (x)ue2 + . . . + Len (x)uen = Lej (x)uej (2.2.29)
j=1
e x3e
x 2
e
x 1
x 1 x 3
he 2
(a)
Lei (x )
L1e ( x ) Le2 ( x )
Le3 ( x )
x
1 2 3
(b)
The Þnite element solution ueh (x) must fulÞll certain requirements in order
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
where xei is the global coordinate of the ith node of element Ωe . If nodes 1 and
n denote the end points of the element, then Qe1 and Qen represent the unknown
point sources, and all other Qei are the point sources at nodes 2, 3, . . . , n, which
are always known.
Substituting Eq. (2.2.29) for ueh and w1e = Le1 , w2e = Le2 , . . . , wie =
Li , . . . , wne = Len into the weak form (2.2.31), we obtain n algebraic equations.
e
j=1
" Ã ! #
X Z xb
n
dLe dLej
Z xb
= a i + cLei Lej dx uej − Lei f dx − Qei
j=1 xa dx dx xa
Xn
e e
0= Kij uj − fie − Qei (2.2.32)
j=1
for i = 1, 2, . . . , n, where
Z xb à ! Z xb
e dLei dLej
Kij = a + cLei Lej dx = B(Lei , Lej ), fie = f Lei dx
xa dx dx xa
(2.2.33)
Note that the interpolation property (2.2.22) is used to write
n
X
Lej (xei )Qej = Qei (2.2.34)
j=1
L1 (x̄) = 1 − , L2 (x̄) =
he he
µ ∙ ¸ ∙ ¸¶ ½ e ¾ ½ ¾ ½ ¾
ae 1 −1 ce he 2 1 u 1 fe he 1 Qe1
+ = + (2.2.36)
he −1 1 6 1 2 ue2 2 1 Qe2
Quadratic element
µ ¶µ ¶ µ ¶ µ ¶
2x̄ x̄ 4x̄ x̄ x̄ 2x̄
L1 (x̄) = 1 − 1− , L2 (x̄) = 1− , L3 (x̄) = − 1−
he he he he he he
à ⎡ ⎤ ⎡ ⎤ ⎧ ⎫
7 −8 1 4 2 −1 ! ⎨ ue1 ⎬
ae ⎣ ce he
−8 16 −8 ⎦ + ⎣ 2 16 2⎦ ue
3he 30 ⎩ 2e ⎭
1 −8 7 −1 2 4 u3
⎧ ⎫ ⎧ e⎫
1 Q
fe he ⎨ ⎬ ⎨ 1e ⎬
= 4 + Q2 (2.2.37)
6 ⎩ ⎭ ⎩ e⎭
1 Q3
where Γu and Γq are disjoint portions of the boundary Γ such that Γ = Γu ∪Γq ,
qc refers to the convective component of ßux (e.g. in heat transfer problems)
qc = hc (u − uc ) (2.3.4)
and (nx , ny ) denote the direction cosines of the unit normal vector on the
boundary. In Eq. (2.3.4), hc denotes the convective heat transfer coefficient.
The radiative heat transfer boundary condition (which is a nonlinear function
of u) is not considered here. However, radiation boundary condition will be
considered in the nonlinear analysis.
The element Ω̄e can be a triangle or quadrilateral in shape, and the degree of
interpolation over it can be linear, quadratic, and so on. The non-overlapping
sum of all elements Ω̄e is denoted by Ωh , and it is called the Þnite element
mesh of the domain Ω. In general, Ωh may not equal Ω̄ when the boundary Γ
is curved. Of course, for polygonal domains, the Þnite element mesh exactly
represents the actual domain.
Table 2.3.1 List of Þelds in which the model equation (2.3.1) arises, with
meaning of various parameters and variables (see the bottom of
the table for the meaning of some parameters*).
∂φ
Torsion of Warping 1 1 0 ∂n
cylindrical function
members φ
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
∂φ
Torsion of Stress 1 1 2Gθ ∂n
cylindrical function
members ψ
Flows of Velocity 1 1 0 qn
inviscid potential
∂φ
ßows φ ∂n
Flows of Stream 1 1 0 qn
inviscid function
∂ψ
ßows ψ ∂n
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
26 NONLINEAR FINITE ELEMENT ANALYSIS
Γe
e
y Ω
where ueh (x, y) represents an approximation of u(x, y) over the element Ω̄e ,
parameters uej denote the values of the function ueh (x, y) at a selected number
of points, called element nodes, in the element Ω̄e , and Lej are the Lagrange
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
where nx and ny are the components (i.e. the direction cosines) of the unit
normal vector
n̂ = nx êx + ny êy = cos α êx + sin α êy (2.3.8)
on the boundary Γe , and ds is the arc length of an inÞnitesimal line element
along the boundary. We obtain
Z ∙ ¸ I ∙ ¸
∂w ∂u ∂w ∂u ∂u ∂u
0= axx + ayy − wf dx dy− w axx nx + ayy ny ds
Ω e ∂x ∂x ∂y ∂y Γe ∂x ∂y
(2.3.9)
From an inspection of the boundary term in Eq. (2.3.9), we note that u is
the primary variable, and speciÞcation of u constitutes the essential boundary
condition. The coefficient of the weight function in the boundary expression,
namely
∂u ∂u
qn = axx nx + ayy ny (2.3.10)
∂x ∂y
is the secondary variable. Its speciÞcation constitutes the natural boundary
condition. By deÞnition qn is positive outward from the surface as we move
counterclockwise along the boundary Γe . The secondary variable qn denotes
the ßux normal to the boundary of the element.
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
28 NONLINEAR FINITE ELEMENT ANALYSIS
The third and last step of the formulation is to use the deÞnition (2.3.10)
in Eq. (2.3.9) and write it as
Z µ ¶ I
∂w ∂u ∂w ∂u
0= axx + ayy − wf dx dy − w qn ds (2.3.11)
Ωe ∂x ∂x ∂y ∂y Γe
or
0 = B(w, u) − `(w) (2.3.12)
where the bilinear form B(·, ·) and linear form `(·) are deÞned by
Z µ ¶
∂w ∂u ∂w ∂u
B(w, u) = axx + ayy dx dy (2.3.13a)
Ωe ∂x ∂x ∂y ∂y
Z I
`(w) = w f dx dy + wqn ds (2.3.13b)
Ωe Γe
B(w, u) = B(u, w)
1
I(u) = B(u, u) − `(u) (2.3.14)
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
n
(Z " Ã ! Ã ! # ) I
X ∂w ∂Lej ∂w ∂Lej
0= axx + ayy − w f dx dy uej − w qn ds
j=1 Ωe ∂x ∂x ∂y ∂y Γe
(2.3.15)
This equation must hold for any weight function w. Since we need n
independent algebraic equations to solve for the n unknowns, ue1 , ue2 , ..., uen ,
we choose n independent functions for w: w = Le1 , Le2 , ..., Len . This particular
choice of weight functions is a natural one when the weight function Pn
is viewed
as a virtual variation of the dependent unknown (i.e. w = δu = i=1 δuei Lei ).
e
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
THE FINITE ELEMENT METHOD: A REVIEW 29
For each choice of w we obtain an algebraic relation among (ue1 , ue2 , ..., uen ).
The ith algebraic equation is obtained by substituting w = Lei into Eq.
(2.3.15):
n
X
e e
Kij uj = Qei + qie (2.3.16)
j=1
e , Qe , and q e are deÞned by
where the coefficients Kij i i
Z Ã !
e ∂Le ∂Lej ∂Le ∂Lej
Kij = axx i + ayy i dx dy (2.3.17a)
Ωe ∂x ∂x ∂y ∂y
Z I
Qei = f Lei dx dy, qie = qn Lei ds (2.3.17b)
Ωe Γe
1
Lei (x, y) = (αe + βie x + γie y), (i = 1, 2, 3) (2.3.21)
2Ae i
where Ae is the area of the triangle, and αie , βie , and γie are geometric constants
known in terms of the nodal coordinates (xi , yi ):
3
X
(i) Lei (xj , yj ) = δij , (i, j = 1, 2, 3); (ii) Lei (x, y) = 1 (2.3.23)
i=1
and they are called the Lagrange interpolation functions. Note that use of the
linear interpolation functions Lei of a triangle will result in thePapproximation
of the curved surface u(x, y) by a planar function ueh (x, y) = 3i=1 uei Lei (x, y).
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
THE FINITE ELEMENT METHOD: A REVIEW 31
y y _
y
3
4 3
Γe
Ωe b Ωe Γe
1 _
1 2 x
2 a
x
x
Figure 2.3.2 The linear (a) triangular and (b) rectangular Þnite elements.
e
The integrals in the deÞnition of Kij and Qei can be evaluated for given
data: axx , ayy , and f . For example, for element-wise constant values of the
data, that is, axx = aexx , ayy = aeyy , and f = f e , we have (see Reddy [1, pp.
311—313]) the following results:
e 1 fe Ae
Kij = (ae β e β e + aeyy γie γje ); Qei = (2.3.24)
4Ae xx i j 3
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
where Ae is the area of the triangular element, and βie and γie are known in
terms of the global nodal coordinates of the element nodes, as given in Eq.
(2.3.22). For a right-angled triangular element with base a and height b, and
node 1 at the right angle (nodes are numbered counterclockwise), [K e ] takes
the form (see Reddy [1, p. 387])
⎡ ⎤ ⎡ ⎤
α −α 0 aeyy β 0 −β
ae
[K e ] = xx ⎣ −α α 0⎦ + ⎣ 0 0 0⎦ (2.3.25)
2 0 0 0 2 −β 0 β
where α = b/a and β = a/b. Of course, for cases in which the conductivities
are functions of (x, y), numerical integration can be used to evaluate the
coefficients (see Section 2.5.3).
The evaluation of boundary integrals of the type
I
qie = qne Lei (s) ds (2.3.26)
Γe
where qne is a known function of the distance s along the boundary Γe , involves
evaluation of line integrals. It is necessary to compute such integrals only when
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
32 NONLINEAR FINITE ELEMENT ANALYSIS
the element, and (a, b) denote the horizontal and vertical dimensions of the
rectangle [see Figure 2.3.2(b)].
The integrals in the deÞnition of Kije and Qe can be easily evaluated over a
i
rectangular element of sides a and b. For example, for element-wise constant
values of the data, that is, axx = aexx , ayy = aeyy , and f = f e , we have (see
Reddy [1, p. 313; p. 387]) the following results:
fe ab
[K e ] = aexx [S 11 ] + aeyy [S 22 ], Qei = (2.3.29)
4
where
⎡ ⎤
2α −2α −α α
1 ⎢ −2α 2α α −α ⎥
[S 11 ] = ⎢⎣
⎥
⎦ (2.3.30a)
6 −α α 2α −2α
α −α −2α 2α
⎡ ⎤
2β β −β −2β
1 ⎢ β 2β −2β −β ⎥
[S 22 ] = ⎢ ⎥ (2.3.30b)
6 ⎣ −β −2β 2β β⎦
−2β −β β 2β
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
THE FINITE ELEMENT METHOD: A REVIEW 33
and α = b/a and β = a/b. Again, for cases in which the conductivities are
functions of (x, y), numerical integration is used to evaluate the coefficients,
as discussed in Section 2.5.4. When the element is non-rectangular, that is,
a quadrilateral, we use coordinate transformations to represent the integrals
over a square geometry and then use numerical integration to evaluate them.
where hepq denotes length of the side connecting node p to node q of element
Ωe .
Now we are ready to assemble the element equations for the two-element
mesh. The element equations of the two elements are written separately Þrst.
For the triangular element, the element equations are of the form
1 1 1 1 1 1
K11 u1 + K12 u2 + K13 u3 = Q11 + q11
1 1 1 1 1 1
K21 u1 + K22 u2 + K23 u3 = Q12 + q21 (2.3.34a)
1 1 1 1 1 1
K31 u1 + K32 u2 + K33 u3 = Q13 + q31
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
2 2 2 2 2 2 2 2
K11 u1 + K12 u2 + K13 u3 + K14 u4 = Q21 + q12
2 2 2 2 2 2 2 2
K21 u1 + K22 u2 + K23 u3 + K24 u4 = Q22 + q22
2 2 2 2 2 2 2 2
K31 u1 + K32 u2 + K33 u3 + K34 u4 = Q23 + q32 (2.3.34b)
2 2 2 2 2 2 2 2
K41 u1 + K42 u2 + K43 u3 + K44 u4 = Q24 + q42
1 1 1 1 1 1 2 2 2 2 2 2 2 2
(K21 u1 + K22 u2 + K23 u3 ) + (K11 u1 + K12 u2 + K13 u3 + K14 u4 )
1 1 2 2
= (Q2 + q2 ) + (Q1 + q1 )
1 1 1 1 1 1 2 2 2 2 2 2 2 2
(K31 u1 + K32 u2 + K33 u3 ) + (K41 u1 + K42 u2 + K43 u3 + K44 u4 )
1 1 2 2
= (Q3 + q3 ) + (Q4 + q4 )
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
THE FINITE ELEMENT METHOD: A REVIEW 35
1 1 2 1 2 2 2
K31 u1 + (K32 + K41 )u2 + (K33 + K44 )u3 + K42 u4 + K43 u5
1 2 1 2
= Q3 + Q4 + (q3 + q4 )
Now we can impose the conditions in Eq. (2.3.33) by setting appropriate
portions of the expressions in parenthesis on the right-hand side of the
above equations to zero (or a speciÞed non-zero value). In general, when
several elements are connected, the assembly of the elements is carried out by
putting element coefficients Kij e , Qe , and q e into proper locations of the global
i i
coefficient matrix and right-hand column vectors. This is done by means of
the connectivity relations, that is, correspondence of the local node number
to the global node number.
The assembly procedure described above can be used to assemble elements
of any shape and type. The procedure can be implemented in a computer with
the help of the local-global nodal correspondence.
For heat conduction problems that involve convection heat transfer at
the boundary, that is, when heat is transferred from one medium to the
surrounding medium (often, a ßuid) by convection, the Þnite element model
developed earlier requires some modiÞcation. For a convection boundary, the
natural boundary condition is a balance of energy transfer across the boundary
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
or
0 = B(w, u) − `(w) (2.3.37)
where w is the weight function, and B(·, ·) and `(·) are the bilinear and linear
forms
Z µ ¶ I
∂w ∂u ∂w ∂u
B(w, u) = axx + ayy dx dy + hc wu ds (2.3.38a)
Ωe ∂x ∂x ∂y ∂y Γe
Z I I
`(w) = f w dx dy + hc uc w ds + qn w ds (2.3.38b)
Ωe Γe Γe
[K e ]{ue } = {F e } (2.3.39)
where
Z µ ¶ I
e ∂Li ∂Lj ∂Li ∂Lj
Kij = axx + ayy dx dy + hc Li Lj ds (2.3.40a)
Ωe ∂x ∂x ∂y ∂y Γe
Z I I
Fi = f Li dx dy + hc uc Li ds + qn Li ds (2.3.40b)
Ωe Γe Γe
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
The Þnite element model (2.3.39) is valid for both conductive and
convective heat transfer boundary conditions. For problems with no convective
boundary conditions, the convective contributions to the element coefficients
are omitted. Indeed, these contributions have to be included only for those
elements whose sides fall on the boundary with speciÞed convection heat
transfer. The contribution due to convective boundaries to the element
coefficient matrix and source vector can be computed by evaluating line
integrals, as discussed in Reddy [1], pp. 342—345.
Clearly, L̂1 is zero on side 2—3 (hence, zero at nodes 2 and 3) and has a value
of unity at node 1. Thus, L̂1 is the interpolation function associated with node
1. Similarly, L̂2 and L̂3 are the interpolation functions associated with nodes
2 and 3, respectively. In summary, we have
Li = L̂i (2.4.3)
3 L1= 0 5
b 4
A1 2 L1 3
h A2 L 1 = 0.5
P P
s 6
A3
2
L1= 1
1 1
k−1
X k
n= (k − i) = k + (k − 1) + · · · + 1 = (k + 1) (2.4.4)
i=0
2
and its degree is equal to k−1. The explicit forms of the interpolation functions
for the linear and quadratic elements are recorded below:
⎧ ⎫
⎪
⎪ L̂1 (2L̂1 − 1) ⎪
⎪
⎪
⎪ ⎪
⎪
⎧ ⎫ ⎪
⎪ L̂2 (2L̂2 − 1) ⎪
⎪
⎨ L̂1 ⎬ ⎪
⎨ ⎪
⎬
{Le } = ; {Le } = L̂3 (2L̂3 − 1) (2.4.5)
L̂
⎩ 2⎭ ⎪
⎪ 4L̂1 L̂2 ⎪ ⎪
L̂3 ⎪
⎪ ⎪
⎪
⎪
⎪ 4L̂2 L̂3 ⎪ ⎪
⎪
⎩ ⎪
⎭
4L̂3 L̂1
Note that the order of the interpolation functions in the above arrays
corresponds to the node numbers shown in Figure 2.4.2(a). Thus, the Þrst
three rows of the vectors in Eq. (2.4.5) correspond to the Þrst three nodes of
the linear and quadratic elements, which correspond to the three vertices of
the triangular element. The last three rows of the second vector in Eq. (2.4.5)
associated with the quadratic element correspond to the mid-side nodes of the
triangular element. A similar node-numbering scheme is used for rectangular
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
THE FINITE ELEMENT METHOD: A REVIEW 39
3 3
6
5
1 1
4
2 2
(a)
η η
4 3 4 7 3
6
ξ 8 9 ξ
1 2 1 5 2
(b)
Figure 2.4.2 Linear and quadratic (a) triangular and (b) rectangular
elements.
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
⎧ ⎫
⎪
⎪ (1 − ξ)(1 − η)(−ξ − η − 1) + (1 − ξ 2 )(1 − η 2 ) ⎪
⎪
⎪
⎪ ⎪
⎪
⎪ (1 + ξ)(1 − η)(ξ − η − 1) + (1 − ξ 2 )(1 − η2 ) ⎪⎪
⎪
⎪
⎪ (1 + ξ)(1 + η)(ξ + η − 1) + (1 − ξ 2 )(1 − η 2 ) ⎪⎪
⎪
⎪ ⎪
⎪
⎪
⎪ ⎪
⎪
⎪ 2 2
⎨ (1 − ξ)(1 + η)(−ξ + η − 1) + (1 − ξ )(1 − η ) ⎪ ⎬
1
{Le } = 2(1 − ξ 2 )(1 − η) − (1 − ξ 2 )(1 − η 2 ) (2.4.7)
4⎪⎪ ⎪
⎪
⎪
⎪
⎪ 2(1 + ξ)(1 − η 2 ) − (1 − ξ 2 )(1 − η 2 ) ⎪
⎪
⎪
⎪
⎪ 2(1 − ξ 2 )(1 + η) − (1 − ξ 2 )(1 − η 2 ) ⎪
⎪
⎪
⎪ ⎪
⎪
⎪
⎪ ⎪
⎪
⎪
⎪ 2(1 − ξ)(1 − η 2 ) − (1 − ξ 2 )(1 − η 2 ) ⎪
⎪
⎩ ⎭
4(1 − ξ 2 )(1 − η 2 )
η
4 7 3
6
8 ξ
1 5 2
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
THE FINITE ELEMENT METHOD: A REVIEW 41
Ωe
η=1 η
ξ=1 y
ξ
Ω̂
Ω3
1 Ω2
Ω
The transformation (2.5.1) maps, for example, the line ξ = 1 in Ω̂ to the line
deÞned parametrically by x = x(1, η) and y = y(1, η) in the xy-plane. In other
words, the master element Ω̂ is transformed, under the linear transformation,
into a quadrilateral element (i.e. a four-sided element whose sides are not
parallel) in the xy-plane. Conversely, every quadrilateral element of a mesh
can be transformed to the same four-noded square (master) element Ω̂ in the
(ξ, η)-plane.
In general, the dependent variable(s) of the problem are approximated by
expressions of the form
n
X
u(x, y) = uej Lej (x, y) (2.5.2)
j=1
The interpolation functions Lej used for the approximation of the dependent
variable, in general, are different from φej used in the approximation of the
geometry. Depending on the relative degree of approximations used for the
geometry [see Eq. (2.5.1)] and the dependent variable(s) [see Eq. (2.5.2)], the
Þnite element formulations are classiÞed into three categories:
1. Superparametric (m > n). The approximation used for the geometry is
higher order than that used for the dependent variable.
2. Isoparametric (m = n). Equal degree of approximation is used for both
geometry and dependent variables.
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
The integrand (i.e. the expression in the square brackets under the integral) is
a function of the global coordinates x and y. We must rewrite it in terms of ξ
and η using the transformation (2.5.1). Note that the integrand contains not
only functions but also derivatives with respect to the global coordinates (x, y).
∂Le ∂Le ∂Le ∂Le
Therefore, we must relate ( ∂xi , ∂yi ) to ( ∂ξi , ∂ηi ) using the transformation
(2.5.1).
The functions Lei (x, y) can be expressed in terms of the local coordinates
(ξ, η) by means of the transformation (2.5.1). Hence, by the chain rule of
partial differentiation, we have
∂Lei ∂Lei ∂x ∂Lei ∂y ∂Lei ∂Lei ∂x ∂Lei ∂y
= + ; = +
∂ξ ∂x ∂ξ ∂y ∂ξ ∂η ∂x ∂η ∂y ∂η
or, in matrix notation,
( ∂Le ) " ∂x ∂y # ( ∂Le )
i i
∂ξ ∂ξ ∂ξ ∂x
∂Lei = ∂x ∂y ∂Lei (2.5.4)
∂η ∂η ∂η ∂y
which gives the relation between the derivatives of Lei with respect to the
global and local coordinates. The matrix in Eq. (2.5.4) is called the Jacobian
matrix of the transformation (2.5.1):
" ∂x ∂y #
e ∂ξ ∂ξ
[J ] = ∂x ∂y (2.5.5)
∂η ∂η
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
m m
∂x X ∂φej ∂y X ∂φej
= xj , = yj (2.5.7b)
∂η j=1 ∂η ∂η j=1 ∂η
and by means of Eq. (2.5.5) one can compute the Jacobian matrix and then
its inverse. Thus, given the global coordinates (xj , yj ) of element nodes and
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
44 NONLINEAR FINITE ELEMENT ANALYSIS
the interpolation functions φej used for geometry, the Jacobian matrix can be
evaluated using Eq. (2.5.5). A necessary and sufficient condition for [J]−1
to exist is that the determinant J, called the Jacobian, be non-zero at every
point (ξ, η) in Ω̂ :
∂x ∂y ∂x ∂y
Je ≡ det[J e ] = − 6= 0. (2.5.8)
∂ξ ∂η ∂η ∂ξ
From Eq. (2.5.8) it is clear that the functions ξ(x, y) and η(x, y) must be
continuous, differentiable, and invertible. Moreover, the transformation should
be algebraically simple so that the Jacobian matrix can be easily evaluated.
Transformations of the form in Eq. (2.5.1) satisfy these requirements and the
requirement that no spurious gaps between elements or overlapping of elements
occur.
Returning to numerical evaluation of integrals, we have from Eq. (2.5.6),
( ∂Le ) ( ∂Le ) ( ∂Le )
i i i
∂x −1 ∂ξ ∗ ∂ξ
∂Lei = [J] ∂Lei ≡ [J ] ∂Lei (2.5.9)
∂y ∂η ∂η
where Jij∗ is the element in position (i, j) of the inverse of the Jacobian matrix
[J e ]. The element area dA = dx dy in element Ωe is transformed to
dA = |[J e ]| dξ dη (2.5.10)
in the master element Ω̂.
Equations (2.5.7)-(2.5.10) provide the necessary relations to transform
integral expressions on any element Ωe to an associated master element Ω̂.
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
For instance, consider the integral expression in Eq. (2.5.3), where axx and
ayy are functions of x and y. Suppose that the Þnite element Ωe can be
generated by the master element Ω̂e . Under the transformation (2.5.1) we can
write
Z " #
e ∂Le ∂Lej ∂Le ∂Lej
Kij = axx (x, y) i + ayy (x, y) i dx dy
Ωe ∂x ∂x ∂y ∂y
Z
= Fij (ξ, η) dξ dη (2.5.11)
Ω̂e
The discussion presented above is valid for master elements of both
rectangular and triangular geometry.
where M and N denote the number of Gauss quadrature points, (ξI , ηJ ) denote
the Gauss point coordinates, and WI and WJ denote the corresponding Gauss
weights as shown in Table 2.5.1 (from Table 7.2 in Reddy [1]).
Table 2.5.1 Gauss quadrature points and weights for rectangular elements.
R1 PN
−1
F (ξ) dξ = I =1
F (ξI ) WI
N Points, ξI Weights, WI
1 0.0000000000 2.0000000000
2 ± 0.5773502692 1.0000000000
3 0.0000000000 0.8888888889
± 0.7745966692 0.5555555555
4 ± 0.3399810435 0.6521451548
± 0.8611363116 0.3478548451
5 0.0000000000 0.5688888889
± 0.5384693101 0.4786286705
± 0.9061798459 0.2369268850
6 ± 0.2386191861 0.4679139346
± 0.6612093865 0.3607615730
± 0.9324695142 0.1713244924
Note that only L̂1 and L̂2 are treated as linearly independent coordinates
because L̂3 = 1 − L̂1 − L̂2 .
After transformation, integrals on Ω̂T have the form
Z Z
G(ξ, η) dξ dη = G(L̂1 , L̂2 , L̂3 ) dL̂1 dL̂2 (2.5.14)
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
Ωe Ωe
Z N
X
G(L̂1 , L̂2 , L̂3 ) dL̂1 dL̂2 ≈ G(SI )WI (2.5.15)
Ωe I=1
where WI and SI denote the weights and integration points of the quadrature
rule. Table 2.5.2 contains the location of integration points and weights for
one-, three-, and four-point quadrature rules over triangular elements.
Number Degree of
of polynomial Location of integration points
integration Order of the
points residual L̂1 L̂2 L̂3 W Geometric locations
1
1 O(h2 ) 1/3 1/3 1/3 1 a
a
2 1/2 0 1/2 a
3 O(h3 ) 1/2 1/2 0 1/3 b
a
0 1/2 1/2 c b
c
M
X
x= xej φej (ξ) (2.6.2)
j=1
Processor
Initialize global
Preprocessor
[K], [M], {F}
DO e = 1 to n
evaluate them numerically. In Eq. (2.6.2), xej denote the global coordinates
of node j of element ω e = (xa , xb ), and φej are the approximation functions
used to approximate the geometry. For example, if we use linear interpolation
functions φej (ξ) = Lej (ξ) to represent the geometry of the element, we have
xe1 = xa , xe2 = xb and Eq. (2.6.2) becomes
xa + xb xb − xa he
x = xa Le1 (ξ) + xb Le2 (ξ) = + ξ = xa + ξ (2.6.3)
2 2 2
The Jacobian of transformation is given by
dx he
Je ≡ = (2.6.4)
dξ 2
The above transformation is exact for all (straight) line elements.
The derivatives of Lei (x) with respect to the global coordinate x is given by
dLei dLei dξ dLei −1
= = J
dx dξ dx dξ e
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
50 NONLINEAR FINITE ELEMENT ANALYSIS
where â(ξ) = a(x(ξ)) and so on. Each of the integral expressions above can
be evaluated using the Gauss quadrature
Z 1 NX
GP
F (ξ)Je dξ = F (ξNI ) Je WN I (2.6.6)
−1 NI=1
where N GP is the number of Gauss points, ξNI is the N Ith Gauss point, and
WNI is the N Ith Gauss weight.
To implement the above development into a computer subroutine for
arbitrary degree of Lei , we must Þrst create a subroutine of all interpolations
functions and their derivatives with respect to ξ that we intend to use in our
analysis. For the present discussion, we limit them to the linear and quadratic
Lagrange family of functions. These functions and their derivatives are given
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
below.
Linear
1 dL1 1 dL2
L1 (ξ) = (1 − ξ) , = −0.5; L2 (ξ) = (1 + ξ) , = 0.5 (2.6.7)
2 dξ 2 dξ
Quadratic
1 dL1
L1 (ξ) = − ξ (1 − ξ) , = 0.5 (2ξ − 1)
2 dξ
³ ´ dL2
L2 (ξ) = 1 − ξ 2 , = −2ξ
dξ
1 dL3
L3 (ξ) = ξ (1 + ξ) , = 0.5 (1 + 2ξ) (2.6.8)
2 dξ
The following variables names are used in the subroutine (see INTRPL1D
in Box 2.6.1):
dLi dLi
SFL(i) = Li , DSFL(i) = , GDSFL(i) =
dξ dx
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
THE FINITE ELEMENT METHOD: A REVIEW 51
SUBROUTINE INTRPL1D(ELX,GJ,IEL,NPE,XI)
C __________________________________________________________________
C
C The subroutine computes shape functions and their derivatives for
C Hermite cubic and Lagrange linear, quadratic, and cubic elements
C
C X......……... Global (i.e. problem) coordinate
C XI ....…….. Local (i.e. element) coordinate
C H......…….. Element length
C {SFL}...…. Interpolation (or shape) functions
C {DSFL}..... First derivative of SF with respect to XI
C {GDSFL}.. First derivative of SF with respect to X
C GJ.....……. Jacobian of the transformation
C __________________________________________________________________
C
IMPLICIT REAL*8(A-H,O-Z)
COMMON /SHP/SFL(4),GDSFL(4)
DIMENSION DSFL(4),ELX(3)
C
C SHAPE FUNCTIONS AND THEIR DERIVATIVES
C
C Linear functions
C
IF(IEL.EQ.1)THEN
SFL(1)=0.5*(1.0-XI)
SFL(2)=0.5*(1+XI)
DSFL(1)=-0.5
DSFL(2)=0.5
ENDIF
C
C Quadratic functions
C
IF(IEL.EQ.2)THEN
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
SFL(1)=0.5*(XI-1.0)*XI
SFL(2)=1.0-XI*XI
SFL(3)=0.5*(XI+1.0)*XI
DSFL(1)=XI-0.5
DSFL(2)=-2.0*XI
DSFL(3)=XI+0.5
ENDIF
GJ=0.0
DO 10 I=1,NPE
10 GJ=GJ+DSFL(I)*ELX(I)
DO 30 I=1,NPE
GDSFL(I)=DSFL(I)/GJ
30 CONTINUE
C
RETURN
END
Next, we implement the steps to evaluate the matrix coefficients Kij , Mij ,
and fi (i = 1 to NPE) into a subroutine called ELEKMF1D. To this end,
we must assume some form of the data, a(x), c(x), ct (x) and f (x). Although
we can use any integrable functions, we restrict in the present discussion our
choice of these coefficients to linear polynomials for the entire domain of the
problem:
Gauss point and then compute all necessary quantities. Box 2.6.2 contains a
listing of Subroutine ELEKMF1D.
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
THE FINITE ELEMENT METHOD: A REVIEW 53
SUBROUTINE ELEKMF1D(MODEL,NDF,NGP,NPE)
C __________________________________________________________________
C
C IEL....…….. Element TYPE (1, Linear; 2, Quadratic)
C H......……… Element length
C X......……… Global (i.e. problem) coordinate
C XI ....……… Local (i.e. element) coordinate
C [GAUSPT].. 4×4 matrix of Gauss points: Nth column corresponds
C to the N-point Guass rule
C [GAUSWT]. 4×4 matrix of Gauss weights (see the comment above)
C [ELK]..…… Element coefficient matrix [K]
C {ELF}..….. Element source vector {f}
C {ELX}..….. Vector of the global coordinates of element nodes
C
IMPLICIT REAL*8(A-H,O-Z)
COMMON/STF1/ELK(9,9),ELF(9),ELX(4)
COMMON/STF2/AX0,AX1,CX0,CX1,FX0,FX1
COMMON/SHP/SF(4),GDSF(4)
DIMENSION GAUSPT(5,5),GAUSWT(5,5)
C
DATA GAUSPT/5*0.0D0,−0.57735027D0,0.57735027D0,3*0.0D0,−0.77459667D0,
* 0.0D0,0.77459667D0,2*0.0D0,−0.86113631D0,−0.33998104D0,0.33998104D0,
* 0.86113631D0,0.0D0,−0.906180D0,−0.538469D0,0.0D0,0.538469D0,0.906180D0/
DATA GAUSWT/2.0D0,4*0.0D0,2*1.0D0,3*0.0D0,0.55555555D0,0.88888888D0,
* 0.55555555D0,2*0.0D0,0.34785485D0,2*0.65214515D0,0.34785485D0,0.0D0,
* 0.236927D0,0.478629D0,0.568889D0,0.478629D0,0.236927D0/
C
H = ELX(NPE) - ELX(1)
IEL = NPE-1
C Initialize the arrays DO 10 J=1,NPE
ELF(J) = 0.0
DO 10 I=1,NPE
10 ELK(I,J)=0.0
C DO-LOOP on number of Gauss points begins here
DO 40 NI=1,NGP
XI=GAUSS(NI,NGP)
CALL INTRPL1D(ELX,GJ,IEL,NPE,XI)
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
CNST=GJ*WT(NI,NGP)
X=ELX(1)+0.5*(1.0+XI)*H
AX=AX0+AX1*X
CX=CX0+CX1*X
FX=FX0+FX1*X
C Calculate element coefficients
DO 20 I=1,NPE
ELF(I)=ELF(I)+FX*SFL(I)*CNST
DO 20 J=1,NPE
S00=SFL(I)*SFL(J)*CNST
S11=GDSFL(I)*GDSFL(J)*CNST
ELK(I,J)=ELK(I,J)+AX*S11+CX*S00
20 CONTINUE
40 CONTINUE
RETURN
END
2.7 Closure
The present chapter was devoted to a study of (1) the Þnite element
models of one- and two-dimensional problems involving Poisson’s equation,
(2) a derivation of interpolation functions for basic one- and two-
dimensional elements, (3) numerical evaluation of integrals, and (4) computer
implementation ideas. An understanding of the topics presented in this
chapter is a prerequisite for the subsequent chapters of this book.
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
54 NONLINEAR FINITE ELEMENT ANALYSIS
DO 200 NJ = 1,IPDF
XI = GAUSPT(NI,IPDF)
ETA = GAUSPT(NJ,IPDF)
CALL INTRPL2D (NPE,XI,ETA,DET,ELXY,NDF)
CNST = DET*GAUSWT(NI,IPDF)*GAUSWT(NJ,IPDF)
X=0.0
Y=0.0
DO 140 I=1,NPE
X=X+ELXY(I,1)*SF(I)
140 Y=Y+ELXY(I,2)*SF(I)
C
SOURCE=F0+FX*X+FY*Y
IF(ITEM.NE.0) THEN
CT=C0+CX*X+CY*Y
ENDIF
A11=A10+A1X*X+A1Y*Y
A22=A20+A2X*X+A2Y*Y
C
II=1
DO 180 I=1,NET
JJ=1
DO 160 J=1,NET
S00=SF(I)*SF(J)*CNST
S11=GDSF(1,I)*GDSF(1,J)*CNST
S22=GDSF(2,I)*GDSF(2,J)*CNST
C
C Heat transfer and like problems (i.e. single DOF problems):_______
C
ELK(I,J) = ELK(I,J) + A11*S11 + A22*S22 + A00*S00
IF(ITEM.NE.0) THEN
ELM(I,J) = ELM(I,J) + CT*S00
ENDIF
160 JJ = NDF*J+1
C Source of the form fx = F0 + FX*X + FY*Y is assumed
L=(I-1)*NDF+1
ELF(L) = ELF(L)+CNST*SF(I)*SOURCE
180 II = NDF*I+1
200 CONTINUE
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
THE FINITE ELEMENT METHOD: A REVIEW 55
IF(ITEM.NE.0) THEN
C
C Compute the coefficient matrices of the final algebraic equations
C (i.e. after time approximation) in the transient analysis:_______
C
CALL TEMPORAL(NN)
ENDIF
RETURN
END
SUBROUTINE INTRPL2D(NPE,XI,ETA,DET,ELXY,NDF)
C ________________________________________________________________
C
C The subroutine evaluates the interpolation functions (SF(I)) and
C their derivatives with respect to global coordinates (GDSF(I,J))
C for Lagrange linear & quadratic rectangular elements, using the
C isoparametric formulation. The subroutine also evaluates Hermite
C interpolation functions and their global derivatives using the
C subparametric formulation.
C
C SF(I).....……..Interpolation function for node I of the element
C DSF(J,I)..……Derivative of SF(I) with respect to XI if J=1 and
C and ETA if J=2
C GDSF(J,I)…...Derivative of SF(I) with respect to X if J=1 and
C and Y if J=2
C XNODE(I,J)...J-TH (J=1,2) Coordinate of node I of the element
C NP(I).....…….Array of element nodes (used to define SF and DSF)
C GJ(I,J)...…….Jacobian matrix
C GJINV(I,J)….Inverse of the jacobian matrix
C ________________________________________________________________
C
IMPLICIT REAL*8 (A-H,O-Z)
DIMENSION ELXY(9,2),XNODE(9,2),NP(9),DSF(2,9),GJ(2,2),GJINV(2,2)
COMMON/SHP/SF(9),GDSF(2,9)
COMMON/IO/IN,ITT
DATA XNODE/-1.0D0, 2*1.0D0, -1.0D0, 0.0D0, 1.0D0, 0.0D0, -1.0D0,
* 0.0D0, 2*-1.0D0, 2*1.0D0, -1.0D0, 0.0D0, 1.0D0, 2*0.0D0/
DATA NP/1,2,3,4,5,7,6,8,9/
C
FNC(A,B) = A*B
IF(NPE.EQ.4) THEN
C
C LINEAR Lagrange interpolation functions for FOUR-NODE element
C
DO 10 I = 1, NPE
XP = XNODE(I,1)
YP = XNODE(I,2)
XI0 = 1.0+XI*XP
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
ETA0=1.0+ETA*YP
SF(I) = 0.25*FNC(XI0,ETA0)
DSF(1,I)= 0.25*FNC(XP,ETA0)
10 DSF(2,I)= 0.25*FNC(YP,XI0)
ELSE
IF(NPE.EQ.8) THEN
C
C QUADRATIC Lagrange interpolation functions for EIGHT-NODE element
C
DO 20 I = 1, NPE
NI = NP(I)
XP = XNODE(NI,1)
YP = XNODE(NI,2)
XI0 = 1.0+XI*XP
ETA0 = 1.0+ETA*YP
XI1 = 1.0-XI*XI
ETA1 = 1.0-ETA*ETA
IF(I.LE.4) THEN
SF(NI) = 0.25*FNC(XI0,ETA0)*(XI*XP+ETA*YP-1.0)
DSF(1,NI) = 0.25*FNC(ETA0,XP)*(2.0*XI*XP+ETA*YP)
DSF(2,NI) = 0.25*FNC(XI0,YP)*(2.0*ETA*YP+XI*XP)
ELSE
IF(I.LE.6) THEN
SF(NI) = 0.5*FNC(XI1,ETA0)
DSF(1,NI) = -FNC(XI,ETA0)
DSF(2,NI) = 0.5*FNC(YP,XI1)
ELSE
SF(NI) = 0.5*FNC(ETA1,XI0)
DSF(1,NI) = 0.5*FNC(XP,ETA1)
DSF(2,NI) = -FNC(ETA,XI0)
ENDIF
ENDIF
20 CONTINUE
ELSE
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
56 NONLINEAR FINITE ELEMENT ANALYSIS
C
C QUADRATIC Lagrange interpolation functions for NINE-NODE element
C
DO 30 I=1,NPE
NI = NP(I)
XP = XNODE(NI,1)
YP = XNODE(NI,2)
XI0 = 1.0+XI*XP
ETA0 = 1.0+ETA*YP
XI1 = 1.0-XI*XI
ETA1 = 1.0-ETA*ETA
XI2 = XP*XI
ETA2 = YP*ETA
IF(I .LE. 4) THEN
SF(NI) = 0.25*FNC(XI0,ETA0)*XI2*ETA2
DSF(1,NI)= 0.25*XP*FNC(ETA2,ETA0)*(1.0+2.0*XI2)
DSF(2,NI)= 0.25*YP*FNC(XI2,XI0)*(1.0+2.0*ETA2)
ELSE
IF(I .LE. 6) THEN
SF(NI) = 0.5*FNC(XI1,ETA0)*ETA2
DSF(1,NI) = -XI*FNC(ETA2,ETA0)
DSF(2,NI) = 0.5*FNC(XI1,YP)*(1.0+2.0*ETA2)
ELSE
IF(I .LE. 8) THEN
SF(NI) = 0.5*FNC(ETA1,XI0)*XI2
DSF(2,NI) = -ETA*FNC(XI2,XI0)
DSF(1,NI) = 0.5*FNC(ETA1,XP)*(1.0+2.0*XI2)
ELSE
SF(NI) = FNC(XI1,ETA1)
DSF(1,NI) = -2.0*XI*ETA1
DSF(2,NI) = -2.0*ETA*XI1
ENDIF
ENDIF
ENDIF
30 CONTINUE
ENDIF
ENDIF
C
C Compute the Jacobian matrix [GJ] and its inverse [GJINV], and [GDSF]
C
DO 40 I = 1,2
DO 40 J = 1,2
GJ(I,J) = 0.0
DO 40 K = 1,NPE
40 GJ(I,J) = GJ(I,J) + DSF(I,K)*ELXY(K,J)
C
DET = GJ(1,1)*GJ(2,2)-GJ(1,2)*GJ(2,1)
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
GJINV(1,1) = GJ(2,2)/DET
GJINV(2,2) = GJ(1,1)/DET
GJINV(1,2) = -GJ(1,2)/DET
GJINV(2,1) = -GJ(2,1)/DET
DO 50 I = 1,2
DO 50 J = 1,NPE
GDSF(I,J) = 0.0
DO 50 K = 1, 2
50 GDSF(I,J) = GDSF(I,J) + GJINV(I,K)*DSF(K,J)
RETURN
END
SUBROUTINE TEMPORAL(NN)
C ____________________________________________________________________________________
C
C The subroutine computes the algebraic equations associated with the parabolic differential equations
C by using the α-family of approximations. A constant source is assumed.
C ____________________________________________________________________________________
C
IMPLICIT REAL*8(A-H,O-Z)
COMMON/STF/ELF(18),ELK(18,18),ELM(18,18),ELXY(9,2),ELU(18),A1,A2
C
C The α-family of time approximation for parabolic equations
C
DO 20 I=1,NN
SUM=0.0
DO 10 J=1,NN
SUM=SUM+(ELM(I,J)-A2*ELK(I,J))*ELU(J)
10 ELK(I,J)=ELM(I,J)+A1*ELK(I,J)
20 ELF(I)=(A1+A2)*ELF(I)+SUM
RETURN
END
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
THE FINITE ELEMENT METHOD: A REVIEW 57
Problems
2.1 (Least-Squares Method). In the least-squares method, the residual Re [see Eq. (2.2.3)]
is minimized in the following sense:
Z xb Z xb
e 2 ∂
δ [R ] dx = 0 or [Re (x, c1 , c2 , · · · , cn )]2 dx = 0, i = 1, 2, · · · , n
xa
∂ci xa
(a) Identify the weight function wie if the least-squares method is to be deduced from
Eq. (2.2.4), (b) develop the least-squares Þnite element model, and (c) discuss the
type of Þnite element approximation of u that may be used.
2.2 Consider the differential equation
³ ´ µ ¶
d du d2 d2 u
− a + 2 b + cu = f
dx dx dx dx2
where a, b, c, and f are known functions of position x. (a) Develop the weak form
over a typical element Ωe = (xa , xb ) such that the bilinear form is symmetric, (b)
identify the bilinear and linear forms and construct the quadratic functional, (c)
develop the Þnite element model of the equation, and (d) discuss the type of Þnite
element approximation of u that may be used.
2.3 Derive the Lagrange cubic interpolation functions for a four-node (one-dimensional)
element (with equally spaced nodes) using the alternative procedure based on
interpolation properties (2.2.22). Use the local coordinate x̄ for simplicity.
2.4 Derive the Þnite element model of the differential equation
³ ´
d du
− a(x) = f (x) for 0<x<L
dx dx
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
2.5 The following differential equation arises in connection with heat transfer in an
insulated rod: ³ dT ´
d
− k = q for 0 < x < L
dx dx
h i¯ ¯
dT
T (0) = T0 , k + β(T − T∞ ) + q̂ ¯¯ =0
dx x=L
where T is the temperature, k the thermal conductivity, and q the heat generation.
Take the following values for the data: q = 0, q̂ = 0, L = 0.1 m, k = 0.01 W m−1 ◦ C−1 ,
β = 25 W m−2◦ C−1 . T0 = 50◦ C, and T∞ = 5◦ C. Solve the problem using two linear
Þnite elements for temperature values at x = 12 L and L. Answer: U2 = 27.59◦ C,
U3 = 5.179◦ C, Q(1)
1 = 4.482 W m
−2 = −Q(2) .
2
2.6 An insulating wall is constructed of three homogeneous layers with conductivities
k1 , k2 , and k3 in intimate contact (see Figure P2.6). Under steady-state conditions,
the temperatures at the boundaries of the layers are characterized by the external
surface temperatures T1 and T4 and the interface temperatures T2 and T3 . Formulate
the problem to determine the temperatures Ti (i = 1, . . . , 4) when the ambient
temperatures T0 and T5 and the (surface) Þlm coefficients β0 and β5 are known.
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
58 NONLINEAR FINITE ELEMENT ANALYSIS
Assume that there is no internal heat generation and that the heat ßow is one-
dimensional (∂T /∂y = 0). Answer: U1 = 84.489◦ C, U2 = 68.977◦ C, U3 = 50.881◦ C,
U4 = 45.341◦ C, (Q11 )def = 217.16 W-m−2 , (Q32 )def = −155.11 W-m−2 .
h1 h2 h3
k1 = 90 W/(m ºC)
k2 = 75 W/(m ºC)
k3 = 50 W/(m ºC) L
h1 = 0.03 m
h2 = 0.04 m 1 2 3 4
h3 = 0.05 m
1 2 3
β = 500 W/(m2 ºC)
T∞ = 20ºC
x
Figure P2.6
2.7 Consider the steady laminar ßow of a viscous ßuid through a long circular cylindrical
tube. The governing equation is
1 d
³ dw
´ P0 − PL
− rµ = ≡ f0 , 0 < r < R0
r dr dr L
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
³ dw ´ ¯¯
r ¯ = 0, w(R0 ) = 0
dr ¯ r=0
Using the symmetry and (a) two linear elements, (b) one quadratic element, determine
the velocity Þeld and compare with the exact solution at the nodes:
∙ ³ r ´2 ¸
f0 R02
we (r) = 1−
4µ R0
2.8. In the problem of the ßow of a viscous ßuid through a circular cylinder (see Problem
2.7), assume that the ßuid slips at the cylinder wall; that is, instead of assuming that
w = 0 at r = R0 , use the boundary condition that
dw
kw = −µ at r = R0
dr
in which k is the “coefficient of sliding friction.” Solve the problem with two linear
elements.
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
THE FINITE ELEMENT METHOD: A REVIEW 59
2.9 The two members in Figure P2.9 are fastened together and to rigid walls. If
the members are stress free before they are loaded, what will be the stresses and
deformations in each after the two 50,000 lbs. loads are applied? Use Es = 30 × 106
psi and Ea = 107 psi; the aluminum rod is 2 in. in diameter and the steel rod is 1.5 in.
in diameter. Answer: U2 = 0.0134 in., P2(1) = −21, 052.6 lb, and σ (1) = 6701.25 psi.
Aluminum
Steel
P = 50 k
A C B
P = 50 k
20 in. 16 in.
Figure P2.9
2.10 Evaluate the coefficients e
and Fie of Eqs. (2.3.40a,b) for a linear triangular element.
Kij
2.11 Repeat Problem 2.10 for a linear rectangular element.
2.12 Consider the partial differential equation governing heat transfer in an axisymmetric
geometry ³ ´ ∂ ³ ∂T ´
1 ∂ ∂T
− rkrr − kzz = f (r, z) (1)
r ∂r ∂r ∂z ∂z
where (krr , kzz ) and f are the conductivities and internal heat generation per unit
volume, respectively. In developing the weak form, we integrate over the elemental
volume of the axisymmetric geometry: r dr dθ dz. Develop the weak form and
associated Þnite element model over an element.
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
References
1. Reddy, J. N., An Introduction to the Finite Element Method, 2nd edn, McGraw—Hill,
New York (1993).
2. Reddy, J. N. and Gartling, D. K., The Finite Element Method in Heat Transfer and
Fluid Dynamics, 2nd edn, CRC Press, Boca Raton, FL (2001).
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.
This page intentionally left blank
Copyright © 2004. Oxford University Press, Incorporated. All rights reserved.
Reddy, J. N.. Introduction to Nonlinear Finite Element Analysis, Oxford University Press, Incorporated, 2004. ProQuest Ebook
Central, http://ebookcentral.proquest.com/lib/UNICAF/detail.action?docID=472350.
Created from UNICAF on 2024-05-16 23:18:23.