Assuming that the flow is incompressible, the unsteady differential form of the mass conservation (continuity) equation is:
1) |
\displaystyle \frac{\partial h}{\partial t} + \frac{\partial (hu)}{\partial x} + \frac{\partial (hv)}{\partial y} = q |
where t is time, u and v are the velocity components in the x- and y- direction respectively and q is a source/sink flux term. Following the starndard HEC-RAS sign conventions, sinks are negative and sources are positive.
In vector form, the continuity equation takes the form:
2) |
\displaystyle \frac{\partial h}{\partial t} + \nabla \cdot (h\boldsymbol{V}) = q |
where \boldsymbol{V} = (u,v)^T is the velocity vector and \nabla is the gradient operator given by \nabla = (\partial / \partial x , \partial / \partial y )^T .
Integrating over a horizontal region with boundary normal vector n and using Gauss' Divergence theorem, the integral form of the equation is obtained:
3) |
\displaystyle \frac{\partial}{\partial t} \int \int_{\Omega} \int d \Omega + \int \int_S (\boldsymbol{V} \cdot \boldsymbol{n}) dS = Q |
The volumetric region \Omega represents the three-dimensional space occupied by the fluid, and \textbf {n} is the unit vector normal to the side boundaries S . It is assumed that Q represents any flow that crosses the bottom surface (infiltration) or the top water surface of \Omega (evaporation or rain). The source/sink flow term Q is also convenient to represent other conditions that transfer mass into, within or out of the system, such as pumps.
This integral form of the continuity equation will be appropriate in order to follow a sub-grid bathymetry approach in subsequent sections. In this context, the volume Ω will represent a finite volume cell and the integrals will be computed using information about the fine underlying topography.