FEM - 8 Stiffness Matrix
FEM - 8 Stiffness Matrix
FEM - 8 Stiffness Matrix
8 Stiffness Matrix
Introduction
In a finite element, the stiffness matrix K relates nodal displacements U with nodal forces
F as:
KU = F
Components of matrix K are partial derivatives of nodal forces with respect to nodal dis-
placements. Thus, for an element with n nodes and two degrees of freedom per node, the
equation above can be written as:
∂f1x ∂f1x ∂f1x ∂f1x ∂f1x ∂f1x
∂u1x ∂u1y ∂u2x ∂u2y ··· ∂unx ∂uny
u1x f1x
∂f1y
∂f1y ∂f1y ∂f1y ∂f1y ∂f1y
∂u1x ∂u1y ∂u2x ∂u2y ··· ∂unx ∂uny
u1y f1y
∂f2x ∂f2x ∂f2x ∂f2x ∂f2x ∂f2x
···
∂uny u2x
∂u1x ∂u1y ∂u2x ∂u2y ∂unx
f
2x
∂f2y ∂f2y ∂f2y ∂f2y ∂f2y ∂f2y u
f
∂u1x ∂u1y ∂u2x ∂u2y ··· ∂unx ∂uny =
2y
2y
.. ..
. .. .. .. .. .. .. . .
.. . . . . . .
unx fnx
∂fnx ∂fnx ∂fnx ∂fnx ∂fnx ∂fnx
∂u ∂u1y ∂u2x ∂u2y ··· ∂unx ∂uny u
1x ny fny
∂fny ∂fny ∂fny ∂fny ∂fny ∂fny
∂u1x ∂u1y ∂u2x ∂u2y ··· ∂unx ∂uny
Raul
Durand 1
Finite Equilibrium equations
Elements
Equilibrium equations
The static equilibrium equations in three-dimensions are
given by:
∂σ xx ∂τ xy ∂τ xz
∂x + ∂y + ∂z + bx = 0
∂τ yx ∂σ yy ∂τ yz
∂x + ∂y + ∂z + by = 0
∂τ xy ∂τ yz ∂σ zz
∂x + ∂y + ∂z + bz = 0
div(σ)
.. + b = 0
Raul
Durand 2
Finite Divergence theorem
Elements
Divergence theorem
In vector calculus, the divergence theorem, also known as Gauss’s theorem, relates a vector
field inside a volume to the flow of the vector field through its surface.
Using the Gauss’s theorem, the integral of a vectorial function over a closed surface can be
transformed into an integral over the corresponding volume:
˛ ˆ
F · dS = div F dV
S V
where S = n̂ dS is a vector pointing outwards the surface and n̂ the corresponding unitary
vector.
´
For example, consider S F · dS with F = (3x + z, y 2 − sin x, xz + ex ) integrated over the
surface of a box given by: 0 ≤ x ≤ 1, 0 ≤ y ≤ 3 and 0 ≤ z ≤ 2.
Since div F = 3 + 2y + x, using the divergence theorem, the integral can be easily calculated
by the volume integral:
ˆ ˆ 1ˆ 3ˆ 2
div F dV = (3 + 2y + x) dz dy dx
V 0 0 0
Raul
Durand 3
Finite Stifness matrix derivation
Elements
div σ
.. + b = 0
Assumign a virtual displacement field δu, the virtual work equation for a solid with volume
V is:
ˆ ˆ
δu · div σ
.. dV + δu · b dV = 0
V V
div (δu · σ)
.. = δu · div σ
.. + ∇δu : σ
..
Raul
Durand 4
Finite Stifness matrix derivation
Elements
Using the divergence theorem, the second integral in the last equation can be expressed as
a surface integral, thus:
ˆ ˛ ˆ
∇δu : σ
.. dV − δu · σ
.. · n̂ dS − δu · b dV = 0
V S V
The product σ .. · n̂ = t is the tensor decomposition in the direction of n̂, where t represents a
surface traction force. In addition, tensor σ.. can be expressed by a vector σ, so the equation
above becomes:
ˆ ˛ ˆ
∇δu · σ dV − δu · t dS − δu · b dV = 0
V S V
The term ∇δu represents the virtual strain vector δε, thus:
ˆ ˛ ˆ
δε · σ dV − δu · t dS − δu · b dV = 0
V S V
This equation states the equality between internal and external work.
Raul
Durand 5
Finite Stifness matrix derivation
Elements
δu = N δU
δε = B δU
Since the vector with virtual node displacements δU contains values from a constant field,
the equation above becomes:
ˆ ˆ ˆ
T T
B σ dV − N t dS − NT b dV = 0
V S V
Raul
Durand 6
Finite Stifness matrix derivation
Elements
This equation relates forces with displacements and can be written simply as KU = F where
K represents the stiffness matrix of a finite element:
ˆ
K= BT DB dV
V
Also, the right hand side of the finite element equilibrium equation represents the external
force vector:
ˆ ˆ
T
F= N t dS + NT b dV
S V
and is constituted by equivalent nodal forces corresponding to surface tractions and body
forces.
In nonlinear analyses, the stifness matrix relates increments of force and displacements as:
K∆U = ∆F
Raul
Durand 7
Finite Minimum potential energy approach
Elements
Raul
Durand 8
Finite Stiffness matrix in 1D and 2D
Elements
Expressing the volume differential in local coordinates, the integral turns into:
¨
K = 2π BT DB rJ dξdη
Since the term r is remaining inside the integral, a simple integration procedure evaluates
the term r at the element centroid, thus:
¨
K = 2πr̄ BT DB J dξdη
Raul
Durand 10
Finite Appropriate order of quadrature
Elements
Raul
Durand 11
Finite Global system
Elements
Global system
KU = F
Raul
Durand 12
Finite Global system
Elements
Raul
Durand 13
Finite Stiffness matrix properties
Elements
Raul
Durand 14
Finite Solving procedure
Elements
Solving procedure
The system of equations KU = F can be reorganized as:
" # ! " #
K11 K12 U1 F1
=
K21 K22 U2 F2
K11 U1 + K12 U2 = F1
K21 U1 + K22 U2 = F2
Example of coefficients distribution
The first equation leads to the following system which is in a finite element global stiffness
used to find the unknown displacements U1 : matrix
K11 U1 = F1 − K12 U2
Raul
Durand 15
Finite Exercises
Elements
Exercises
3. In the last exercise, calculate the strain and stress vectors at the integration points of
element 1.
Raul
Durand 16
Finite Locking
Elements
Locking
In some circumstances finite elements show stiffer be-
havior which is referred as locking.
Locking occurs in lower order elements because their
kinematics is not enough to represent the correct so-
lution. In other words, it happens when an element
cannot interpolate a field correctly from nodal values
and shape functions.
The most common types of locking are shear and pres-
Shear locking in a fully integrated 8 node
sure locking. Shear locking occurs when elements are
hexahedron element
subject to bending, and pressure locking occurs when
the material is incompressible.
Figure at top right shows an 8 node hexahedron element
subject to pure bending. The element is not able to as-
sume the curved shape to correctly represent the shape No locking in a fully integrated 20 node
change. In this case incorrect shear strain is introduced. hexahedron element
Reduced integration
A lower order than the required quadrature rule to integrate an element is called reduced
integration and involves a loss in accuracy.
Displacement based finite elements are likely to over-estimate the stiffness matrix. The use
of reduced integration tends to soften an element, thus countering the stiffer effect.
On the other hand, reduced integration is convenient to reduce the expense to generate a
stiffness matrix since it uses fewer integration points.
The use of reduced integration is frequent in non-linear analyses in order to reduce stiffness
and to better approximate to real behavior.
The use of reduced integration could generate mesh instability and produce the so-called
spurious modes (hourglass modes).
Raul
Durand 18
Finite Hourglass modes
Elements
Hourglass modes
A spurious deformation mode may also be called an instability, a
spurious singular mode, a mechanism, a kinematic mode, a zero-
energy mode and an hourglass mode. Spurious deformations arise
in cases such as the use of a low-order quadrature rule.
The term zero-energy mode refers to nodal displacements U that
do not correspond to rigid body motion but nevertheless produces
zero strain energy:
ˆ
Hourglass mode for an element
Ue = 21 UT KU = 12 εT Dε dV = 0 initially rectangular
Raul
Durand 19
Finite Hourglass modes
Elements
Independent displacement modes of a bilinear element. 1 to 3 are rigid modes. 4 to 6 are constant strain
modes. 7 and 8 are spurious modes.
Possible spurious modes in 8 and 9 node elements integrated using a 2x2 quadrature rule.
Raul
Durand 20
Finite Stress recovery
Elements
Stress recovery
Stress recovery consists on calculating stresses along an element. This analysis step is usually
called as postprocessing because it happens after calculation of displacements.
Stresses are calculated from computed displacements, and are thus derived quantities:
σ = DBU
In elements based on displacement fields, the accuracy of derived quantities is generally lower
than primary quantities as displacements. However, stresses are superconvergent at Gauss
points because they have the same degree of accuracy than displacements.
Raul
Durand 21
Finite Stress recovery
Elements
Shear strain for a beam loaded by transverse tip force using 8 node elements
Raul
Durand 22
Finite Stress recovery
Elements
or in short σ̄ = Nσ̂
If the number of sampling points, m, is equal to the number of nodes, n, then nodal values
can be approximated by:
σ̂ = N−1 σ̄
If m > n then:
σ̂ = N+ σ̄
where N+ is the Moore and Penrose pseudoinverse and in this case it is calculated by:
−1
N+ = NT N NT
Raul
Durand 23
Finite Equivalent nodal forces
Elements
Raul
Durand 24
Finite Exercises
Elements
Exercises
1. The nodal coordinates of a three-node bar element are (x1 , y1 ) = (−1, −1), (x2 , y2 ) =
(1, 1) and (x3 , y3 ) = (0, 1). At the end of a finite element analysis, the axial stresses
calculated at the three integration points were: σ1 = 5 kPa, σ2 = 10 kPa and σ3 =
15 kPa. Compute the equivalent nodal loads.
2. Recover the nodal stresses for the last exercise.
3. The nodal coordinates of a four-node quadrilateral element are (x1 , y1 ) = (0, 0), (x2 , y2 ) =
(2, 0), (x3 , y3 ) = (2, 2) and (x4 , y4 ) = 0, 2. The displacements vector for this element is
shown below. Assuming full integration, find the strain and the stress vector at each
integration points. Later, find the internal forces vector F(e) . Use E = 20GPa and
ν = 0.1.
h iT
U(e) = 0.0 0.0 0.001 0.0 0.002 −0.001 −0.001 −0.001
Raul
Durand 25