The continuity equation is a statement of the Law of Conservation of Mass applied to fluid flow. It is used often in fluid mechanics to help solve a variety of problems, and is also part of the explanation of the phenomenon of lift.
As a conservation law, it summarizes to "what goes in, must come out". In this case, inside a finite amount of space, any mass flowing in (or out) is balanced by other mass flowing out (or in) or an increase (or decrease) in density inside that space. For example, a box completely full of foam cannot have any more foam put in it unless you either remove some foam or compress it (increasing its density).
The derivation of the full integral form of the equation is long and arduous, and thus will not be repeated here. The final equation is shown below, with time represented by t, density by ρ, the volume of interest V with boundary surface A, and velocity vector v and unit surface normal vector n
∂/∂t ∫∫∫V ρ dV + ∫∫A -ρv⋅n dA = 0
The interpretation of this equation is that the time rate of change of mass within the volume (the triple integral) and the mass leaving the volume (double integral, representing mass flux) must sum to zero.
In many practical applications, one or more assumptions is made to simplify the use of the continuity equation. The most common is to assume the flow is a steady-state flow, which means the vector field of velocity does not change with respect to time. This makes the first integral a constant with respect to time, so its time partial derivative is zero, leaving:
∫∫A -ρv⋅n dA = 0
This means that there is a dynamic equilibrium of fluid mass in the volume. If it is arranged that there is some finite number of inlets and some (possibly different) finite number of outlets for the fluid, then it means that the mass of fluid that goes in the inlets must immediately also go out the outlets, because the mass inside the volume cannot change.
Simplifying further for the case where there is exactly one inlet, labeled 1; exactly one outlet, labeled 2; and both of these are flat surfaces with area A1 and A2, respectively, the continuity equation becomes:
ρ1A1v1=ρ2A2v2
This is the most common version used in elementary fluid mechanics problems. It translates to, "The mass of fluid flowing past station one per unit time is the same as the mass of fluid flowing past station two per unit time." A further simplification can be made if the flow is incompressible; this implies that density is constant so ρ1=&rho2 and they can be divided off the above equation with impunity.
The equation can also be written in the form of a differential equation, which can be used to work with an infinitesimal volume, in other words, a point. This is derived from the full integral form using the divergence theorem.
∂ρ/∂t + ∇⋅(ρV) = 0