5.2 Conservation of mass: the continuity equation
Mass is conserved: it is neither created nor destroyed as a fluid flows. If the mass inside a fixed region changes, the change must be accounted for entirely by mass crossing the boundary. Turning this bookkeeping statement into a differential equation gives the first of the governing equations of fluid motion.
The balance over a fixed volume
Fix an arbitrary region with boundary surface . The mass it contains is , and the rate at which mass leaves through is the flux of outward through the surface. Conservation of mass is the statement that the rate of decrease of the contained mass equals the net outward flux:
▶ From the integral balance to the differential law Derivation
The mass in changes only by transport across :
The minus sign makes outward flow () decrease the contained mass. Because is fixed, the time derivative passes inside as a partial derivative; the divergence theorem (refresher: vector calculus →) turns the surface integral into a volume integral:
This holds for every region , so the integrands must be equal pointwise.
The result is the continuity equation:
The vector is the mass flux — mass per unit area per unit time. Continuity says that density falls wherever the mass flux diverges and rises wherever it converges.
Where the flow lines converge the divergence is negative and density accumulates; where they spread apart it is positive and density depletes. The continuity equation is nothing more than this picture made local.
The incompressible limit
Expanding the divergence, , the continuity equation can be written with the material derivative of the previous lesson:
A flow is incompressible when each fluid parcel keeps a constant density along its path, . The continuity equation then collapses to the divergence-free condition
Incompressibility is a property of the flow, not only of the fluid: it holds whenever the flow speed is small compared with the speed of sound in the medium, so that pressure variations are too weak to compress the fluid appreciably. Liquids under ordinary conditions, and gases moving well below their sound speed, are both well described by . The divergence-free condition is a powerful constraint — it removes one unknown and makes the pressure a quantity determined instantaneously by the flow rather than by a separate equation of state.