# Governing Equations¶

MOM6 is a hydrostatic ocean circulation model that time steps either the non-Boussinesq ocean equations (where the flow velocity is divergent: \(\nabla \cdot \mathbf{v} \ne 0\)), or the Boussinesq ocean equations (where velocity is non-divergent: \(\nabla \cdot \mathbf{v} = 0\)). We here display the Boussinesq version since it is most commonly used (as of 2022). We start by casting the equations in geopotentiial coordinates prior to transforming to the generalized vertical coordinates used by MOM6. A more thorough discussion of these equations, and their finite volume realization appropriate for MOM6, can be found in Griffies, Adcroft and Hallberg (2020) [22].

The hydrostatic Boussinesq ocean equations, written using geopotential vertical coordinates, are given by

The acceleration term, \(\mathbf{\mathcal{F}}\), in the horizontal momentum equation includes the acceleration due to the divergence of internal frictional stresses as well as from bottom and surface boundary stresses. Other notation is described in Notation for equations.

The prognostic temperature,
\(\theta\), is either potential temperature or Conservative Temperature, depending on the chosen equation of state, and \(S\) is the salinity. We generally follow the discussion of [43] for how to interpret the prognostic temperature and salinity in ocean models. MOM6 has historically used the Wright (1997) [70] equation of state to compute the *in situ* density, \(\rho\). However, there are other options as documented in Equation of State. In the potential temperature and salinity equations, fluxes due to diabatic processes are indicated by \(J^{(z)}\). Tendencies due to the convergence of fluxes oriented along neutral directions are indicated by \(\mathbf{\mathcal{N}}^\gamma\), with our implementation of *neutral diffusion* detailed in Shao et al (2020) [57].

The total or material time derivative operator is given by

where the second equality explosed the horizontal and vertical terms. Using the non-divergence condition on the three-dimensional velocity allows us to write the material time derivative of an arbitrary scalar field, \(\psi\), into a flux-form equation

Discretizing the flux-form scalar equations means that fluxes transferring scalars between grid cells act in a conservative manner. Consequently, the domain integrated scalar (e.g., total seawater volume, total salt content, total potential enthalpy) is affected only via surface and bottom boundary transport. Such global conservation properties are maintained by MOM6 to within computational roundoff, with this level of precision found to be essential for using MOM6 to study climate. Making use of the flux-form scalar conservation equations brings the model equations to the form

## Vector invariant velocity equation¶

MOM6 time steps the horizontal velocity equation in its vector-invariant form. To derive this equation we make use of the following vector identity

where we introduced the vertical component to the relative vorticity

as well as the kinetic energy per mass contained in the horizontal flow

It is just the horizontal kinetic energy per mass that appears when making the hydrostatic approximation, whereas a non-hydrostatic fluid (such as the MITgcm) includes the contribution from vertical motion. With these identities we are led to the MOM6 flux-form equations of motion in geopotential coordinates