Finite Element Analysis
Finite Element Analysis
Finite Element Analysis
ELEMENT
ANLYSIS
( R 18 A 0327 )
4th Year B. Tech I- sem, Mechanical Engineering
www.mrcet.ac.in
COURSE OBJECTIVES
UNIT - 1
CO1: To enable the students to understand
fundamentals of finite element analysis and the
principles involved in the discretization of domain with
various elements, polynomial interpolation and
assembly of global arrays.
UNIT - 2
CO2: To learn the application of FEM equations for
trusses and Beams
UNIT - 3
CO3: To learn the application of FEM equations for
axisymmetric problems and CST
UNIT - 4
CO4: To learn the application of FEM equations for Iso-
Parametric and heat transfer problems.
UNIT - 5
CO5: To learn the application of FEM equations for
dynamic analysis
www.mrcet.ac.in
UNIT – I (SYLLABUS)
Introduction to FEM:
• Introduction to Finite Element Method for solving field problems, Stress
and Equilibrium, Strain - Displacement relations, Stress - strain relations.
www.mrcet.ac.in
TOPICS TO BE COVERED
LECTURE 1
• History of FEM Introduction FEM
A number of popular brand of finite element analysis packages are now available
commercially Some of the popular packages are STAAD-PRO, GT-STRUDEL, NASTRAN,
NISA and ANSYS. Using these packages one can analyze several complex structures.
There are three methods are adopted for analyzing the product
Experimental methods
In these methods the actual products or their proto type models or atleast their
material specimen are tested by using some equipments
Ex: UTM, Rockwell hardness tester
Analytical methods
These methods are theoretically analyzing methods. Only simple and regular
shaped products like beams, shafts, plates can be analyzed by these methods
Numerical methods
For the products of complicated sizes and shapes with complicated material
properties and boundary conditions getting solution using analytical methods is
highly difficult. In such situation the numerical method can be employed
vary the size of the element to make it possible to use small elements
www.mrcet.ac.in
TOPICS TO BE COVERED
LECTURE 2
• Derivation Equations of Equilibrium for
3D Body
• Stress and strain relations
• Plane stress
• Plane strain
Similarly the face aehd is negative face of y and bfgc is positive face of
y. Negative and positive faces of z are dhgc and aefb. The direct
stresses σ and shearing stresses τ acting on the negative faces are
shown in the Fig. with suitable subscript. It may be noted that the first
subscript of shearing stress is the plane and the second subscript is
the direction. Thus the τ xy means shearing stress on the plane where
x value is constant and y is the direction.
d 2 u x 0;
0 x 1
2
dx
u 0 at x 0
u 1 at x 1
F x
k
k
1 F
u k
u
F = Force in the spring
u = deflection of the spring
k = “stiffness” of the spring
Hooke’s Law
F = ku
Strain energy of a linear spring
dU
Differential strain energy of the spring for a
small change in displacement (du) of the
F spring
dU Fdu
u u+du For a linear spring
dU kudu
The total strain energy of the spring
1
u
U k u du k u 2
0 2
Strain energy of a nonlinear spring
dU
dU Fdu
F The total strain energy of the spring
u u+du
u
U
0
F du Area under the force dispalceme nt curve
Potential energy of the loading (for a single spring as in the figure)
W Fu
x
k
F
k
u
k1 k2 F
x
d1x d 2x d 3x
For this system of spring, first write down the total potential energy of the system
as:
k 1 (d 2 x k 2 (d 3x d 2 x ) 2 Fd 3x
1 1
system ) 2
2 2
Obtain the equilibrium equations by minimizing the potential energy
system
k1d 2 x k 2 (d 3 x d 2 x ) 0 Equation (1)
d 2 x
system
k 2 (d 3 x d 2 x ) F 0 Equation (2)
d 3 x
Principle of minimum potential energy for a system of springs
k1 k 2 k 2 d 2 x 0
k
2 k 2 d 3x F
du
Axial strain ε
dx du
Axial stress Eε E
dx
1 1 du 2
Strain energy per unit volume of the bar dU σε E
2 2 dx
Strain energy of the bar
U dU σε dV
1 L 1 since dV=Adx
2 σε Adx
Axially loaded elastic bar
2
L 1 1 du
L
U
0 2
σεA dx EA dx
2 0 dx
L
W bu dx Fu(x L)
0
2 0 dx 0
Principle of Minimum Potential Energy
Among all admissible displacements that a body can have, the one that
minimizes the total potential energy of the body satisfies the strong formulation
0
Lets see what this means for an axially loaded elastic bar
2
1 du exact L
) EA dx 0 bu exact dx Fu exact (x L)
L
(u exact
2 0
dx
Potential energy of the axially loaded bar corresponding to the
“admissible” displacement w(x)
2
1 dw
(w) EA dx 0 bw dx Fw(x L)
L L
2 0
dx
Any other “admissible”
displacement field w(x)
x
0 L
Example:
d 2u
AE 2 b 0; 0 xL
dx
u 0 at x 0
du
EA F at x L
dx
x2
uexact 2x
2
Potential energy corresponding to this analytical solution
2
1 du exact 1 7
(uexact ) dx u exact dx u exact (x 1)
1
2 0 dx 0 6
DEPARTMENT OF MECHANICAL ENGINEERING
Now assume an admissible displacement
w x
Why is this an “admissible” displacement? This displacement is quite arbitrary.
But, it satisfies the given displacement boundary condition w(x=0)=0. Also,
its first derivate does not blow up.
2 0 dx
Notice
7
since 1
6
(uexact ) (w)
Principle of Minimum Potential Energy
Among all admissible displacements that a body can have, the one that
minimizes the total potential energy of the body satisfies the strong formulation
The exact solution (uexact) that satisfies the strong form, renders the potential
energy of the system a minimum.
Task is to find the function ‘w’ that minimizes the potential energy of the system
2
1 L dw
(w) EA dx bw dx Fw(x L)
L
2 0 dx 0
From the Principle of Minimum Potential Energy, that function ‘w’ is the exact
solution.
Rayleigh-Ritz Principle
Where o(x), 1 (x),… are “admissible” functions and ao, a1, etc are
constants to be determined from the solution.
Rayleigh-Ritz Principle
2
1 L dw
(w) EA dx bw dx Fw(x L)
L
2 0 dx 0
d0 d1
2
1 L
dx
(a 0 , a 1 ,...) EA a 0 a1 ...
2 0
dx dx
b a 0 0 a11 ... dx
L
(w)
0, i 0,1,2,...
ai
The approximate solution is
E=A=1
F x F=2
x=1
x=0 x=2
u a
0 a x1 a 2 x 2
Note that this is NOT the analytical solution for this problem.
DEPA RTMENT OF MECH A N IC AL ENGI N EERIN G
Example of application of Rayleigh Ritz Principle
u(x 0) a0 0
u(x 2) a0 2a1 4a2 0
Hence, we obtain
a0 0
a1 2a2
Hence, the “admissible” displacement simplifies to
u a0 a1 x a2 x 2
a2 2x x 2
DEPA RTMENT OF MECH A N IC AL ENGI N EERIN G
Now we apply Rayleigh Ritz principle, which says that if I plug this approximation
into the expression for the potential energy , I can obtain the unknown (in this
case a2) by minimizing
2
1 du
(u) dx Fu(x 1)
2
2 0 dx
4 2
a2 2a2
3
0
a2
8
a2 2 0
3
3
a2
D E P A R T M E N T O F M E4
CHANICAL ENGINEERING
Hence the approximate solution to this problem, using the Rayleigh-Ritz
principle is
u a0 a1 x a2 x 2
a2 2x x 2
2x x
3 2
4
Notice that the exact answer to this problem (can you prove this?) is
x for 0 x 1
u exact
2 x for 1 x 2
Approx imate
0.8
solut ion
0.6
0.4
0.2
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
x
2
1 du
(u) EA dx bu dx Fu(x L)
L L
2 0 dx 0
2
1 dw L L
(w) EA dx 0 bw dx Fw(x L)
2 0
dx
Finite element idea:
Step 1: Divide the truss into finite elements connected to each other through
special points (“nodes”)
1 2 3 4
El #1 El #2 El #3
2
1 dw
(w) EA dx 0 bw dx Fw(x L)
L L
2 0
dx
El #1 El #2 El #3
2
1 dw
2 dx x bw dx
x2 x2
1 (w) EA
x1
dx 1
El #1 El #2 El #3
2
dw
1
3 (w) EA dx x bw dx Fw(x L)
x4 x4
2 3 dx
x 3
Now, we will first approximate the displacement inside each element and then
show you a systematic way of deriving the stiffness matrix (sections 2.2 and 3.1 of
Logan).
(2)
ε(x) B d
Stress approximation in terms of strain-displacement matrix and Young’s modulus
EB d (3)
1 1
x2 - x x - x1
N 1 (x) N 2 (x)
x 2 x1 x 2 x1
x1 x2 x
El #1
x2 - x x - x1
w(x) d1x d 2x
x 2 x1 x 2 x1
x 2 - x x - x1 d1x
w(x)
x 2 x1 x 2 x1 d2x
Strain approximation
dw d1x
ε 1
1 1
dx x 2 x1 d2x
Stress approximation
d1x
Eε
E
1 1
x 2 x1 d 2x
x1=0 x2 x3 x4=L
El #1 El #2 El #3
(1) w(x 0) 0
dw
(2) exists
dx
DEPA RTMENT OF MECH A N IC AL ENGI N EERIN G
TASK 3: DERIVE THE STIFFNESS MATRIX OF EACH ELEMENT USING THE
RAYLEIGH-RITZ PRINCIPLE
1 x2
1 (w) Adx bw dx
x2
2 x1 x1
w(x) N d ε(x) B d EB d
1 T
1 (d) d
2 x2
x1
B EB Adx d d
T
T x2
x1
NT b dx
x2
T
B EB Adx
x1
Recall that
B
1
1 1
x 2 x1
Hence
1 1
B EB
T
1 E
1
1 1
x 2 x1 x 2 x 1
1 1 1
1 1
E E
1 1
x 2 x 1 2 1 x 2 x 1 2
DEPA RTMENT OF MECH A N IC AL ENGI N EERIN G
x1
x2
B EB Adx
T 1 1 x2
2
1
x2 x1 1 1
x1 AEdx x1
x2
AEdx 1 1 1
2
x2 x1 1 1
x1
x2
B EB Adx
T
x1
x2
AEdx2 1
x x
1
1 1 AE(x2 x1 ) 1 1
2
1 1
2 1
x x
2
1 1
AE 1 1
x2 x1 1 1
Remembering that (x2-x1) is the length of the element, this is the stiffness matrix we
had derived directly before using the direct stiffness approach!!
EA 1 1
x2 x1 1 1
k BTEB Adx
x2
x1
1 T x2 T T
x2
1 (d) d B EB Adx d d N b dx
T
2 x1 x1
k fb
1
d T kd d T f b
2
Element stiffness matrix
k BTEB Adx
x2
x1
x2
f b N b dx
T
x1
Π1 (d)
0
d1x
Π 1 (d)
0
Π1 (d ) d
0
d2x
Recall from linear algebra (Lecture notes on Linear Algebra)
1 T
1 (d) d k d d f b
T
2
1 (d)
kd f b
d
Π 1 (d)
0
d
kd f b
Exactly the same equation that we had before, except that the stiffness
matrix and nodal force vectors are more general
k BTEB Adx
x2
x1
Why?
1 ε0Bd
2
d Element strain
1
1
d1x=1 d2x=1 k d
x1
x2
BT EB Adx d
B E Bd Adx
x2 T
x1
0
0
k11 k12 1 0
kd
k21 k22 1 0
k11 k12 0 and k21 k22 0
x2
fb N T b dx
x1
b(x)
1 2 N 1 (x)
f b N b dx
x2 x2
x1 x1
b dx
N 2 (x)
d1x d2x
x2 N (x) b dx
f1x x1 1
x2
f 2x x N 2 (x) b dx
1
x2
f 1x N 1 (x) b dx
x1
x2 “Consistent” nodal loads
f 2x N 2 (x) b dx
x1
d1x d2x
d1x d2x
e.g., if b=1
x 2 x1
f 1x
x2 x2
N 1 (x) b dx N 1 (x) dx
x1 x1 2
x 2 x1
f 2x
x2 x2
N 2 (x) b dx N 2 (x) dx
x1 x1 2
Divide the total force into two equal halves and lump them at the nodes
What happens if b(x)=x?
w(x) N d
Strain approximation in terms of strain-displacement matrix
ε(x) B d
Stress approximation
EB d
Element stiffness matrix
k BTEB Adx
x2
x1
x2
fb N T b dx
x1
2
1 x4 dw
3 (w) EA dx bw dx Fw(x L)
x4
2 x3 dx x3
For element 3
x 4 - x x - x 3 d3x
w(x)
x 4 x 3 x 4 x 3 d4x
w(x L) d 4x
The discretized form of the potential energy
1 T
3 (d) d
2
x4
x3
B EB Adx d d
T
T x4
x3
NT b dx Fd 4x
Π 3 (d)
0
d
0
kd f b
F
Hence there is an extra load term on the right hand side due to the concentrated
force F applied to the right end of the bar.
NOTE that whenever you have a concentrated load at ANY node, that load
should be applied as an extra right hand side term.
1 1 1 2
El #1 12”
2 2 3
2
El #2 12” Stiffness matrix of El #1
P=100lb
3 E 1 1
k (1) BTEB Adx
12 12
x
A(x)dx
1 1
0 (12)2 0
0 0 0
E 1 1 61
1
k 63 1 13.12510 1
(1)
1 1
2
(12)
k (2)
B EB Adx
24
12
T E
(12)2
12
24
1 1
A(x)dx
1 1
x
12”
24 24 24
12 12 12
4.5”
x
E 1 1 1 1
k (2) 45 9.37510
6
1 1 1 1
2
(12)
Now compute the element load vector due to distributed body force (weight)
x2
f b N b dx
T
x1
12
N b dx NT A dx
(1) T 12
fb
0 0
N A dx
12 T
0
N1(1) (x) 1
12
(1) t(6 0.125x) dx
0
N 2 (x) N1(1) (x)
A( x)
12”
33
0.2836 lb N 2(1) (x)
30 2
El #1
9.3588 12 x x
N (x)
(1)
lb 1
12
8.508
x
N 2 (x)
(1)
12
Superscript in parenthesis indicates
DEPA RTMENT OF MECH A N IC AL ENGI N EERIN G element number
For element #2
24
N b dx NT A dx
(2) T 24
fb
12 12
1
N A dx
24 T El #1 12”
12 N 2(2) (x) 2
N (x)
(2)
24
t(6 0.125x) dx El #2 12”
2
(2)
N (x)
12
3 A( x)
3
N 3(2) (x)
24 x
0.2836 lb
21
24 x
6.8064 N (x)
(2)
2
lb 12
5.9556 x 12
N 3 (x)
(2)
12
13.125 13.125 0
K 106 13.125 22.5 9.375
0 9.375 9.375
f fb f
concentrated load
9.3588
f 508 6.8064lb
b 8.
5.9556
0
f 100lb
concentrated load
0
9.3588
f lb
115.3144
5.9556
DEPA RTMENT OF MECH A N IC AL ENGI N EERIN G
Solution (3)
d2x 0.92396105
d 5
in
3x 0.9874910
Solution (4) Stress in elements
Notice that since we are using linear elements, the stress within each element
is constant.
In element #1
1.5882 psi
Check 6”
The reaction at the wall from force
equilibrium in the x-direction
12”
R1 P A(x) dx
24
24”
x0
100 t (6 0.125x) dx
24
P=100lb x0
3” 130.6288 lb
x
DEPA RTMENT OF MECH A N IC AL ENGI N EERIN G
Problem: Can you solve for the displacement and stresses analytically?
Check out
Stress
duanal du
(x)anal E 30106 anal
dx dx
Analytical solution
1
0.8
Displacement (in)
0.6
0.4
0.2
0
0 5 10 15 20
x (in)
30
25
20
Stress (psi)
15
Finite element solution
Analytical solutions
10
-5
0 5 10 15 20
x (in)
The analytical as well as the finite element stresses are discontinuous across
the elements
DEPA RTMENT OF MECH A N IC AL ENGI N EERIN G
Axially loaded elastic bar
2
1 du
(u) EA dx bu dx Fu(x L)
L L
2 0 dx 0
Task is to find the function ‘w’ that minimizes the potential energy of the system
2
1 dw
(w) EA dx 0 bw dx Fw(x L)
L L
2 0
dx
From the Principle of Minimum Potential Energy, that function ‘w’ is the exact
solution.
Rayleigh-Ritz Principle
Where o(x), 1 (x),… are “admissible” functions and ao, a1, etc are
constants to be determined.
2
1 dw
2 dx 0 bw dx Fw(x L)
L L
(w) EA
0
dx
Step 3. Obtain the coefficients ao, a1, etc by setting
(w)
0, i 0,1,2,...
ai
The approximate solution is
Step 1: Divide the truss into finite elements connected to each other through
special points (“nodes”)
1 2 3 4
El #1 El #2 El #3
2
1 L dw
(w) EA dx bw dx Fw(x L)
L
2 0 dx 0
El #1 El #2 El #3
2
1 dw
2 dx x bw dx
x2 x2
1 (w) EA
x1
dx 1
El #1 El #2 El #3
2
dw
1
3 (w) EA dx x bw dx Fw(x L)
x4 x4
2 3 dx
x 3
Recall that in the “direct stiffness” approach for a bar element, we derived the
stiffness matrix of each element directly (See lecture on Trusses) using the
following steps:
Notice that the first two tasks are similar in the two methods. The only difference is
that now we are going to use the principle of minimum potential energy, rather than
force equilibrium, to derive the stiffness matrix.
w(x) a 0 a 1x d 2x
d1x x El #1
x1 x2
Solve simultaneously
x2 x1
a0 d 1x d 2x
x 2 x1 x 2 x1
1 1
a1 d 1x d 2x
x 2 x1 x 2 x1
Hence
x2 - x x - x1
w(x) a 0 a1x d1x d 2x N1 (x)d 1x N 2 (x)d 2x
x2 1 x x2 1 x
N1 (x) N 2 (x)
w(x) N d (1)
x 2 - x x - x1
N N1 (x) N 2 (x)
x
2 x 1 x 2 x 1
d 1x
d
d 2x
1. Kronecker delta property: The shape function at any node has a value of 1
at that node and a value of zero at ALL other nodes.
1 1
x2 - x x - x1
N 1 (x) N 2 (x)
x 2 x1 x 2 x1
x1 x2 x
El #1
Check
x2 - x
N1 (x)
x 2 x1
x 2 - x1
N1 (x x1 ) 1
x 2 x1
x2 - x2
and N1 (x x 2 ) 0
A L2 E
D E P A R T M E N T O F M E C H A N I Cx N GxI 1
NEERING
2. Compatibility: The displacement approximation is continuous across
element boundaries
x3 - x x - x2
w (2) (x) d 2x d 3x
x2 - x x - x1 x3 x2 x3 x2
w(1) (x) d 1x d 2x
x 2 x1 x 2 x1
x1 x2
El #1 El #2 x3 x
At x=x2
x2 - x2 x 2 - x1
w (x x 2 )
(1)
d1x d 2x d 2x
x 2 x1 x 2 x1
x3 - x 2 x2 - x2
w (x x 2 )
(2)
d 2x d3x d2x
x3 x 2 x3 x 2
Hence the displacement approximation is continuous across elements
x2 - x
Use the expressions N1 (x) ;
x 2 x1
x - x1
N 2 (x)
x 2 x1
And check
x2 - x x - x1
N1 (x) N 2 (x) 1
x 2 x1 x 2 x 1
x2 - x x - x1
and N1 (x) x1 N 2 (x) x 2 x1 x2 x
x 2 x1 x 2 x1
DEPA RTMENT OF MECH A N IC AL ENGI N EERIN G
Rigid body mode
Assume that d1x=d2x=1, this means that the element should translate in
the positive x direction by 1. Hence ANY point (x) on the bar should
have unit displacement. Let us see whether the displacement
approximation allows this.
YES!
Assume that d1x=x1 and d2x=x2. The strain at ANY point (x) within the
bar is
d 2x d1x x 2 x1 1
(x)
x 2 x1 x 2 x1
Let us see whether the displacement approximation allows this.
1 1
x2 - x x - x1
N1 (x) N 2 (x)
x 2 x1 x 2 x1
x1 x2 x
El #1
Node at which N1 is 0
N1 (x)
x2 - x Notice that the length of the element = x 2-x 1
x 2 - x1
The denominator is
x - x x - x1
N 2 (x) 1 the numerator evaluated at
x1 - x 2 x 2 - x1 the node itself
x1 x2
x3 x
El #1
N1 (x)
x 2 - x x 3 - x
x 2 - x1 x 3 - x1 w(x) N1 (x)d1x N 2 (x)d 2x N 3 (x)d 3x
N 2 (x)
x1 - x x 3 - x
x1 - x 2 x 3 - x 2 This is a quadratic finite element in 1D and it
N 3 (x)
x1 - x x 2 - x has three nodes and three associated shape
functions per element.
x1 - x 3 x 2 - x 3
DEPA RTMENT OF MECH A N IC AL ENGI N EERIN G
TASK 2: APPROXIMATE THE STRAIN and STRESS WITHIN EACH
ELEMENT
w(x) N d
dw
Recall that the strain in the bar ε
dx
Hence
ε d B d
dN (2)
dx
The matrix B is known as the “strain-displacement matrix”
B
dN
dx
x 2 - x x - x1
N N 1 (x) N 2 (x)
x
2 x 1 x 2 x 1
Hence
-1
B
1
1
1 1
x 2 x1 x 2 x1 x 2 x1
-1 1 d1x
εBd
x 2 x 1 x 2 x 1 d 2x
d 2x - d 1x
x 2 x1
Hence, strain is a constant within each element (only for a linear element)!
w(x) a 0 a 1x
d 2x
d1x x El #1
x1 x2
Strain is constant
d 2x - d1x
ε
x 2 x1
x El #1
x1 x2
EB d (3)
For a linear element the stress is also constant inside each element. This has the
implication that the stress (and strain) is discontinuous across element
boundaries in general.
(2)
ε(x) B d
Stress approximation in terms of strain-displacement matrix and Young’s modulus
EB d (3)
x2 - x x - x 1 d1x
u(x)
x 2 x 1 x 2 x 1 d 2x
Strain approximation
d 1x
ε
1
1 1
x 2 x1 d 2x
Stress approximation
d 1x
E
1 1
x 2 x1 d 2x