
GRID GENERATION 209
grids,
multigrids, or adaptive
grids,
may be used for "irregular" geometries or complex
flow characteristics as well.
A key objective in many grid generation efforts is to assure a boundary in the
computational domain corresponds to a boundary in the physical domain. This goal
may be referred to as geometric adaptation. Additionally, it may be desired to
include greater nodal resolution in the physical domain where a dependent variable
changes quickly. This process may be referred to as solution adaptation. It may
be desirable to increase grid resolution in regions where a dependent variable has a
large gradient change during the solution process. The steep-gradient region(s) may
change location as the solution evolves. Grid processes that change grid resolution
may be referred to as automatic or dynamic solution adaptation. This technique
may be useful, for example, in the case of
a
moving internal boundary corresponding
to a phase change.
The computational grid should be constructed with the following objectives:
A. Minimize numerical error. Grid resolution and orientation with respect to
flow direction may impact sources of numerical error, such as round-off and
truncation error.
B.
Provide numerical stability. The stability (to be discussed later) of some
numerical methods depends on the size of the discretization element.
C. Provide computational economy. Obviously, more computation is required as
the number of grid nodes increases.
D.
Provide ease in handling boundary conditions. Boundary conditions may
involve normal derivatives in some applications. Consequently, it is advanta-
geous for certain grid lines to adjoin the boundary in a normal fashion.
Some objectives in the list above are at odds with each other. For example,
objective C suggests the need for fewer nodes while objectives A and B seem to
require more nodes. Indeed, the tension between too few and too many nodes is often
at the center of the grid generation issue. The overall objective is the optimal grid;
the most sparse grid system that provides the desired accuracy.
The principles outlined below may be used to attain one or more of the stated
objectives. The objectives addressed by a given principle are listed in parentheses.
1.
The problem geometry aligns with the coordinate system. (A, C, and D)
2.
Flow and heat flux vectors should run parallel to the coordinate lines. (A)
3.
In the case of nonuniform grid spacing, the ratio (larger to smaller) of spacing
for two adjacent cells should be < 2. (A and B)
4.
The coordinate system should be orthogonal or nearly orthogonal whenever
possible. (A and B)
5.
Node density should be proportional to the gradient of a dependent variable.
(A and B)