Professional Documents
Culture Documents
Finite Elements
Finite Elements
1
Table of Contents
1.1. INTRODUCTION
2
1.2
3
Vector and Tensor
• Vector: Collection of scalars
• Cartesian vector: Euclidean vector defined using Cartesian
coordinates
– 2D, 3D Cartesian vectors
u1
u1
u , or u u2
u2 u
3
– Using basis vectors: e1 = {1, 0, 0}T, e2 = {0, 1, 0}T, e3 = {0, 0, 1}T
u u1 e1 u2 e2 u3e3
4
Index Notation and Summation Rule
• Index notation: Any vector or matrix can be expressed in
terms of its indices
v1 A11 A12 A13
v [vi ] v2 A [Aij ] A21 A22 A23
v3 A31 A32 A33
• Einstein summation convention
3
akbk akbk
k 1
6
Cartesian Vector
X3
• Cartesian Vectors u
u u1 e1 u2 e2 u3e3 uiei v e3
v vjej e1 e2
X2
X1
• Dot product
u v (uiei ) (vjej ) uivj ( ei ej ) uivjij uivi
– Kronecker delta function
1 if i j
ij
0 if i j
– Equivalent to change index j to i, or vice versa
• How to obtain Cartesian components of a vector
ei v ei (vjej ) vjij vi Projection
7
Notation Used Here
ab ab
i i aT b
A ab Aij ab
i j A abT
b Aa bi Aijaj b Aa
b aA bj aA
i ij bT aT A
8
Tensor and Rank
• Tensor
– A tensor is an extension of scalar, vector, and matrix
(multidimensional array in a given basis)
– A tensor is independent of any chosen frame of reference
– Tensor field: a tensor-valued function associated with each point
in geometric space
• Rank of Tensor
– No. of indices required to write down the components of tensor
– Scalar (rank 0), vector (rank 1), matrix (rank 2), etc
– Every tensor can be expressed as a linear combination of rank 1
tensors
– Rank 1 tensor v: vi
– Rank 2 tensor A: Aij
– Rank 4 tensor C: Cijkl 9
Tensor Operations
• Basic rules for tensors
Different notations
( TS)R T(SR) TS T S
T(S R) TS TR
Identity tensor
( TS) (T )S T(S) 1 [ij ]
1T T1 T
• Tensor (dyadic) product: increase rank
A u v uivjei ej Aij uivj
( u v ) w u( v w)
w ( u v ) v ( w u)
( u v )( w x) ( v w)u x uv vu
10
Tensor Operations cont.
• Symmetric and skew tensors
– Symmetric S ST
– Skew W WT
– Every tensor can be uniquely decomposed by symmetric and
skew tensors
T SW
S 21 ( T T T )
W 21 ( T T T )
– Note: W has zero diagonal components and Wij = - Wji
tr(A) A : 1 1 : A
13
Orthogonal Tensor
• In two different coord. e3 e3*
e1*
u uiei uj* ej*
e2
• Direction cosines e1
e2*
ei* ej ij ei* ijej
We can also show
• Change basis ej ijei* u* u
u ujej ui* ei* u T u* T ( u) (T )u
ui*ijej
1 T
uj ijui* T T 1 det() 1
Orthogonal tensor
u T u* Rank-2 tensor transformation
T * T T , Tij* ikTkljl 14
Permutation
• The permutation symbol has three indices, but it is not a
tensor
• vector product
u v eieijkujvk
15
Dual Vector
• For any skew tensor W and a vector u
u Wu u WT u u Wu 0
– Wu and u are orthogonal
0 W12 W13 W23
• Let Wij eijk wk
W W12 0 W23 w W13
W13 W23 0
W12
Wu w u
16
Vector and Tensor Calculus
• Gradient
f( X)
ei
X Xi
– Gradient is considered a vector
vi
– We will often use a simplified notation: vi , j
X j
• Laplace operator
2
ei ej
Xi X j X j X j
• Gradient of a scalar field f(X): vector
f
f ( X) ei
Xi
17
Vector and Tensor Calculus
• Gradient of a Tensor Field (increase rank by 1)
f j
f f ei f j ej ei ej
Xi Xi
• Divergence (decrease rank by 1)
fi
f ei
f j ej
Xi Xi
– Ex) jk , j ek
• Curl
v ei eijkvk , j
18
Integral Theorems
• Divergence Theorem
• Gradient Theorem
A d n A d c
• Stokes Theorem
n ( v ) d c r v dc r
• Reynolds Transport Theorem
d A
dt
Ad t d (n v )A d
19
Integration-by-Parts
• u(x) and v(x) are continuously differentiable functions
• 1D
b b b
a u(x)v(x) dx u(x)v(x) a a u(x)v(x) dx
• 2D, 3D
u v
xi v d uvni d u xi d
• For a vector field v(x)
u v d u( v n) d u v d
• Green’s identity
u v d uv n d u2v d
20
Example: Divergence Theorem
• S: unit sphere (x2 + y2 + z2 = 1), F = 2xi + y2j + z2k
• Integrate S F n dS
S F n dS F d
2 (1 y z) d
2 d 2 y d 2 z d
2 d
8
3
21
1.3
22
Surface Traction (Stress)
F
• Surface traction (Stress) f1
F
f1
f5
(n)
t lim
A 0 A
– The surface traction depends on the unit f4
f2
normal direction n.
z f3
– Surface traction will change as n changes.
y
– unit = force per unit area (pressure) x
t (n) t1 e1 t2 e2 t3e3
23
Cartesian Stress Components
• Surface traction changes according to the direction of
the surface.
• Impossible to store stress information for all directions.
• Let’s store surface traction parallel to the three
coordinate directions.
• Surface traction in other directions can be calculated
from them.
• Consider the x-face of an infinitesimal cube
x
t (x)
t1(x) e1 t2(x) e2 + t3(x) e3
z
t (x)
11 e1 12 e2 + 13e3 13
z F
Normal Shear
11 12
stress stress y
x y 24
Stress Tensor
– First index is the face and the second index is its direction
– When two indices are the same, normal stress, otherwise shear
stress.
– Continuation for other surfaces.
– Total nine components
– Same stress components are defined for the negative planes.
31 32
• Sign convention z
13 23
z
sgn(11 ) sgn(n) sgn( Fx ) 12 21
11 22
sgn(12 ) sgn(n) sgn( Fy ) y
x y
25
Symmetry of Stress Tensor
– Stress tensor should be symmetric
9 components 6 components 21
– Equilibrium of the angular moment A B
y
M l(12 21 ) 0 12 l O x 12
12 21
– Similarly for all three directions: l
C D
12 21 , 23 32 , 13 31 21
11
– Let’s use vector notation: 11 12 13
22
Cartesian components 33 [ij ] 12 22 23
{ }
12
of stress tensor
13 23 33
23
13 26
Stress in Arbitrary Plane
– If Cartesian stress components are known, it is possible to
determine the surface traction acting on any plane.
– Consider a plane whose normal is n.
– Surface area (ABC = A) y
B
PAB An3 ; PBC An1 ; PAC An2
n
– The surface traction 31 33 t(n)
13
11 32
t (n)
t1( n) e1 t2( n) e2 t3( n) e3
12 P 23 A x
21
– Force balance 22
z C
1 1 A 11An1 21An2 31An3 0
F t (n)
t(n) n t(n) n
– stress tensor; completely characterize the state of stress at a
point
• Cauchy’s Lemma
– the surface tractions acting on opposite sides of the same surface
are equal in magnitude and opposite in direction
t ( n ) t ( n)
28
Projected Stresses
• Normal stress (n) t n n n n ijnn
i j
n 2
• Shear stress (n) t 2 (n) (n) t n n(n)
• Principal stresses t n / /n 1 , 2 , 3
• Mean stress (hydrostatic pressure)
1 1
p m tr() (11 22 33 )
3 3
• Stress deviator
s m 1 Idev : Iijkl 31 (ik jl il jk )
11 m 12 13
Rank-4 identity tensor
s 12 11 m 23
13 23 11 m Idev I 31 1 1
Rank-4 deviatoric identity tensor
Which stresses are frame indifferent?
29
Strain
• Strain: a measure of deformation
– Normal strain: change in length of a line segment
– Shear strain: change in angle between two perpendicular line
segments
• Displacement of P = (u, v, w)
• Displacement of Q & R
u u
uQ u x uR u y
x y
R'
v v
vQ v x vR v y
x y Q'
w w
P'(x+u,y+v,z+w)
wQ w x
R
wR w y
x y y y
x
P(x,y,z) Q
x
z
30
Strain
– Strain is defined as the elongation per unit length
uy
y
P x ux P
ux y
/2 – g12
q2 ~ tan q2
y P
q1 uy
x
– Shear strain (change of angle)
uy ux uy ux
g12 q1 q2 lim lim
x 0 x y 0 y x y
1 1 uy ux
12 g12
2
2 x y
– Positive when the angle between two positive (or two negative)
faces is reduced and negative when the angle is increased.
– Valid for small deformation
32
Strain Tensor
• Strain Tensor
ijei ej
11 12 13
• Cartesian Components [ij ] 12 22 23
13 23 33
• Vector notation
11 11
22 22
33 33
{}
212 g12
223 g23
213 g13
33
Volumetric and Deviatoric Strain
• Volumetric strain (from small strain assumption)
V V0
V (1 11 )(1 22 )(1 33 ) 1 11 22 33
V0
V 11 22 33 kk
• Deviatoric strain x3
Ultimate
Fracture
stress
Yield stress
Proportional
limit Young’s
modulus
Strain Necking
hardening
35
Generalized Hooke’s Law
• Linear elastic material D : , ij Dijklkl
– In general, Dijkl has 81 components
– Due to symmetry in ij, Dijkl = Djikl
– Due to symmetry in kl, Dijkl = Dijlk 21 independent coeff
– from definition of strain energy, Dijkl = Dklij
• Isotropic material (no directional dependence)
– Most general 4-th order isotropic tensor
36
Generalized Hooke’s Law cont.
• Stress-strain relation
ij Dijklkl [ijkl (ik jl il jk )]kl kk ij 2ij
m ( 23 )kk Kv
Bulk modulus
– Substitute K 23 so that we can separate volumetric part
σ K1 1 2Idev : ε
Deviatoric part
e Idev :
Volumetric part Deviatoric strain
σ Kv 1 2e s Idev :
σ m 1 s Deviatoric stress
39
3D Solid Element cont.
• Elasticity matrix 1
2 1 1 0 0 0
31 23 3
1 3 3 3
1 0 0 0
D K1 1 2Idev 1 1 2 0 0 0
1
1 Idev 3 3 3
0 0 0
0 0 0 1
2
• Relation b/w 0 0 0 0 1
0 2 0
Lame’s constants
0 0 0 21
0 0 0
and Young’s modulus
and Poisson’s ratio 2 0 0 0
2 0 0 0
(3 2)
, E
2( ) 2 0 0 0
D
E E 0 0 0 0 0
,
(1 )(1 2) 2(1 ) 0 0 0 0 0
0 0 0 0 0
40
Plane Stress
• thin plate–like components parallel to the xy–plane
• the plate is subjected to forces in its plane only
• 13 = 23 = 33 = 0
11 1 0 11
E
{ } 22 2 1 0 22
1 0 0 1 (1 ) g
12 2 12
41
Plane Strain
• the strains with a z subscript are all equal to zero
• deformation in the z–direction is constrained, (i.e., u3 = 0)
• 13 = 23 = 33 = 0
• can be used if the structure is infinitely long in the z–
direction
11 1 0 11
E
{ } 22 1 0 22
(1 )(1 2) 0 0 1 g
12 2 12
• 13 = 23 = 0
E
33
(1 )(1 2)
11 22
42
1.4
MECHANICS OF
CONTINUOUS BODIES
43
Balance of Linear Momentum
• Balance of linear momentum
44
Balance of Linear Momentum cont
• Balance of linear momentum
( fb a) d n d d
Divergence Thm
[ ( fb a)] d 0
( fb a) 0
– For a static problem
f b 0 ij,i fjb 0
x fb d x t n d x a d
T ij ji
45
Boundary-Valued Problem
• We want to determine the state of a body in equilibrium
• The equilibrium state (solution) of the body must satisfy
– local momentum balance equation
– boundary conditions
• Strong form of BVP
X
– Given body force fb, and traction t
on the boundary, find u such that fb
X3
fb 0 (1)
e3
and e1 n
e2 X2
u0 on h essential BC (2) X1 t
t n on s natural BC (3)
• Solution space
DA u [C2 ()]3 | u 0 on x h , n t on x s 46
Boundary-Valued Problem cont.
• How to solve BVP
– To solve the strong form, we want to construct trial solutions that
automatically satisfy a part of BVP and find the solution that
satisfy remaining conditions.
– Statically admissible stress field: satisfy (1) and (3)
– Kinematically admissible displacement field: satisfy (2) and have
piecewise continuous first partial derivative
– Admissible stress field is difficult to construct. Thus, admissible
displacement field is used often
47
Principle of Minimum Potential Energy (PMPE)
• Deformable bodies generate internal forces by
deformation against externally applied forces
• Equilibrium: balance between internal and external forces
• For elastic materials, the concept of force equilibrium can
be extended to energy balance
• Strain energy: stored energy due to deformation
(corresponding to internal force)
1
U( u)
2
( u) : ( u) d ( u) D : ( u)
Linear elastic material
W( u) u fb d s u t d.
( u) U( u) W( u) x1
1
( u) : ( u) d u fb d s u t d.
2
49
PMPE cont.
• PMPE: for all displacements that satisfy the boundary
conditions, known as kinematically admissible
displacements, those which satisfy the boundary-valued
problem make the total potential energy stationary on DA
• But, the potential energy is well defined in the space of
kinematically admissible displacements
Z u [H1 ()]3 | u 0 on x h ,
H1: first-order derivatives are integrable
u u u V u Z
Z u u [H1 ()]3, u h
0
– Space Z only includes homogeneous
essential BCs In the literature, u is often used instead of ū
• Property of variation
du d(u)
dx dx 52
PMPE As a Variation
• Necessary condition for minimum PE
– Stationary condition <--> first variation = 0
1 d
( u; u ) lim [( u u ) ( u)] ( u u ) 0
0 d 0
for all u Z
• Variation of strain energy
u d u u u
x d x 0 x
( u) ( u ) D :
( u ) : D : ( u) d
a( u, u ) Energy bilinear form
53
PMPE As a Variation cont.
• Variation of work done by applied loads
W ( fb ) u d
– Integration-by-parts
b
ij j ,i ij j,i
( u ) u d j uj d
f
– Divergence Thm
niijuj d ijuj,i d fjbuj d
57
Principle of Virtual Work cont
• Since ij is symmetric
1 ui uj
ijuj,i ijsym(uj,i ) ij ij sym(ui,j ) ij
2 Xj Xi
• Weak Form of BVP
a( u, u ) ( u ) u Z [K]{ d} {F }
FE equation
– Energy form: a( u, u ) : d
– Load form: (u ) u fb d s u t d
58
Example – Heat Transfer Problem
• Steady-State Differential Equation
T = T0
T k T
k
x x x
y y
y Q 0 domain A ST
• Boundary conditions qn Sq Q
T T0 on ST
dT dT
qn nxkx dx nyky dy on Sq n = {nx, ny}T
• Space of kinematically admissible temperature
Z T H1 () T( x) 0, x ST
• Multiply by virtual temperature, integrate by part, and
apply boundary conditions
T T T T
x x x y y y
k k d
TQ d S Tqn dSq,
q
T Z
59
Example – Beam Problem
• Governing DE f(x)
d4 v
EI 4
f(x), x [0, L] L
dx x
61
1.5
62
Finite Element Approximation
• Difficult to solve a variational equation analytically
• Approximate solution n
– Linear combination of trial functions u(x) cifi (x)
– Smoothness & accuracy depend on i1
the choice of trial functions
– If the approximate solution is expressed in the entire domain, it is
difficult to satisfy kinematically admissible conditions
• Finite element approximation
– Approximate solution in simple sub-domains (elements)
– Simple trial functions (low-order polynomials) within an element
– Kinematically admissible conditions only for elements on the
boundary u(x)
Nodes Approximate
solution
Piecewise-
x
linear
approximation
Finite elements
Exact solution 63
Finite Elements
• Types of finite elements
1D 2D 3D
One element
64
Trial Solution
– Solution within an element is approximated using simple polynomials.
1 2 n1 n
1 2 3 n1 n n+1
xi xi+1
li
– i-th element is composed of two nodes: xi and xi+1. Since two
unknowns are involved, linear polynomial can be used:
65
Trial Solution cont.
– Substitute two nodal values
u(xi ) ui a0 a1xi
u(xi1 ) ui1 a0 a1xi1
– Express a0 and a1 in terms of ui and ui+1. Then, the solution is
approximated by
xi1 x x xi
u(x) (e)
ui (e)
ui1
L L
N1 (x) N2 (x)
– Solution for Element e:
66
Trial Solution cont.
• Observations
– Solution u(x) is interpolated using its nodal values ui and ui+1.
– N1(x) = 1 at node xi, and =0 at node xi+1.
N1(x) N2(x)
xi xi+1
67
1D Finite Elements
2
• 1D BVP d u p(x) 0, 0 x 1s
2
dx
u(0) 0
du Boundary conditions
(1) 0
dx Space of kinematically
admissible displacements
1 d2u
• Use PVW 0 2 p u dx 0
Z u H(1) [0,1] u(0) 0
dx
• Integration-by-parts
1
du du du
1 1
u dx pu dx
dx 0
0 dx dx 0
68
1D Interpolation Functions
• Finite element approximation for one element (e) at a time
u(e) (x) uN
i 1 (x) u N
i1 2 (x) N (e)
d(e)
(e) ui
d N(e) N1 N2
ui1
u(e) (xi ) ui
• Satisfies interpolation condition
u(e) (xi1 ) ui1
• Interpolation of displacement variation (same with u)
u (e) (x) uN
i 1 (x) u N
i1 2 (x) N (e)
d (e)
• Derivative of u(x)
72
Example
• Use three equal-length elements
d2u
2
x 0, 0 x 1 u(0) 0, u(1) 0
dx
• All elements have the same coefficient matrix
(e) 1 1 1 3 3
k
22 L(e) 1 1 3 3 , (e 1,2,3)
• RHS (p(x) = x)
73
Example cont.
• RHS cont. f1(1) 1 1
(2)
f2 1 4
(3)
f3 1 7
(1) , (2) , (3)
f2 54 2 f3 54 5 f
4 54 8
• Assembly
ìï 1 du ü
ïï - (0) ïïï
ïï 54 dx ïï Element 1
é 3 - 3 0 ì ü
0 ùï u1 ï ï 2 ïï
ê úïï ïï ïï 4 Element 2
ê- 3 3 + 3 - 3 0 úïï u2 ïï ïï 54 + 54 ïïï Element 3
ê úí ý = í ý
ê0 - 3 3+ 3 ú ï ï
- 3 ï u3 ï ï 7ï 5 ïï
ê úï ï ï + ï
êë 0 0 - 3 ú ï ï ï
3 ûïî u4 ïþ ï 54 54 ïï
ïï 8 du ïï
ïï + (1) ïï
ïî 54 dx ïþ
• Apply boundary conditions
– Deleting 1st and 4th rows and columns
4
6 3 u2 1 1 u2 81
3 6 u 9 2 5
3 u3 81
74
EXAMPLE cont.
• Approximate solution
4 1
x, 0x
27 3
0.08
u-approx.
u-exact
4 1 1 1 2
u(x) x , x
0.06
81 27 3 3 3
u(x)
0.04
5 5 2 2
x , x1
0.02
81 27 3 3 0
0 0.2 0.4 0.6 0.8 1
x
• Exact solution
1
u(x) x 1 x2
6
– Three element solutions are poor
– Need more elements
75
3D Solid Element
• Isoparametric mapping
– Build interpolation functions on the reference element
– Jacobian: mapping relation between physical and reference elem.
• Interpolation and mapping
8 8
u(x) NI (x)uI x( x ) NI (x)xI
Same for mapping
and interpolation
I 1 I 1
1
NI (x) (1 xxI )(1 I )(1 zz I )
8
z
x8 x7 (–1, –1,1) (–1,1,1)
x5 (1, –1,1)
(1,1,1)
x6
x4 x3 (–1,1,–1)
x1 (1, –1,–1)
x3
(1,1,–1)
x2 x
x2
x1 (a) Finite Element (b) Reference Element
76
3D Solid Element cont.
• Jacobian matrix
8
dx dNI (x) J : Jacobian
J33 xI
dx I 1 dx
x1 x1 x1
• Derivatives of shape functions x z
NI NI NI NI NI NI x2 x2 x2
x z x1 x2 x3 x z
x3 x3 x3
NI NI x z
J
x x
NI NI
J 1
x x
– Jacobian should not be zero anywhere in the element
– Zero or negative Jacobian: mapping is invalid (bad element shape)
77
3D Solid Element cont.
• Displacement-strain relation NI,1 0 0
8
0 N 0
BI uI
I,2
( u) 0 0 NI,3
I 1 BI
8 NI,2 NI,1 0
( u ) BI uI 0 NI,3 NI,2
I 1 N 0 NI,1
I,3
Ni
NI,i
xi
78
3D Solid Element cont.
• Transformation of integration domain
1 1 1
d 1 1 1 J dxddz
• Energy form
8 8
1 1 1 BT DB J dxddz u { d }T [k]{ d}
a( u, u ) uIT
1 1 1 I J J
I 1 J 1
• Load form
8
T 1 1 1
(u )
uI
1 1 1
NI (x)fb J dxddz { d }T { f }
I 1
{ d }T [k]{ d} { d }T { f }, { d } Z h
79
Numerical Integration
• For bar and beam, analytical integration is possible
• For plate and solid, analytical integration is difficult, if
not impossible
• Gauss quadrature is most popular in FEM due to simplicity
and accuracy
• 1D Gauss quadrature
NG
1
1 f(x) dx
i1
wif(xi )
– NG: No. of integ. points; xi: integ. point; wi: integ. weight
– xi and wi are chosen so that the integration is exact
for (2NG – 1)-order polynomial
– Works well for smooth function
– Integration domain is [-1, 1]
80
Numerical Integration cont.
• Multi-dimensions
NG NG
1 1
1 1 f(x, ) dxd
i1 j1
wiwjf(xi, j )
NG NG NG
1 1 1
1 1 1 f(x, , z) dxddz wiwjwk f(xi, j, zk )
i1 j1 k 1
Integration
NG Weights (wi)
Points (xi)
1 0.0 2.0
2 .5773502692 1.0 x
.7745966692 .5555555556
3
0.0 .8888888889 (a) 11
.8611363116 .3478546451
4
.3399810436 .6521451549
.9061798459 .2369268851 x x
5 .5384693101 .4786286705
0.0 .5688888889 (b) 22 (c) 33
81
82