08 Chapter 5
08 Chapter 5
08 Chapter 5
1 5.1 Introduction
5.2 Finite E l e m e n t M e t h o d To Solve Parabolic Linear Partial
Differential Ekjuation Having One Space Variable
5.3 Finite E l e m e n t S o l u t i o n Of The Flow Of Electricity In The
T r a n s m i s s i o n Lines
5.4 Finite E l e m e n t S o l u t i o n Of The Heat C o n d u c t i o n Problem
5.5 Finite E l e m e n t M e t h o d To Solve Parabolic Linear Partial
Differential Ek[uation Having Two Space Variable
5.6 Finite E l e m e n t S o l u t i o n Of The Heat Flow In Thin
Rectangular Plate
5.7 Finite E l e m e n t M e t h o d To Solve Hyperbolic Linear Partial
Differential Equation Having One Space Variable
5.8 Finite E l e m e n t S o l u t i o n Of The Flow Of Electricity In The
T r a n s m i s s i o n Line
5.9 Finite E l e m e n t S o l u t i o n Of Vibrating String Problem
5.10 Finite E l e m e n t M e t h o d To Solve Hyperbolic Linear Partial
Differential Equation Having Two Space Variables
5.11 Finite E l e m e n t S o l u t i o n Of Vibrating Membrane Problem
5.12 Conclusion
255
5.1 INTRODUCTION:
256
C o m p u t e {u},^, u s i n g {uj^Ju},^,,...
T h u s , at the e n d of two-stage approximation, one
h a s a c o n t i n u o u s spatial solution at discrete interval of
time:
where c^=^
Re
subject to appropriate b o u n d a r y condition
u(0, t) = 0
u ( l , t) = 0 ...(5.2.1a)
a n d initial condition
u(x,0) = f(x) ; 0<x<l ...(5.2.1b)
We divide the region 0 < x < 1 into say, n equal s u b
intervals called elements. Let these be given by
Xo,Xi, X2, ,Xn. The elements are n u m b e r e d a s (1), (2),
(3), , (n) a n d h^ t h e length of the node from node e to
e+1. Let we have t h e solution on h a n d at time S A t at point
^05 X j , X 2 , , Xjj .
257
S e m i d i s c r e t e Finite E l e m e n t Model :
The semidiscrete formulation involves approximation of
the spatial variation of the d e p e n d e n t variable, which
follows essentially t h e s a m e steps a s described in section
(2.13). The first step involves t h e construction of t h e weak
form of t h e equation over a typical element.
Following the three - step procedure of constructing
t h e weak form of a differential equation, we c a n develop the
weak form of (5.2.1) over a n element. Integration by p a r t s is
u s e d on t h e first t e r m once a n d on t h e second t e r m twice to
distribute the spatial derivatives equally between the weight
function v a n d t h e d e p e n d e n t variable v :
f du
0 = f V dx
at dx V ax
e+1
Xe+1 nx
au 2 av au dx + au"
= J V + C - c
ax,
Xe
at dx dx
Xe+1
au 2 av au dx
= J V + C Q l V ( X e ) - Q2 v(Xe+i)
at dx dx
...(5.2.2a)
2 au
where Qi - - c —
5x_- I X f
2 au
Q2 = c — ...(5.2.2b)
dx_-•xe+l
Next, we assume that u is interpolated by an
expression of t h e form (5.1.1). Equation (5.1.1) implies t h a t ,
at a n y arbitrarily fixed time t > 0, t h e function u c a n be
a p p r o x i m a t e d by a linear combination of (//J, with Uj (t)
258
being the value of u at time t at the j * node of element
u(x,t3) = ZujCtJ^^JCx)
,..(5.2.3)
= i(upVJ(x) (s = l,2, ,)
j=i
t h e element Q®.
Substituting v = 4^i(x) a n d (5.1.1) into (5.2.2a), we
obtain
Xe+l ^
d^j ^ •
0 = J ¥i + c dx - Q i
r , dt
u=i J
dx u=i dt
n 1 1 du.-
=z ij
dt
- R
j=l
...(5.2.4)
In matrix form we have
[ K ] { u } + [ M ] {u} = { F } ..(5.2.4a)
where
Xe+l
Mij = \¥iW] dx
K , = T c ^ ^ ' ^ d x .(5.2.4b)
•J ^ dx dx
Fi = J ^ i f d x + Qi
Xe
259
T i m e Approximation :
Using the 6 family of approximation in section (2.12),
we write the equation (5.2.4a) a s set of linear adgebraic
e q u a t i o n s in matrix form.
[K] {uh.i ={F} ...(5.2.5a)
where
[K] = [M] + 6'At[K]
[F] = [[M]-(l-^)At[K]{u}, +At(^{FUi+(l-^){F}J
...(5.2.5b)
The above equation (5.2.5a) is u s e d to solve equation
(5.2.1).
Here At is time step. Equation (5.2.5) is valid for a
typical element. The assembly, t h e imposition of b o u n d a r y
condition, a n d the solution of the assembled equation are
t h e s a m e a s described before. The calculation of [K] a n d {F}
requires the knowledge of t h e initial conditions {u}o a n d t h e
time variations of {F}.
Now UQ a n d u^ are k n o w n d u e to t h e prescribed
boundary condition. The set of s i m u l t a n e o u s equation
c o n t a i n s only (n-1) u n k n o w n s . These (n-1) e q u a t i o n s in
(n-1) u n k n o w n s c a n be solved by a n y stamdard m e t h o d .
Once the value of u are k n o w n at (s + 1)*^ level, we c a n
proceed to c o m p u t e t h e next level (s+2) by repeating t h e
s a m e process.
The convergence a n d stability of C r a n k - Nicolson is
unconditionally stable for 6-Ml.
260
5.3 FINITE ELEMENT SOLUTION OF THE FLOW OF
ELECTRICITY IN THE TRANSMISSION LINES :
The problem is already d i s c u s s e d in c h a p t e r - 3 section
(3.2).
Let the telegraphic equation is
1
u< .(5.3.1)
RC u
XX
Let RC = c^ = At =
100 400
...(5.3.2)
Using boundary and initial condition and from
e q u a t i o n (5.2.5a) a n d (5.2.5b), we get
261
h (9At h
fiiAt
0 0 0 0 0 0 0 0
3 Rch 6 Rch
h (9At 2h 26111 h
0 0 0 0 0 0 0
6 Rch 3 Rch 6 Rch
h 2h lOM h OM.
0 0 0 0 0 0 0
6 Rch 3 Rch 6 Rch
h 2h 2(9At h (9At
0 0 0 0 0 0 0
6 Rch 3 Rch 6 Rch
h 2h 2<9At h OM
0 0 0 0 0 0 0
6 Rch 3 Rch 6 Rch
h (9At 2h 2<9At h 6'At
0 0 0 0 0 0 0
6 Rch 3 Rch 6 Rch
h 9AX 2h 29At h 6'At
0 0 0 0 0 0 0
6 Rch 3 Rch 6 Rch
h 6'At 2h 26'At h 6At
0 0 0 0 0 0 0
6 Rch 3 Rch 6 Rch
h 6'At 2h 26'At h 6'At
0 0 0 0 0 0 0
6 Rch 3 Rch 6 Rch
h 6'At 2h 26'At
0 0 0 0 0 0 0 0
6 Rch 3 Rch
262
h -f < +
h . ( -^)At
+ - Rch
1
u;+AtPo"
l-^)At 2h
—+ Rch u"
j"0 v3 !p,h JJ •
Rch IV6 fi Rch j ^ '
6
^2h -^)At^ ' h I(l-<9)At
I - f7l/\T
n+l —+ uf + u5 + u?+AtP,"
Ur
.n+1 u Rch V
2h
Rch
-^)At^
V 6 Rch j
n+l
u Rch j
l-^)At^
v3
f2h
Rch j '
l-^)At^
"
' h (l-^)At
Rch j ^ '
MO —+ u? u" + u^ + A t Pg"
Rch j .3 Rch j , ,6 Rch ,j
—+
l-^)At^
Uc
+.3 ii^Vs+f^+^i^^luro+Atp,"
u Rch J
l-^)At^ ^2h
Rch J ^ I6 Rch /i '" ^
Rch j + v 33
• + U9"
_V 6 Rch J'^'^^U Rch J^'i^^'^'«
for n = 0
take h = Re 0 = 0.5 At -
20 100 400
we get
2.516667 -2.49166 0 0 0 0 0 0 0 0 0
2.491666 5.033334 -2.49166 0 0 0 0 0 0 0 0
0 - 2.491666 5.033334 -2.491666 0 0 0 0 0 0 0
0 0 2.491666 5.033334- 2.49166^) 0 0 0 0 0 0
0 0 0 2.491666 5.033334 -2.491666 0 0 0 0 0
0 0 0 0 -2.491666 5.033334 -2.491666 0 0 0 0
0 0 0 0 0 -2.491666 5.033334-2.491666 0 0 0
0 0 0 0 0 0 2.491666 5.033334- 2.491666 0 0
0 0 0 0 0 0 0 - 2.4916665.033334 -2.491666 0
0 0 0 0 0 0 0 0 -2.491666 5.033334 -2.491666
0 0 0 0 0 0 0 0 0 - 2.491666 5.033334
263
[ur ~
2.483333) u;)+(2.508334) ul+AtPo
u| 2.508334) uj)+(4.966666) u|+(2.508334) u^2+^tP/
"^ 2.508334) u]+(4.966666) u^+(2.508334) u^+At P]
u^ 2.508334) u^2 + (4.966666)u^+(2.508334) U4+At P]
< 2.508334) u^ + (4.966666) u^ + (2.508334) u^ + At PJ
. u' > = 2.508334) u\ + (4.966666) u^ + (2.508334) u^ + At P5'
ui 2.508334) u^5 + (4.966666) u^ + (2.508334) u\ + At P^
ui 2.508334) u^6 + (4.966666) u\ + (2.508334) u^ + At P^
u^ 2.508334) u\ + (4.966666) u^ + (2.508334) u^ + At Pg^
u> 2.508334) u^ + (4.966666) u^ + (2.508334) UJQ + At P^
264
u.
-0.001837
u- -0.003634
U:
-0.005343
U4 -0.006916
-0.008318
-0.009513
u,
-0.010481
ui
-0.011188
Us
-0.011614
U(
-0.011764
U 10
265
Table (5.3.1)
Current distribution in the cable through Finite element
method
266
1.200000
4 - t = Q000
• - t = 1/400
t = 1/200;
t = 1/100
t = 1/80
0.000000
0.0 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50
Figure (5.3.1)
Current distribution in the cable through Finite element method
267
5.3 (A) DISCUSSION OF RESULTS :
Here table (5.3.2a) gives the comparison of finite
element solution of flow of electricity cable of transmission
line problem with spline solutions as well as exact solution
at t = l / 8 0 . Table (5.3.2b) and figure (5.3.2) represents the
error analysis. And from the figure (5.3.2), it is concluded
that spline solutions are closer than the finite element
solution in national conference on Recent
Developments in Fluid Dynamics at Jaipur [2010].
Hence spline solutions are more reliable and accurate.
Table (5.3.2(a))
Comparison of solution (at t = l / 8 0 )
268
Table (5.3.2(b))
Error analysis (at t = l / 8 0 )
269
0.000004O
0.0000035 1\
0.0000030
- • - UEXT-UFB/I
0.0000025
O • • - UEXT-USE
0.0000020
HI UEXT-USI
0.000001S
0.0000010
0.000000
0.0 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45
Figure (5.3.2)
Error analysis (at t = l / 8 0 )
270
5.4 FINITE ELEMENT SOLUTION O F T H E HEAT
CONDUCTION PROBLEM :
We solve this problem with s a m e p a r a m e t e r a n d initial
and b o u n d a r y condition a s we d i s c u s s e d in chapter-3
section (3.4).
Let the equation of h e a t flow is
5^
= a 0<x<l (5.4.1)
5X'
a n d b o u n d a r y a n d initial condition is
u(x,0) = x(l-x) 0<x < 1 ,.(5.4.la)
and
u(0,t) = 0
,(5.4. lb)
u(l,t) = 0
Let t h e length of h o m o g e n e o u s rod of length one meter
is divided in ten s u b equal element.
1 . 1
.-. h = At = a =1
10 500
Now u s i n g equation (5.2.5a) a n d (5.2.5b), we get
"QO=PO'
4 1 0 0 0 0 0 0 0 0
2 -1 0 0 0 0 0 0 o" Qi=Pi
141 0 0 0 0 0 0 0
-1 2 -1 0 0 0 0 0 0
014 1000000 Q2=P2
0 -1 2 -1 0 0 0 0 0
Q3=P3
0014 100000
0 0 -1 2 -1 0 0 0 0
00014 10000 Q4=P4
0 0 0 -1 2 -1 0 0 0
00001 41000 Q5=P5
0 0 0 0 -1 2 -1 0 0
00000 14100
0 0 0 0 0 -1 2 -1 0 Q6=P6
0000001 410
0 0 0 0 0 0 -1 2 -1 Q7=P7
0 0 0 0 0 0 0 141
0 0 0 0 0 0 0 -1 2
0 0 0 0 0 0 0 014 Q8=P8
.Q9=P9.
.(5.4.2)
271
Now using equation (5.2.6a) and (5.2.6b) and (5.4.2)
can be written as a set of linear algebraic equation.
Using initial and boundary condition and n = 0, we get
u
"0.087 0.0067 0 0 0 0 0 0 0
0.0067 0.087 0.0067 0 0 0 0 0 0 u
0 0.0067 0.087 0.0067 0 0 0 0 0 u
0 0 0.0067 0.087 0.0067 0 0 0 0 u
0 0 0 0.0067 0.087 0.0067 0 0 0 u
0 0 0 0 0.0061 0.087 0.0067 0 0 u
0 0 0 0 0 0.0067 0.087 0.0067 0 u
0 0 0 0 0 0 0.0067 0.87 0.0067
0 0 0 0 0 0 0 0.0067 0.087 u
u
' 0.008522
0.015530
0.02055
0.023562
0.024566
0.023562
0.02055
0.015530
0.008502
272
Table (5.4.1)
Displacement of temperature in a rod through Finite
element method
273
0.300000 |—
0.250000 -•-t=0.0
0.200000 ^ ^ ^
-«-t=0.0Q2
t=0.004
3 0.150000
-^ t=0.006
O100000 -)K-t=0.008
-*-t=0.01
0.050000
0000000 1 ! 1
1 m
Figure (5.4.1)
Displacement of temperature in a rod through finite element method
274
5.4 (A) DISCUSSION OF RESULTS :
The result presented in table (5.4.2(a)) gives the
compression of finite element solutions with spline explicit
and implicit as well as exact solution at t = 0.006. Table
(5.4.2(b)) and figure (5.4.2) indicate the error analysis and
from the figure it is clear that solution of all methods
converges to exact solution. But spline results are more
accurate than finite element solution. This justifies the wide
applicability of spline collocation method. It is also
concluded that spline solutions are more truthful than
the finite element solution in national conference of
Gujarat Science Congress at Surat [2009].
Table (5.4.2(a))
Comparison of solution (at t=0.006)
275
Table (5.4.2(b))
Error analysis (at t=0.006)
276
0.000600
0.000500
0.000400
••-UFEM-UEXT
O 0.000300 -*—USE-UEXT
m USI-UEXT
0.000200
0.000100
0.000000
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
X - "
Figure (5.4.2)
Error analysis (at t=0.006)
277
5.5 FINITE ELEMENT METHOD TO SOLVE PARABOLIC
LINEAR PARTIAL DIFFERENTIAL EQUATION
HAVING TWO SPACE VARIABLE :
Consider the partial differential equation having two
space variables.
du 2 5 u o u
0<x<a, 0<y<b, t>0
— = c
at
...(5.5.1)
with the b o u n d a r y conditions
u(x,0,t) = 0 0<x,y<l
.(5.5.2a)
u(0, y, t) = 0
a n d the initial condition are of t h e form
u(x,y,0) = Uo(x,y) 0<x,y<l ...(5.5.2b)
We s h o u l d s u b divide t h e regions 0 < x, y < a into say N
intervals, each of widthNAx. Let these elements are
n u m b e r e d a s (1), (2), ...., (n) a n d let u s have t h e solution on
h a n d at time SAt at point XQ,XI,....,X^.
278
—I -\
{f. e + l A du^
0 ' 7 ' ^2 [^¥i ^^j , ^¥i ^j Adxdy
Z J ^i^j dx dy
dt + dx dx 5y 5y
u
V ^e
...(5.5.5a)
In m a t r i x form
[M^"^] {u} + [K^^>]{u} = {F^")} ...(5.5.5b)
where a s u p e r p o s e d dot on u d e n o t e s the time derivatives
, . du
(u- —) .
and
xe+l
Mi j J v^i^j dx dy ,(5.5.5c)
Xe+1
Kf, = J c^ dxdy
dx dx dy dy ^
Xe+1
i J ^^i f dx dy
279
Using t h e a family approximation, we c a n transform
t h e ordinary differential equation (5.5.5) into set of algebraic
e q u a t i o n s at time t^+i.
280
Here the problem is solved by finite element method
with same parameter and compare the results with spline
explicit - implicit and exact solution.
au a u
Let —T + — ^ 0<x,y<l .(5.6.1)
at ^ax^ dy J
281
'0" Ql"
0
{F(^>} = + '
0
0
QfJ
Now by assembly of element matrices, we can write
matrix form of equation {5,5.5b) as algebraic equation using
equation (5.5.5c).
0 . 0 0 1 1 1 1 U i + 0 . 0 0 0 2 7 7 7 8 U 2 + 0 . 0 0 0 2 7 7 7 8 u u + 0 . 0 0 0 0 6 9 4 4 u 12 +
0 . 0 0 2 6 6 6 7 Ui+ 0 . 0 0 0 3 3 3 U2 - 0 . 0 0 0 3 3 3 Uu - 0 . 0 0 0 3 3 3 U12 =
r(l)^i7(2) (12)
F4^'^+F3^"^+F^^^^+Fi
0 . 0 0 2 7 7 8 Ui3 + 0 . 0 0 0 0 6 9 4 li 14 - 0 . 0 0 0 3 3 3 U2 + 0 . 0 0 2 6 6 6 7 U3 -
0 . 0 0 2 7 7 8 U14+ 0 . 0 0 0 0 6 9 4 U15 - 0 . 0 0 0 3 3 3 U3 + 0 . 0 0 2 6 6 6 7 U4 -
282
0.00027778ii4 +O.OOIIIIU5 + 0.00027778 u 5 + 0.00006944 u ,4 +
0.0000606
0 . 0 0 0 2 7 7 uJ + 0 . 0 0 1 1 1 4 U2 + 0 . 0 0 0 2 7 7 U3 + 0 . 0 0 0 0 6 9 u | i +
0 . 0 0 0 2 7 7 U2 + 0 . 0 0 1 1 1 4 U3 + 0 . 0 0 0 2 7 7 U4 + 0 . 0 0 0 0 6 9 u{2 +
0 . 0 0 0 2 7 7 U3 + 0.001114 U4 + 0 . 0 0 0 2 7 7 U5 + 0 . 0 0 0 0 6 9 UJ3 +
283
Table (5.6.1(a))
Temperature distribution in thin rectangular plate through finite element method
\ y
0.0 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50
0.0 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0,000000 0.000000 0.000000 0.000000 0.000000
0.05 0.000000 0.024469 0.048338 0.071015 0.091944 0.110609 0.126551 0.139377 0.148770 0.154500 0,156426
0.10 0.000000 0.048338 0.095486 0.140283 0.181626 0.218497 0,249987 0.275322 0.293877 0.305196 0.309001
0.15 0.000000 0.071015 0.140283 0.206096 0.266834 0.321003 0.307267 0.404488 0.431748 0.448378 0.453967
0.20 0.000000 0.091944 0.181626 0.266834 0.345473 0.415605 0,475504 0.523694 0.558988 0.580518 0.587756
0.25 0.000000 0.110609 0.218497 0.321003 0.415605 0.499975 0.572032 0.630005 0,672464 0.698368 0.707069
0.30 0.000000 0.126551 0.249987 0.367267 0.475504 0.572032 0.654475 0.720803 0.769382 0.799015 0.808976
0.35 0.000000 0.139377 0.275322 0.404488 0.523694 0.630005 0.720803 0.793852 0,847355 0.879992 0.890961
0.40 0.000000 0.148770 0.293877 0.431748 0.558988 0.672464 0.769382 0.847355 0.904463 0.939300 0.951008
0.45 0.000000 0.154500 0.305196 0.448378 0.580518 0.698368 0.799015 0.879992 0.939300 0.975479 0.987639
0.50 0.000000 0.156426 0.309001 0.453967 0.587756 0.707069 0.808976 0.890961 0.951008 0.987639 0.999950
284
Table (5.6.1(b))
Temperature distribution in thin rectangular plate through finite element method
\ y
0.0 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50
0.0 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.05 0.000000 0.024465 0.048332 0.071007 0.091934 0.110597 0.126537 0.139363 0.148754 0.154484 0.156410
0.10 0.000000 0.048332 0.095476 0.140269 0.181608 0.218475 0.249961 0.275294 0.293874 0.305194 0.308969
0,15 0.000000 0.071007 0.140269 0.206074 0.266806 0.320971 0.367229 0.404446 0.431704 0.448332 0.453921
0.20 0.000000 0.091934 0.181608 0.266806 0.345437 0.415563 0.475456 0.523642 0.558932 0.580458 0.587698
0.25 0.000000 0.110597 0.218475 0.3209711 0.415563 0.499925 0.571974 0.629941 0.672396 0.698302 0.706995
0.30 0.000000 0.126537 0.249981 0.367229 0.475456 0.571974 0.654409 0.720731 0.769304 0.798933 0.808896
0.35 0.000000 0.139363 0.275294 0.404446 0.523642 0.629941 0.720731 0.793772 0.847275 0.879904 0.890871
0.40 0.000000 0.148754 0.293874 0.431704 0.558932 0.672396 0.769304 0.847275 0.904355 0.939206 0.950913
0.45 0.000000 0.154484 0.305194 0.448332 0.580458 0.698302 0.798933 0.879904 0.939206 0.975381 0.987541
0.50 0.000000 0.156410 0.308969 0.453921 0.587698 0.706995 0.808896 0.890871 0.950913 0.987541 0.999814
285
Table (5.6.1(c))
Temperature distribution in thin rectangular plate through finite element method
0.0 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50
0.0 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.05 0.000000 0.024461 0.048326 0.070999 0.091924 0.110585 0.126523 0.139349 0.148738 0.154468 0.156394
0.10 0.000000 0.048326 0.095466 0.140255 0.181590 0.218453 0.249935 0.275266 0.293844 0.305132 0.308937
0.15 0.000000 0.070999 0.140255 0.206052 0.266778 0.320939 0.367191 0.404404 0.431660 0.448286 0.453875
0.20 0.000000 0.091924 0.181590 0.266778 0.345401 0.415521 0.475408 0.523590 0.558876 0.580398 0.587638
0.25 0.000000 0.110585 0.218453 0.320939 0.415521 0.499875 0.571916 0.629877 0.672328 0.698236 0.706925
0.30 0.000000 0.126523 0.249935 0.367191 0.475408 0.571916 0.654343 0.720659 0.769227 0.798852 0.808806
0.35 0.000000 0.139349 0.275266 0.404404 0.523590 0.629877 0.720659 0.793692 0.847191 0.879814 0.890815
0.40 0.000000 0.148738 0.293844 0.431660 0.558876 0.672328 0.769227 0.847191 0.904252 0.939153 0.956714
0.45 0.000000 0.154468 0.305132 0.448286 0.580398 0.698236 0.798852 0.879814 0.939153 0.975256 0.987477
0.50 0.000000 0.156394 0.308937 0.453875 0.587638 0.706925 0.808806 0.890815 0.956714 0.987477 0.999634
286
0.8
0.7
06
n
t 05 n -^t=1/400
3 04 n -•-t=3/400
03 F» . t=1/80
02
01
Or^ 1 r
00 005 010 Q15 020 025 030 035 0.40 046 O50
X—^
Figure(5.6.1)
Temperature distribution in thin rectangular plate through finite element method
(at y=0.25)
287
5.6 (A) DISCUSSION OF RESULTS :
The table (5.6.2(a)) represents comparison of solution
of the Heat flow in thin rectangular plate by finite element
method with spline explicit-implicit as well as exact
solution. Table (5.6.2(b)) and figure (5.6.2) shows error
analysis. The figure (5.6.2) eilso indicates that spline
solution gives better result than finite element method. So
the spline solutions are quite accurate and reliable. From
the results it is concluded in 12^*' International
Conference of International Academy of Physical
Sciences at Jaipur [2010] that spline solutions are more
truthful than the finite element solution.
Table (5.6.2(a))
Comparison of solution (at y = 0.25 & t = 1/80)
288
Table (5.6.2(b))
Error analysis (at y = 0.25 & t = 1/80)
289
0.000009
0.000008
0.000007
0.000006
UFEM-UEXT
o 0.000005
USE-UEXT
0.000004
USI-UEXT
0.000003
0.000002
0.000001
0.000000
0.0 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50
Figure (5.6.2)
Error analysis (at y = 0.25 & t = 1/80)
290
5.7 FINITE ELEMET METHOD TO SOLVE HYPERBOLIC
LINEAR PARTIAL DIFFERENTIAL EQUATION
HAVING ONE SPACE VARIABLE :
We consider differential equation t h a t c o n t a i n s second
order spatial derivatives a n d second order time derivatives.
.2
where c = Lc
with Dirichilet b o u n d a r y condition
u(0, t) = 0
...(5.7.2)
u(L,t) = 0
a n d two initial condition at t = 0 (Cauchy condition)
u(x, 0) = f(x)
Ut(x,0) = g(x)
,(n).
We begin with semidiscrete model a n d the weak form
of equation (5.7.2) is given by
f 5 u
Xe+l 2 5v 5u
0 = J dx - Qiv(xJ - Q2v(Xe+i)
xe V
di^ dx dx
.(5.7.3a)
where
du du
-a dx ...(5.7.3b)
dx '^e+l
291
Next we assume that u is interpolated by an
expression of the form (5.7.1). E q u a t i o n (5.7.1) implies t h a t ,
at a n y arbitrarily fixed time t > 0. The function u c a n be
j=l
,(5.7.4)
= i (uj)Vj(x) (s = l,2, )
j=i
t h e element Q^.
Substituting v = ^^j(x) a n d (5.7.1) into (5.7.3a), we
obtain
xe+l ^n d^U, r n U/j ^
d 2...
0 = J ^i ^ j +c dx - Q i
j = i dt' dx j=i dx
1 9 dU:
0 = Z - F. ,.(5.7.5)
292
This completes the semidiscrete finite element
formulation of (5.7.1) over a n element.
T i m e Approximation :
Using the New Mark Integration method, we write
equation (5.7.6a) a s a set of a linear algebraic e q u a t i o n in
matrix form
[K2]{U},,I ={F2} ...(5.7.7a)
where
^0 = ^ ^ a, = aoAt a2 = — - 1 ...(5.7.7c)
293
Once the value of u are k n o w n at (s + 1)* level, we c a n
proceed to c o m p u t e the next level (s + 2) by repeating t h e
s a m e process.
g = (LC)fH ...,5.8.1)
294
Now u s i n g equation (5.7.6a) a n d (5.7.6b), we get
2 10 0 0 0 Uf 1-1 0 0 0 0 >/
14 10 0 0 -1 2 - 1 0 0 0 Pl^+P^
u,
h 0 14 10 0 U' LC 0 - 1 2 - 1 0 0 Pl+Pl^
6 0 0 14 10 U'
+ h 0 0-1 2 - 1 0
Pl+Pl'
0 0 0 14 1 u. 0 0 0 - 1 2-1
P'+Pl'
0 0 0 0 2 4 u< 0 0 0 0 -12 p5
...(5.8.3)
Using the New m a r k direct integration m e t h o d and
(5.7.7a), (5.7.7b), (5.7.7c) we write e q u a t i o n (5.8.3) a s set of
linear algebraic equation in m a t r i x form by equation (5.6.7a)
[K^]s,i - [K]s,i +ao[M^]s^i
1 _ 4 _
where 40,000.
° ~ B(At)^ ~ (0.001)^
for S = 0
[K]i = [K]i -K 40,000 [M]i
2666.84 666.54 0 0 0
666.54 2666.84 666.54 0 0
0 666.54 2666.84 666.54 0
0 0 666.54 2666.84 666.54
0 0 0 1333.08 2666.84
{ii}o = - 0 . 7 5 {u}o
~- 0.231762
- 0.440838
- 0.606762
- 0.713292
- 0.75
295
Now u s i n g equation (5.7.7b) a n d (5.7.7c), we get
0.309017 - 0.231762
0.587785 - 0.440838
{F}o.i {F}i+[M],- (40,000) 0.809017 + 80(0) + l - 0.606762
0.951057 - 0.713292
.^
1 - 0.75
ere EQ = 40,000 a, = 80 32 = 1
'1215.855287"
2312.693814
{F}o,i - 3183.151038 u
3742.019567
3934.591502
1~
2666.84 666.54 0 0 0 1215.855287
1
666.54 2666.84 666.54 0 0 U2 2312.693814
0 666.54 2666.84 666.54 0 u^ — 3183.151038
0 0 666.54 2666.84 666.54 A 3742.019567
0 0 0 1333.08 2666.84 1 3934.591502
Us
296
Table (5.8.1)
Current distribution in the cable through finite element
method
297
1.200000
1.000000
0.0
0.800000 • • — t 0.01
t t 0.02
=) 0.600000
-K t 0.03
0.400000 •^K-t 0.04
0.05
0.200000
0.000000
0.0 0.1 0.2 0.3 0.4 0.5
X — •
Figure (5.8.1)
Current distribution in the cable through finite element method
298
5.8 (A) DISCUSSION OF RESULTS :
Table (5.8.2(a)) gives the comparison of finite element
solution with spline explicit and im.plicit as well as exact
solution at t = 0.04. Table (5.8.2(b)) and figure (5.8.2) shows
an error analysis and from the figure, it is clear that the
solution of the methods converges to exact solution but
spline solution gives better approximation than any other
method. This justifies the wide applicability of spline
collocation. It is also concluded that spline solutions are
more truthful than the finite element solution in
national conference of Gujarat Science Congress at
Ahmedabad [2010].
Table (5.8.2(a))
Comparison of solution (at t = 0.04)
X UFEM UEXT USE USI
0.0 0.000000 0.000000 0.000000 0.000000
0.1 0.308989 0.308990 0.308990 0.308992
0.2 0.587733 0.587740 0.587740 0.587738
0.3 0.808945 0.808950 0.808950 0.808953
0.4 0.950973 0.950980 0.950980 0.950981
0.5 0.999912 0.999920 0.999920 0.999920
Table (5.8.2(b))
Error analysis (at t = 0.04)
X UEXT-UFEM UEXT-USE UEXT-USI
0.0 0.000000 0.000000 0.000000
0.1 0.000003 0.000000 0.000000
0.2 0.000006 0.000001 0.000001
0.3 0.000008 0.000000 0.000000
0.4 0.000008 0.000001 0.000000
0.5 0.000009 0.000001 0.000001
299
0.000010
0.000009
0.000008
0.000007
t 0.000006 -•—UFEM-UEXT
o 0.000005 ••-USE-UEXT
m 0.000004 USI-UEXT
0.000003
0.000002
0.000001
0.000000
0.0 0.1 0.2 0.3 0.4 0.5
Figure (5.8.2)
Error analysis (at t = 0.04)
300
5.9 FINITE ELEMENT SOLUTION OF VIBRATING
STRING PROBLEM :
The problem is already d i s c u s s e d in c h a p t e r - 3 section
(3.12).
Here t h e problem is solved u s i n g FEM a n d c o m p a r e
with the solution of spline explicit a n d implicit a s well a s
exact solution.
Let the e q u a t i o n of vibrating string is
d\ ^, d\
= C^ 0<x<2 ,..(5.9.1)
di' ax-
where C^= T / m
T : Tension in string
M : Mass per unit
length
a n d initial a n d b o u n d a r y condition is defined a s
(7DC\
u(x,0) = sin
\ ^J \ 0<x<2 ...(5.9.1a)
Ut(x,0) = 0
and
u(0,t) = 01
t>0 .(5.9.1b)
u(2, t) = OJ
Let t h e length of string is divide in 10 s u b intervals, i.e.
h = 1/5 At = 1/20 = 0.05 C = 1. We have t a k e n t h e s a m e
value a s in section (3.14) a n d (4.13).
Now u s i n g e q u a t i o n (5.7.6a) a n d (5.6.7b), we get
301
Pl^+pl
4 1 0 0 0 0 0 0 0 "1 2-1 0 0 0 0 0 0 0 Ul P2 + Pi^
1 4 10 0 0 0 0 0 U2 -1 2 - 1 0 0 0 0 0 0 U2
0 1 4 10 0 0 0 0 U3 0-1 2 - 1 0 0 0 0 0 U3
0 0 14 10 0 0 0 U4 0 0-1 2 - 1 0 0 0 0 U4 P2+Pf
h
0 0 0 14 1 0 0 0 Us + 0 00-1 2-1000 Us P|+Pl'
6
0 0 0 0 14 1 0 0 U6 0 00 0-12-100 "6 P6+P/
0 0 0 0 0 1 4 1 0 iiy 0 00 0 0-12-10 U7
P2+P1'
0 0 0 0 0 0 1 4 1 ug 0 00 0 00-12-1
0 0 0 0 0 0 0 1 4 _U9 0 00 0 000-12 U9 Pi-Pi'
p9 plO
^2 - M
...(5.9.2)
Now b y e q u a t i o n (5.6.7a)
1
where ao = = 1600.
B(At)' (0.05^
for S = 0
[K^ ]l = [ K ] i + 1600 [ M ^ l i
.3328 48.3328 0 0 0 0 0 0 0
3328 223.3328 48.3328 0 0 0 0 0 0
0 48.3328 223.3328 48.3328 0 0 0 0 0
0 0 48.3328 223.3328 48.3328 0 0 0 0
0 0 0 48.3328 223.3328 48.3328 0 0 0
0 0 0 0 48.3328 223.3328 48.3328 0 0
0 0 0 0 0 48.3328 223.3328 48.3328 0
0 0 0 0 0 0 0 223.3328 48.3328
from e q u a t i o n (5.7.8) we c a n c o m p u t e { ii }o
302
(iilo = 75.000187 {u}o
- 23.176257
- 44.083984
- 60.676351
- 71.329377
- 75.000187
- 71.329377
-60.676351
- 44.683984
-23.176257
0.309016 - 23.176257
0.587785 - 44.083984
0.809016 - 60.676351
0.951056 - 71.329377
}i+[M]i- 1600 1 + 80(0) + l - 75.000187
0.951056 - 71.329377
0.809016 -60.676351
0.587785 -44.683984
0.309016 _-23.176257
where ao= 1600 ai= 80 a2= 1
'471.249268"
896.372016
1233.749174
1450.360148
{F}o,i = 1524.999813
1450.360148
1233.749174
896.372016
471.249268
303
Now using the New mark direct integration method
equation (5.9.2) can be written as set of algebraic equation
in matrix form, we get
'"!'
«\
223.3328 48.3328 0 0 0 0 0 0 0 471.24921
48.3328 223.332J! 48.3328 0 0 0 0 0 0 896.37201
'\
0 48.3328 223.3328 48.3328 0 0 0 0 0 1233.7491
0 0 48.3328 223.3328 48.3328 0 0 0 0 < 1450.3601
0
0
0
0
0
0
48.3328
0
223.3328 48.3328
48.3328
0
223.3328 48.3328
0
0
0
0
"l = 1524.9998
1450.3601
0 0 0 0 0 48.3328 223.3328 48.3328 0 4 1233.7491
0 0 0 0 0 0 48.3328 223.3328 48 896.37201
"^
0 0 0 0 0 0 0 48.3328 22 471.24926
'i
4
Hence we get 9 algebraic equations in 9 unknowns
with tri-diagonal matrix form. This can be solved by any
standard method. Once the values of u are known at first
level, we can proceed for the next level and so on. Due to the
symmetry of the problem, results are given for 0 < x < 1 at
t = 0.05, 0.10, 0.15, 0.20, 0.25 and they are shown in the
table (5.9.1) and plotted in figure (5.9.1).
304
Table (5.9.1)
Displacement of vibrating string in the rod through
finite element method
305
0.200000
0.000000
0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0
X
Figure (5.9.1)
Displacement of vibrating string in the rod through finite element method
306
(A) DISCUSSION OF RESULTS :
The table (5.9.2(a)) represents the comparison of finite
element solution of vibrating string problem with spline
explicit and implicit as well as exact solution at t = 0.15.
Table (5.9.2(b)) shows an error analysis. From the figure
(5.9.2), it is clear that spline solutions give better
approximation than finite element method. So spline
solutions are more accurate and reliable than finite element
solution.
Table (5.9.2(a))
Comparison of solution (at t = 0.15)
307
Table (5.9.2(b))
Error analysis (at t = 0.15)
308
0.100000
0.090000
0.080000
I 0.070000
DC
0.060000 ••-UFBVI-UEXT
o
0.050000 * - USE-UEXT
UJ
0.040000 USI-UEXT
0.030000
0.020000
0.010000
0.000000
0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0
Figure (5.9.2)
Error analysis (at t = 0.15)
309
5 . 1 0 FINITE ELEMENT METHOD TO SOLVE
HYPERBOLIC LINEAR PARTIAL DIFFERENTIAL
EQUATION HAVING TWO SPACE VARIABLES :
Consider t h e hyperbolic partial differential equation
with two s p a c e variables is
0<x,y<l ...(5.10.1)
with b o u n d a r y condition
u(0,y,t) = 0 0<x,y<l
.(5.10.2a)
u(x,0,t) = 0
a n d initial condition at t = 0
u(x,y,0) = Uo(x,y)
du ...(5.10.2b)
(x,y,0) = g(x,y)
a
We divide the region by 0 < x, y < a into say N
subinterval each of width NAx = NAyand let the e l e m e n t s
are n u m b e r e d a s (1), (2), (3), , (n). Let u s have t h e
solution on h a n d at time SAt at point XQ, , x^j.
Now the semidiscrete variational formulation of
equation (5.10.1) u s i n g (5.10.1a) a n d (5.10.1b) over an
element is given by
xe+l o u dv du dv du^
0 = J +c dxdy
dt- dx dx + 5y 5y
...(5.10.3)
where v(x, y) is weight function.
The semidiscrete finite element model of equation
(5.10.1) is obtained by s u b s t i t u t i n g the finite element
approximation (5.4.4) for u a n d v = i//i into (5.10.3).
310
\
n d^u^
0 I Mi j T + ^h ^] ...(5.10.4a)
j=l V dt
J
in matrix form
,.(5.10.4b)
The coefficients
xe+l
Mi j I 11/^ xj/-^ dx dy
TRANSIENT ANALYSIS :
The hyperbolic equation (5.10.4b) c a n be reduced to a
system of algebraic equation by approximating the second
derivative. As d i s c u s s e d in section (2.12), the new m a r k
time integration scheme is the most commonly used
m e t h o d , therefore it is u s e d here. Since the m a t h e m a t i c a l
form of (5.10.4b) is exactly the s a m e a s t h a t in (5.7.6a), t h e
r e s u l t s in (5.7.7) are immediately applicable to the former.
311
1 A 1 ,
and an = z- a, = an At a, = 1
' P{Mf ^ IP
Equation (5.10.5) can be solved fu {u} at time
t = ts = (S +1) At by u s i n g k n o w n {u} at t = t^. At time t = 0, t h e
initiad conditions of the problem are u s e d to initiate the time
m a r c h i n g s c h e m e . For the second order problem {ii} at
t = 0 c a n be c o m p u t e d from equation (5.10.4b).
{u}o = [M]-^ ({F}o - [ K ] { U } o ) ...(5.10.5c)
The equation (5.10.5) is used to solve equation
(5.10.1).
We get (N-1) X (N - 1) s i m u l t a n e o u s equation in (N - 1)
X (N - 1) u n k n o w n s . These e q u a t i o n s with s q u a r e m a t r i x
c a n be solved by a n y s t a n d a r d m e t h o d .
Once the value of u are k n o w n at (S + 1) level, we c a n
proceed to c o m p u t e the next level (S + 2) by s a m e technique
a s above.
where c =—
m
312
We solve t h e equation (5.11.1) u s i n g t h e s a m e initial
a n d b o u n d a r y condition
u(0,y,t) = 0 0<y<t
.(5.11.1a)
u(x,0,t) = 0 0<x<t
and
...(5.11.1b)
Now we solve the problem u s i n g the finite element
model (5.10). Let the region 0<x, y < l is divided into 10
sub-interval i.e h = 0.1 At = 0.01 c = 0.1
Now u s i n g equation (5.10.4a) a n d (5.10.4c), we get
algebraic equation.
0.004444 ii'i +0.001111 ii' 2 +0.001111 tig +0.00027788 iiy +
0.026667 Ui- 0.003333 ii 2 - 0.003333 ii^ - 0.003333 117 =
Ff+F(3)+F(^^+Ff
313
0 . 0 0 1 1 1 1 u 3 + 0 . 0 0 4 4 4 4 ii 4 + 0 . 0 0 1 1 1 1 U 5 + 0 . 0 0 0 2 7 7 7 8 iig +
0 . 0 0 1 1 1 1 1 U9 + 0 . 0 0 0 2 7 7 7 8 ii JQ + 0 . 0 0 3 3 3 3 U3 + 0 . 0 2 6 6 6 7
U4 - 0 . 0 0 3 3 3 3 U5 - 0 . 0 0 3 3 3 3 Ug - 0 . 0 0 3 3 3 3 U9 - 0 . 0 0 3 3 3 3 UJQ
...(5.11.2)
From equation (5.10.5b) and (5.10.5c), we can
calculate {F}ss_j.i and {vijs with t h e help of initial amd
314
36.954755 -0.573010
70.292242 -1.089932
96.749172 -1.500168
113.735568 -1.763356
59.794306 -1.854241
70.292242 -1.089932
133.703928 -2.073179
184.02710 -2.853488
116.337729 -3.3354479
113.735457 -3.526974
96.749172 -1.500168
184.027810 -2.853488
{F} 0,1 253.292496 {U}( -3.927489
297.761357 -4.617039
156.543346 -4.854460
113.735568 -1.763556
216.337729 -3.354479
297.763157 -4.617039
350.041658 -5.427658
184.027810 -5.706763
59.794306 -1.854241
113.735457 -3.526974
156.543346 - 4.854460
184.027811 -5.706763
96.749172 - 6.000900
...(5.11.3)
Now using the new mark time integration scheme,
equation (5.11.2) can be written in algebraic equation of the
form (5.10.5a) and using equation (5.11.3), equation
(5.10.5a) can be written as for S = 0.
315
177.8044 ui+ 44.4411 U2 + 44.4411 Ug + 11.1077 U7 =
36.954755
44.4411 uj + 177.8044 U2 + 44.4411 U3 + 11.1077 Ug +
4 4 . 4 4 1 1 Ug + 11.10777 U9 = 96.749172
4 4 . 4 4 1 1 U3 + 177.8044 U4 + 4 4 . 4 4 1 1 U5 + 11.10777 Ug +
1
4 4 . 4 4 1 1 U9 + 11.10777 u 10 = 113.735568
59.794306
316
Table (5.11.1(a))
Velocity distribution in rectangular vibrating membrane
through finite element method u ^^ at t = 0.01
Table (5.11.1(b))
Velocity distribution in rectangular vibrating membrane
through finite element method u -^ at t = 0.03
317
0.350000
0300000
0250000
0200000
0150000
0.100000
0.050000
0.000000
00 0.1 0.2 03 0.4 0.5
Figure (5.11.1(a))
Velocity distribution in rectangular vibrating membrane through finite element method
(at y = 0.1 &t=0.03)
318
5.11 (A) DISCUSSION OF RESULTS :
The table (5.11.2(a)) represents the comparison
of finite element solution of vibrating membrane problem
with spline explicit -implicit as well as exact solution at
y = 0.1 and t = 0.03. The table (5.11.2(b)) and figure (5.11.2)
shows error analysis. From figure (5.11.2), it is clear that
spline explicit and implicit results are quite accurate than
the finite element results. Clearly, the spline results are
more truthful and reliable than finite element solutions.
Table (5.11.2(a))
Comparison of solution (at y = 0.1& t = 0.03)
Table (5.11.2(b))
Error analysis (at y = 0.1 & t = 0.03)
319
0.000140
0.000120
0.000100
0.000020
0.000000
0.5
Figure (5.11.2)
Error analysis (at y = 0.1 & t = 0.03)
320
5.12 CONCLUSION :
Chapter 5 deals with finite element method.
The method is applied to linear partiail differential equation
of parabolic and hyperbolic type one and two space
variables. We have solved the same problems which are
discussed in chapter 3 with same parameter and compared
the solution with spline explicit, spline implicit as well as
exact solution. In all the problems, spline results give better
approximation than finite element solutions. Throughout
the work in this chapter, it is also clear that spline
collocation method gives truthful solution with compact
calculation than finite element method. When the time step
is increase, the calculation in finite element method
becomes quite lengthy and difficult. So it is seen that spline
solution are quite accurate and reliable.
321