When the horizontal length scales are much larger than the vertical length scale, volume conservation implies that the vertical velocity is small. The Navier-Stokes vertical momentum equation can be used to justify that pressure is nearly hydrostatic. In the absence of baroclinic pressure gradients (variable density), strong wind forcing and non-hydrostatic pressure, a vertically-averaged version of the momentum equation is adequate. Vertical velocity and vertical derivative terms can be safely neglected (in both mass and momentum equations). The shallow water equations are obtained:

1) \displaystyle \frac{\partial \boldsymbol{V}}{\partial t} + (\boldsymbol{V} \cdot \nabla ) \boldsymbol{V} + f_c \boldsymbol{k} \times \boldsymbol{V} = -g \nabla z_s + \frac{1}{h} \nabla \cdot (\boldsymbol{\nu}_t h \nabla \boldsymbol{V}) - \frac{1}{\rho h} \nabla \cdot \left( h \boldsymbol{D} \right) - \frac{\boldsymbol{\tau}_b}{\rho R} + \frac{\boldsymbol{\tau}_s + \boldsymbol{\tau}_w}{\rho h} - \frac{1}{\rho}\nabla p_a - \left(a + b | \boldsymbol{V} | \right) \boldsymbol{V}

where

\boldsymbol{V} : velocity vector [L/T]
g : Gravitational acceleration [L/T2]
z_s : Water surface elevation [L]
\nabla : gradient operator [1/L]
\boldsymbol{\nu}_t : horizontal eddy viscosity coefficient tensor [L2/T]
{\boldsymbol{\tau}_b : bottom shear stresses vector s [M/L/T2]
R : Hydraulic radius [L]
\boldsymbol{D} : dispersion stress tensor [M/L/T2]
{\boldsymbol{\tau}_s  :  surface wind stress vector [M/L/T2]
{\boldsymbol{\tau}_w  :  wave radiation stress gradient vector [M/L/T2]
h : water depth [L]
\boldsymbol{k}: is the unit vector in the vertical direction [-]
f_c : Coriolis parameter [1/T]
p_a : atmospheric pressure [M/L/T2]
a : linear (viscous) drag coefficient [1/T]
b : quadratic (inertial) drag coefficient [1/L]

The left-hand side of the equation contains the acceleration terms. The right-hand side represents the internal or external forces acting on the fluid. The left- and right-hand side term are typically organized in such a way as to be in accordance with Newton's second law, from which the momentum equations are ultimately derived. From left to right the terms are the unsteady acceleration, convective acceleration, Coriolis term, barotropic pressure term, momentum diffusion, bottom friction, wind and wave stresses, and flow drag. 

In the case where the porosity < 1, the velocity vector represents the pore velocity which is also known as the intrinsic or simply flow velocity. The average fluid velocity over the medium (including both the solid and fluid material) is given by the Dupuit–Forchheimer relationship \boldsymbol{v} = \phi \boldsymbol{V}.  The velocity \boldsymbol{v} is known as the filtration velocity, seepage velocity, superficial velocity, Darcy velocity, macroscopic velocity, and volumetric flux velocity. The interstitial velocity is also known as the intrinsic, pore velocity, or simply flow velocity.  

It is noted that the notation for the Coriolis term is not strictly correct due to the inconsistent length of vectors. However, this notation is used for shorthand notation and simplicity. Every term of the momentum equation has a clear physical counterpart.  A dimensional analysis shows that when the water depth is very small the bottom friction term dominates the equation. As a consequence, the momentum equation for dry cells takes the limit form V = 0. As before, dry cells are computationally treated as a special case, but the result is continuous and physically consistent during the process of wetting or drying.

Since the conservation of momentum is directionally invariant, the momentum equation may be in any direction. In HEC-RAS, momentum is computed normal to each face.

2) \displaystyle \frac{\partial u_N}{\partial t} + (\boldsymbol{V} \cdot \nabla ) u_N - f_c u_T = -g \frac{\partial z_s}{\partial N} + \frac{1}{h} \nabla \cdot (\boldsymbol{\nu}_t h \nabla u_N) - \left[ \frac{1}{\rho h} \nabla \cdot \left( h \boldsymbol{D} \right) \right] \cdot \boldsymbol{n} - \frac{\tau_{b,N}}{\rho R} + \frac{\tau_{s,N}}{\rho h} - \frac{1}{\rho} \frac{\partial p_a}{\partial N}- \left(a + b | \boldsymbol{V} | \right) u_N

Acceleration

The Eulerian acceleration terms on the left, can be condensed into a Lagrangian derivative acceleration term taken along the path moving with the velocity term:

3) \displaystyle \frac{D \boldsymbol{V}}{Dt} = \frac{\partial \boldsymbol{V}}{\partial t} + (\boldsymbol{V} \cdot \nabla )\boldsymbol{V}

Other names usually given to this term are substantial, material and total derivative. The use of the Lagrangian derivative will become evident in subsequent sections when it will be seen that its discretization reduces Courant number constraints and yields a more robust solution method.

Bottom Friction

The bottom shear stress is given by

4) \displaystyle \boldsymbol{\tau_b} = \rho C_D | \boldsymbol{V} | \boldsymbol{V}

where \rho is the water density and C_D is the drag coefficient computed using the Manning’s roughness coefficient as

5) \displaystyle C_D = \frac{n^2 g}{R^{1/3}}

where

n: Manning's roughness coefficient [T/L1/3]
R: hydraulic radius [L]
g: gravitational acceleration [L/T2]

The drag coefficient, C_D, is related to the nonlinear friction coefficient, c_f, by

6) \displaystyle c_f = \frac{C_D}{R} | \boldsymbol{V} | = \frac{n^2 g}{R^{4/3}} | \boldsymbol{V} |

The shear velocity is given by:

7) \displaystyle u_* = \sqrt{\tau_b / \rho }

Coriolis Effect

The last term of the momentum equation relates to the Coriolis Effect. It accounts for the fact that the frame of reference of the equation is attached to the Earth, which is rotating around its axis. The vertical component of the Coriolis term is disregarded in agreement with the shallow water assumptions. The apparent horizontal force felt by any object in the rotating frame is proportional to the Coriolis parameter given by:

8) \displaystyle f_c = 2 \omega \text{sin} \varphi

where \omega = 0.00007292115855306587 1/s is the sidereal angular velocity of the Earth and \varphi is the latitude.

Flow Drag

The linear and quadratic flow drag coefficients are designed to be generic and flexible so that they can be used to represent different processes such as flow drag through porous media or flow drag from larger flow obstructions such as vegetation, buildings, etc.