Professional Documents
Culture Documents
Lecture 37: Galerkin FEM Galerkin FEM
Lecture 37: Galerkin FEM Galerkin FEM
Lecture 37: Galerkin FEM Galerkin FEM
Lecture 37
Galerkin FEM
Course Coordinator:
Course Coordinator:
Dr. Suresh A. Kartha,
Associate Professor,
Department of Civil Engineering,
IIT Guwahati.
In the last class, we started the discussion on Galerkin FEM.
We were considering the boundary-value ODE
d2y
2
+ Qy = F ; with appropriate BCs
dx
I a nutshell,
In t h ll the
th procedure
d is
i
i) Discretise the global solution domain D( x) into elements. There
can be I − nodes and I − 1 elements.
ii) Approximate y ( x) ≈ y ( x) = combinations of interpolating functions.
d2y
e R( x) = 2 + Qy − F
iii) Substitute y ( x) in the expression for residual ii.e.
dx
iv) The weighted integral is to be evaluated I = ∫ W ( x) R ( x)dx
v) Determine element equations for each element.
vi) Assemble element equations to form system equations.
vii)
ii) Adjust
Adj t the
th system
t equations
ti b considering
by id i boundary
b d conditions.
diti
viii) Solve the adjusted system equation for the nodal values yi .
1) The Domain Discretisation
The domain D( x) discretised: I → nodes and I − 1 → elements.
d2y
The global solution of 2
+ Qy = F is y ( x).
dx
Let us approximate this global solution
y ( x) ≈ y ( x) = y (1) ( x) + y (2) ( x) + + y (i ) ( x) + + y ( I −1) ( x)
This means that y ( x) is sum of series of local interpolating polynomials
y (i ) ( x); i = 1, 2,3,… , I − 1. These local interpolating polynomials are valid
only within the element ' i ', elsewhere it is zero.
2) We write y ( i ) ( x) = yi N i( i ) ( x) + yi N ii+)1 ( x)
x − xi +1 ⎫
Recall N i(i ) ( x) = −
∆x (i ) ⎪⎪
⎬ Linear Shape functions
x − xi ⎪
N i +1 ( x) = − ( i )
(i )
∆x ⎪⎭
You can also use higher order shape functions as well.
You can see that the shape function N i( i ) ( x ) is valid only for element ' i ' and
elsewhere it is zero.
3) T
To use Galerkin
G l ki method
h d
b b
I ( y ( x)) = ∫ W j ( x) R( x)dx = ∫ W j ( x) [ y "+ Qy − F ] dx = 0
a a
1 ⎡ xi+1 xi +1 xi +1
⎤
i.e. ⎢ ∫ y 'dx − ∫ Qy ( x − xi +1 )dx + ∫ F ( x − xi +1 )dx ⎥ = 0
∆x (i ) ⎢⎣ xi xi xi ⎥⎦
( x − xi ) ( x − xi ) ⎤
xi +1
⎡ 1
Similarly, I ( y ( x)) = ∫
xi
⎢ − y '× ∆x ( i ) + Qy × ∆x ( i ) − F × ∆x ( i ) ⎥dx = 0
⎣ ⎦
1 ⎡ xi+1 xi +1 xi +1
⎤
or, ⎢ ∫ − y 'dx + ∫ Qy ( x − xi )dx − ∫ F ( x − xi )dx ⎥ = 0
∆x ( i )
⎢⎣ xi xi xi ⎥⎦
Using Q( x) and F ( x) as average values for each element
i Q (i ) ( x) andd F ( i ) ( x),
i.e. ) we gett
⎡ 1 ∆x (i )
⎤ ⎡ 1 ∆ x (i )
⎤ ∆x (i )
− yi ⎢ (i ) − Q (i ) +
⎥ i +1 ⎢ ( i )
y + Q (i )
⎥ − F (i )
=0
⎣ ∆x 3 ⎦ ⎣ ∆x 6 ⎦ 2
⎡ 1 ( i ) ∆x
(i )
⎤ ⎡ 1 ( i ) ∆x
(i )
⎤ ( i ) ∆x
(i )
yi ⎢ (i ) + Q ⎥ − yi +1 ⎢ ( i ) − Q ⎥−F =0
⎣ ∆x 6 ⎦ ⎣ ∆x 3 ⎦ 2
These are the two element equations in algebraic form.
Assemble these element equations
eq ations for all the elements starting from
element 1.