
*****************************
Quasi-Hydrostatic Equations
*****************************

In oceanography, traditional approximation (TA) takes the Coriolis force only 
partially into account by neglecting the components proportional to the cosine 
of latitude: :math:`\tilde{f}=2 \Omega cos \phi` (see :cite:t:`gerkema_geophysical_2008`, 
for a review). The justification for the TA is in the hypothesis that the depth 
of the oceans is very thin compared to the radius of the Earth. The vertical 
motions must then be much weaker than the horizontal ones, rendering the 
non-tradiional (NT) Coriolis terms (with :math:`\tilde{f}`) insignificant 
compared to the traditional terms (with f) and rendering the pressure field 
nearly hydrostatic. Similarly, strong vertical stratification in density, 
which suppresses vertical motions, also diminishes the role of NT terms. However, 
this argument becomes weak near the equator (:math:`\tilde{f}>>f`), or in motions 
with a strong vertical component (e.g., convection). 

Note also that the QH momentum equations are shown to be more dynamically consistent 
than PE hydrostatic equations and that they correctly imply conservation laws for 
energy, angular momentum, and potential vorticity


Equations in Cartesian coordinate
---------------------------------

* The momentum balance in x and y directions is extended to include :math:`\tilde{f}` 
  terms (zonal u component): 


.. math::
 
  \frac{\partial u}{\partial t} 
      + \vec{\bf \nabla} . \left ( \vec{\textbf v} u \right ) - f v 
      + {\color{red} {\tilde{f} w}} = 
      - \frac{\partial \phi}{\partial x} + \mathcal{F}_u +  \mathcal{D}_u

  \frac{\partial v}{\partial t} 
      + \vec{\bf \nabla} . \left ( \vec{\textbf v} v \right ) + f u = 
      - \frac{\partial \phi}{\partial y} + \mathcal{F}_v +  \mathcal{D}_v


* Under the QH approximation, the quasi-hydrostatic balance is used for the vertical 
  momentum equation, where the zonal flow partially balances the pressure gradient :

.. math::

  \frac{\partial \phi}{\partial z} = - \frac{\rho g}{\rho_0} + {\color{red} {\tilde{f} u}}

In practice, the non-traditional term :math:`\tilde{f} u` is introduced as a correction 
to density (in the density computation subroutine rho_eos).

The variables used are :

:math:`\mathcal{D}_u, \mathcal{D}_v` : diffusive terms

:math:`\mathcal{F}_u, \mathcal{F}_v` : forcing   terms

:math:`f(x,y)` : Traditional Coriolis parameter :math:`2 \Omega sin \phi`

:math:`{\color{red} {\tilde{f}(x,y)}}` : Non-traditional Coriolis parameter :math:`2 \Omega cos \phi`

:math:`g` : acceleration of gravity

:math:`\phi(x,y,z,t)` : dynamic pressure :math:`\phi=P/\rho_0`, with P the total pressure

:math:`\rho_0+\rho(x,y,z,t)` : total in situ density

:math:`u,v,w` : the (x,y,z) components of vector velocity :math:`\vec{\textbf v}`





