The primitive equations in Cartesian coordinates are shown here. The momentum balance in
the
- and
-directions are:


The time evolution of the
potential temperature and salinity fields,
and
, are governed by the advective-diffusive equations:


The equation of state is given by:

In the Boussinesq approximation, density
variations are neglected in the momentum equations except in their
contribution to the buoyancy force in the vertical momentum equation.
Under the hydrostatic approximation, it is further
assumed that the vertical pressure gradient balances the buoyancy
force:

The final equation expresses the continuity equation
for an incompressible fluid:

For the moment, the effects of forcing
and dissipation will be represented by the schematic terms
and
, respectively. The horizontal and vertical mixing will
be described more fully in Horizontal Mixing and Vertical Mixing Parameterizations.
The variables used are shown here:
|
diffusive terms
|
|
forcing terms
|
|
Coriolis parameter
|
|
acceleration of gravity
|
|
bottom depth
|
|
horizontal viscosity and diffusivity
|
|
vertical viscosity and diffusivity
|
|
total pressure
|
|
dynamic pressure
|
|
total in situ density
|
|
salinity
|
|
time
|
|
potential temperature
|
|
the ( ) components of vector velocity
|
|
horizontal coordinates
|
|
vertical coordinate
|
|
the surface elevation
|
Vertical Boundary Conditions
The vertical boundary conditions can be prescribed as follows:
- top (
:





- and bottom (
):





The new variables above are:
Variable
|
Description
|
|
evaporation minus precipitation
|
|
linear and quadratic bottom stress coefficients
|
|
surface heat flux
|
|
surface wind stress
|
|
bottom stress
|
|
surface reference temperature
|
The surface boundary condition variables are defined in the table above.
Since
is a strong function of the surface
temperature, it is also prudent to include a correction term for the
change in
as the surface temperature drifts away from the reference
temperature that was used in computing
. On the variable bottom,
, the horizontal velocity components are constrained to
accommodate a prescribed bottom stress which is a sum of linear and
quadratic terms (actually one or the other, or a log layer, depending on the cpp options):


The vertical heat and salt flux may also be prescribed at the bottom,
although they are usually set to zero.
Horizontal Boundary Conditions
As distributed, the model can easily be configured for a periodic
channel, a doubly periodic domain, or a closed basin. Code is also
included for open boundaries which may or may not work for your
particular application. Appropriate boundary conditions are
provided for
and
.
At every timestep the subroutines xxxx and
yyyy are called to fill in the necessary boundary values.
The model domain is logically rectangular, but it is possible to
mask out land areas on the boundary and in the interior. Boundary
conditions on these masked regions are straightforward,
with a choice of no-slip or free-slip walls.
If biharmonic friction is used, a higher order boundary condition
must also be provided. The model currently has this built into the
code where the biharmonic terms are calculated. The high order
boundary conditions used for
are
on the
eastern and western boundaries and
on the
northern and southern boundaries. The boundary conditions for
and
are similar. These boundary conditions were chosen because
they preserve the property of no gain or loss of volume-integrated
momentum, temperature, or salt.