Professional Documents
Culture Documents
01introductiontothefiniteelementmethod Maged 100714091834 Phpapp02
01introductiontothefiniteelementmethod Maged 100714091834 Phpapp02
Element Method
Spring 2010
L( f ( x ) ) = g ( x )
Where L(.) is a linear differential operator.
An approximate solution maybe of the form:
n
f ( x ) = ai i ( x )
i =1
a L( ( x ) ) g ( x ) = R( x )
i =1
i i
Residue
R( x j ) = 0
R( x j ) =
a L( ( x ) ) F ( x ) = 0
n
i i j j
i =1
2u
EA 2 + F ( x ) = 0
x
n
d 2 i ( x )
EA ai 2
+ F ( x ) = R( x ) Applying the collocation method
i =1 dx
d 2 i ( x j )
+ F(xj ) = 0
n
EA ai 2
i =1 dx
k11 k 21 ... k n1 a1 F ( x1 )
k k 22 ... k n 2 a2 F ( x )
12 2 d 2 i ( x )
= kij = EA
dx 2 x= x j
F ( xn )
k1n k 2 n ... k nn an
R( x ) dx = 0
xj
n x j +1 x j +1
a L( ( x ) ) dx g ( x ) dx = 0
i =1
i i
xj xj
n
d 2 i ( x )
EA ai 2
+ F ( x ) = R( x ) Applying the subdomain method
i =1 dx
d i ( x)
n x j +1 2 x j +1
EA ai 2
dx = F ( x ) dx
i =1 xj
dx xj
x j+1 d 2 ( x ) x j+1
EA i
2
dx { ai } = F ( x ) dx
x j dx x j
R( x ) ( x ) dx = 0
Domain
j
a ( x ) L( ( x ) ) dx ( x ) g ( x ) dx = 0
i =1
i j i j
Domain Domain
n
d 2 i ( x )
EA ai 2
+ F ( x ) = R( x ) Applying Galerkin method
i =1 dx
n
d 2 i ( x )
EA ai j ( x ) 2
dx = j ( x ) F ( x ) dx
i =1 Domain
dx Domain
d 2 i ( x )
EA j ( x ) 2
dx { ai } = j ( x ) F ( x ) dx
Domain dx Domain
d 2 i ( x )
j ( x) 2
dx
Domain
dx
d i ( x )
l
d j ( x ) d i ( x )
= j ( x) dx
!Zero dx 0 Domain dx dx
2
l 2l f 16l 2 fl 2
EA a1 = a1 = 0.52
2l 2 EA 3
EA
x 3 13 x
w( x) = + 0 < x < 1/ 2
12 60
x3 x 2 7 x 3
= + + 1/ 2 < x < 1
12 4 15 10
Applying the
Galerkin method:
d 2 i ( x )
a j ( x ) 2
ui + c j ( x ) i ( x ) ui j ( x ) f dx = 0
Domain
dx
d 1 ( x ) 1 d 2 ( x ) 1
And: = , =
dx he dx he
Which gives:
a che fhe
+ u1 =0
he 3 2
1. Connecting Elements
2. Boundary Conditions
3. Solving Equations
Introduction to the Finite Element Method
Dr. Mohammad Tawfik
Objectives
Learn how the finite element model for the
whole domain is assembled
Learn how to apply boundary conditions
Solving the system of linear equations
x he 2 dx dx u j f i dx = 0
1
Introduction to the Finite Element Method
Dr. Mohammad Tawfik
Performing Integration:
x2
EA d j d i EA 1 1 u1e fhe 1
x he 2 dx dx u j f i dx = 0 e =
he 1 1 u 2 2 1
1
EA 1 1 u12 f12
2 = 2
he 1 1 u 2 f 2
1 1 0 u1 1 R
EA fhe
1 2 1 u = 2 + 0
he 2
2
0 1 1 u3 1 0
R = 2 fhe
2
K Al = dx =
120 x1 1 1 120 1 1
1 0 1 0 u 1 F 1
0
EA 0 0 0 v1 0
=
h 1 0 1 0 u 2 F 2
0 0 0 0 v 2 0
Finally: [ K ]{ } = { F }
Introduction to the Finite Element Method
Dr. Mohammad Tawfik
Recall
[ K ] = [T ]T [ K ][T ]
:Where
1 0 1 0
Cos ( ) Sin( ) 0 0
0 0
Sin( )
[T ] =
Cos ( ) 0 0 [ ]
K =
EA
h 1
0 0
0 1 0
0 0 Cos ( ) Sin( )
0 0 Sin( ) Cos ( ) 0 0 0 0
1 1
Cos 2
( ) Sin( 2 ) Cos ( )
2
Sin( 2 )
2 2
1 1
EA 2 Sin( 2 ) Sin ( ) Sin( 2 ) Sin ( )
2 2
[K] = 1
2
1
h Cos 2 ( ) Sin( 2 ) Cos 2 ( ) Sin( 2 )
2 2
1 1
Sin( 2 ) Sin ( ) Sin( 2 ) Sin ( )
2 2
2 2
EA 0.3536 0.3536 U 3 P
=
L 0.3536 1.3536 V3 2 P
Continue! (as before)
Introduction to the Finite Element Method
Dr. Mohammad Tawfik
Results
PL 3PL
U 3 = 5.828 , V3 =
EA EA
F1x = P, F1 y = P,
F2 x = 0, F2 y = 3P
u1 Cos ( ) Sin( ) 0 0 u1
v1 Sin( ) Cos ( ) 0 0 v1
=
u 2 0 0 Cos ( ) Sin( ) u2
v 2 0 0
Sin( ) Cos ( ) v2
3P P
(1)
= 0, ( 2)
= , ( 3)
= 2
A A
w( x ) = 1 x x 2
x 3
{ a}
w( x ) = H ( x ) { a}
dw( x ) dH ( x )
= { a} = H x ( x ) { a} = 0 1 2 x 3x { a}
2
dx dx
w1 H ( 0 ) a1
w' H ( 0 ) a
1 x 2
= = [T ]{ a}
w2 H ( l ) a3
w'2 H x ( l ) a4
w( x ) = H ( x ) { a} = H ( x ) [T ]
1
{w } = N ( x ) {w }
e e
4
w( x ) = N i ( x ) wi
i =1
l2 l3
x 2 x3
+ 2
l l
0.6
0.4
N(x)
0.2
N2
0
0 0.2 0.4 0.6 0.8 N4 1
-0.2
-0.4
X
EI ( x )
2 2
wi F ( x) = R ( x)
i =1 dx dx
EI ( x ){ N } N dx{ w } = F ( x){ N xx } dx
e
xx xx
0 0
Beam Example
f ( x, y ) = a1 + a2 x + a3 y + a4 xy
x y xy
1 a b + ab
x xy
N ( x, y ) = { N ( x , y ) } = a ab
T
xy
ab
y xy
b ab
1 1
0.9 0.9
0.8 0.8
0.7 0.7
0.6 0.6
N1 0.5 N2 0.5
0.4 0.4
0.3 0.3
0.2 0.2
0.9 0.9
0.1 0.1
0.6 0.6
0 y 0 y
0.3 0.3
0 0.1 0 0.1
0.2 0.3 0.2 0.3
0.4 0.5 0 0.4 0.5 0
0.6 0.7 0.6 0.7
0.8 0.9 0.8 0.9
x 1 x 1
1 1
0.9 0.9
0.8 0.8
0.7 0.7
0.6 0.6
N3 0.5 N4 0.5
0.4 0.4
0.3 0.3
0.2 0.2
0.9 0.9
0.1 0.1
0.6 0.6
0 y 0 y
0.3 0.3
0 0.1 0 0.1
0.2 0.3 0.2 0.3
0.4 0.5 0 0.4 0.5 0
0.6 0.7 0.6 0.7
0.8 0.9 0.8 0.9
x 1 x 1
2 2
+ 2 =0
x 2
y
= i N i ( x, y ) = N ( x, y ) { }
4
e
i =1
= i N i ( x, y ) = N ( x, y ) { e }
4
i =1
Applying the Galerkin method and integrating by parts,
the element equation becomes
[{ N } N x + { }
y ] { }
y =0
e
x N N dA
Area
2( a 2 + b 2 ) a 2 2b 2 a2 b2 2a 2 + b 2
2( a 2 + b 2 )
2 2
1 a 2b 2 2a 2 + b 2 a b e
2
{ } = { 0}
6ab a 2 b 2 2a 2 + b 2 2( a 2 + b 2 ) a 2b
2 2
2
2 a 2
+ b 2
a 2 b2 a 2 2b 2 2( a + b )
2
1 5
2 6
3 9
4 8
10
11
12
1
Get the element matrix B 2
Element Node Number
For the jth node 3Number
1 2 3 4
4
Get its global number k 5 1 1 2 5 4
7
2 4 5 8 7
3 7 8 11 10
Get its global number n 8
4 2 3 6 5
9
Let Akn=Akn+Bjm 10 5 5 6 9 8
12
6 8 9 12 11