Compressible flow (source code)

= Compressible flow
{wiki}

In <compressible flow>, a fluid parcel's <mass density> can change as it moves. The <continuity equation> expresses the relation between density change and local expansion:
$$
\frac{D\rho}{Dt}=-\rho\nabla\cdot\mathbf u.
$$
A compressed gas parcel occupies less <volume> without losing <mass>, so its density rises. The resulting <pressure> response depends on an <equation of state> and on how the parcel exchanges <heat>.

A piston driven into a gas demonstrates why this matters: pressure disturbances propagate at the <speed of sound>, and sufficiently strong or rapid compression can produce a <shock wave>. The <Mach number> compares bulk speed with this propagation speed. Low Mach number often supports a nearly constant-density model for weakly heated gases, but heating or composition changes can still make density variations important at low flow speed. Compressibility is therefore a physical approximation to assess, rather than a label fixed by speed alone.