Professional Documents
Culture Documents
weighted-residual-formulation
weighted-residual-formulation
Prof. P. Seshu 1
What is FEM
• General technique for solving partial differential equations
Prof. P. Seshu 2
Contd…
• Each element has a function which is assumed to satisfy the
required differential equations over the volume of the element
• The more elements you have the better the answers (usually)
Prof. P. Seshu 3
Finite Element Formulation
• Finite element analysis is versatile because of the common
features in the mathematical formulation of seemingly different
physical problems.
Prof. P. Seshu 4
Finite Element Formulation Starting from a
Governing Differential Equation
Prof. P. Seshu 5
WEIGHTED RESIDUAL METHOD
Prof. P. Seshu 6
WEIGHTED RESIDUAL METHOD
Prof. P. Seshu 7
Example 1
2
d f df
2
p0 f (0) 0 ( L) 0
dx dx
Let f ( x ) c0 c1 x c2 x 2
df d2 f
c1 2c2 x 2
2c2
dx dx
If c2 = p/2, the assumed
Substitute solution satisfies the d.e and
Re sidual , R 2c2 p 0 b.c
d 4v
EI 4
q0 0
dx
d 2v
(0) 0
v (0) = 0, dx 2
d 2v
v (L) = 0, 2
( L) 0
dx
Prof. P. Seshu 9
WEIGHTED RESIDUAL METHOD
Step 1 – Assume a trial solution:
Prof. P. Seshu 10
WR Method - Point Collocation Technique
Residual might be unduly large at some other points within the domain.
Therefore residual must be “minimised” over the entire domain rather
than setting it identically zero at only selected few points.
Prof. P. Seshu 11
Point Collocation Method
Therefore
2 q0 L4
c1 =
4 EI
Resulting trial solution is -
v̂ (x) = 2 q0 L4 x
sin
4
EI L
Prof. P. Seshu 12
Point Collocation Technique
Transverse Displacement
v̂
Prof. P. Seshu 13
Two – term trial solution
WE CAN IMPROVE OUR TRIAL SOLUTION BY ADDING ONE MORE TERM TO THE SINE
SERIES I.E.,
DOMAIN RESIDUAL
Prof. P. Seshu 14
Prof. P. Seshu 15
Key Idea – 1: Solution by Weighted Residual Technique
Prof. P. Seshu 16
Galerkin W-R Method
Prof. P. Seshu 17
Galerkin W-R Method
x x
4
L L
dx
2
EIc1 sin q sin dx
L 0 L 0 L
Therefore, c1 = 0.013071q0L4 / EI.
q0 L4 x
vˆ( x) 0.013071 sin
EI L
Prof. P. Seshu 18
Galerkin Weighted residual solution vs exact solution
14
SOM
12
Galerkin Solution
10
deflection
8
6
4
2
0
0 0.2 0.4 0.6 0.8 1
normalised X location
The error in v(x) at the mid–span is just 0.38%.
Prof. P. Seshu 19
General Weighted Residual Technique
where (x) and Ni(x) are fully known functions of x, pre–selected such
that the boundary conditions are satisfied by f(x),
Prof. P. Seshu 20
Key Idea – 2: Weak Form of W-R statement
• By carrying out integration by parts of general WR
statement, reduce the continuity requirement on the trial
function assumed in the solution.
2
• Example : Let Governing DE be: K1 u2 K 2 x 0
d
dx
with BCs u (0) = 0, du =0
dx x L
• Let û be the trial solution assumed. Substituting in DE,
d 2uˆ
Rd K1 2 K 2 x
dx
Prof. P. Seshu 21
Weak Form of W-R statement
L d 2uˆ
0 W ( x) K1 dx 2 K 2 x dx 0
L d 2uˆ L
0 W ( x) K1 dx2 dx 0 W ( x) K 2 x dx 0
L duˆ L
0 W ( x) d K1 dx 0 W ( x) K 2 x dx 0
We Know that, integration by parts,
uv
u dv v du
(uv ) (uv) v du
Prof. P. Seshu 22
Weak Form of W-R statement
• By performing integration by parts for our problem,
L
duˆ L duˆ dW L
W ( x) K1 dx
0
0 K1
dx dx
dx
0
W ( x) K 2 x dx 0
Prof. P. Seshu 23
Weak Form of W-R statement
Equivalent Representation of a Problem Statement
Differential Weighted Residual Weak form
equation Statement
d 2u d 2uˆ L duˆ dW L
dx W K 2 x dx
L
K1 2 K 2 x 0 W 1 2
K K 2 dx 0
x K1
dx 0
dx
0 dx dx 0
Prof. P. Seshu 24
Weak Form of W-R statement
• Then we have
dû/dx = c1 + 2c2 x ,
W1 = x , W2 = x2 ,
dW1/dx = 1, dW2/dx = 2x
Prof. P. Seshu 25
Weak Form of W-R statement
L L
0
( K1 ) (c1 2c2 x) (1) dx 0
( x) ( K 2 x) dx
K1 (c1L c2 L2 ) K 2 L3 / 3
Prof. P. Seshu 26
Weak Form of W-R statement
c1 L2 4c2 L3 K 2 L4
K1
3 4
Prof. P. Seshu 27
Weak Form of W-R statement
7 K 2 L2 K2 L
c1 , c2
12 K1 4 K1
K2 L
uˆ ( x) (7 xL 3 x 2 )
12 K1
Prof. P. Seshu 28
Comparison of DE, WR & Weak forms
• If û(x) is the exact solution, then the weighted residual
form is implicitly satisfied for any and every weighting
function W(x).
Prof. P. Seshu 29
Comparison of DE, WR & Weak forms
Prof. P. Seshu 30
Comments on Weak Form (WF)
• In WF, continuity demand on trial function u has gone down
and that on the weighting function W has increased.
Prof. P. Seshu 31
Comments on Weak Form (WF)
• Only essential BCs have to be satisfied by the trial solution
of the WF equation as natural BCs are taken into account
while forming WF.
Prof. P. Seshu 32
Key Idea 3: Piecewise Approximation
• Trial function chosen was a single composite function, valid over the
entire solution domain.
Prof. P. Seshu 33
f(x)
f(x)
f(x)
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Prof. P. Seshu 34
Approximation Using One Straight Line Segment
f(x) and one-line segment
f(x)
f(x)
1
one-line
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Prof. P. Seshu 35
Approximation Using Two Line Segments
Two-line segment approximation
f(x)
f(x)
0.5
tw o-line
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Prof. P. Seshu 36
Approximation Using Four Line Segments
Four-line segment approximation
f(x)
f(x)
0.5
four-line
0
0 0.5 1
Prof. P. Seshu 37
Approximation Using Eight Line Segments
eight line segment approximatuion
f(x)
f(x)
0.5
eight-line
0
0 0.5 1
x
Prof. P. Seshu 38
Two Quadratic Segment Approximation
Two-quadratic segment approximation
f(x)
f(x)
0.5
tw o-quadratic
0
0 0.5 1
Prof. P. Seshu 39
Piecewise Approximation
Prof. P. Seshu 40
Piecewise Approximation - Use of local coordinate frames
We define a local
coordinate x with
the origin fixed at
the left end of
each sub–domain.
Prof. P. Seshu 41
Piecewise Approximation
Two line segment approximation (with = L/2 = 1/2)
f(x) [ 1 – (x/) ] f(0) + [ x/ ] f(0.5) (0 < x < )
f(x) [ 1 – (x/) ] f(0.5) + [ x/ ] f(1) (0 < x < )
Prof. P. Seshu 42
Piecewise Approximation – Shape Functions
Prof. P. Seshu 43
Piecewise Approximation – Shape Functions
Contribution of a given fk to
the value of the function
at any point P within the
domain 0<X<L.
Prof. P. Seshu 44
Piecewise Curve Fit – One Dimensional Case
Actual
variation
Shape f5
f6 f7
Function f4 f8 f9 f10
f3 f11
f2
f1
1 2 3 4 5 6 7 8 9 10
Whole Domain
Prof. P. Seshu 45
Piecewise Curve Fit – Two Dimensional Case
Whole Domain
Prof. P. Seshu 46
Evaluation of Weighted Residual
W ( x) R ( x) dx
L l
0
Wi ( X ) Rd ( X ) dX
1
0 i d
Prof. P. Seshu 47
Essence of Finite element method
Prof. P. Seshu 48
Finite Element Method
Prof. P. Seshu 49
Finite Element Formulation
Prof. P. Seshu 50
Finite Element Formulation
Example
d 2T P
k 2
q h(T T )
dx Ac
L d 2T P
0 W k dx2 q Ac h(T T ) dx 0
Prof. P. Seshu 51
Finite Element Formulation
P
L
dT L dW dT L L
Wk dx 0 k dx dx dx 0 Wq dx 0 W A h(T T ) dx 0
0 c
P
L
L dW dT L L L P dT
0 k dx dx dx 0 W Ac hT dx 0 Wq dx 0 W Ac h(T ) dx Wk
dx 0
Prof. P. Seshu 52
Finite Element Formulation
The weak form, for a typical mesh of "n" finite elements, can be written as
n
dW dT
n
P P dT
hT dx W q
0 k dx W hT dx Wk
k 1 dx dx 0 Ac k 1
0
Ac dx 0
Prof. P. Seshu 53
Finite Element Formulation
x x
T ( x) 1 k
T Tk 1 x dW1 1
W1 1 ,
dx
dT Tk 1 Tk x dW2 1
W2 ,
dx dx
Prof. P. Seshu 54
Finite Element Formulation
x P x x Ph
2 Tk Tk 1
0 Ac k k 1 dx
1 h 1 T T
6 Ac
Prof. P. Seshu 55
Finite Element Formulation
With W2,
x P x x Ph
Tk 2 Tk 1
0 Ac h 1 Tk Tk 1 dx = 6 Ac
Ph 2 1 Tk
6 Ac 1 2 Tk 1
Prof. P. Seshu 56
Finite Element Formulation
P / 2 Q0
q0 hT
Ac / 2
Q
Prof. P. Seshu 57
Example: Temperature distribution in a pin–fin
1 1 0 2 1 0
200 T1
( ) (0.001) (20) (0.025)
1 2 1 1 4 1 T2
0.025 (6) ( ) (0.0005) 2
T
0 1 1 0 1 2 3
0.0125 Qwall
( ) (0.001) (20)
(30) 0.025
0
( ) (0.0005) 2
0.0125 Q
tip
Prof. P. Seshu 59
Pin Fin Example
Four element solution
1 1 0 0 0 2 1 0 0 0
T1
1 2 1 0 0 1 4 1 0 0
( ) (0.001) (20) (0.0125) T2
200 0 1 2 1 0 0 1 4 1 0 T3
0.0125 (6) ( ) (0.0005) 2 T
0 0 1 2 1 0 0 1 4 1 4
T5
0 0 0 1 1 0 0 0 1 2
0.00625 Qwall
0.0125
0
( ) (0.001) (20)
(30) 0.0125 0
( ) (0.0005) 2 0.0125 0
0.00625 Qtip
Prof. P. Seshu 60
Pin Fin Example
Exact solution
cosh m ( L x)
T ( x) T (Twall T )
cosh mL
hP
m
k Ac
Prof. P. Seshu 61
Pin Fin Example - Comparison of exact and Finite Element
solution
150
100
50
0
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05
axial location (m )
Prof. P. Seshu 62
Comparison of exact and 10 element solution
Ten element
Temperature (C)
0
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05
Axial Location
Prof. P. Seshu 63
Finite Element Formulation
between the field variable and the weighting function and develop the
• Define finite element i.e. geometry of the element, its nodes, nodal d.o.f.
Prof. P. Seshu 64
Finite Element Formulation
• For a given topology of finite element mesh, build–up the system equations
by assembling together element level equations.
• Substitute the prescribed boundary conditions and solve for the unknowns.
Prof. P. Seshu 65