Conservation of mass along a moving element
Derive the material derivative and continuity equation, then separate incompressibility from constant density and steady flow.
On this page
The question for today
What you’ll understand
- Evaluate temporal and advective changes separately.
- Connect local mass balance with flux through a fixed boundary.
- State what zero divergence does and does not imply about density.
A drifting thermometer can warm even when every fixed thermometer reports a steady temperature. It moves through a spatial gradient. This simple observation explains the material derivative, including the convective acceleration that makes fluid equations nonlinear. Combining that derivative with mass conservation gives a local account of compression: a material element gains density by losing volume, without acquiring additional mass from its surroundings.
Differentiate the quantity that the element actually samples
Let a scalar field describe temperature and let a material path describe the element’s position. The chain rule differentiates the composite temperature evaluated on that path. One contribution changes the field at the current fixed position; another comes from crossing the field’s spatial gradients. The result is the derivative following fluid material. A separately propelled sensor has its own velocity, so its sampling derivative need not equal the material derivative of the fluid.
For velocity itself, apply the same chain rule component by component in a fixed Cartesian frame. A steady nozzle can accelerate fluid because faster locations lie downstream. Setting the partial time derivative to zero only removes the local contribution; it does not remove spatial acceleration. Curvilinear coordinates require derivatives of the basis directions as well, which is why a constant speed around a circle still has acceleration.
Balance storage against outward mass transport
Choose a fixed volume and orient its surface normal outward. The total mass inside can change only through boundary flux when there are no mass sources. Outward flux decreases storage, establishing the minus sign. The divergence theorem converts surface flux into a volume integral. Since the volume can be arbitrarily small in a smooth continuum region, its integrand must vanish, giving the differential continuity equation.
Expand the divergence of density times velocity using the product rule. The density gradient contribution combines with the partial density derivative to make the material derivative. What remains is density times velocity divergence. Positive divergence describes local volumetric expansion and therefore decreases the density of a conserved material element. Steady density at a fixed point can coexist with changing density along the flow because fresh material keeps arriving there.
Use incompressibility as a precise kinematic constraint
An incompressible motion preserves each infinitesimal material volume and has zero velocity divergence. Conservation of mass then gives constant density along each element’s trajectory. The density need not be the same for every element: an idealized stratified incompressible flow can transport a nonuniform density field. Uniform density that is fixed everywhere and in time is a stronger condition, often useful when thermal expansion and composition changes are negligible.
A low-speed gas is not automatically incompressible under strong heating, and a liquid may require compressibility to describe sound. State the processes and accuracy being retained before dropping density changes. At a discontinuity, the differential form must be interpreted through a conservative integral balance rather than derivatives of an invented smooth interpolation. For a steady one-dimensional duct with uniform section averages and impermeable walls, constant mass flow gives density times mean speed times area constant.
Work it through
Separate local and advective warming
Near a point in a smooth flow, kelvin when x is in metres and t in seconds. The local fluid velocity is . Find its material temperature rate. Separately, a material density is and divergence is ; find its instantaneous density rate.
The fixed-position temperature rate is . This is what a stationary probe measures after its own response time has been neglected; it is only one part of the material rate.
The advective contribution is . Add the local contribution to obtain for fluid moving toward warmer positions.
Use mass balance independently: . This is an instantaneous rate; extrapolating it linearly indefinitely would ignore subsequent density changes.
The moving fluid warms at 14 K/s and the expanding element’s density initially falls at 1 kg/m³/s. These are transport statements; an energy or momentum equation must supply a complete physical evolution.
The living notebook
Explore the model
Interactive lab · queue
Storage is arrivals minus departures
For this storage analogy, choose arrival rate λ smaller than service rate μ. Predict that the fluid-backlog readout decreases from four until it reaches zero. Then set λ greater than μ and predict linear growth. The two sliders control rates, not density or duct geometry.
- Fluid backlog
- 4
- Net rate · λ − μ
- −1 /s
- M/M/1 mean residence
- 1 s
Fluid backlog starts at 4 and follows max(0, 4 + (λ − μ)t). The separate M/M/1 residence-time formula assumes Poisson arrivals, exponential service and λ < μ. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forThe backlog model illustrates the sign of storage balance. It is not fluid-mechanics continuity or a compressible duct solver; the separately displayed M/M/1 time assumes a stable stochastic queue.
Pause & reason
Check your understanding
Your turn
Try it yourself
A steady duct carries a mass flow with inlet density , mean speed , and area . The outlet density is and area is . Find the outlet mean speed and test the constant-volume-flow shortcut.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Conserve mass flow ρUA rather than assuming the volume flow UA is constant when density changes.
Compare with the solution
The inlet mass flow is . Thus the outlet speed is . The volume flows are 0.12 and 0.16 cubic metres per second, respectively. Their difference is compatible with conserved mass because the outlet material is less dense. These balances assume no wall leakage and appropriate mean quantities.
Keep the idea
Take it with you
- A material rate includes both fixed-position change and advection.
- Mass continuity relates material density change to volumetric expansion.
- Zero divergence preserves each element’s density but does not require a uniform density field.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.