Professional Documents
Culture Documents
Finite Differences and Their Applications
Finite Differences and Their Applications
1.1 Introduction
Most frequently engineering problems are represented by
diff
differential
i l equations,
i
f which
for
hi h exact solutions
l i
are generally
ll not
available.
Numerical treatment of such equations can yield approximate
results, acceptable for most practical purposes.
Numerical methods for the solution of differential equations
have become popular in the recent years because of the easy
availability of electronic digital computers.
One of these numerical methods is the Finite Difference
Method
y = Ax 2 + Bx + c
((1))
y=A
Ax 2 + Bx
B +C
y(x )
y i 1
yi
h
i1
y i +1
h
i
i+1
y ( h ) = yi 1 = Ah 2 Bh + C
y (0 ) = yi = C
y (h ) = yi +1 = Ah 2 + Bh + C
From which
y i 1 2 y i + y i + 1
A=
2h 2
y i + 1 y i 1
B=
2h
C = yi
yi + i yi 1
dy
yi =
=B=
dx i
2h
(2)
2
yi i 2 yi + yi + i
d
y
''
y i = 2 = 2A =
d x i
h2
(3)
'
y = Ax 3 + Bx 2 + Cx + D
(4)
y (0) = yi = D
(5)
x1 , x2 , x3 , ....., xi 1 , x1 , xi +1 ,......, xn 2 , xn 1 , xn
r3
r1 r2
h h
1
ri 1
ri ri +1
h h
3
i 1 i i +1
rn i
rn 2
rn
h h
n 2 n 1 n
yi = yi yi 1
(6)
Similarly ,the
the second and the higher order backward differences
can be written as
n yi = n 1 yi n 1 yi 1 = n 1 yi
((7))
Table 1
Backward Differences
x
xi
yi
x i 1
y i 1
xi 2
yi 2
xi 3
yi 3
xi 4
yi 4
yi
y i 1
yi 2
yi 3
y
2
2 yi
2 y i 1
2 yi 2
3 y
3 yi
3 y i 1
4 y
4 yi
yi = yi +1 yi
(8)
....
(9)
n y i = n 1 y i + 1 n 1 y i = n 1 y i
h '
h 2 ''
h 3 '''
y(x + h ) = y(x ) + y (x ) +
y ( x ) + y ( x ) + ......
1!
2!
3!
(10)
h 2 2 h3 3
= 1 + D + D + D + ...... y (x )
2!
3!
1!
(11)
= e hD y ( x )
(12)
(13)
= e hD y i y i
= e hD 1 y i
e
= 1+
Takingg logg on both the sides
hD
2 3 4
hD = Log(1 + ) = + + ...
2 3 4
(14)
(15)
h 2 D 2 = 2 3 +
+ ...
12
6
34 7 5
3 3
3
h D = +
+ ...
2
4
17 6
4 4
4
5
h D = 2 +
+ ...
6
((16))
y ( xi + h ) = yr
(17)
y1 = e hD yi
Proceeding
di in
i the
h same manner, we obtain
b i
2 3 4
hD = +
+
+
+ ...
2
3
4
11 4
2 2
2
3
h D = + +
+ ...
12
3 4 7 5
3 3
3
h D = +
+
+ ...
4
2
6
17
h 4 D 4 = 4 + 2 5 +
+ ...
6
(18)
Table.2
Schematic representation of Backward and Forward Difference Expressions
TYPE
ri k
COEFFICIENTS
i 1
i 4 i3
BACKWARD
i 2
r1 '
1/ h
ri ''
ri '''
1/ h2
ri ''''
1/ h4
r1 '
1/ h
i
1
i+1
1
ri ''
ri '''
1/ h2
1 / h3
ri ''''
1/ h4
1 / h3
FORWARD
i 2 i3
i 4
Central Difference
Central differences involving pivotal points symmetrically
located with respect to I,
I are more accurate than backward or
forward differences.
For intermediate points,
points we use average of the subscripts of the
points forming the differences.
y(x)) at I is defined byy
Thus the first order central difference of y(
yi = y
1
i+
2
1
2
yi +1 + yi yi + yi 1
=
2
2
1
= ( yi +1 yi 1 )
2
(19)
yi = (yi ) = y 1 y 1 y 1 y 1
i 1 / 2
i +1 / 2
i + 2 +1/ 2
i + 2 1/ 2
2
2
(20)
= yi +1 2 yi + yi 1
2
n
n 1
(
y
=
yi )
The nth central difference is defined by
i
rr
h/2
ri
r1
r11
h/2
11 1 1 / 2
h/2
h/2
1 i 1/ 2
rrr
h/2
i +1/ 2
h/2 h/2
x
r r + 1 / 2 rr
Table 3
Central Differences
xi 2
yi 2
x i 1
y i 1
xi
yi
x i +1
y i +1
xi + 2
yi + 2
yi 3 / 2
y i 1 / 2
y i +1 / 2
yi + 3 / 2
y
2
2 y i 1
2 yi
2 y i +1
3y
3 y i 1 / 2
3 y i +1 / 2
4y
4 yi
TTable
bl 4
Schematic representation of Central Difference Expressions
r i (k )
COEFFICIENTS
i 2
i 1
r1 '
1 / 2h
ri ''
ri '''
1/ h2
1 / 2h 3
ri ''''
1/ h4
1
2
2
4
i+1 i + 2
1
2
1!
(21)
2!
+ ...
1!
2!
3!
(22)
(23)
1 5 Boundary Conditions
1.5
Solution of the governing equilibrium equations for beams,
plates
l
or any other
h engineering
i
i
problem
bl
b finite
by
fi i difference
diff
method requires proper finite difference representation of the
boundaryy conditions.
Consequently the derivatives at the boundaries are to be
replaced by finite difference expressions which require the
i t d ti off fictitious
introduction
fi titi
points
i t outside
t id the
th boundaries.
b
d i
The boundaries may be fixed, simply supported, completely
free or mixed type.
yp
The finite difference expressions for different boundary
conditions or the relations of fictitious points to inner points are
d i d
derived.
Fixed boundaryy
A fixed end in beam or plate has deflection and the slope zero
yi = 0
1
dy
( yi +1 yi 1 ) = 0
=
dx i 2h
(24)
yi +1 = yi 1
Simply
p y supported
pp
The boundary condition representing a simple support has
deflection and bending moment is directly proportional to the
second derivative of the deflection
d 2 y yi +1 2 yi + yi 1
=
=0
2
2
dx i
h
yi 1 = yi +1
(25)
Free end
The free end has always bending moment, i.e., the second
derivative and the shear force, i.e., the third derivative zero. The
ordinates
di t off deflection
d fl ti att fictitious
fi titi
points
i t can be
b expressedd in
i
terms of inner points of the beam.
d 2 y yi +1 2 yi + yi 1
2 =
=0
2
h
dx i
yi +1 = 2 yi yi 1
d 3 y yi 2 + 2 yi 1 2 yi +1 + yi + 2
3 =
=0
3
2h
dx i
(26)
d4y
EI 4 = q
dx
(27)
d2y
2 = 0
dx x = 0
d2y
2
=0
dx x = L
(29)
g ,
interval h=L/4 and numberingg the ppivotal ppoints as shown in fig.3,
the differential equation (b) can be written at each pivotal point
where the deflection ordinates are unknown quantities.
quantities
Point 1:
q.h 4
y1 4 y0 + 6 y1 4 y2 + y3 =
EI
(30)
Point 2:
q.h 4
y0 4 y1 + 6 y2 4 y3 + y4 =
EI
(31)
Point 3:
q.h 4
y1 4 y2 + 6 y3 4 y4 + y5 =
EI
(32)
y0 = 0
y4 = 0
y1 = y1
y5 = y3
(33)
Solving
S l i the
h above
b
equations
i
we get
5 qL4
y1 =
512 EI
7 qL4
y2 =
512 EI
5 qL4
y3 =
512 EI
5 qL4
.
y2 =
whereas
512 EI
the
and
d suchh a percentage
t
error is
i 5%.
5% By
B increasing
i
i the
th
P
L
P ''
y +
y =0
EI
iv
((34))
(36)
PL2
=K
EI
Eq.(36)
Eq (36) can be rewritten as
2K
K
yi + 2 + 2 4 yi +1 + 6 2 yi + 2 4 yi 1 + yi 2 = 0
n
n
(37)
Which means y x =0 , L = 0
Approximation
(38)
(39)
n=2
0
3 h = L/2
upon solving Eq. (d) and using the boundary conditions we get
the value of K
(40)
K 2=8
Approximation
n=3
0
3 h = L/3
L/3
L/3
L/3
K 3=9
Approximation
(41)
n=4
0
3 h = L/4
L/4
L/4
L/4
K 4=9.367
L/4
(42)
9.367 EI
Pcr =
L2
(43)
9.8775 EI
The exact value of Pcr =
and this gives an error of
L2
5%
(44)
Let
h1 =
ba
n1
and h2 =
ba
n2
c1 (b a )
e2 = A An 2 =
n22
(45)
((46))
n22
n12
= 2
. An 2 2
. An1
2
2
n2 n1
n2 n1
(47)
(49)
I0
0 .4 I 0
(48)
0.2 L
0 .4 I 0
0.2 L
0.6 L
L
0.15 L
0.2 L
0.3L
0.2 L
0.15 L
h1 = 0.15 L
h2 = 0.2 L
0.2 L 4
=
0.15 L 3
0.3L
2 =
= 1.5
0.2 L
1 =
(50)
(51)
(52)
EI 0
L2
1.10 Integration
g
Formulas byy Interpolating
p
g
Parabolas
In many engineering problems, evaluation of integrals is too
cumbersome if the integration is not possible within the finite
terms.
To obtain acceptable solution to such problems,
problems numerical
methods of integration are employed.
If a parabola is assumed to pass through a number of pivotal
points, then the area under the curve between the limits will be
approximately equal to the area under the integrand.
Given the pivotal points
yi +1 yi
A=
h
The approximate first degree parabola thus
yi ++11 yi
y(x ) =
. x + yi
h
(53)
yi +1 yi h 2
h
A = y (x ).dx =
. + yi .h = ( yi + yi +1 )
h
2
2
0
(54)
yi +1 yi h 2
h
A = y (x ).dx
d =
. + yi .h = ( yi + yi +1 )
h
2
2
0
(55)
A
0
0 1
x=a
4
Fig.4
7 8
x=b
2
(
)
y
x
=
A
.
x
+ B.x + C
If the second degree
g
pparabola
is p
passed
(56)
(57)
+2 h
2h
y ( x ).dx =
4h
(2 yi +1 yi + 2 yi 1 )
3
(58)
Thank you