
214 NUMERICAL METHODS: AN OVERVIEW
8.2 NUMERICAL METHODS
There are three to eight different numerical methods one may use to solve a PDE
depending on the details of classification and the type of equation. Each method has
advantages and disadvantages depending on, among other considerations, the type of
equation and the nature of the boundary conditions. Additionally, the method used
by a practitioner may depend on the personal knowledge of that method. A brief
introductory description to three of these methods is given in this section.
Suppose -F((/>) = g(x, y) represents a general PDE, where φ is a function of x and
y,
and F is the partial differential operator. The steps in developing the associated
algebraic counterpart Ό(φ
ί
^) = gi¿ ori an arbitrary element of the computational
domain are outlined below as a means of introduction and comparison of the three
methods.
8.2.1 Finite Difference Method
The finite difference (FD) numerical method is, historically, the first attempt at a
numerical solution for a PDE. As the name implies, derivative terms in the PDE are
approximated by differences in the respective variable over finite differences in the
independent variable.
1.
The problem domain is discretized into small elements, as shown in Figure
8.7(a). The nodes marked by the solid circles are included in the element. The
node labeled with "P" is the center, or interior, node of the element. The eight
near-neighbor nodes are labeled "NE" (North East), "EC" (East Central), "SE"
(South East), and so on. The nodes with open circles are excluded from the
FD element.
2.
Any nonlinear terms in F are linearized on the element using the value of the
dependent variable at node P.
3.
Derivative terms in F are replaced with finite difference expressions.
4.
The four nodes on the subdomain boundary are used to express φ at node P as
a function of the value of φ at those nodes. That is,
ΦΡ
=
C
N
c<t>NC
+
ΟΕΟΦΕΟ
+ θ3οΦβο + ΟννοΦννο
The coefficients
CNCICEC,·-
m
this equation are functions of the nodal
spacing only.
The primary advantage of the FD method is the ease in constructing the algebraic
equation to the PDE. A major disadvantage of the FD method is that the resulting
algebraic equation does not incorporate values of φ at the four corner nodes, NW,
NE, SE, and SW. This may cause serious problems in convective flow situations
when flow runs askew of the coordinate directions. Chapter 9 provides added detail
on the FD method where the algebraic equation is derived for several PDEs using
various finite difference formulas.