Equations of Motion
The primitive equations in Cartesian coordinates are shown here. The momentum balance in the - and -directions are:
The time evolution of a scalar concentration field, (e.g. salinity, temperature, or nutrients), is governed by the advective-diffusive equation:
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 horizontal 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:
|acceleration of gravity|
|molecular viscosity and diffusivity|
|vertical eddy viscosity and diffusivity|
|total in situ density|
|the () components of vector velocity|
|the surface elevation|
These equations are closed by parameterizing the Reynolds stresses and turbulent tracer fluxes as:
An overbar represents a time average and a prime represents a fluctuation about the mean.
Vertical Boundary Conditions
The vertical boundary conditions can be prescribed as follows:
- top (:
- and bottom ():
The new variables above are:
|surface concentration flux|
|surface wind stress|
The surface boundary condition variables are defined in the table above. Since is a strong function of the surface temperature, we usually choose to compute using the surface temperature and the atmospheric fields in an atmospheric bulk flux parameterization. This bulk flux routine also computes the wind stress from the winds.
On the variable bottom, , the horizontal velocity components are constrained to accommodate a prescribed bottom stress which is a choice of linear, quadratic, or a log layer, depending on the Options. The vertical scalar concentration fluxes 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 , as described in Boundary Conditions.
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 or scalar concentration.