Introduction To FEMUpdated
Introduction To FEMUpdated
Element Method
Dr. Rakesh K Kapania
Aerospace and Ocean Engineering Department
Virginia Polytechnic Institute and State University, Blacksburg,
VA
2016
c Rakesh K. Kapania, Mitchell Professor, Aerospace and Ocean Engineering,
Virginia Polytechnic Institute and State University, Blacksburg, VA, 24061-0203.
Introduction to Finite Element Method
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 2
Approximate methods
Approximate methods
1. Semi-Analytical Methods
2. Numerical Methods
Semi-Analytical Methods
I Series Expansion using Fourier, Bessel and other orthogonal
functions
I Rayleigh-Ritz Method based on a variational principle
I Methods of Weighted Residual (MWR) (Galerkin Method and
the Collocation Method)
I The Green’s Functions approach (Integral Equations
Approach)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 3
Approximate methods (contd...)
Numerical Methods
I Finite difference method
I Finite element method
I Spectral method
I Boundary element method
Numerical methods (except the finite difference method) are
essentially derived from one or the other semi-analytical methods.
For example
Finite element method → discrete implementation of the
Rayleigh-Ritz Method or the Method of Weighted Residuals
Spectral method → Series expansion method with use of FFT
(coefficients)
Boundary element method → Integral equation approach.
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 4
Approximate methods (contd...)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 5
Semi- Analytical Methods
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 6
Trial Functions
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 7
Methods of Weighted Residuals
where the ψj (x, y ) are called the weight (hence the name Methods
of Weighted Residuals) or the test functions, Ω, represents the
domain. N is the number of terms used in the original expansion.
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 8
Methods of Weighted Residuals (contd...)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 9
Ritz Method (Principle of Stationary Potential
Energy)
∂Π
= 0; 1≤n≤N
∂an
Note that the total Potential energy is defined as Π = U + V ,
where U is the strain energy and V is the potential of the applied
loads.
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 10
Principle of Virtual Work
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 11
Principle of Virtual Work (contd..)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 12
Principle of Virtual Work (contd...)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 13
Principle of Virtual Work (contd...)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 14
Principle of Virtual Work (contd...)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 15
Ritz Method
For a linear elastic material, dU = 12 τij eij Also recall that following
the summation convention, the right hand side is a sum of nine
terms.
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 16
Ritz Method (contd...)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 17
Example
δΠ = 0
where Π = U + V .
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 19
Example (contd...)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 20
Example (contd...)
N
∑ Ci φi (x ) = 0
i =1
(iii) The trial functions must form a complete set. This means
that the solution of the problem can be approximated arbitrarily
close by a linear combination of the given trial functions as the
number of terms in the expansion are increased.
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 22
Example (contd...)
∂Π
= 0; 1≤i ≤N
∂Ci
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 23
Example (contd...)
This will yield a set of N equations. For the present beam problem,
∂Π
the expression for can be written as:
∂Ci
2
∂ ∂2 w
Z L Z L
∂Π ∂ w ∂wL ∂w
= EI 2 2
dx + kw L − p (x ) dx
∂Ci 0 ∂x ∂Ci ∂x ∂Ci 0 ∂Ci
" # " #
Z L N N
=
0
∑ Cj φj00 (x ) φi00 (x )dx + k ∑ Cj φj (L) φi (L)
j =1 j =1
Z L
− p (x )φi (x )dx
0
N Z L
= ∑ 0
EI (x )φi00 (x )φj00 (x )dx + kφi (L)φj (L) Cj
j =1
Z L N
−
0
p (x )φi (x )dx = ∑ Kij Cj − Qi
j =1
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 24
Example (contd...)
Where the stiffness coefficient Kij and the generalized force Qi are
given as:
Z L
Kij = EI (x )φi00 (x )φj00 (x )dx + kφi (L)φj (L)
0
Z L
Qi = p (x )φi (x )dx
0
For the present problem, we can choose
x i +1
φi (x ) =
L
where i varies from 1 to N.
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 25
Example (contd...)
Note that these trial functions satisfy all the essential boundary
conditions, namely,
φ(0) = 0 and φ 0 (0) = 0.
Also the φ 0 ’s are linearly independent and note that to satisfy the
essential boundary conditions, we are starting our expansion from
x 2 x 0
(for i = l) and not from , i.e. a constant term as
L L
required by the completeness requirement.
The solution to our problem does not contain any constant or
linear terms in the expansion. The present expansion will thus
satisfy the completeness requirement.
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 26
Example (contd...)
Case (i) (n = 1) The set of linear equations for this case can be
written as:
EI p0 L
3
( 4 + α ) C1 =
L 4
p0 L
C1 =
4(4 + α)EI
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 28
Example (contd...)
Case (ii) (n = 2) The set of linear equations for this case can be
written as:
1
EI 4 + α 6 + α C1
= p0 L 41
L3 6 + α 12 + α C2 5
Solution of this set of two equations will give us the values of the
undetermined constants C1 and C2 .
p0 L4
C1 36 + α
=
C2 20EI (12 + 4α) −(14 + α)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 29
Example (contd...)
(8α + 123)p0 L4
C1 =
240EI (α + 3)
(13α + 72)p0 L4
C2 = −
240EI (α + 3)
p0 L4
C3 =
48EI
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 30
Example (contd...)
Case (iv) N = 4
The set of four equations is:
1
4+α 6+α 8+α 10 + α C1 4
1
EI 6 + α 12 + α 18 +α 24 + α
C2
5
3
144
= p0 L 1
L 8 + α 18 + α 5 +α 40 + α
C3
6
400 1
10 + α 24 + α 40 + α 7 +α C4
7
(3α + 20)p0 L4
(7α + 20)p0 L4 C2 = −
C1 = 80EI (α + 3)
240EI (α + 3)
p0 L4
C3 = 0 C4 =
120EI
It can be shown that this is also the exact solution to this problem.
As a result, we do not have to proceed any further.
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 31
Example (contd...)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 32
Penalty Approach
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 33
Penalty Approach (contd...)
Note that in obtaining this solution we did not satisfy the essential
boundary condition at x = L explicitly. This suggests a way around
satisfying the essential boundary conditions explicitly, by placing a
spring with very large stiffness at the point where the displacement
is zero. This approach is called the penalty approach.
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 34
Limitations of the Ritz Method
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 35
Finite Element Method
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 36
Finite Element Method (contd...)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 37
Finite Element Method (contd...)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 39
Finite Element Method (contd...)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 40
Finite Element Method (contd...)
The left hand side in the above equation can also be written as:
Z L Z L
∂Π ∂u ∂ ∂u ∂
= EA(x ) dx − p (x ) (u (x ))dx
∂ui 0 ∂x ∂ui ∂x ) 0 ∂ui
" ! #
Z L N
=
0
EA(x ) ∑ uj φj0 (x ) φi0 (x ) − p (x )φi (x ) dx
j =1
N Z L
Z L
= ∑ 0
EA(x )φi0 (x )φj0 (x )dx uj −
0
p (x )φi (x )dx
j =1
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 41
Finite Element Method (contd...)
The elements of the stiffness matrix K, and the load vector Q are
given as:
Z L
Kij = EA(x )φi0 (x )φj0 (x )dx
0
Z L
Qi = p (x )φi (x )dx
0
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 42
Finite Element Method (contd...)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 43
Finite Element Method (contd...)
For example, in the third row, the three nonzero coefficients will be
: K32 , K33 , and K34 , and in the i th row, the three non-zero
coefficients will be Ki,i −1 , Ki,i , and Ki,i +1 . Let Pi be an axial force
acting at node i.
Q i = Pi + Qi
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 44
Finite Element Method (contd...)
This can be easily seen from the fact that if a point force Pk is
acting at the k th node, the expression for the total potential energy
will be modified to contain an additional term, −Pk uk . When the
variation of this term is taken, it leads to the additional force term
Pi in the expression for the generalized force Q i .
If for the given problem, we divide the domain (0, L) using four
elements (or five nodes), the resulting set of equations will be as
follows:
K11 K12 0 0 0
u1 = 0
Q 1
K21 K22 K23 0 0
u2
Q 2
0 K32 K33 K34 0
u3 = Q 3
0 0 K43 K44 K45 u4
Q
4
0 0 0 K54 K55 u5 = 1
Q5
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 45
Finite Element Method (contd...)
Also note that the 5 by 5 global stiffness matrix K in the above set
of linear equations is singular. This is due to the fact that the axial
bar is not restrained from moving freely in the space.
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 46
Finite Element Method (contd...)
Lack of this singularity will imply that a rigid body motion (in our
case, all ui = 1) will result in a nonzero force vector, i.e. a free
body motion will result in a non-zero axial strain which is of course
not true.
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 47
Finite Element Method (contd...)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 48
Finite Element Method (contd...)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 49
Finite Element Method (contd...)
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 50
Example
∂4 w
EI = p (p is uniform)
∂x 4
w (0) = w 0 (0) = 0
EIw 00 |x =L = M0
EI (w 00 ) 0 = 0
Z L
1 00 2 ∂w
I (w ) = EI (w ) − pw dx − M0
0 2 ∂x x =L
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 51
Example (contd...)
N
Assume w (x ) = ∑ Ci φi (x ) (N-parameter Ritz method)
j =1
if
a1 = a2 = · · · = an = 0
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 52
Example (contd...)
Let φj (x ) = x j +1 , j = 1, 2, 3, · · · , N
since x j +1 = 0 at x = 0
∂x j +1
= (j + 1)x j = 0
∂x
at
x = 0
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 53
Example (contd...)
Furthermore,
x j +1 is linearly independent of x j +2 , x j +3 , · · ·
w = C1 x 2 + C2 x 3 + C3 x 4 + C4 x 5 + · · · + CN x N + 1
if N = 2, we stop at x 3
if N = 3, we stop at x 4
.. ..
. .
N
w = ∑ Cj x j + 1
j =1
N
w 00 = ∑ Cj (j + 1)(j )x j −1
j =1
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 54
Example (contd...)
!2 !
N N
1 L
Z
I =
2 0
EI ∑ Cj φj00 − p ∑ Cj φj dx
j =1 j =1
" #
N
− M0 ∑ j
C j φ 0
j =1 x =L
= I [C1 , C2 , C3 , · · · , CN ]
∂I ∂I ∂I
= 0 = 0··· = 0
∂C1 ∂C2 ∂CN
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 55
Example (contd...)
" #
Z L N Z l
∂I EI
∂Ci
=
0
2·
2 ∑ Cj φj00 φi 00 dx −
0
pφi dx − M0 φi0 |x =L = 0
j =1
for i = 1, 2, · · · , N
N Z L
Z l
∑ 0
EI φi00 φj00 dx Cj =
0
pφi dx + M0 φi0 |x =L
j =1
for i=1,2,· · · ,N
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 56
Example (contd...)
Let
Z L
Kij = EI φi00 φj00 dx = B (φi , φj )
0
Z L
fi = pφi dx + M0 φi0 |x =L = l (φi )
0
N
∑ Kij Cj = fi
j =1
for i=1,2,3,· · · ,N
K11 K12 · · · K1N
K21 K22 · · · C1 f1
K2N
C2 f2
=
.. ..
.. .. .. .. . .
. . . .
CN fN
KN1 KN2 · · · K1N
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 57
Example (contd...)
[K ]{C } = {f }
where [K] is the stiffness matrix, { C } is the generalized
displacement vector, and { f } is the generalized load vector.
Also it can be shown that [K] is positive definite. So,
{ C } = [ K ] −1 { f }
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 58
Example (contd...)
Let N=2: w = C1 x 2 + C2 x 3
i.e. φ1 = x 2 , φ2 = x 3 , φ100 = 2, φ200 = 6x
Z L Z L
K11 = EI φ100 φ100 dx K12 = K21 = EI φ100 φ200 dx
0 0
Z L Z L
= EI · 2 · 2 dx = EI · 2 · 6x dx
0 0
= 4EIL = 6EIL2
Z L Z L
K22 = EI φ200 φ200 dx = EI · 6 · 6 dx
0 0
= 12EIL3
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 59
Example (contd...)
Z L Z L
f1 = pφ1 dx + M0 (φ10 )|x =L f2 = pφ2 dx + M0 (φ20 )|x =L
0 0
Z L Z L
= px 2 dx + M0 (2x )|x =L = px 3 dx + M0 (3x 2 )|x =L
0 0
pL3 pL4
= + 2M0 L = + 3M0 L2
3 4
( )
pL3
4L 6L2
C1 3 + 2M0 L
EI = pL4
6L2 12L3 C2 2
4 + 3M0 L
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 60
Example (contd...)
−1 ( pL3
)
4L 6L2
C1 1 3 + 2M0 L
= pL4
C2 EI 6L2 12L3 + 3M0 L2
4
( pL3
)
12L3 −6L2
1 1 3 + 2M0 L
= · pL4
EI 12L4 −6L2 4L + 3M0 L2
4
5 6 + 6M0 L4
1 2 pL
=
12EIL4 −pL5
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 61
Example (contd...)
w (x ) = C1 x 2 + C2 x 3
5pL2 + 12M0 −pL
2
= x + x3
24EI 12EI
Now , for N = 3
w (x ) = C1 x 2 + C2 x 3 + C3 x 4
A better approximation
Objective : To determine C1 , C2 , C3
φ1 = x 2; φ10 = 2x; φ1 = 2
φ2 = 3
x ; φ20 = 3x ; 2
φ2 = 6x
φ3 = 4
x ; φ30 = 4x 3 ; φ3 = 12x 2
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 62
Example (contd...)
Z L Z L
= EI φ100 φ300 dx = EI φ200 φ300 dx
0 0
Z L Z L
= EI · 2 · 12x 2 dx = EI · 6x · 12x 2 dx
0 0
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 63
Example (contd...)
Z L
Z L
f3 = pφ3 dx + M0 (φ10 )|x =L
K22 = EI φ300 φ300 dx 0
0
Z L
p · x 4 dx + M0 · 4x 3 x =L
Z L
=
= EI · (12x 2 )2 dx 0
0
144EIL5
K22 = pL5
5 f3 = + 4M0 L3
5
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 64
Example (contd...)
PL3
8l 2
4 6L C1
3 + 2M0 L
EIL 6L 12L2 18L 3 C2 = PL4 2
4 + 3M0 L
144 4
8L2 18L3 5 L C3 PL5
+ 4M0 L3
5
SOLVING GIVES:
pL2 + 2M0
C1 =
4EI
−pL
C2 =
6EI
p
C3 =
24EI
Rakesh
c K. Kapania AOE 5024, Vehicle Structures 65