Fem Exercise Sheets Students Results Updated
Fem Exercise Sheets Students Results Updated
Exercise Sheets
You are given the above shown discrete 1D spring system consisting of 4 nodes and 6 springs.
Given quantities:
k1 = k2 = 1, k3 = k4 = 2, k5 = k6 = 4, F = 16
1
1.1.a: (Result)
dofs
1 2
1 2
element
2 3
2 3
1 3
3 4
1.1.b: (Result)
+6 −2 −4 0
−2 +6 −4 0
K=
−4 −4 +12 −4
0 0 −4 +4
1.1.c: (Result)
T
f = 0 0 0 16
1.1.d: (Result)
0
2
u=
3
1.1.e: (Result)
f1 = −16
2
Problem 1.2: 2D Discrete Spring System
You are given the above shown discrete 2D spring system consisting of 4 nodes and 3 springs.
Given quantities:
k1 = k3 = 2, k2 = 1
F =2
1 1 −1 0 0
T1 = √
2 0 0 1 −1
0 −1 0 0
T2 =
0 0 0 −1
1 1 1 0 0
T3 = √
2 0 0 1 1
1.2.a: Assemble the connectivity matrix for the system. Assume that the first node of an
element is the one with the lower global node number and the second node of an element is the
one with the higher global load number.
1.2.b: Assemble the element stiffness matrices KG,1 , KG,2 and KG,3 , which are given in the
global coordinate system.
1.2.c: Assemble the global stiffness matrix K for the system.
1.2.d: Assemble the global force vector for the system.
1.2.e: Solve the system for displacements. Take into account the boundary conditions.
1.2.f: Calculate the reaction forces in the constrained degrees of freedom.
3
1.2.a: (Result)
dofs
element
1 2 3 4
3 4 5 6
3 4 7 8
1.2.b: (Result)
+1 −1 −1 +1
−1 +1 +1 −1
K1,G =
−1 +1 +1 −1
+1 −1 −1 +1
0 0 0 0
0 +1 0 −1
K2,G =
0 0 0 0
0 −1 0 +1
+1 +1 −1 −1
+1 +1 −1 −1
K3,G =
−1 −1 +1 +1
−1 −1 +1 +1
1.2.c: (Result)
−1 −1
+1 +1 0 0 0 0
−1 +1 +1 −1 0 0 0 0
−1 +1 +2 0 0 0 −1 −1
+1 −1 0 +3 0 −1 −1 −1
K=
0
0 0 0 0 0 0 0
0
0 0 −1 0 +1 0 0
0 0 −1 −1 0 0 +1 +1
0 0 −1 −1 0 0 +1 +1
1.2.d: (Result)
T
f = 0 0 −2 0 0 0 0 0
1.2.e: (Result)
T
u = 0 0 −1 0 0 0 0 0
4
1.2.f: (Result)
f1 1
f2 −1
f5 0
=
f6 0
f7 1
f8 1
5
2 Numerical Integration
Problem 2.1: Newton-Cotes Quadrature in 1D
You are given the function
f (x) = x3 + x2
2.1.a: Determine the number of required steps n to calculate the integral exactly.
2.1.b: Calculate the integration point coordinates and get the integration point weights.
2.1.c: Evaluate the function at the integration points.
2.1.d: Calculate the integral using the Newton-Cotes method.
6
2.1.a: (Result)
n = 2 steps. 3 points.
2.1.b: (Result)
x1 = 1, x2 = 2, x3 = 3
1 1 1
w1 = h · 1, w2 = h · 4, w3 = h · 1
3 3 3
2.1.c: (Result)
f (x1 ) = 13 + 12 = 2
f (x2 ) = 23 + 22 = 12
f (x3 ) = 33 + 32 = 36
2.1.d: (Result)
Z 3
86
f (x)dx ≈
1 3
7
Problem 2.2: Newton-Cotes Quadrature in 2D
You are given the function
f (x, y) = x3 y 2
8
2.2.a: (Result)
nx = 2 steps in x. ny = 2 steps in y.
2.2.b: (Result)
x1 = 0 x2 = 1 x3 = 2
y1 = −1 y2 = 0 y3 = 1
1 1 1 4 1 1
wx,1 = hx · 1 = wx,2 = hx · 4 = wx,3 = hx · 1 =
3 3 3 3 3 3
1 1 1 4 1 1
wy,1 = hy · 1 = wy,2 = hy · 4 = wy,3 = hy · 1 =
3 3 3 3 3 3
2.2.c: (Result)
2.2.d: (Result)
Z 2Z 1
8
f (x)dx =
0 −1 3
9
Problem 2.3: Newton-Cotes Quadrature Order of Accuracy
You are given the functions
f1 (x) = 2x2 + 3x + 1
f2 (x) = 3x + x3
f3 (x) = 1
f4 (x, y) = x2 y 2 + x3 + y
f5 (x, y) = xy + y 4
f6 (x, y) = x2 y 2 + x3 + y 3
Rb Rb Rb
for which the integral a fi (x)dx for f1 to f3 and axx ayy fi (x, y)dydx for f4 to f6 should be
calculated using the Newton-Cotes quadrature scheme.
2.3.a: Determine the minimum number of steps and points required to calculate the integrals
for f1 to f6 exactly. For the multivariate functions f4 to f6 determine the number of steps and
points per variable dimension and in total.
10
2.3.a: (Result)
• f4
• f5
• f6
11
Problem 2.4: Gauss-Legendre Quadrature in 1D
You are given the function
f (x) = x3 + x2
2.4.a: Determine the number of required evaluation points n, the points ri and weights wi to
calculate the integral exactly.
2.4.b: Calculate the integration point coordinates in x.
2.4.c: Evaluate the function at the integration points.
2.4.d: Calculate the integral using the Gauss(-Legendre) quadrature.
12
2.4.a: (Result)
2 points required.
1
r1 = − √ , w1 = 1
3
1
r2 = + √ , w2 = 1
3
2.4.b: (Result)
x(r) = 0
x(r2 ) = 2
2.4.c: (Result)
f (x(r1 )) = 0
f (x(r2 )) = 12
2.4.d: (Result)
Z b √
f (x)dx ≈ 12 3
a
13
Problem 2.5: Gauss-Legendre Quadrature in 2D
You are given the function
f (x, y) = x5 y 3
14
2.5.a: (Result)
nx = 3
ny = 2
2.5.b: (Result)
r
3
rx,1 = −
5
rx,2 = 0
r
3
rx,3 = +
5
x(rx,1 ) = −1
x(rx,2 ) = 0
x(rx,3 ) = 1
y(ry,1 ) = 0
y(ry,2 ) = 2
wy,1 = 1
wy,2 = 1
2.5.c: (Result)
f (−1, 0) = 0
f (−1, 2) = −8
f (0, 0) = 0
f (0, 2) = 0
f (+1, 0) = 0
f (+1, 2) = 8
2.5.d: (Result)
Z bx Z by
f (x, y)dydx ≈ 0
ax ay
15
Problem 2.6: Gauss-Legendre Quadrature Order of Accuracy
You are given the functions
f1 (x) = 2x2 + 3x + 1
f2 (x) = 3x + x3
f3 (x) = 1
f4 (x, y) = x2 y 2 + x3 + y
f5 (x, y) = xy + y 4
f6 (x, y) = x2 y 2 + x3 + y 3
Rb Rb Rb
for which the integral a fi (x)dx for f1 to f3 and axx ayy fi (x, y)dydx for f4 to f6 should be
calculated using the Gauss(-Legendre) quadrature scheme.
2.6.a: Determine the minimum number of points required to calculate the integrals for f1 to
f6 exactly. For the multivariate functions f4 to f6 determine the number of points per variable
dimension and in total.
16
2.6.a: (Result)
• f1 ⇒ 2 points required
• f2 ⇒ 2 points required
• f3 ⇒ 1 points required
• f4
• f5
• f6
17
3 Isoparametric Elements
Problem 3.1: Isoparametric Mapping
You are given the quadrilateral linear element shown in Figure 1a in natural coordinates and
Figure 1: (a) Quadrilateral linear element in natural coordinate system. (b) undeformed element
in global coordinates. (c) deformed element in global coordinates.
shown in Figure 1b in global coordinates as well as in its deformed configuration in Figure 1c.
Your task is to calculate the global coordinates as well as global displacements of the point rip
in the element.
Given quantities:
1 T
rip = 1 1
2
T
x = x1,x x1,y x2,x x2,y x3,x x3,y x4,x x4,y
T
= 1 1 3 2 4 4 2 3
T
u = u1,x u1,y u2,x u2,y u3,x u3,y u4,x u4,y
T
= 0 0 1 1 1 1 1 1
18
3.1.a: (Result)
1 1 0 3 0 9 0 3 0
N (rip ) =
16 0 1 0 3 0 9 0 3
3.1.b: (Result)
1 52
x=
16 52
3.1.c: (Result)
1 15
u=
16 15
19
Problem 3.2: Strain-Displacement Matrix
You are given the isoparametric quadrilateral linear element shown above once in the global
coordinates in Figure 2b and once in the local coordinates in Figure 2a. You task is to calculate
the strain-displacement-matrix B for this element for the shown integration point rip .
Given quantities:
1 T
rip = 1 1
2
T
x = x1,x x1,y x2,x x2,y x3,x x3,y x4,x x4,y
T
= 1 1 3 2 4 4 2 3
20
3.2.a: (Result)
∂x
(rip ) = 1
∂r
∂x 1
(rip ) =
∂s 2
∂y 1
(rip ) =
∂r 2
∂y
(rip ) = 1
∂s
3.2.b: (Result)
1
1 2
J (rip ) = 1
2 1
3
det (J (rip )) =
4
− 21
−1 4 1
J =
3 − 21 1
3.2.c: (Result)
∂h
1 −1
1
∂x
=
∂h1 12 −1
∂y
∂h
2
∂x
= 1 +5
∂h2 12 −7
∂y
∂h
3
∂x
= 1 +3
∂h3 12 +3
∂y
∂h
1 −7
4
∂x
=
∂h4 12 +5
∂y
3.2.d: (Result)
−1 0 +5 0 +3 0 −7 0
1
B= 0 −1 0 −7 0 +3 0 +5
12
−1 −1 −7 +5 +3 +3 +5 −7
| {z }| {z }| {z }| {z }
B1 B2 B3 B4
21
Problem 3.3: Body Force Vector
You are given the above shown triangular linear isoparametric element. The element is subjected
to the body force field f . The element has the global nodal coordinates x1 , x2 and x3 and a
thickness of t. The element has a single integration point having the natural coordinates r1 and
weight w1 .
Given quantities:
2
x −y 2 3 1 1 1 1
f (x) = , x1 = , x2 = , x3 = , t = 2, r1 = , w1 =
2x + y 1 2 3 3 1 2
22
3.3.a: (Result)
1 1 0 1 0 1 0
N=
3 0 1 0 1 0 1
3.3.b: (Result)
1 1
J=
−1 2
3.3.c: (Result)
2
6
2
fbody,el =
6
2
6
23
Problem 3.4: Strain and Stress Calculation
(a) Undeformed finite element model. (b) Deformed finite element model.
You are given the global displacement vector u for the system shown in Figure 3a and Figure 3b.
The system consists of tow quadrilateral linear elements like shown in Figure 3c. Furthermore,
you are provided the B matrix evaluated at global node 2 for both element I (BI ) and element
II (BII ). The system is modeled using a plane stress assumption, a Young’s modulus of E and
a Poisson ratio of ν.
Given quantities:
1
E = 1, ν =
4
T
u = u1,x u1,y u2,x u2,y u3,x u3,y u4,x u4,y u5,x u5,y u6,x u6,y
T
= 0 0 0 0.5 0 0 0 0 0 −0.5 0 0
−1 0 1 0 0 0 0 0
BI = 0 0 0 −1 0 1 0 0
0 −1 −1 1 1 0 0 0
−1 0 1 0 0 0 0 0
BII = 0 −1 0 0
0 0 0 1
−1 −1 0 1 0 0 1 0
3.4.a: Calculate the strains at node 2 for element 1 and element 2 by directly evaluating the
stains at the point.
3.4.b: Calculate the stresses at node 2 for element 1 and element 2 using the calculated
strains.
3.4.c: Calcualte the the average stress for node 2.
24
3.4.a: (Result)
0
εI = −1
0.5
0
εII = −1
−0.5
3.4.b: (Result)
−2
16
σI = −8
120
1.5
−2
16
σII = −8
120
−1.5
3.4.c: (Result)
−2
σ = −8
0
25
Problem 3.5: Hourglass Stabilization
You are given a quadrilateral linear element applying reduced integration as shown in Figure 4a.
Due to the under-integration, the element has two zero energy modes shown in Figure 4b and
Figure 4c. Your task is to calculate the hourglass stiffness matrix KS to stabilize this ele-
ment using the stabilization stiffness ES . You are then given a displacement vector u, which is
the result of the analysis applying the physical stiffness matrix of the element K and the cal-
culated hourglass stiffness matrix KS . You should then calculate the physical strain energy as
well as the stabilization strain energy of the element and conclude if these results can be trusted.
Given quantities:
−1 −1 −3 −1
3 1 1 1
1
3 1 1 −1 −3 −1 −1
−1 1 3 −1 1 −1 −3 1
−1 1 −1 3 1 −1 1 −3
K=
−3
−1 1 1 3 1 −1 −1
−1 −3 −1 −1 1 3 1 1
1 −1 −3 1 −1 1 3 −1
1 −1 1 −3 −1 1 −1 3
T
u= 0 0 0 1 0 0 0 0
ES = 12
3.5.a: Assemble the shown zero energy modes. Normalize the modes to a length of the modes
to ∥φi ∥ = 1
3.5.b: Assemble the Hourglass stabilization stiffness matrix using the hourglass stiffness ES .
3.5.c: Calculate the physical strain energy of the system.
3.5.d: Calculate the stabilization strain energy of the system.
3.5.e: Can the results be trusted? Explain why?
26
3.5.a: (Result)
1 T
φ1 = −1 0 1 0 −1 0 1 0
2 |
|{z} {z }
1 φ̃1
∥φ̃1 ∥
1 T
φ2 = 0 1 0 −1 0 1 0 −1
2 |
|{z} {z }
1 φ̃2
∥φ̃2 ∥
3.5.b: (Result)
0 −1 0 0 −1 0
1 1
0
1 0 −1 0 1 0 −1
−1 0 1 0 −1 0 1 0
0 −1 0 1 0 −1 0 1
KS,el =3·
1
0 −1 0 1 0 −1 0
0
1 0 −1 0 1 0 −1
−1 0 1 0 −1 0 1 0
0 −1 0 1 0 −1 0 1
3.5.c: (Result)
Ephys = 3
3.5.d: (Result)
ES = 3
3.5.e: (Result)
No. Stabilization energy to high in relation to total system energy.
27
4 Structural Elements
Problem 4.1: No Hand Calculations Exercises for this Topic
28
5 Transient Analysis
Problem 5.1: Mass Matrix
You are given the above shown quadrilateral linear element having the nodes 1, 2, 3 an 4 with
the corresponding shape functions h1 , h2 , h3 and h4 . The element has a single integration point
having the natural coordinates rip and weight wip . The element has a density ρ and an out of
plane thickness t.
Given quantities:
1 3 9 3
h1 (rip ) = h2 (rip ) = h3 (rip ) = h4 (rip ) =
16 16 16 16
det (J (rip )) = 16
wip = 2
ρ=2
t=4
Tasks:
29
5.1.a: (Result)
1 0 3 0 9 0 3 0
0 1 0 3 0 9 0 3
3 0 9 0 27 0 9 0
0 3 0 9 0 27 0 9
Mel =
9
0 27 0 81 0 27 0
0 9 0 27 0 81 0 27
3 0 9 0 27 0 9 0
0 3 0 9 0 27 0 9
5.1.b: (Result)
16 0 0 0 0 0 0 0
0 16 0 0 0 0 0 0
0 0 48 0 0 0 0 0
0 0 0 48 0 0 0 0
Mel,rs
0 0 0 0 144 0
0 0
0 0 0 0 0 144 0 0
0 0 0 0 0 0 48 0
0 0 0 0 0 0 0 48
5.1.c: (Result)
mel = 256
5.1.d: (Result)
1 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0
0 0 9 0 0 0 0 0
256
0 0 0 9 0 0 0 0
Mel,ds =
0
100 0 0 0 81 0 0 0
0 0 0 0 0 81 0 0
0 0 0 0 0 0 9 0
0 0 0 0 0 0 0 9
30
Problem 5.2: Eigenfrequency Analysis
You are given the above shown 2D truss system having the global stiffness matrix K and mass
matrix M. Assume that the degrees of freedom are sorted by global node number and alternating
x- and y-coordinates of the respective node.
Given quantities:
2 0 −2 0 0 0
0 0 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0
−2 0 3 1 0 0 −1 −1 0 0 3 0 0 0 0 0
0 0 1 3 0 −2 −1 −1 0 0 0 3 0 0 0 0
K=
,
M=
0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
0 0 0 −2 0 2 0 0 0 0 0 0 0 1 0 0
0 0 −1 −1 0 0 1 1 0 0 0 0 0 0 3 0
0 0 −1 −1 0 0 1 1 0 0 0 0 0 0 0 3
31
5.2.a: (Result)
r
1
ω1,2 = 1∓
3
32
Problem 5.3: Modal Decomposition
You are given a system consisting of a consistent mass matrix M and a stiffness matrix K.
Furthermore, you are given the eigenvector matrix Q.
Given quantities:
9 −2 17 −6 1 1 2 T1 1 2
M= , K= , Q= √ , Q =√
−2 6 −6 8 5 2 −1 5 2 −1
5.3.a: Calculate the generalized mass matrix Mg and generalized stiffness matrix Kg .
5.3.b: Calculate the mass normalized generalized mass matrix M̂g and mass normalized
generalized stiffness matrix K̂g .
5.3.c: Calculate the eigenfrequencies φi of the system.
5.3.d: Apply modal reduction using only the eigenmode having the first lowest eigenfrequency
and calculate the generalized mass matrix and generalized stiffness matrix using the modally
reduced model.
33
5.3.a: (Result)
5 0
Mg =
0 10
5 0
Kg =
0 20
5.3.b: (Result)
1 0
M̂g =
0 1
1 0
K̂g =
0 2
5.3.c: (Result)
ω1 = 1
√
ω2 = 2
5.3.d: (Result)
Mg,red = 5
Kg,red = 5
34
Problem 5.4: Explicit Time Integration
1 0 0 9 0 0
0 1 0 p̈(t) + 0 16 0 p(t) = 0
0 0 1 0 0 1
You are given the above shown dynamic modally decomposed system shown above.
Given quantities:
T
p(0) = 0 2 32
T
ṗ(0) = 8 4 4
1
∆t = .
4
5.4.a: Calculate the critical step size tcrit for explicit central differences time integration for
the given system.
5.4.b: Calculate the initial condition q̈(0) and calculate q(−∆t) using the Taylor-expansion
approach.
5.4.c: Perform 2 time steps using ∆t and the explicit central differences scheme.
5.4.d: Calculate the velocity and acceleration at t = ∆t.
35
5.4.a: (Result)
tcrit = 0.5
5.4.b: (Result)
0
q̈(0) = −32
−32
−2
ut0 −∆t = 0
30
5.4.c: (Result)
2
u∆t = 2
32
46
16
u2∆t = 0
30
5.4.d: (Result)
ut+∆t − ut−∆t
u̇∆t =
2∆t
23
1
== −16
4
−16
ut+∆t − 2ut + ut−∆t
ü∆t = 2
∆t
−18
= −32
−32
36
6 Formulary
Discrete Systems
Local stiffness matrix for 1D Spring Element
1 −1
Kel = ke
−1 1
Ke,G = TT Ke,L T
37
Numerical Integration
Newton-Cotes quadrature formula for 1D
Z b n
X
f (x)dx ≈ wi f (xi )
a i=1
Newton-Cotes quadrature integration point formula (equidistant n+1 points in [a, b])
xi = a + (i − 1) · h, i ∈ 1, ..., n
p = 2n − 1
38
Gauss(-Legendre) quadrature points and weights table
39
Isoparametric Elements
Shape functions and their derivatives for a quadrilateral linear element given in
natural coordinates r and s:
1 ∂h1 1 ∂h1 1
h1 (r, s) = (1 − r)(1 − s), = − (1 − s), = − (1 − r)
4 ∂r 4 ∂s 4
1 ∂h2 1 ∂h2 1
h2 (r, s) = (1 + r)(1 − s), = (1 − s), = − (1 + r)
4 ∂r 4 ∂s 4
1 ∂h3 1 ∂h3 1
h3 (r, s) = (1 + r)(1 + s), = (1 + s), = (1 + r)
4 ∂r 4 ∂s 4
1 ∂h4 1 ∂h4 1
h4 (r, s) = (1 − r)(1 + s), = − (1 + s), = (1 − r)
4 ∂r 4 ∂s 4
Shape functions and their derivatives for a triangular linear element given in natural
coordinates r and s:
∂h1 ∂h1
h1 (r, s) = 1 − r − s, = −1, = −1
∂r ∂s
∂h2 ∂h2
h2 (r, s) = r, = 1, =0
∂r ∂s
∂h3 ∂h3
h3 (r, s) = s, = 0, =1
∂r ∂s
Shape function matrix N for 2D:
h 0 ... hnnodes 0
N= 1
0 h1 ... 0 hnnodes
x= hI xI ux = hI uI,x
I=1 I=1
nX
nodes nX
nodes
y= hI y I uy = hI uI,y
I=1 I=1
x = Nx u = Nu
40
Strain-displacement matrix B in 2D for a single shape function I:
∂h
∂x
I
0
∂h
0
I
BI = ∂y
∂hI ∂hI
∂y ∂x
Elemental stiffness matrix entries KIJ of degrees of freedom I and J for the element
stiffness matrix for 2D isoparametric element:
Xnip
Kel,II Kel,IJ
Kel,IJ = = BTJ CBI det(J)wip t
Kel,JI Kel,JJ
ip
Nodal body force vector entries fel,J for node J for 2D isoparametric element:
nip
X
fbody,el,J = hJ f (Nx) det(J)wip t
ip
ε = Bu
41
Stress σ for integration point in isoparametric element:
σ = Cε = CBu
Ephys = uT Ku
ES = uT KS u
42
Transient Analysis
Mass matrix Mel for 2D isoparametric element:
nip
X
Mel = ρNT N det(J)wip t
ip
= 1T Mel 1
(K − λM) q = 0
(K − λM) q = 0
Mg = QT MQ
Kg = QT KQ
fg = QT f
M̂g = I
43
Mass normalized generalized stiffness matrix for modal decomposition:
K̂g = M−1 T
g Q KQ = Λ
f̂g = M−1 T
g Q f
fg,red = QTred f
44
Auxiliary vectors and matrix formulas
One vector to get x-direction entry for each node in a system matrix
T
1 = 1 0 1 0 ... 1 0 ∈ R[ndofs ×1]
Determinant of a [2 × 2] matrix
a b
A= ⇒ det (A) = a · d − b · c
c d
Inverse of a [2 × 2] matrix
a b −1 1 d −b
A= ⇔A =
c d det (A) −c a
45
Notation
46