Skip to main content

Conservation of Mass

Water problems are represented mathematically by differential equations. Examples of such problems or processes are propagation of waves in a river channel, pollutant transport, reservoir operations, and so on.

The general law of conservation​

The general principle of conservation laws is that the rate of change of a quantity u⃗\vec{u} within a volume VV plus the flux of u⃗\vec{u} through the boundary AA (noted as f(u⃗)f(\vec{u})) is the same as the rate of production of u⃗\vec{u}, denoted by S(u⃗,t)S(\vec{u}, t):

∂∂t∫Vu⃗⋅dV+∫Af(u⃗)⋅n⃗⋅dA−∫VS(u⃗,t) dV=0\frac{\partial}{\partial t}\int_V \vec{u} \cdot \mathrm{d}V + \int_A f(\vec{u}) \cdot \vec{n} \cdot \mathrm{d}A - \int_V S(\vec{u}, t)\, \mathrm{d}V = 0

Deriving the continuity equation​

Conservation of mass states that for any control volume, during a small time interval Δt\Delta t, the mass entering the volume minus the mass leaving the volume equals the change of mass inside the control volume. For mass mm of density ρ\rho, and advection velocity uu over the control volume VV, this gives:

∂∂t∫Vρ⋅dV+∫A(ρ⋅u)⋅n⃗⋅dA=0\frac{\partial}{\partial t}\int_V \rho \cdot \mathrm{d}V + \int_A (\rho \cdot u) \cdot \vec{n} \cdot \mathrm{d}A = 0

f(u)=ρ⋅uandu⋅n⃗=u⃗f(u) = \rho \cdot u \quad \text{and} \quad u \cdot \vec{n} = \vec{u}

The term SS is the source term, and since there is no mass production, SS is zero. Integrating the preceding equation yields:

∂ρ∂t+∇(u⃗ρ)=0\frac{\partial \rho}{\partial t} + \nabla(\vec{u}\rho) = 0

Which can be re-arranged into the total-derivative (material derivative) form, using the nabla operator ∇=(∂∂x,∂∂y,∂∂z)\nabla = \left(\frac{\partial}{\partial x}, \frac{\partial}{\partial y}, \frac{\partial}{\partial z}\right) and DDt=∂∂t+dxdt∂∂x+dydt∂∂y+dzdt∂∂z\frac{D}{Dt} = \frac{\partial}{\partial t} + \frac{\mathrm{d}x}{\mathrm{d}t}\frac{\partial}{\partial x} + \frac{\mathrm{d}y}{\mathrm{d}t}\frac{\partial}{\partial y} + \frac{\mathrm{d}z}{\mathrm{d}t}\frac{\partial}{\partial z}:

DρDt+ρ∇⋅u⃗=0\frac{D\rho}{Dt} + \rho \nabla \cdot \vec{u} = 0