Continuity equation in integral and differential form

Conservation of mass for a control volume and at a point: integral, one-dimensional and differential forms, incompressible and compressible special cases, with branching-pipe, tank-filling and nozzle numericals.

Drafted with Aria, reviewed by the AiCanCode.org team. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Conservation of mass is the first equation in every flow analysis. It sizes wind-tunnel contractions and test sections, tells you how fast air must move through an engine intake or a nozzle throat, and, in differential form, is one of the equations every CFD code solves at each cell. It also gives the first check on whether a proposed velocity field is physically possible.

Key ideas

System and control volume. A system is a fixed quantity of mass, so its mass cannot change. A control volume (CV) is a region in space through which fluid flows. The Reynolds transport theorem converts "mass of the system is constant" into a statement about a CV: the rate of increase of mass inside the CV equals the net mass inflow across its surface.

Integral form. For a fixed CV, ∂/∂t ∭ρ dV + ∯ρ(V·n) dA = 0, where n is the outward unit normal. Outflow (V·n > 0) counts positive, inflow negative. For steady flow the first term vanishes: mass in equals mass out.

One-dimensional (uniform) flow. If velocity and density are uniform across each inlet and outlet, the steady form becomes ṁ = ρAV = constant along a stream tube or duct, with several inlets and outlets adding up: Σṁ_in = Σṁ_out. For non-uniform profiles, use the mean velocity V̄ = Q/A.

Differential form. Applying the same balance to an infinitesimal cube gives ∂ρ/∂t + ∇·(ρV) = 0, or equivalently Dρ/Dt + ρ∇·V = 0. The second version shows that ∇·V is the rate of volumetric dilatation (fractional rate of volume change) of a fluid element.

Special cases.

  • Steady compressible flow: ∇·(ρV) = 0.
  • Incompressible flow (ρ constant following a particle): ∇·V = 0, i.e. ∂u/∂x + ∂v/∂y + ∂w/∂z = 0. This holds even if the flow is unsteady. In 1-D it reduces to Q = AV = constant.
  • 2-D incompressible flow: continuity is satisfied automatically by a stream function (previous topic).
  • Cylindrical coordinates: (1/r)∂(r·u_r)/∂r + (1/r)∂u_θ/∂θ + ∂u_z/∂z = 0 for incompressible flow.

Compressible flow in ducts. Taking logs of ρAV = constant gives dρ/ρ + dA/A + dV/V = 0. At low Mach number dρ/ρ is negligible, so a smaller area means a higher velocity. At supersonic speed density falls faster than velocity rises, which is why supersonic nozzles diverge (see compressible flow).

Assumptions to state. Steady or unsteady; uniform or non-uniform properties at sections; compressible or incompressible. Continuity itself needs no assumption beyond the continuum; the simplified forms do.

Formulas

∂/∂t ∭ρ dV + ∯ρ·(V·n) dA = 0

  • ρ: density (kg/m³); V: velocity (m/s); n: outward unit normal; dV: volume element (m³); dA: area element (m²). Any fixed control volume.

ṁ = ρ·A·V and steady ρ₁·A₁·V₁ = ρ₂·A₂·V₂

  • ṁ: mass flow rate (kg/s); A: area normal to flow (m²); V: mean velocity (m/s).

Q = A·V and incompressible A₁·V₁ = A₂·V₂, Σ Q_in = Σ Q_out

  • Q: volume flow rate (m³/s).

dM_cv/dt = Σ ṁ_in − Σ ṁ_out

  • M_cv: mass inside the CV (kg). Use for filling and emptying tanks.

∂ρ/∂t + ∂(ρu)/∂x + ∂(ρv)/∂y + ∂(ρw)/∂z = 0

  • General differential form (Cartesian).

∂u/∂x + ∂v/∂y + ∂w/∂z = 0

  • Incompressible flow, steady or unsteady.

dρ/ρ + dA/A + dV/V = 0

  • Steady 1-D compressible flow in a duct.

Worked examples

Example 1 (standard): branching pipe. Given: a 0.3 m pipe carrying water at 2 m/s splits into a 0.2 m branch at 3 m/s and a 0.15 m branch. Find the velocity in the 0.15 m branch.

  1. Q₁ = A₁·V₁ = (π/4)(0.3²)(2) = 0.14137 m³/s.
  2. Q₂ = A₂·V₂ = (π/4)(0.2²)(3) = 0.09425 m³/s.
  3. Q₃ = Q₁ − Q₂ = 0.04712 m³/s.
  4. A₃ = (π/4)(0.15²) = 0.017671 m², so V₃ = 0.04712/0.017671 = 2.667 m/s. Answer: V₃ ≈ 2.67 m/s.

Example 2 (standard): filling tank (unsteady). Given: a tank of plan area 2 m² receives 0.05 m³/s of water and drains through a 0.1 m pipe at 3 m/s. Find the rate of rise of the level.

  1. Outflow Q_out = (π/4)(0.1²)(3) = 0.02356 m³/s.
  2. A_tank·dh/dt = Q_in − Q_out = 0.05 − 0.02356 = 0.02644 m³/s.
  3. dh/dt = 0.02644/2 = 0.01322 m/s. Answer: level rises at ≈ 13.2 mm/s.

Example 3 (GATE level): compressible nozzle and a velocity field. (a) Air enters a nozzle with ρ₁ = 1.2 kg/m³, V₁ = 50 m/s, A₁ = 0.1 m², and leaves with ρ₂ = 0.9 kg/m³ through A₂ = 0.05 m².

  1. ṁ = ρ₁·A₁·V₁ = 1.2 × 0.1 × 50 = 6.0 kg/s.
  2. V₂ = ṁ/(ρ₂·A₂) = 6.0/(0.9 × 0.05) = 133.3 m/s. Answer: V₂ ≈ 133 m/s (an incompressible assumption would give 100 m/s, a 25 % error). (b) Is V = (x² + y)·i − 2xy·j a possible incompressible flow? ∂u/∂x = 2x, ∂v/∂y = −2x; sum = 0. Yes. (c) If u = 2x in 2-D incompressible flow, ∂v/∂y = −2, so v = −2y + f(x).

Common mistakes

  • Using Q = AV for gases at high speed. Use ṁ = ρAV whenever density changes.
  • Using the pipe diameter where the area is needed, or forgetting the π/4.
  • Treating the incompressible condition as steady-only. ∇·V = 0 holds for unsteady incompressible flow too.
  • Sign errors in the integral form: outflow positive, inflow negative with the outward normal.
  • Forgetting the storage term dM_cv/dt in filling and emptying problems.
  • Using a velocity that is not normal to the area (use the normal component V·n).

For GATE AE

Common questions: velocity in a contraction or a branching duct, mass flow through a nozzle with given densities, wind-tunnel contraction ratio and test-section speed, unsteady tank level, and checking whether a given 2-D or 3-D velocity field satisfies continuity or finding the missing component. Practise moving quickly between ṁ, Q and V, and recognising when density changes must be kept.

Quick check

  1. A wind tunnel settling chamber of area 4 m² has air at 5 m/s. What is the incompressible test-section speed if its area is 0.5 m²?
  2. Does u = 3x, v = −3y, w = 0 satisfy incompressible continuity?
  3. Air at 1.2 kg/m³ flows at 3 m/s through 0.05 m². What is ṁ?
  4. For u = x², find v (2-D, incompressible) with v = 0 on y = 0.

Answers: 1. 40 m/s 2. Yes (3 − 3 = 0) 3. 0.18 kg/s 4. v = −2xy

Try answering each one aloud before you open it.

  1. 1.What is the continuity equation in fluid mechanics?Concept

    It is conservation of mass applied to a flowing fluid: the rate of increase of mass inside a control volume equals the net mass inflow across its boundary. For steady flow through a duct with uniform sections this becomes ρ₁A₁V₁ = ρ₂A₂V₂, and for incompressible flow A₁V₁ = A₂V₂. In differential form it is ∂ρ/∂t + ∇·(ρV) = 0, which reduces to ∇·V = 0 for incompressible flow.

  2. 2.Explain the difference between the integral and differential forms of the continuity equation.Concept

    The integral form of the continuity equation is used to analyze the flow of fluid across a control volume, considering the entire volume as a whole. It is useful for systems where the flow properties are averaged over a large area. The differential form, on the other hand, is used to analyze the flow at a specific point within the fluid. It provides a local description of the flow and is expressed in terms of partial derivatives, making it suitable for analyzing variations in flow properties at a microscopic level.

  3. 3.Why is the continuity equation important in aerospace engineering?Application

    The continuity equation is crucial in aerospace engineering because it ensures the conservation of mass in fluid flows, which is essential for designing efficient and safe aircraft. It helps in predicting how air flows over wings and through engines, which affects lift, drag, and propulsion. Understanding these flow characteristics is vital for optimizing aircraft performance and fuel efficiency.

  4. 4.What assumptions are typically made when applying the continuity equation?Concept

    The general equation needs only the continuum assumption; the simplifications need more. A₁V₁ = A₂V₂ assumes steady, incompressible flow with uniform (or mean) velocity normal to each section. ρAV = constant drops incompressibility but keeps steadiness and one-dimensional sections. Incompressibility is reasonable for liquids and for gases below about Mach 0.3; for filling or emptying problems the steady assumption must be dropped and a storage term dM/dt kept.

  5. 5.How does the continuity equation apply to compressible flows?Application

    For compressible flows, the continuity equation must account for changes in fluid density. The equation is expressed in terms of the density (ρ), velocity (V), and cross-sectional area (A) as ρ₁A₁V₁ = ρ₂A₂V₂. This form ensures that the mass flow rate remains constant even when the fluid density changes, which is common in high-speed gas flows such as those encountered in aerospace applications.

  6. 6.What does it mean if your measurements appear to violate the continuity equation?Application

    Mass cannot actually be created or destroyed, so an apparent violation means something in the analysis or data is wrong: a leak or an unaccounted inlet or outlet, an unsteady storage term (the level or density inside the volume is changing), density change that was ignored in a gas flow, non-uniform velocity profiles treated as uniform, or simple instrument error. In a wind tunnel or engine test, a mass-balance check across the rig is a standard way to catch such problems.

  7. 7.Explain how the continuity equation is used in the design of wind tunnels.Application

    In wind tunnel design, the continuity equation is used to ensure that the air flow remains consistent and controlled throughout the tunnel. By adjusting the cross-sectional area of the tunnel, engineers can control the velocity of the air flow to simulate different flight conditions. The continuity equation helps in calculating the necessary dimensions and shapes of the tunnel sections to achieve the desired flow characteristics.

  8. 8.A pipe with a diameter of 0.5 m carries water at a velocity of 2 m/s. What is the velocity of the water if the pipe narrows to a diameter of 0.25 m?Numerical

    Using the continuity equation for incompressible flow, A₁V₁ = A₂V₂. First, calculate the cross-sectional areas: A₁ = π(0.5/2)² = 0.196 m² and A₂ = π(0.25/2)² = 0.049 m². Then, solve for V₂: V₂ = (A₁V₁) / A₂ = (0.196 m² * 2 m/s) / 0.049 m² = 8 m/s. Therefore, the velocity of the water in the narrower section is 8 m/s.

  9. 9.In a steady flow, air enters a duct with a velocity of 10 m/s and a density of 1.2 kg/m³. If the duct area is 0.3 m², what is the mass flow rate?Numerical

    The mass flow rate (ṁ) is given by the product of density (ρ), velocity (V), and area (A): ṁ = ρVA. Substituting the given values: ṁ = 1.2 kg/m³ * 10 m/s * 0.3 m² = 3.6 kg/s. Therefore, the mass flow rate is 3.6 kg/s.

  10. 10.How does the continuity equation relate to Bernoulli's equation?Concept

    The continuity equation and Bernoulli's equation are both fundamental principles in fluid mechanics, but they address different aspects of fluid flow. The continuity equation deals with the conservation of mass, ensuring that the mass flow rate is constant along a streamline. Bernoulli's equation, on the other hand, deals with the conservation of energy, relating the pressure, velocity, and height of a fluid along a streamline. Together, they provide a comprehensive understanding of fluid behavior, particularly in incompressible and steady flows.

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?