Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Finite element method is a very powerful tool for numerical analysis in solid and structural
mechanics as well as in many other engineering disciplines. Here we present an introduction to the
basic concepts of FEM in the simplest context of a one dimensional elasticity of a bar.
In lecture 1, we have derived the governing equation for 1D elasticity of a bar as,
∂σ ∂ 2u
x + f =ρ 2
∂x ∂t
L
σ = Eε
∂u
ε=
P ∂x
We can consider two simple problems, one with traction BC and one with displacement BC.
P1: P2:
u (0 ) = 0 u (0 ) = 0
ρg ρg
σ (L ) = P u (L ) = 0
⎧ E u '' + ρ g = 0 ⎧ E u '' + ρ g = 0
⎨ ⎨
⎩u (0) = 0, E u (L ) = P ⎩u (0) = u (L ) = 0
'
1
EN0175 09 / 07 / 06
0
ρg
u=− x + C1 x + C2
2
2E
σ (x )
ρ g (L − x )
σ >0
σ <0
2
EN0175 09 / 07 / 06
elements
nodes
1) Nodal displacement
u1 , u2 , L , un or u j ( j = 1, 2, L , n )
u (x j ) = u j
n
u ( x ) = ∑ u k wk ( x ) , where wk ( x ) is a function based on element type.
k =1
wk ( x )
1
0 k L
⎧1, j = k
wk (x j ) = ⎨
⎩0, j ≠ k
u (x )
Exact
FEM
0 L x
(More elements lead to more accuracy)
3
EN0175 09 / 07 / 06
∫ (E u )
+ f w(x ) dx = 0 (weak form)
L
''
0
∫ (E u )
+ f w j ( x ) dx = 0 , ( j = 1, 2, L, n)
L
''
0
⎧ x − xk −1
⎪ , k ∈ [xk −1 , xk ]
⎪ xk − xk −1
⎪ x −x
wk ( x ) = ⎨ k +1 , k ∈ [xk , xk +1 ]
⎪ xk +1 − xk
⎪
⎪0, otherwise
⎩
n
u ( x ) = ∑ u k wk ( x ) , let us calculate the equation in parts.
k =1
0
k =1
n
= −∑ K jk u k
k =1
Ewk' ( x )w 'j ( x )dx which is called Stiffness Matrix. (It turns out this is still
L
where K jk = ∫ 0
correct even if Young’s modulus varies along the length of the bar, i.e. E = E (x ) . Can u
explains why?).
f w j ( x ) dx = F j (nodal force)
L
∫ 0
Therefore, we have
n
∑K
k =1
jk uk = Fj
4
EN0175 09 / 07 / 06
KU = F
⎡ k11 k12 L k1n ⎤ ⎡ u1 ⎤ ⎡ F1 ⎤
⎢k k 22 L k2n ⎥⎥ ⎢u2 ⎥⎥ ⎢F ⎥
where K = ⎢ , U= ⎢ , F=⎢ ⎥
21 2
⎢L L L L⎥ ⎢L⎥ ⎢L ⎥
⎢ ⎥ ⎢ ⎥ ⎢ ⎥
⎣k n1 k n 2 L k nn ⎦ ⎣un ⎦ ⎣ Fn ⎦
Remarks:
1) K jk = K kj (symmetric matrix)
2) K jk = 0 , if j − k >1
0
[K ] =
0
K is a sparse matrix. (there is very efficient numerical solver for such a property)
What if u ( L) = u L ≠ 0 ?
0
1
2
3
n
n+1 u = uL
n
u ( x ) = ∑ uk wk ( x ) + u L wk +1 ( x )
k =1
5
EN0175 09 / 07 / 06
0
k =1
0 0
n
The same form ∑K
k =1
jk u k = F j is obtained.
In this case, the nodal displacement at the boundary node x = L is unknown. We need to solve
u j for j = 1,2,..., n, n + 1 .
Consider
n +1
u ( x ) = ∑ u k wk ( x )
k =1
0
k =1
n +1
= Pw j ( x n +1 ) − ∑ K jk u k
k =1
Therefore:
n +1
∑K u k = Pw j ( xn +1 ) + ∫ f w j ( x ) dx = F j
L
jk
0
k =1
∂ 2u ∂ 2u
What if we are dealing with dynamic problem, i.e. E u + f = ρ u
&& ( E 2 + f = ρ 2 ) ? ''
∂x ∂t
0 = ∫ (E u '' + f − ρ u&&)w j ( x ) dx
L
n +1
E u '' w j ( x ) dx = P (t )w j ( x n +1 ) − ∑ ∫ Ewk' ( x )w 'j ( x ) dx u k (t )
L L
∫ 0
k =1
0
f w j ( x ) dx remains the same as in static case. In the dynamic case, we will have
L
The term ∫ 0
6
EN0175 09 / 07 / 06
inside the integral if the density varies along the length of the bar, i.e. ρ = ρ (x ) .)
0
k =1 k =1
In matrix form
&& + KU = F
MU
Remarks:
1) M jk = M kj .
2) M jk = 0 , if j − k >1
0
[M ] =
0
Similar to the stiffness matrix, M is also a symmetric and sparse matrix.