Finite Element Method: Foundations: Lecture Notes
Finite Element Method: Foundations: Lecture Notes
(These lecture notes are based on the translated version of the script
“Numerische Methoden der Mechanik I”, Jörg Schröder,
and the monograph
“Tensor Calculus for Engineers with Applications to Continuum and Computational
Mechanics”, (to appear 2014), Reint de Boer, Jörg Schröder)
Finite Element Method: Foundations,
c J. Schröder I
Contents
1 Introduction 1
3 Finite-Difference-Method 5
3.1 One-dimensional Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.1.1 Discretization and Differential quotients in 1D . . . . . . . . . . . . 5
3.1.2 Example: Beam with constant cross section. . . . . . . . . . . . . . 8
3.1.3 Parabolic problems: equation of heat conduction . . . . . . . . . . . 11
3.2 Two-dimensional problem . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2.1 Discretization 2D . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2.2 Difference quotients 2D . . . . . . . . . . . . . . . . . . . . . . . . . 15
1 Introduction
Due to the rapid developments in the field of computer technology and the methods of
calculation, respectively, the application of numerical simulations becomes more and more
significant in all areas of engineering and research. Generally, typical mechanical problems
are examined as follows:
4. After the solution of the discrete problem often several millions of computed quan-
tities are available, which have to be visualized for interpretation.
• Finite-Difference-Method
• Finite-Element-Method
• Finite-Volume-Method
• Boundary-Element-Method
• Meshfree Method
In the lecture “Finite Element Method: Foundations” we are dealing with the Finite-
Difference-Method and the Finite-Element-Method for linear problems. In the field of solid
mechanics the Finite-Element-Method is of particular significance due to its flexibility
enabling the handling of complex problems for the numerical solution of elliptic and
parabolic problems. Compared to the Finite-Difference-Method and the Finite-Volume-
Method the Finite-Element-Method is specific to the variational formulation of differential
equations.
Finite Element Method: Foundations,
c J. Schröder 2
In this chapter some foundations and definitions are repeated in the context of partial
differential equations with view to mechanical engineering problems. In the sequel we clas-
sify partial differential equations of second order and present prototypes of the particular
classes.
The linear partial differential equation in the two variables x := (x1 , x2 )T and the unknown
function u(x) is given by
A(x)u,11 +2B(x)u,12 +C(x)u,22 + . . . = F (x) (1)
for all x in the considered domain B. Herein, we have used the abbreviations
∂u ∂2u ∂2u
u,1 := ; u,11 := ; u,12 := ; ... (2)
∂x1 ∂x1 ∂x1 ∂x1 ∂x2
The type of partial differential equation depends on the sign of the discriminant
δ := AC − B 2 (3)
in the considered domain. We distinguish between the following four cases:
⎫
1. δ < 0 : hyperbolic DE ⎪
⎪
⎬
2. δ = 0 : parabolic DE
. (4)
3. δ > 0 : elliptic DE ⎪
⎪
⎭
4. δ modifies its sign: mixed type
The sign of the discriminant is invariant to any transformations of the independent vari-
ables. Hence, the type of the differential equation is an invariant with respect to the
independent variables.
In case of the classification of partial differential equations with more than two indepen-
dent variables we consider the description
∂ 2 u(x)
aik + ... = 0 (5)
i,k
∂xi ∂xk
with the symmetric real matrix A = (aik ). If the coefficients aik are no functions of
the x, we refer to the differential equation as linear differential equation of second order
with constant coefficients. By the use of a linear transformation, Equation (5) can be
reformulated by
∂ 2 u(x)
κi + ... = 0, (6)
i
∂x2i
in such a way that all coefficients κi take the values +1, −1 or 0.
Depending on the signs we consider the following cases:
⎫
1. The DE is hyperbolic, if all coefficients κi differ from zero ⎪
⎪
⎪
⎪
and one κi has a converse sign with respect to the others. ⎪
⎪
⎪
⎪
2. The DE is parabolic, if one of the coefficients κi vanishes ⎪
⎪
⎬
and the others differ from zero and have the same sign.
(7)
3. The DE is elliptic, if all coefficients differ from zero ⎪
⎪
⎪
⎪
and have the same sign. ⎪
⎪
⎪
⎪
4. An equation is called parabolic, hyperbolic or elliptic, if it ⎪
⎪
⎭
exhibits the corresponding characteristics for all points of the domain.
Finite Element Method: Foundations,
c J. Schröder 3
Herein, the parameter c > 0 characterizes the velocity of wave propagation. We consider
the transformed partial differential equation
and identify the values of the coefficients A = c2 , B = 0 and C = −1. The discriminant
where κ is the heat conductivity constant. From the law of conservation of energy we
obtain the classical equation of the heat flux (without thermomechanical coupling)
with a constant density ρ, a constant specific heat capacity cp , the available heat source
∂2ϑ
r and the Laplace operator ϑ = j 2 . In case of parabolic problems we deal with
∂xj
initial boundary value problems. The system is described by
⎫
PDE : ρcp ϑ,t = κϑ + ρr x ∈ B , t > 0 ⎬
Boundary conditions: ϑ(x, t) = ϑ0 (x) x ∈ ∂B , t ≥ 0 (13)
⎭
Initial temperature: ϑ(x, 0) = ϑ1 (x) x ∈ B , t = 0
δ = 0, (15)
Finite Element Method: Foundations,
c J. Schröder 4
δ = 1 > 0, (18)
If u(x) is two times consistently differentiable, we are able to conclude from u,ik = u,ki
the symmetry aik = aki . The corresponding coefficient matrix A is symmetric.
Following classifications are valid:
⎫
1. The DE in equation (20) is hyperbolic in a point x, if A(x) ⎪
⎪
⎪
⎪
has one negative eigenvalue and n − 1 positive eigenvalues. ⎪
⎪
⎪
⎪
2. The DE in equation (20) is parabolic in a point x, if A(x) ⎪
⎪
⎬
is positive semidefinite.
(21)
3. The DE in equation (20) is elliptic in a point x, if A(x) ⎪
⎪
⎪
⎪
is positive definite. ⎪
⎪
⎪
4. The DE has the property 1., 2. or 3., if it has the associated properties ⎪
⎪
⎪
⎭
for all points of the area.
3 Finite-Difference-Method
In this chapter we consider the numerical solution of common and partial differential
equations by the Finite-Difference-Method. There, we compute approximated values of
the solution at grid points by replacing the derivatives in the differential equations with
difference quotients. This leads to a discrete problem resulting in an algebraic system
of equations of the form Ax = f . The solution x are the approximated values of the
continuous problem at the grid points.
In this section we want to figure out the way of solving ordinary differential equations of
2nd order with the Finite-Difference-Method in one-dimensional problems. We are looking
for a scalar-valued function
u : B ∪ ∂B → IR (23)
in the domain B ⊂ IR with the boundary ∂B, which satisfies for given
f : B → IR and g : ∂B → IR (24)
For the discretization we choose the constant increment h > 0 in order to satisfy
1
0
11
00 0
1
h
00
11 0
1
0
1
00
11 1 2 3 x
0 n
Figure 1: Spatial discretization of the one-dimensional problem with constant increment h.
Bh := {ih | i = 1, . . . , n − 1} . (28)
Differential quotients: First of all we consider the Taylor series expansion of an one-
dimensional function u(x + h) in the point x
1 1 1
u(x + h) = u(x) + u (x)h + u (x)h2 + u (x)h3 + . . . . (30)
1! 2! 3!
Then the first derivative is computed from solving Equation (30) with respect to u (x)
⎫
u(x + h) − u(x) 1 1
u (x) = − u (x)h − u (x)h − . . . ⎪
2 ⎬
h 2! 3! . (31)
u(x + h) − u(x) ⎪
⎭
u (x) = + O(h)
h
Equation (31)2 is referred to as difference quotient.
u(x)
CDQ
F DQ
BDQ
x−h x x+h x
Figure 2: Visualization of the central difference quotient (CDQ), the backward difference
quotient (BDQ) and the forward difference quotient (FDQ) of a function u(x).
u(x + h) − u(x)
1. forward DQ u (x) =
h
u(x) − u(x − h)
2. backward DQ u (x) =
h
u(x + h) − u(x − h)
3. central DQ u (x) =
2h
u(x + h) − 2u(x) + u(x − h)
4. 2nd derivative u (x) =
h2
u(x) = ex (37)
and compute the first derivative on the point x = 0 with the increment h = 0.1. The
approximations yield
⎫
u (x = 0) = 1, 05 forward dq ⎪ ⎪
⎬
u (x = 0) = 0, 95 backward dq
. (38)
u (x = 0) = 1, 0017 central dq ⎪
⎪
⎭
u (x = 0) = 1, 0 exact dq
A graphical representation of the function (37) and its derivative is given in Fig. 3.
8
x x
u(x)=e , u’(x)=e
7
5
f(x)
1
0 0.5 1 1.5 2
x
p0 +Δp
11
00
00
11
p0
00
11 11
00
00
11
00
11
00
11 00
11 x
l
00
11
Figure 4: Model problem: beam with constant stiffness EA and distributed loading p(x).
The model problem is described by an ordinary differential equation of 2nd order in the
domain B and a given displacement on ∂B
⎫
EAu (x) = −p(x) ⎬
u(x = 0) = 0 . (39)
⎭
u(x = l) = 0
With p(x) = p0 + Δ p · x/l and with the integration of Equation (39)1 we get the general
solution
Δp 3 p0 2
u(x) = − x − x + c1 x + c2 . (40)
6EAl 2EA
After incorporating the boundary conditions (39)2,3 we obtain
Δp 3 p0 2 p0 l Δpl
u(x) = − x − x + + x. (41)
6EAl 2EA 2EA 6EA
11
00 1
0
h
00
11 0
1
0
1
00
11 1 2 3 x
0 n
Figure 5: Spatial discretization of the beam.
We consider the case p(x) = p0 and approximate the second derivative by using Table 1.
Then we achieve the approximation of the field equations for the individual grid points
by
ui+1 − 2ui + ui−1
EA = −p0 for i = 1, . . . , n − 1 . (42)
h2
Finite Element Method: Foundations,
c J. Schröder 9
u0 = 0 und un = 0 . (43)
or in absolute representation
The solution of the problem with different discretizations is depicted in Fig. 6. Specific
values of the system and the material are l = 1, A = 1, p0 = 1, E = 1.
Exercise: Calculate the displacement u(x) of the beam shown in Fig. 4 for the loading
conditions p0 = 1 and Δp = 0. For this purpose consider the discretizations n = 2, n = 4,
n = 11 and compare the results with the exact analytical solution given in Equation (41).
Finite Element Method: Foundations,
c J. Schröder 10
Solution:
0.14
analy
n=2
n=4
n=11
0.12
displacement u(x)
Verschiebung u(x)
0.1
0.08
0.06
0.04
0.02
0
0 0.2 0.4 0.6 0.8 1
Stablaenge l
in a one-dimensional domain
The spatial discretization results analogously from Section 3.1.1, i.e. with the constant
increment h
We calculate the Taylor polynom in t at a discrete time tj according to the results from
the previous section by using the forward difference quotient and obtain
With the unknown temperature vector for the general discrete time tj with j = 1, 2, ...
the difference scheme (59) results for time t1 and all positions xi in the system of equations
With Equation (62) we know the temperatures at all spatial grid-points at time t1 . Re-
peating this process for j = 2 yields the system of equations
which can be computed directly. A repeated evaluation of (64) for j = 3, 4, ... yields
the unknown temperature ϑ(j) for all discrete points (xi , tj ). The temperatures can be
computed by the known values of the previous time steps. This explicit difference method
is referred to as forward difference method.
Remark: The forward method is only stable, if the condition
Δt 1
c2 2
≤ (65)
h 2
holds. Hence, the time increment Δt is constrained with given increment h. More stable
methods are the implicit difference methods. Such methods are e.g. obtained by inserting
the backward difference quotient
∂ϑ(xi , tj ) ϑ(xi , tj ) − ϑ(xi , tj−1)
≈ . (66)
∂t Δt
Finite Element Method: Foundations,
c J. Schröder 13
Introducing Equation (66) and (54) in the differential equation yields by disregarding
terms of higher order the backward difference method
ϑij − ϑi,j−1 ϑi+1,j − 2ϑij + ϑi−1,j
− c2 = 0, (67)
Δt h2
for all i = 1, . . . , n − 1 and j = 1, 2, . . .. The repeated application of this procedure yields
This is an implicit method (backward difference method) since this linear system of equa-
tions has to be solved.
Finite Element Method: Foundations,
c J. Schröder 14
3.2.1 Discretization 2D In the framework of the FDM the numerical solution of the
boundary value problem is computed based on a finite number of grid points in B ∪ ∂B.
For this purpose, the derivatives are approximated by difference quotients evaluated as
discrete function values at the grid points. From this an algebraic system of equations
follows for the approximate solution. This process is called discretization.
Bh
∂Bh
distant from the boundary
close to the boundary
hy
hx
Figure 7: Discretization of the domain B = (0, lx ) × (0, ly ) yields the discretized domain
Bh with (nx + 1) · (ny + 1) grid points.
Please note that here we focus on a boundary value problem which is rate-independent,
thus, here no time discretization is required.
3.2.2 Difference quotients 2D The approximation formula for each point in the
domain Bh is computed by
∂ 2 u(xi , yj ) u(xi+1 , yj ) − 2u(xi , yj ) + u(xi−1 , yj ) h2x ∂ 4 u(ξi , yj )
= − − ... (78)
∂x2 h2x 12 ∂x4
for ξi ∈ [xi−1 , xi+1 ]. With the Taylor polynom for y at a point yj we get analogously
for ηj ∈ [yj−1 , yj+1]. Inserting Equation (78) and (79) in the Poisson equation yields
⎫
u(xi+1 , yj ) − 2u(xi , yj ) + u(xi−1 , yj ) ⎪
⎪
⎪
⎪
h2x ⎪
⎪
u(xi , yj+1) − 2u(xi , yj ) + u(xi , yj−1) ⎬
∀ i = 1, 2, . . . , (nx − 1) and
+ (80)
h2y ⎪
⎪ j = 1, 2, . . . , (ny − 1).
⎪
h2x ∂ 4 u(ξi , yj ) h2y ∂ 4 u(xi , ηj ) ⎪
⎪
⎪
= f (xi , yj ) + 4
+ 4
⎭
12 x 12 y
We set the boundary conditions
and
u(x0 , yj ) = g(x0 , yj ) and u(xn , yj ) = g(xn , yj ) ∀ j = 0, 1, . . . , ny . (82)
ϑ = 100◦C
l = 0, 5 m
y
x
l = 0, 5 m
Figure 8: Quadratic plate with given boundary temperature.
∂2ϑ ∂2ϑ
(x, y) + (x, y) = 0 ∀ (x, y) ∈ B , (85)
∂x2 ∂y 2
which is referred to as Laplace equation. The domain B is defined by
In this example we are interested in the solution of the boundary value problem for the
number of grid points given by nx = ny = 4, see Fig. 9.
Compare the numerical results with the exact analytical solution
At the boundary nodes the temperature is known, whereas the temperature at the internal
grid points has to be computed. These remaining 9 grid points are numbered according
to Fig. 9.
Regarding equation (83)1 we get for hx = hy = h with ϑ ≡ u the expression
ϑ(x; 0, 5) = 200x
21 22 23 24 25
16 17 18 19 20
ϑ=0 ϑ(0, 5; y) = 200y
11 12 13 14 15
6 7 8 9 10
1 2 3 4 5
ϑ=0
Figure 9: Discretization of the metal plate with 9 grid points in the domain and 16 boundary
points.
For simplification we use the transformation ϑ1,1 =: ϑ7 , ϑ1,2 =: ϑ12 , ϑ2,1 =: ϑ8 and obtain