EngiAtlas Knowledge map
CHAPTER02ARTICLE01

Fluid mechanics / Write conservation laws

FLUID MECHANICS · 02–01 / BASIC

Continuity equation

Formulate conservation of mass as relations for section flow rates, a control volume, and the local flow field.

12 min read2026-08-13Sources checkedJA version

Abstract

The continuity equation states that fluid mass cannot appear or disappear within a flow. In steady one-dimensional flow, mass flow rate remains constant; at constant density, a smaller area therefore requires a greater mean velocity.

02. Understand in 30 seconds

Schematic of incompressible flow from a wide pipe into a narrow pipeMean velocity increases as flow area decreasesA₁V₁A₂V₂wide areanarrow area
The continuity equation says fluid does not disappear

When water flows from a wide pipe into a narrow pipe, it moves faster in the narrow section. The mass passing per unit time must stay the same. The continuity equation expresses this idea for any flow.

  1. 1
    Observe

    The outlet flow area is smaller

  2. 2
    Conserve

    The mass passing per unit time does not change

  3. 3
    Result

    At constant density, the outlet speed increases

The three quantities in the diagram

AAFlow area
Area perpendicular to the flow
VVMean speed
Velocity averaged over the area
ρ\rhoDensity
Mass per unit volume
Constant-density flow
A1V1=A2V2A_1V_1=A_2V_2
Mean speed increases by the same factor that flow area decreases.

03. Principle and equation

Schematic mass balance over a control volumeThe difference between incoming and outgoing mass accumulates insidecontrol volumemass inmass outmass accumulated inside

Imagine an arbitrary control volume around a flow. Conservation of mass says that the rate of mass accumulation inside plus the net mass flow leaving through its boundary is zero. Because this holds for any shape or location, it is a starting point for fluid analysis.

Start here: steady, one-dimensional
m˙=ρAV=const.\\dot{m}=\\rho A V=\\mathrm{const.}
Use this form to compare the inlet and outlet of a pipe or nozzle. V denotes cross-sectional mean speed.
Balance over a region: integral form
ddt∫ΩρdV+∮∂Ωρu·ndA=0\\frac{\\mathrm{d}}{\\mathrm{d}t}\\int_\\Omega \\rho\\,\\mathrm{d}V+\\oint_{\\partial\\Omega}\\rho\\mathbf{u}\\cdot\\mathbf{n}\\,\\mathrm{d}A=0
Mass accumulation inside the control volume plus net outward mass flow across its boundary is zero.
General local form: differential form
∂ρ∂t+∇·(ρu)=0\\frac{\\partial \\rho}{\\partial t}+\\nabla\\cdot(\\rho\\mathbf{u})=0
Differential (local) form. The first term is local density change; the second is the divergence of mass flux.

04. Symbols and units

SymbolQuantitySI unit
ρ\rhoDensitykg·m−3\mathrm{kg\,m^{-3}}
ttTimes\mathrm{s}
u\mathbf{u}Local velocity vectorm·s−1\mathrm{m\,s^{-1}}
VVCross-sectional mean speedm·s−1\mathrm{m\,s^{-1}}
AAFlow aream2\mathrm{m^2}
m˙\dot{m}Mass flow ratekg·s−1\mathrm{kg\,s^{-1}}

05. Derivation

Mass in a control volume

Integrating density over the control volume gives the total mass inside.

mΩ=∫ΩρdVm_\\Omega=\\int_\\Omega\\rho\\,\\mathrm{d}V
Flow through the boundary

Integrating the normal component of mass flux over the boundary gives the net outward mass flow.

m˙out=∮∂Ωρu·ndA\\dot{m}_{\\mathrm{out}}=\\oint_{\\partial\\Omega}\\rho\\mathbf{u}\\cdot\\mathbf{n}\\,\\mathrm{d}A
Apply conservation

Set the rate of mass accumulation plus the net outward mass flow equal to zero.

ddt∫ΩρdV+∮∂Ωρu·ndA=0\\frac{\\mathrm{d}}{\\mathrm{d}t}\\int_\\Omega \\rho\\,\\mathrm{d}V+\\oint_{\\partial\\Omega}\\rho\\mathbf{u}\\cdot\\mathbf{n}\\,\\mathrm{d}A=0
Obtain the local form

Apply the divergence theorem and use the fact that the balance holds for any control volume.

∂ρ∂t+∇·(ρu)=0\\frac{\\partial \\rho}{\\partial t}+\\nabla\\cdot(\\rho\\mathbf{u})=0

06. Conditions of use

✓ Always preserve

• Mass conservation holds for every fluid

• Retain density changes in compressible flow

• Retain accumulation in unsteady flow

! Conditions for simplification

• Constant volume flow assumes steady, 1-D, constant-density flow

• At a junction, balance the sum of all branches

• Do not confuse mean and local velocity

07. Worked example

Water flows at 2.0 m·s⁻¹ through a 100 mm diameter pipe that narrows to 50 mm. Assuming incompressible flow, find the downstream mean velocity.

D1=100mmD_1=100\,\mathrm{mm}V1=2.0m·s−1V_1=2.0\,\mathrm{m\,s^{-1}}D2=50mmD_2=50\,\mathrm{mm}ρ=const.\\rho=\\mathrm{const.}

A1V1=A2V2A_1V_1=A_2V_2

V2=V1A1A2=V1(D1D2)2=8.0m·s−1V_2=V_1\\frac{A_1}{A_2}=V_1\\left(\\frac{D_1}{D_2}\\right)^2=8.0\\,\\mathrm{m\\,s^{-1}}

08. Calculator

Continuity equation calculator

Find the mean velocity at section 2 from the state at section 1 and the density and area at section 2.

Mass flow rate m˙\dot{m}20.000 kg·s−1\mathrm{kg\,s^{-1}}
Mean speed at section 2 V2V_25.0000 m·s−1\mathrm{m\,s^{-1}}

09. Common mistakes

×

Volume flow is always conserved
Mass flow is conserved. Volume flow changes when density changes in compressible flow.

×

Halving area and halving diameter are the same
If a circular diameter halves, area becomes one quarter and incompressible velocity becomes four times larger.

×

Ignoring the direction of velocity
The sign of inflow and outflow follows the dot product of velocity with the outward unit normal.

10. Applications and connections

Nozzles & diffusersPipe junctionsPump sizingWind tunnelsCompressible nozzlesCFD mass-balance checks
Next: Momentum conservation

Find forces on bodies from changes in fluid momentum.

→

Sources

Verification status

The text, symbols, units and worked example were checked against the sources below. The calculator reproduces the 8.0 m·s⁻¹ worked-example result. Independent review by an external engineer has not yet been completed.

  1. Primary reference (theory and derivation): JSME Textbook Series — Fluid Mechanics
  2. Supporting reference (governing equations): NASA Glenn — Navier–Stokes Equations
  3. Beginner-friendly explanation: NASA Glenn — Mass Flow Rate Equations
  4. Units and notation: NIST — SI Units