_Discrete_grids.dox

1/*! \page Discrete_Grids Discrete Horizontal and Vertical Grids
2
3\section horizontal_grids Horizontal grids
4
5The placement of model variables on the horizontal C-grid is illustrated here:
6
7\image html Arakawa_C_grid.png "MOM6 uses an Arakawa C grid staggering of variables with a North-East indexing convention."
8\image latex Arakawa_C_grid.png "MOM6 uses an Arakawa C grid staggering of variables with a North-East indexing convention."
9
10
11Scalars are located at the \f$h\f$-points, velocities are staggered such that
12\f$u\f$-points and \f$v\f$-points are not co-located, and vorticities
13are located at \f$q\f$-points. The indexing for points (\f$i,j\f$) in
14the logically-rectangular domain is such that \f$i\f$ increases in
15the \f$x\f$ direction (eastward for spherical polar coordinates), and
16\f$j\f$ increases in the \f$y\f$ direction (northward for spherical polar
17coordinates). A \f$q\f$-point with indices (\f$i,j\f$) lies to the upper
18right (northeast) of the \f$h\f$-point with the same indices. The index
19for the vertical dimension \f$k\f$ increases with depth, although the
20vertical coordinate \f$z\f$, measured from the mean surface level \f$z =
210\f$, decreases with depth.
22
23When the horizontal grid is generated, it is actually computed on the
24\"supergrid\" at twice the nominal resolution of the model. The grid file
25contains the grid metrics and the areas of this fine grid. The model
26then decomposes it into the four staggered grids, along with computing
27the grid metrics as shown here:
28
29\image html Grid_metrics.png "The grid metrics around both \f$h\f$-points and \f$q\f$-points."
30\imagelatex{Grid_metrics.png,The grid metrics around both $h$-points and $q$-points.,\includegraphics[width=\textwidth\,height=\textheight/2\,keepaspectratio=true]}
31
32The model carries both the metrics as well as their inverses, for instance,
33IdyT = 1/dyT. There are also the areas and the inverse areas for all four grid
34locations. areaT and areaBu are the sum of the four areas from the supergrid
35surrounding each h-point and each q-point, respectively. The velocity faces can be
36partially blocked and their areas are adjusted accordingly, where \f$dy\_Cu\f$ and
37\f$dx\_Cv\f$ are the blocked distances at \f$u\f$ and \f$v\f$ points, respectively.
38
39\f{eqnarray}
40\mbox{areaCu}_{i,j} &= dxCu_{i,j} * dy\_Cu_{i,j} \\
41\mbox{areaCv}_{i,j} &= dx\_Cv_{i,j} * dyCv_{i,j} \\
42\mbox{IareaCu}_{i,j} &= 1 / \mbox{areaCu}_{i,j} \\
43\mbox{IareaCv}_{i,j} &= 1 / \mbox{areaCv}_{i,j}
44\f}
45
46The horizontal grids can be spherical, tripole, regional, or cubed sphere.
47The default is for grids to be re-entrant in the \f$x\f$-direction; this needs
48to be turned off for regional grids.
49
50\section vertical_grids Vertical grids
51
52The placement of model variables in the vertical is illustrated here:
53
54\image html cell_3d.png "The MOM6 interfaces are at vertical location \f$e\f$ which are separated by the layer thicknesses \f$h\f$."
55\imagelatex{cell_3d.png,The MOM6 interfaces are at vertical location $e$ which are separated by the layer thicknesses $h$.,\includegraphics[width=\textwidth\,height=\textheight/2\,keepaspectratio=true]}
56
57The vertical coordinate is Lagrangian in that the interfaces between the layers are
58free to move up and down with time. The interfaces have target depths or target
59densities, depending on the desired vertical coordinate system. They can even have
60target sigma values for terrain-following coordinates or you can design a hybrid
61coordinate in which different interfaces have differing behavior. In any case, the
62interfaces move with the fluid during the dynamic timesteps and then get reset during a
63remapping operation. See section \ref ALE_Timestep for details.
64
65*/