The depth-averaged 2-D continuity and momentum equations are given by
∂ h ∂ t + ∂ ( h u j ) ∂ x j = S f o r j = 1 , 2 {\displaystyle {\frac {\partial h}{\partial t}}+{\frac {\partial (hu_{j})}{\partial x_{j}}}=Sforj=1,2}
∂ ( h u i ) ∂ t + ∂ ( h u i u j ) ∂ x j − ϵ i j 3 f c u j h = g ∂ η ∂ x j + 1 ρ 0 ∂ p a ∂ x j + ∂ ∂ x j [ ν t h ∂ u i ∂ x j ] + τ i ρ < n o w i k i > f o r < / n o w i k i > i = 1 , 2 < n o w i k i > a n d < / n o w i k i > j = 1 , 2 {\displaystyle {\frac {\partial (hu_{i})}{\partial t}}+{\frac {\partial (hu_{i}u_{j})}{\partial x_{j}}}-\epsilon _{ij3}f_{c}u_{j}h=g{\frac {\partial \eta }{\partial x_{j}}}+{\frac {1}{\rho _{0}}}{\frac {\partial p_{a}}{\partial x_{j}}}+{\frac {\partial }{\partial x_{j}}}{\biggl [}\nu _{t}h{\frac {\partial u_{i}}{\partial x_{j}}}{\biggr ]}+{\frac {\tau _{i}}{\rho }}<nowiki>for</nowiki>i=1,2<nowiki>and</nowiki>j=1,2}
where t {\displaystyle t} is time, u j {\displaystyle u_{j}} is the current velocity in the jth direction, h {\displaystyle h} is the total water depth, C s a {\displaystyle C_{sa}} is the salinity concentration, and K s a {\displaystyle K_{sa}} is the salinity mixing coefficient.