# Continuity equation

### From Thermal-FluidsPedia

In order to obtain the differential formulations, it is necessary to apply the divergence theorem from vector calculus. For a general vector quantity , which is continuously differentiable, and for a control volume *V*, enclosed by a piecewise smooth control surface *A*, the divergence theorem states that

The desired differential equations may be obtained by applying this relationship to the integral form of the basic laws.

Furthermore, since the control volume shape and size are fixed in time, Leibnizâ€™s rule for the specific general quantity φ is also valid:

The surface integral in eq. (4) may be converted to a volume integral by applying eq. (1) as follows:

Substituting eq. (3) into eq. (4) and considering eq. (2), the entire left-hand side of eq. (4) is included in a single volume integral, i.e.,

The only condition that ensures that eq. (4) is true for any arbitrary shape and size of the control volume is that the integrand must be equal to zero, i.e.,

which is the differential form of the law of the conservation of mass.

Equation (5) can also be rewritten as

where *D* / *D**t* is the *substantial derivative* (or *material derivative*) defined by

For a stationary reference frame, *V*_{rel} = *V*, and eq. (6) becomes

For incompressible flow, in which the density of the fluid is constant (), eq. (8) simplifies as

For steady-state *compressible* flow, the continuity equation can be obtained by simplifying eq. (5), i.e.,

## References

Faghri, A., and Zhang, Y., 2006, *Transport Phenomena in Multiphase Systems,* Elsevier, Burlington, MA

Faghri, A., Zhang, Y., and Howell, J. R., 2010, *Advanced Heat and Mass Transfer,* Global Digital Press, Columbia, MO.