Simple derivative operators in space and time are defined as follows:
where grid distances (measured in cm) are determined by
the distance between variables as indicated in Figures
16.2, 16.3, and 16.4
and discussed in Chapter 14. These operators are second
order accurate with non-uniform resolution as long as the grid is
constructed so that the stretching is based on a smooth analytic
function. See Treguier, Dukowicz, and Bryan (1995). When
is defined at grid points, then
(a=6370 x 105 cm) and when
is defined at grid points, then
.
Similarly,
when
is defined at grid points and
when
is defined at
grid points. Note the negative sign in the vertical derivative.
This is because z increases upwards while k increases downwards.
The negative sign in Equation (21.6) is usually absorbed by
reversing the indexing to give
In the finite difference approximation to the continuous time
derivative, Equation (21.7) is appropriate for the normal
leapfrog time steps where
is in seconds. As indicated in
Section 21.4, on mixing time steps, the denominator is
replaced by
.