Professional Documents
Culture Documents
Finite Difference Methods: Dr. Sreenivas Jayanti
Finite Difference Methods: Dr. Sreenivas Jayanti
OUTLINE
FD methods are quite old and somewhat dated for CFD problems but
serve as a point of departure for CFD studies
(1)
Or
(2)
Here O(x) implies that the leading term in the neglected terms of the
order of x, i.e., the error in the approximation reduces by a factor of 2 if
x is halved.
(3)
(4)
(5)
Subtracting (3) from (1) gives a second order approximation for df/dx :
df/dx [f(x+ x) - f(x-x)] / (2x) + O(x2)
Then
(2) df/dx [f(x+ x) - f(x)] / x
= (fi+1 - fi)/x + O(x)
(3) df/dx [f(x) - f(x- x) ] / x
= (fi- fi-1)/x + O(x)
(5) df/dx [f(x+ x) - f(x-x)] / (2x) = (fi+1- fi-1)/(2x) + O(x2)
are the
forward
one-sided
backward
one-sided
central
symmetric
differencing formulas, respectively, for df/dx at x or node i
One-sided formulas are necessary at ends of domains
(9a)
(9b)
(9c)
or
(11)
Higher Derivatives
= [d/dx( du/dx)]i
[ (du/dx)i+1/2 - (du/dx)i-1/2 ] / x
[ (ui+1 - ui)/ x - (ui - ui-1)/ x ] / x
or
(12)
Note that use of central differences for the second derivative requires
three points, viz., (i-1), i, (i+1), for a second order accurate formula
Using forward differencing throughout, one can get the following first
order accurate formula involving three points for the second derivative:
d2u/dx2)i
or
(13)
A central, second order scheme for the third derivative needs four points:
(14)
d3u/dx3)i = [ (ui+2 -2 ui+1 + 2 ui-1 - ui-2) ] / (2x3) + O(x2)
Mixed Derivatives
2u/xy)i,j
or
(15)
with
2u/x2 + 2u/y2 = f
0 < x < L and 0 < y < W
Dirichlet boundary condtions: u (x,y) = g(x,y) on boundary
(21)
(22)
Other Schemes
Put Ti,n = (Ti, n-1 + Ti,n+1)/2 to get
the DuFort-Frankel scheme:
(25)
where r = t/x2
Explicit methods are generally less stable than implicit methods and
may give unphysical solutions if the marching time step is too large
Non-uniform Meshes
Closure
sjayanti@iitm.ac.in
in case of queries