Professional Documents
Culture Documents
Methods
J Thuburn, University of Reading, Reading, UK using the available information to advance the solution
Copyright 2003 Elsevier Science Ltd. All Rights Reserved. to the next time level. On the other hand, an equation
describing a relationship among a number of variables
all at the same instant in time is called a diagnostic
The Need for Numerical Solutions equation. The ideal gas law is an example of a local
Only in a small number of special cases can exact diagnostic equation. Nonlocal diagnostic equations are
analytic solutions be found for the differential equa- also important; they are often boundary value problems
tions describing the uid dynamics, physics, and and often describe some kind of balance such as hydro-
chemistry of the atmosphere. In all other cases static balance or the relationship between quasi-geo-
solutions can be found only by approximating the strophic potential vorticity and streamfunction (see
differential equations by algebraic equations and then Dynamic Meteorology: Overview). They also arise in
nding specific numerical solutions to these algebraic connection with implicit time stepping schemes see
equations. Because of the vast amount of arithmetic below. Boundary value diagnostic equations require
involved, numerical solutions are virtually always different solution methods from prognostic equations
found with the aid of electronic computers. because the solution at any point in the domain depends
simultaneously on all of the boundary and forcing values.
The equations used to model the atmosphere are
Types of Equations nearly always a combination of prognostic and diag-
nostic, and so a corresponding combination of nu-
In broad terms, the method for nding a numerical
merical solution methods is used.
solution generally reects the type of equation being
solved, which in turn reects the nature of the physics
that the equation describes. For example, an equation Representation of Data; Resolution
describing how a variable evolves in time is called a
prognostic equation. A prognostic equation is solved by
and Aliasing
specifying the solution at some initial time, along with Fields like temperature and velocity are usually con-
appropriate boundary conditions, and then repeatedly sidered to exist throughout a continuous region of
1424 NUMERICAL MODELS / Methods
>
>
> >
Figure 1 Gridpoint representation of a simple function. Five data Figure 3 Finite element representation of a simple function. In
values are stored, indicated by the diamond symbols. this case the individual elements are witchs hats, which are
continuous, piecewise linear, and nonzero over only two cells. Five
data values are stored.
space and time and so contain, potentially, an innite
amount of information. For a numerical solution to be
obtained, these elds must be represented approxi-
In more than one dimension combinations of the
mately by a nite set of data values that can be stored in
above methods can be used, e.g., gridpoint in the
a computer. There are several possible ways to do this.
horizontal and nite element in the vertical, or spectral
Gridpoint representation. In gridpoint methods a in the horizontal and gridpoint in the vertical.
eld is represented by its values at a nite set of The number of data values used to represent a eld
points called the grid or mesh points (Figure 1). denes the model resolution: a greater number of data
Finite volume representation. Each value stored in values corresponds to higher resolution and means
the computer represents the value of a eld not at a that smaller-scale structures in the eld can be repre-
point but averaged over a nite volume or grid cell sented. Nevertheless, for any xed number of data
(Figure 2). values there will be some limiting scale below which
Finite element representation. Each eld f is repre- structures cannot be represented. Structures on small-
sented as a series in terms of certain basis functions er scales than this will be misrepresented, or aliased, as
ci x (eqn [1]) and the coefcients f^ are stored in features of some other scale (Figure 5). Aliasing is an
i
the computer (Figure 3). important problem because, even if the initial data are
smooth, the nonlinearity of the equations describing
X
fx f^ c x 1 atmospheric dynamics tends to generate structure on
i i
i ever smaller scales, and eventually on scales that must
be aliased. This is one reason why models often include
Usually the ci are simple local functions that are some form of scale-selective dissipation to damp
piecewise constant or piecewise linear over a small poorly resolved near-grid-scale structure.
number of gird cells and zero elsewhere.
Spectral representation. As for nite element meth-
>
>
(B)
>
Figure 2 Finite volume representation of a simple function. Five Figure 4 (A) Fourier representation (dotted curve) of a simple
grid-cell-average values are stored, indicated by the histogram function (solid curve). The coefcients of ve Fourier components
values. are stored; those components are shown in (B).
NUMERICAL MODELS / Methods 1425
limited range of Courant numbers, so that at any given Implicit Time Stepping and
model resolution it is important to use a time step Semi-Implicit Time Stepping
small enough to ensure stability; this, of course, affects
the overall cost of the model. Consider the following two schemes (eqns [9] and
[10]) for time discretization of the equation
qf=qt Rf.
Semi-Lagrangian Advection
fn1 fn1
Semi-Lagrangian schemes are a way of modeling the Rfn 9
2Dt
advection terms in uid dynamical equations while
satisfying the CFL criterion and ensuring stability
without any restriction on the time step. By removing fn1 fn 1
Rfn R fn1 10
one of the major constraints on the time step, they Dt 2
allow models to be run more cheaply, and as a result Scheme [9] is an example of an explicit scheme;
they are now widely used. fn1 is given explicitly in terms of known quan-
An equation of the form Df=Dt S, where S tities fn1 and fn . Scheme [10], on the other
represents all terms other than the advection term, is hand, is an example of an implicit scheme; fn1
typically discretized along an air parcel trajectory appears on both sides of the equation, making it
starting from some departure point xd at time nDt and more difcult to solve. The advantage of scheme
arriving at a grid point xj at time n 1Dt as in eqn [7] [10] is that it is stable for any size of time step and
(Figure 7). any reasonable R, whereas scheme [9] is stable only
for a limited range of time steps and for certain
fn1 fnd forms of R.
j
S 7
Dt Implicit time schemes are often used for modeling
atmospheric chemistry, where short reaction time
Here S is some estimate of S averaged along the scales would require very short time steps for
trajectory, fn1
j is the value of f at xj and time stability if an explicit time scheme were used. Implicit
n 1Dt, and fnd is the value of f at xd and time nDt. schemes are also often used in atmospheric models
In general xd will not coincide with a model grid point to model the gravity wave terms, and, if the hydro-
so that the value fnd must be found by interpolation. static approximation is not made, the acoustic wave
Cubic interpolation is typically used. terms. Acoustic and gravity waves are the highest-
The departure point xd is given implicitly by eqn [8], frequency signals in the atmosphere and would
where v is an estimate of the average velocity along the strongly constrain the time step if explicit time
trajectory, e.g., v vn1
j vnd =2. Equation [8] is schemes were used. One effect of implicit time schemes
implicit because v depends on xd ; when large time steps are used is articially to slow the
xj xd highest-frequency waves. This is usually considered
v 8 acceptable, since acoustic and gravity waves are not
Dt
the most significant meterological features on synoptic
it is solved iteratively using typically two or three scales.
iterations, with vnd estimated by linear interpolation at Because the equations describing the atmosphere
each iteration. are nonlinear, an implicit discretization in the form
[10] would be difcult and expensive to solve for fn1.
Instead a semi-implicit discretization is usually used
(eqn [11]).
n +2
fn1 fn 1
Lfn Lfn1
n +1 Dt 2
n
xd Rfn1=2 Lfn1=2 11
n1
Here L is an approximation to R (or to that part of R
j4 j3 j2 j1 j j +1 describing gravity waves) obtained by linearizing
about a suitable reference state, usually a stratied
Figure 7 Schematic showing how a semi-Lagrangian advection
scheme can carry information along an air parcel trajectory from the atmosphere at rest, and fn1=2 is an estimate of f
departure point xd at time nDt to the arrival grid point xj at time at time n 1=2Dt obtained, for example, by
n 1Dt. extrapolating from times n 1Dt and nDt. This
1428 NUMERICAL MODELS / Methods
leads to a much simpler, linear problem for fn1 were used and the basis functions could be chosen to be
(eqn [12]). eigenfunctions of the Helmholtz operator, then M
would be diagonal and the solution would be trivial. In
Dt
fn1 Lfn1 known terms 12 practice it is possible to choose the basis functions to be
2 eigenfunctions of the horizontal part of the Helmholtz
Equation [12] is usually of a form similar to eqn operator, e.g. spherical harmonics in spherical geo-
[13] for some coefcients n, known as a Helmholtz metry. Then eqn [14] separates into a number of much
equation. smaller problems whose matrices correspond to the
vertical part of the Helmholtz operator; these can be
fn1 nr2 fn1 known terms 13 solved by direct matrix inversion.
If a spectral representation is not used then eqn [14]
Thus, an elliptic problem with suitable boundary
is usually solved iteratively. One set of methods
conditions must be solved to determine fn1 .
involves relaxation of an approximate solution to
The combination of a semi-Lagrangian treatment of
obtain a better approximation at each iteration. The
advection terms with a semi-implicit treatment of
convergence of the iteration procedure can be greatly
gravity waves and acoustic waves removes most of the
accelerated by carrying out some iterations on coarser
stability constraints on the time step size, allowing the
grids than that on which the nal solution is required;
time step to be chosen on the basis of accuracy rather
this is a multigrid method. Another iterative method
than stability considerations, and thus making models
involves reformulating eqn [14] as a minimization
more efcient. For this reason, models based on semi-
problem and then solving it using a minimization
implicit semi-Lagrangian schemes have become
algorithm such as the conjugate gradient algorithm.
widely used.