<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.13">
  <compounddef id="Discrete_Grids" kind="page">
    <compoundname>Discrete_Grids</compoundname>
    <title>Discrete Horizontal and Vertical Grids</title>
    <detaileddescription>
<sect1 id="Discrete_Grids_1horizontal_grids">
<title>Horizontal grids</title>
<para>The placement of model variables on the horizontal C-grid is illustrated here:</para><para><image type="html" name="Arakawa_C_grid.png">MOM6 uses an Arakawa C grid staggering of variables with a North-East indexing convention.</image>
<image type="latex" name="Arakawa_C_grid.png">MOM6 uses an Arakawa C grid staggering of variables with a North-East indexing convention.</image>
</para><para>Scalars are located at the <formula id="17">$h$</formula>-points, velocities are staggered such that <formula id="58">$u$</formula>-points and <formula id="93">$v$</formula>-points are not co-located, and vorticities are located at <formula id="96">$q$</formula>-points. The indexing for points ( <formula id="109">$i,j$</formula>) in the logically-rectangular domain is such that <formula id="110">$i$</formula> increases in the <formula id="111">$x$</formula> direction (eastward for spherical polar coordinates), and <formula id="112">$j$</formula> increases in the <formula id="113">$y$</formula> direction (northward for spherical polar coordinates). A <formula id="96">$q$</formula>-point with indices ( <formula id="109">$i,j$</formula>) lies to the upper right (northeast) of the <formula id="17">$h$</formula>-point with the same indices. The index for the vertical dimension <formula id="114">$k$</formula> increases with depth, although the vertical coordinate <formula id="11">$z$</formula>, measured from the mean surface level <formula id="115">$z = 0$</formula>, decreases with depth.</para><para>When the horizontal grid is generated, it is actually computed on the "supergrid" at twice the nominal resolution of the model. The grid file contains the grid metrics and the areas of this fine grid. The model then decomposes it into the four staggered grids, along with computing the grid metrics as shown here:</para><para><image type="html" name="Grid_metrics.png">The grid metrics around both $h$-points and $q$-points.</image>
<image type="latex" name="Grid_metrics.png">The grid metrics around both $h$-points and $q$-points.</image></para><para>The model carries both the metrics as well as their inverses, for instance, IdyT = 1/dyT. There are also the areas and the inverse areas for all four grid locations. areaT and areaBu are the sum of the four areas from the supergrid surrounding each h-point and each q-point, respectively. The velocity faces can be partially blocked and their areas are adjusted accordingly, where <formula id="116">$dy\_Cu$</formula> and <formula id="117">$dx\_Cv$</formula> are the blocked distances at <formula id="58">$u$</formula> and <formula id="93">$v$</formula> points, respectively.</para><para><formula id="118">\begin{eqnarray} \mbox{areaCu}_{i,j} &amp;= dxCu_{i,j} * dy\_Cu_{i,j} \\ \mbox{areaCv}_{i,j} &amp;= dx\_Cv_{i,j} * dyCv_{i,j} \\ \mbox{IareaCu}_{i,j} &amp;= 1 / \mbox{areaCu}_{i,j} \\ \mbox{IareaCv}_{i,j} &amp;= 1 / \mbox{areaCv}_{i,j} \end{eqnarray}</formula></para><para>The horizontal grids can be spherical, tripole, regional, or cubed sphere. The default is for grids to be re-entrant in the <formula id="111">$x$</formula>-direction; this needs to be turned off for regional grids.</para></sect1>
<sect1 id="Discrete_Grids_1vertical_grids">
<title>Vertical grids</title>
<para>The placement of model variables in the vertical is illustrated here:</para><para><image type="html" name="cell_3d.png">The MOM6 interfaces are at vertical location $e$ which are separated by the layer thicknesses $h$.</image>
<image type="latex" name="cell_3d.png">The MOM6 interfaces are at vertical location $e$ which are separated by the layer thicknesses $h$.</image></para><para>The vertical coordinate is Lagrangian in that the interfaces between the layers are free to move up and down with time. The interfaces have target depths or target densities, depending on the desired vertical coordinate system. They can even have target sigma values for terrain-following coordinates or you can design a hybrid coordinate in which different interfaces have differing behavior. In any case, the interfaces move with the fluid during the dynamic timesteps and then get reset during a remapping operation. See section <ref refid="ALE_Timestep" kindref="compound">ALE Timestep</ref> for details. </para></sect1>
    </detaileddescription>
  </compounddef>
</doxygen>
