The numerical -coordinate model

The governing equations form a set of simultaneous partial differential
equations which cannot be solved using known analytic methods. Therefore
the equations have been discretized using finite difference methods.
The routines called to approximate the solution of the governing equations in each
time step of the model are described in this section.
The horizontal finite difference scheme is staggered, and the
Arakawa C-grid [34] has been used, see figures 1, 2 and 3.

__Figure 1.__ Horizontal view of the location of 3-D variables in the staggered grid.
T, RHO and other scalar fields are defined in S-points. KM, KH, Q2 and Q2L are defined in
W-points.

__Figure 2.__ Vertical view of the location of 3-D variables in the staggered grid.
T, RHO and other scalar fields are defined in S-points. KM, KH, Q2 and Q2L are defined in
W-points.

__Figure 3.__ Horizontal view of the location of 2-D variables in the staggered
grid.

The model is written in FORTRAN 90 and the discrete versions of the state variables and parameters are gathered in a module, STATE, that may be addressed by all subroutines. Equations (36) - (41) are stepped forward in time using the same time step for all equations. The method of fractional steps is applied. That is a sequence of subroutines is called to perform specific subtasks and update the corresponding variables in MODULE STATE in each time step. After all subroutines are called the effects of all terms in the governing equations are included.

A description of the variables in MODULE STATE
is given in the appendix.

- The time stepping algorithm
- SUBROUTINES DENS AND DENSUNESCO
- SUBROUTINE MY2HALV
- SUBROUTINE UPSTREAMQ
- SUBROUTINE INTERNAL
- INTERNAL4
- SUBROUTINE SUPERBEEUV
- SUBROUTINE MODESPLIT
- SUBROUTINE SMAGOR2D
- SUBROUTINES HORVISCUV2D and HORVISCUV2DPOM
- SUBROUTINE SMAGOR
- SUBROUTINES HORVISCUV and HORVISCUVPOM
- SUBROUTINE STEPU3D and SUBROUTINE STEPV3D
- SUBROUTINE VERTVISCUVB

- SUBROUTINE WREAL
- SUBROUTINE UPDATEDD
- SUBROUTINES SUPERBEEF and ADVECT
- SUBROUTINE VERTDIFF