Beruflich Dokumente
Kultur Dokumente
The PDE is not linear and cant be linearized without seriously affecting the result.
The solution region is complex.
The boundary conditions are of mixed types.
The boundary conditions are time-dependent.
The medium is inhomogeneous or anisotropic.
The finite difference method (FDM) was first developed by A. Thom* in the 1920s under the title the method of
square to solve nonlinear hydrodynamic equations. *A. Thom and C. J. Apelt, Field Computations in Engineering and
Physics. London: D. Van Nostrand, 1961.
The finite difference techniques are based upon the approximations that permit replacing differential equations by
finite difference equations. These finite difference approximations are algebraic in form, and the solutions are related
to grid points.
Thus, a finite difference solution basically involves three steps:
i)
Dividing the solution into grids of nodes
ii)
Approximating the given differential equation by finite difference equivalence that relates the solutions to
grid points.
iii)
Solving the difference equations subject to the prescribed boundary conditions and/or initial conditions.
9a.2 Methods of Discretization
Non-linear continuous equations need to be transformed into a discretized system of equations. Discretization can be
done by using Taylor series expansion,
f ( x) an ( x b)
n 0
i)
f ( x x) f ( x) (x)
f (x)2 2 f (x)3 3 f
......
x
2! x 2
3! x3
----- (1)
What we can do is to arrange the expansion in order to get the derivation of the derivative. Rearranging the
equation to get the first order ordinary differential equation
f
,
x
f
f ( x x) f ( x) x 2 f (x)2 3 f
...
x
x
x
2! x 2
3! x3
If we cut off higher order terms the equation will become,
f
f ( x x) f ( x)
O(x)
x
x
Or normally known as first forward difference approximation as shown in Figure 1.1 and is written as,
f f
f
i 1 i O(x)
x
x
f (x)2 2 f (x)3 3 f
f ( x x) f ( x) (x)
......
x
2! x 2
3! x3
After rearranging,
f
f ( x) f ( x x)
O(x)
x
x
Or is normally presented in the following form,
f fi 1
f
i
O(x)
x
x
The graph depiction of the case is as in Figure 1.2.
----- (2)
iii)
f ( x x) f ( x x) 2x
f
O(x)2
x
f
f ( x x) f ( x x)
O(x)2
x
2x
fi 1 fi 1
f
O(x)2
x
2x
f (x)2 2 f (x)3 3 f
......
x
2! x 2
3! x3
f (2x)2 2 f (2x)3 3 f
f ( x 2x) f ( x) (2x)
...... (3)
x
2! x 2
3! x3
f ( x x) f ( x) (x)
(1.3) 2 x (1.1):
2 f
f ( x) 2 f ( x x) f ( x 2x)
2
x
(x)2
f 2 fi 1 fi 2
2 f
i
(4)
2
x
(x)2
This equation is the forward difference approximation for the second derivative. We can do similarly for the
derivation backward difference second order equation,
f 2 fi 1 fi
2 f
i 2
2
x
(x)2
(5)
To derive central difference second order equation as in Figure 1.3, add equation (1) and (2)
f 2 fi fi 1
2 f
i 1
2
x
(x)2
Elliptic
Elliptic equation is a closed domain problem with prescribed boundary condition all around it. An example of
elliptic equation is the Poisson equation.
2 2
f ( x, y )
x 2 y 2
Parabolic
Parabolic equation is an open system problem with an open solution domain. The solution is advancing for
example with time. An example of parabolic equation problem is the unsteady heat condition,
2
2
t
x
Hyperbolic
Hyperbolic equation is more related to wave equation. An example of a first-order hyperbolic equation with
one initial condition needed to be supplied.
a
t
x
Steady-state and uniform when at any time and any point in the considered domain, the velocity of the
fluid is constant. Velocity of the fluid is constant throughout. An example is a fluid moving along a constant
diameter pipe.
ii)
Steady-state and non-uniform when at all the time, the speed of the fluid is constant at one particular
location. An example is steady moving fluid along a pipe with not constant diameter.
iii)
Unsteady and uniform when the speed of the fluid at any time and point changes uniformly with time. An
example is when the rate of change of inlet of a fluid moving in a pipe is suddenly increased or decreased.
iv)
Unsteady and non-uniform when the speed of the moving fluid at any time and any point is not the same.
An example is a tornado or a cyclone.
Direct methods - Direct methods compute the solution to a problem in a finite number of steps, e.g.
Gaussian Elimination, Factorization, etc.
a) Laasonen Method
b) Crank Nicolson method
ii)
method where pressure correction equation (Poisson equation) is solved in order to get the solution mass conservation
of the velocity field.
Density based solver or coupled method is normally linked to solving high speed flow with high pressure when the prime
properties such as velocities and pressure are strongly influenced to each other. The word coupled means that the
Continuity, Momentum, Energy and other transport equations are solved sequentially and not separately or in
segregated manner.
9a.7 Common Dimensionless Constants
i)
uL
inertia
Re
ii)
u
inertia
L g gravity
Fr
iii)
Ma
iv)
u
c
Peclet number
Pe
uL convection
k
diffusion
Ax d
Figure 1.7
Where x is the value of properties and d is the right-hand-side vectors. For the FVM, the number of equations obtained
will be the number of control volumes. For example, the number of control volume is 5, and then the number of
equations will also be 5 equations in total. The matrix that will result from this will be a matrix of 5 by 5. By right, the
total of spaces required to store the matrix is 5 x 5 = 25. But because the matrix is a sparse matrix, there is a way of
storing only the number of diagonals according to dimensions of the problem solved.
For a one-dimensional problem, the matrix is tridiagonal as in Figure 1.1. It means that there are only 3 diagonal matrix
that are not zero. The rest of locations are all zero. The same will happen with solving two and three dimensional
problems. We will have pentadiagonal and hexadiagonal matrix respectively.