🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
NEWSLIVESearch All Content
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Conservation of Mass and the Continuity Equation

Fluid Mechanics & CFDFluid FundamentalsđŸŸĸ Free Lesson

Conservation of Mass and the Continuity Equation

What You'll Learn

  • 1Apply the Reynolds transport theorem to a chosen control volume
  • 2Write the integral mass balance and reduce it to Q = A V
  • 3Derive the differential continuity equation and test incompressibility
  • 4Link velocity, area, and density across nozzles, diffusers, and ducts

Every flow solution must conserve mass, and that single requirement eliminates more bad designs than any other rule in fluid mechanics. Whether the fluid is water in a pipe, air through a nozzle, or gas accumulating in a tank, the accounting is identical: what enters minus what exits equals what accumulates. This lesson builds the control-volume form you use on a diagram, the pointwise form a solver enforces at every cell, and the one-dimensional shortcuts that turn area ratios into velocity ratios.

Theory and Foundations

From a Moving System to a Fixed Control Volume

A system is a fixed collection of fluid particles that moves with the flow, so its mass never changes but its location does. A control volume is a region fixed in space, and mass crosses its boundary freely. The Reynolds transport theorem converts the time derivative for the moving system into storage inside the volume plus flux through the surface, taking a general property per unit mass.

For mass conservation the property is simply unity, so psi = 1, and the statement reduces to storage plus net outflow. Choosing control surfaces where velocity is uniform and normal, or where nothing crosses at all, is what collapses this integral into arithmetic.

The Integral Mass Balance

Rate of mass increase inside the volume plus net outward flux through its surface equals zero, because mass is neither created nor destroyed.

In steady flow the storage term vanishes, so mass flow in equals mass flow out across the surface, with mass flow written as rho A V for uniform normal velocity. For a liquid of nearly constant density this becomes volumetric continuity.

A 100 mm pipe carrying 2 m/s passes 15.7 L/s, and the same flow through a 50 mm pipe must move at 8 m/s.

The Differential Continuity Equation

Applying Gauss's theorem to the integral balance turns surface flux into a volume integral of a divergence, and since the relation holds for every arbitrary volume, the integrand itself must vanish pointwise.

Expanding the divergence separates unsteady density change from convective change. If density is spatially constant, the equation reduces to zero divergence of velocity, and for Cartesian components that reads as the sum of the three normal strain rates.

A velocity field that violates this implies mass creation, and a pressure solution built on it will never converge. This is also why the stream function of the previous lesson exists: differentiating any smooth psi into velocity components satisfies the constraint automatically.

One-Dimensional Applications

Ducts change area, and continuity converts those changes into velocity changes that feed Bernoulli and every loss calculation. Halving the diameter quadruples velocity and raises dynamic pressure by a factor of 16, while an expansion reverses the trade. Density matters for gases, so mass flow rho A V, not volume flow, is the invariant along a compressible duct. Unsteady devices keep the storage term: a tank being filled obeys inflow minus outflow equals the rate of change of stored volume times density.

Key Formulas

Mass flow in kg/s is the quantity that never changes along a duct, so compressible sections trade density against area and velocity together; only when density is uniform may you write Q = A V on both sides.

Worked Examples

Flow caseContinuity formTypical use
Steady incompressibleA1 V1 = A2 V2Water and low speed ducts
Steady compressiblerho1 A1 V1 = rho2 A2 V2Nozzles, compressors, gas lines
Unsteady with storageInflow minus outflow equals d(rho forall)/dtFilling and draining tanks
Differential formPartial rho / partial t plus div(rho u)Cell by cell solver check
Two-dimensional incompressibleVelocity from derivatives of psiStream function formulations

Real-World Examples

  • Reducing fitting - Flow of 15.7 L/s in a 100 mm pipe must reach 8.0 m/s when the line steps down to 50 mm, so the fitting itself must be rated for the higher velocity.
  • Venturi throat - A throat one quarter of the inlet area raises velocity four times and cuts static pressure sharply, which is the basis of every differential meter.
  • Diffuser recovery - A fourfold area rise halves velocity, dropping dynamic pressure to one quarter and converting it into pressure recovery.
  • Compressor duct - Air densified 1.5 times in a passage of 0.6 area gains only 11 percent in speed, since density and area both absorb the change.

💡Pick Boundaries That Zero Terms Out

Place control surfaces where velocity is uniform and normal, or where nothing crosses at all, and the integral balance collapses into simple arithmetic.

Common Mistakes

Applying A1 V1 = A2 V2 to high speed air

Fix: Use mass flow rho A V whenever density may change along the duct.

Using nominal pipe size for area

Fix: Recompute area from the actual inside diameter for the pipe schedule at each section.

Ignoring storage during a filling transient

Fix: Keep the rate of change of stored mass whenever the liquid level moves.

Key Takeaways

  • Mass conservation is storage plus net outflow, and both terms survive in unsteady flow.
  • With constant density, continuity becomes the volumetric balance Q = A V.
  • The differential form div(rho u) + partial rho / partial t = 0 is what solvers enforce locally, cell by cell.
  • Area, density, and velocity trade against each other while mass flow stays invariant.

Frequently Asked Questions

When can I safely use Q = A V instead of mass flow?

When density is uniform along the path, which covers liquids and air moving below roughly 100 m/s, where density shifts stay under a few percent.

What does a velocity field with zero divergence mean?

No net flow enters a tiny region, so the fluid inside only rearranges, which is exactly the incompressible constraint the solver enforces.

How does continuity help size a nozzle?

It converts the required exit velocity into a required exit area, and that area sets the pressure and thrust calculation that follows.

Interview Questions

Q1: Water enters a 100 mm pipe at 2 m/s and leaves a 50 mm pipe. Find exit velocity and flow.

Area scales with diameter squared, so velocity quadruples to 8 m/s; flow is pi/4 x 0.1^2 x 2 = 15.7 L/s.

Q2: Why does the continuity equation have no source term?

Mass is neither created nor destroyed in the field, unlike momentum, which gains body forces and surface stresses.

CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-09-27

—
☆☆☆☆☆
0 ratings

Rate & Feedback

Related Tutorials

Content with similar topics across other courses

Need Expert Fluid Mechanics & CFD Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement