
Solving Equations by Iteration
Purpose
These notes provide an introduction to a set of files that illustrate the details of iteration
calculations.
Iteration equations
We have seen that the finite-volume equations resulting from terms considering convection,
diffusion and a source term result in a finite difference equation of the following form.
PNNEEPPWWSS bAAAAA
[1]
The finite volume grid on which this equation is derived is shown at the right. The points at the
center of the finite volumes, indicated by the
symbol .and marked as the center point, P,
and it’s four nearest neighbors to the North,
South, East, and West are the nodes whose
values are related by equation [1]. Equation
[1] applies to a single central node, P. We will
have one such equation for the central node of
each control volume. This set of equations
has to be solved simultaneously to find the
values of at each node. In order to define
the entire set of nodes we will first examine a
simple grid where the geometry is rectangular
with uniform grid spacing, ∆x and ∆y. In this
case we can define the grid coordinates xi and
yj by the following equations.
yj
xi
Niyjyy
Nixixx
,,0,
,,0,
0
0
[2]
With this grid notation, the value of at a given location, (xi,yj), is denoted as ij. If ij is the
center node, P, in equation [1], the North node, located at (xi, yj+1), is denoted as ij+1; the South
node, located at (xi, yj-1), is denoted as ij-1; the East node, located at (xi+1, yj), is denoted as i+1j;
finally, the West node, located at (xi-1, yj), is denoted as i-1j. The various A coefficients may be
different at each grid point. To denote the different values of the A coefficients at different points,
the following notation is used. Each of the five coefficients in equation [1] is written with the P, N,
S, E, W, as a superscript and an ij subscript. This shows that the particular set of coefficients
applies to the equation for the central P node located at (xi,yj). With this notation we can rewrite
equation [1] as follows.
ijij
N
ijji
E
ijij
P
ijji
W
ijij
S
ij bAAAAA 1111 [3]
P
N
W
S
E
s
n
w e
ne nw
sw se
SE
NW