When vertical thickness of cells is a function of
,
,
and depth, extra terms are needed to construct the pressure gradient.
Refer to Pacanowski and Gnanadesikan for a discussion of the pressure
gradient. Another way to look at it is the following: With the aid of
Leibnitz's Rule (Equation (4.65), the zonal and
meridional pressure gradients are written as
where
is density and the acceleration due to
gravity is
grav=980.6 cm/sec2. Let
symbolize the
the discrete form for the right hand side of the zonal pressure
gradient in Equation (26.14) and
symbolize the
discrete form for the right hand side of the meridional pressure
gradient in Equation (26.15). The discrete forms are
where the
in
and the
in
are used to move the results
onto a U-cells. The pressure pi,k,j is defined on T-cells and is
calculated by vertically integrating the density from the surface to the
depth of the T-grid point at level ``k''.
where
dhwi,k,j is the vertical distance between a
T-grid point at level ``k'' and its neightbor at ``k+1'' for any
coordinate index ``i,j''. In the first term,
dhwi,0,j is the
distance between the ocean surface and the grid point within level
k=1. Partial cells are only allowed for levels k>1 and so
dhwi,0,j is constant for all ``i,j''. Using Equation
(26.18), the term
in
can be
written as
Refer to Fig 26.3 which illustrates two vertical columns of T-cells with one partial bottom cell at level ``k''. Consider the vertically stratified case where density is a function of depth only. This condition implies
which reduces Equation (26.19) to
| = | (26.22) |
Distributing the derivative and reducing further yields
| = | |||
| = | (26.23) |
Substituting the above form for
into
Equation (26.16) yields
In general, density can be divided into two pieces: one that varies linearly with depth and another that varies non-linearly with depth. The non-linear part will lead to non-zero pressure gradients in the vicinity of partial cells. The linear portion of the density variation with depth goes to zero.