Basics of compressible flow

Basics of Compressible Flow — Mach number, speed of sound, isentropic and shock relations, choking and nozzles, and why area change behaves differently for subsonic vs supersonic flows.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Compressibility dominates high-speed devices: gas turbines, rockets, nozzles, supersonic aircraft inlets, safety valves, and even pneumatic systems at high pressure ratios. Predicting when a flow will choke, how much mass a nozzle delivers, and how shocks and expansions change pressure and temperature is essential for design, performance estimates, and avoiding failures.

Key ideas

  • A fluid is called compressible when density variations are significant in the flow field. For gases, compressibility becomes important when the pressure change is not small or the speed is a significant fraction of the speed of sound.

  • The Mach number (M) is defined as the ratio of flow speed to local speed of sound: M = V/a. Regimes: subsonic (M < 1), sonic (M = 1), supersonic (1 < M < ~5), hypersonic (M ≳ 5). Many GATE ME questions hinge on identifying the correct regime and applicable relations.

  • Sound speed and perfect gas

    • The speed of sound (a) in a perfect gas is a = √(γ·R·T), where γ is the ratio of specific heats and R is the specific gas constant. For air at near-ambient conditions, γ ≈ 1.4, R ≈ 287 J·kg⁻¹·K⁻¹. Assumptions: perfect-gas behavior and local thermodynamic equilibrium.
  • Stagnation (total) properties

    • The stagnation (total) temperature (T₀) is the temperature the flow would attain if brought to rest adiabatically and reversibly (no shaft work), so that T₀ = T + V²/(2·c_p). For a perfect gas in isentropic deceleration, T₀/T = 1 + (γ−1)/2·M².
    • The stagnation (total) pressure (p₀) is the pressure obtained when the flow is brought to rest isentropically. For a perfect gas, p₀/p = [1 + (γ−1)/2·M²]^{γ/(γ−1)}. In an isentropic flow p₀ is constant along a streamline; across a shock p₀ decreases.
  • Isentropic flow through varying area ducts (nozzles/diffusers)

    • In 1D, steady, adiabatic, no-work, frictionless flow of a perfect gas with smooth area change, the flow is isentropic (except at shocks). Standard assumptions for nozzle formulas: 1D, steady, perfect gas, negligible potential energy change, no heat transfer and no shaft work.
    • The differential area–velocity relation is: dA/A = (M² − 1)·dV/V. Sign convention: dA > 0 for diverging duct; dV > 0 for acceleration. Consequences:
      • Subsonic (M < 1): to accelerate (dV > 0), need dA < 0 (converging duct).
      • Supersonic (M > 1): to accelerate (dV > 0), need dA > 0 (diverging duct).
      • Sonic condition (M = 1) occurs at a minimum area called the throat (A*).
    • The area–Mach relation (isentropic, perfect gas): A/A* = (1/M)·[ (2/(γ+1))·(1 + (γ−1)/2·M²) ]^{(γ+1)/(2(γ−1))}. For a given A/A* there are two solutions: subsonic and supersonic (except at M = 1). Real devices pick the branch set by upstream reservoir and downstream back-pressure boundary conditions.
  • Choking and mass flow

    • Choking: For a given upstream stagnation state (p₀, T₀), the mass flow through a duct with a minimum area reaches a maximum when M = 1 at the throat; further reduction of back pressure does not increase ṁ. Condition for choking in a converging nozzle (perfect gas, isentropic): pb/p₀ ≤ [2/(γ+1)]^{γ/(γ−1)}.
    • The critical (sonic) conditions at the throat are denoted by . For a perfect gas: T/T₀ = 2/(γ+1), p*/p₀ = [2/(γ+1)]^{γ/(γ−1)}, ρ*/ρ₀ = [2/(γ+1)]^{1/(γ−1)}.
    • The mass flow rate for isentropic nozzle flow is ṁ = A·p₀/√T₀ · √(γ/R) · M · [1 + (γ−1)/2·M²]^{−(γ+1)/(2(γ−1))}. The maximum (choked) value at M = 1 is ṁ* = A*·p₀/√T₀ · √(γ/R) · [2/(γ+1)]^{(γ+1)/(2(γ−1))}.
  • Shocks and expansions

    • A normal shock is a thin, nearly discontinuous region normal to the flow where supersonic flow decelerates to subsonic, with increases in static pressure and temperature, a decrease in Mach number, an increase in entropy, and a loss of stagnation pressure. Assumptions: adiabatic, no shaft work, negligible body forces, thin shock thickness so viscous and heat conduction act only within the shock, upstream uniform 1D state.
    • Exact normal-shock relations (perfect gas):
      • M₂² = [1 + (γ−1)/2·M₁²] / [γ·M₁² − (γ−1)/2]. Downstream is always subsonic for M₁ > 1.
      • p₂/p₁ = 1 + 2γ/(γ+1)·(M₁² − 1).
      • ρ₂/ρ₁ = ( (γ+1)·M₁² ) / ( (γ−1)·M₁² + 2 ). Then T₂/T₁ = (p₂/p₁)/(ρ₂/ρ₁).
      • Stagnation temperature is unchanged: T₀₂ = T₀₁. Stagnation pressure drops: p₀₂ < p₀₁ (compute via isentropic relations on each side and p₂/p₁).
    • Prandtl–Meyer expansion: a smooth turning of supersonic flow around a convex corner produces an isentropic expansion fan; M increases, p and T decrease, p₀ remains constant (no shock). The turning angle is related to Mach through the Prandtl–Meyer function (usually evaluated from tables/software in exams; derivation not required for basics).
    • Mach angle (μ) for weak disturbances / oblique waves: μ = sin⁻¹(1/M) for M > 1. It indicates the cone of influence of disturbances.
  • Why real devices differ from ideal

    • Viscous friction and boundary layers cause total-pressure (p₀) losses even without shocks, modify the effective area via displacement thickness, and can trigger or strengthen shocks and flow separation.
    • Heat transfer changes T₀ and can change whether flow chokes. Property variations: γ is not strictly constant; it decreases at high temperatures (e.g., in combustors, rocket nozzles), shifting all isentropic and shock results.
    • Manufacturing tolerances, surface roughness, and non-1D effects (swirl, secondary flows) lead to deviations; nozzle and diffuser efficiencies are used in practice to account for losses.
  • What to remember for exams/interviews

    • Always state assumptions: 1D, steady, adiabatic, no work, perfect gas, isentropic (except shocks). Distinguish static vs stagnation properties clearly.
    • For converging–diverging nozzles, specify which branch (subsonic/supersonic) is realized given p₀, T₀, and back pressure, and check for possible normal shock in the diverging part if back pressure is higher than the isentropic supersonic exit pressure.

Formulas

a = √(γ·R·T) — speed of sound; a: m·s⁻¹, γ: dimensionless, R: J·kg⁻¹·K⁻¹, T: K; perfect gas.

M = V / a — Mach number; V: m·s⁻¹, a: m·s⁻¹; all regimes.

T₀ = T + V²/(2·c_p) — definition of stagnation temperature; T₀, T: K; V: m·s⁻¹; c_p: J·kg⁻¹·K⁻¹; steady adiabatic no-work deceleration.

T₀/T = 1 + (γ−1)/2·M² — isentropic perfect-gas relation; M: dimensionless.

p₀/p = [1 + (γ−1)/2·M²]^{γ/(γ−1)} — isentropic perfect gas; p₀, p: Pa.

ρ₀/ρ = [1 + (γ−1)/2·M²]^{1/(γ−1)} — isentropic perfect gas; ρ₀, ρ: kg·m⁻³.

A/A* = (1/M)·[ (2/(γ+1))·(1 + (γ−1)/2·M²) ]^{(γ+1)/(2(γ−1))} — area–Mach relation; A, A*: m²; isentropic 1D perfect-gas nozzle/diffuser.

dA/A = (M² − 1)·dV/V — differential area–velocity; 1D, steady, isentropic, perfect gas.

ṁ = A·p₀/√T₀ · √(γ/R) · M · [1 + (γ−1)/2·M²]^{−(γ+1)/(2(γ−1))} — mass flow rate; ṁ: kg·s⁻¹; A: m²; p₀: Pa; T₀: K; isentropic perfect-gas nozzle.

ṁ* = A*·p₀/√T₀ · √(γ/R) · [2/(γ+1)]^{(γ+1)/(2(γ−1))} — choked mass flow at M = 1; symbols as above.

T*/T₀ = 2/(γ+1) — sonic (critical) temperature ratio; perfect gas.

p*/p₀ = [2/(γ+1)]^{γ/(γ−1)} — sonic (critical) pressure ratio; perfect gas.

ρ*/ρ₀ = [2/(γ+1)]^{1/(γ−1)} — sonic (critical) density ratio; perfect gas.

pb/p₀ ≤ [2/(γ+1)]^{γ/(γ−1)} — condition for choking in a converging nozzle; pb: back (exit) static pressure; isentropic perfect-gas.

M₂² = [1 + (γ−1)/2·M₁²] / [γ·M₁² − (γ−1)/2] — normal-shock downstream Mach; perfect gas, adiabatic.

p₂/p₁ = 1 + 2γ/(γ+1)·(M₁² − 1) — normal-shock static pressure ratio; perfect gas.

ρ₂/ρ₁ = ( (γ+1)·M₁² ) / ( (γ−1)·M₁² + 2 ) — normal-shock density ratio; perfect gas.

T₂/T₁ = (p₂/p₁)/(ρ₂/ρ₁) — normal-shock static temperature ratio; perfect gas.

μ = sin⁻¹(1/M) — Mach angle for M > 1; μ: radians (or degrees by conversion).

Worked examples

  • Given: Air (γ = 1.4, R = 287 J·kg⁻¹·K⁻¹), reservoir (stagnation) state p₀ = 300 kPa, T₀ = 320 K, throat area A* = 2.0 cm² = 2.0×10⁻⁴ m².
  • Find: (a) Choked mass flow ṁ*; (b) Sonic static pressure p*, temperature T*, speed of sound a*, velocity V* at throat; (c) Critical back pressure for choking pb,crit.
  1. Formula: ṁ* = A*·p₀/√T₀ · √(γ/R) · [2/(γ+1)]^{(γ+1)/(2(γ−1))} Numbers: √(γ/R) = √(1.4/287) = 0.06982 (to 5 s.f.); 1/√T₀ = 1/√320 = 0.05590 K⁻¹ᐟ²; product p₀·√(γ/R)/√T₀ = 300000 Pa × 0.06982 × 0.05590 = 1170.6 kg·s⁻¹·m⁻²; multiply by A* = 2.0×10⁻⁴ m² → 0.2341 kg·s⁻¹; factor [2/(γ+1)]^{(γ+1)/(2(γ−1))} = (2/2.4)³ = 0.83333³ = 0.57870. Result: ṁ* = 0.2341 × 0.57870 = 0.1355 kg·s⁻¹. Answer (a): ṁ* = 0.1355 kg·s⁻¹.
  2. Formulas:
    • p*/p₀ = [2/(γ+1)]^{γ/(γ−1)} → p*/p₀ = (2/2.4)^{3.5} = 0.5283 → p* = 0.5283 × 300 kPa = 158.5 kPa.
    • T*/T₀ = 2/(γ+1) → T* = (2/2.4) × 320 K = 266.7 K.
    • a* = √(γ·R·T*) → a* = √(1.4 × 287 × 266.7) = √(107333) = 327.6 m·s⁻¹.
    • V* = M·a* with M = 1 → V* = 327.6 m·s⁻¹. Consistency check via ṁ = ρ*·A*·V* with ρ* = p*/(R·T*) = 158500/(287×266.7) = 2.071 kg·m⁻³ → ṁ = 2.071 × 2.0×10⁻⁴ × 327.6 = 0.1357 kg·s⁻¹ (close to 0.1355; rounding differences acceptable). Answer (b): p* = 158.5 kPa, T* = 266.7 K, a* = 327.6 m·s⁻¹, V* = 327.6 m·s⁻¹.
  3. Critical back pressure: pb,crit/p₀ = [2/(γ+1)]^{γ/(γ−1)} → pb,crit = 0.5283 × 300 kPa = 158.5 kPa. For pb ≤ 158.5 kPa, the flow is choked and ṁ = 0.1355 kg·s⁻¹ (ideal, isentropic). Answer (c): pb,crit = 158.5 kPa.
  • Example 2 (GATE-level): Normal shock properties and stagnation-pressure loss
    • Given: Air (γ = 1.4, R = 287 J·kg⁻¹·K⁻¹). Upstream of a normal shock: M₁ = 2.0, p₁ = 100 kPa, T₁ = 300 K. Compute downstream Mach M₂, static pressure p₂, static temperature T₂, and stagnation pressures p₀₁ and p₀₂ with their ratio.
    1. Downstream Mach: M₂² = [1 + (γ−1)/2·M₁²] / [γ·M₁² − (γ−1)/2] Numbers: numerator = 1 + 0.2×4 = 1.8; denominator = 1.4×4 − 0.2 = 5.4; M₂² = 1.8/5.4 = 0.3333 → M₂ = 0.5774. Answer: M₂ = 0.577 (subsonic, as expected).
    2. Static pressure ratio: p₂/p₁ = 1 + 2γ/(γ+1)·(M₁² − 1) Numbers: 2γ/(γ+1) = 2.8/2.4 = 1.1667; (M₁² − 1) = 3; p₂/p₁ = 1 + 1.1667×3 = 4.5 → p₂ = 4.5 × 100 kPa = 450 kPa. Answer: p₂ = 450 kPa.
    3. Density ratio: ρ₂/ρ₁ = ( (γ+1)·M₁² ) / ( (γ−1)·M₁² + 2 ) Numbers: numerator = 2.4×4 = 9.6; denominator = 0.4×4 + 2 = 3.6; ρ₂/ρ₁ = 9.6/3.6 = 2.6667. Temperature ratio: T₂/T₁ = (p₂/p₁)/(ρ₂/ρ₁) = 4.5/2.6667 = 1.6875 → T₂ = 1.6875 × 300 K = 506.3 K. Answer: T₂ = 506.3 K.
    4. Stagnation temperatures: T₀₁/T₁ = 1 + (γ−1)/2·M₁² → T₀₁ = 300 × 1.8 = 540 K. Across a normal shock in adiabatic flow: T₀₂ = T₀₁ → T₀₂ = 540 K (check: consistent with M₂ and T₂ below).
    5. Stagnation pressures using isentropic relations on each side: Upstream: p₀₁/p₁ = [1 + (γ−1)/2·M₁²]^{γ/(γ−1)} → p₀₁/p₁ = 1.8^{3.5}. Compute 1.8³ = 5.832; √1.8 ≈ 1.3416; product 5.832×1.3416 ≈ 7.828 → p₀₁ ≈ 7.828 × 100 kPa = 782.8 kPa. Downstream: p₀₂/p₂ = [1 + (γ−1)/2·M₂²]^{γ/(γ−1)} → term = 1 + 0.2×0.3333 = 1.06667; raise to 3.5: ln = 0.06454; ×3.5 = 0.2259; exp ≈ 1.2535 → p₀₂ ≈ 1.2535 × 450 kPa = 564.1 kPa. Ratio: p₀₂/p₀₁ = 564.1/782.8 = 0.720 (stagnation pressure loss about 28%). Answers: p₀₁ ≈ 782.8 kPa, p₀₂ ≈ 564.1 kPa, p₀₂/p₀₁ ≈ 0.720.

Common mistakes

  • Mixing static and stagnation properties: writing p when p₀ is required or vice versa, especially across shocks where p₀ changes but T₀ stays constant (adiabatic).
  • Wrong γ value or assuming constant γ at very high temperatures; for air near ambient, γ ≈ 1.4 is fine; in hot flows γ decreases.
  • Sign mistakes in area–velocity differential: forgetting that to accelerate supersonic flow you need a diverging area (dA > 0 with dV > 0 when M > 1).
  • Using the wrong exponent in area–Mach relation or mass-flow function; for γ = 1.4, note the exponent (γ+1)/(2(γ−1)) = 3.
  • Expecting mass flow to keep increasing after choking by lowering back pressure in a converging nozzle; it does not (ṁ is capped at ṁ*; further reduction just adjusts the downstream shock/jet structure).
  • Applying isentropic relations across a shock (they do not hold across shocks; use shock relations and isentropic only on each side separately).

For GATE ME

  • Compute T₀, p₀, a, M, and V for given static properties (or vice versa) using isentropic relations.
  • Nozzle flow: given p₀, T₀, A (or A/A*), and back pressure, determine if choking occurs, find M, p, T at throat/exit, and compute mass flow. Be ready to choose the correct branch (subsonic vs supersonic) and to comment on shocks if pb is inconsistent with isentropic supersonic exit pressure.
  • Normal shock: upstream M and static properties given, find downstream M, p, T, density ratios, and stagnation pressure loss. Remember T₀ is constant, p₀ decreases.
  • Short conceptuals: conditions for choking, effect of area change on subsonic vs supersonic acceleration, Mach angle, qualitative effect of friction/heat on p₀ and T₀.
  • What to practise:
    • Quick algebra with isentropic ratios and the mass-flow function; recognize the critical ratios (p*/p₀, T*/T₀) for γ = 1.4.
    • Solving A/A* = f(M) for M numerically (trial or calculator) and checking with reasonableness (e.g., A/A* > 1 can be either M < 1 or M > 1).
    • Using normal-shock relations accurately and checking downstream subsonic condition.
    • Unit discipline: Pa, K, m·s⁻¹, kg·s⁻¹.

Quick check

  1. Air at M = 3 has what Mach angle μ? Use μ = sin⁻¹(1/M).
  2. In a smooth adiabatic nozzle, which section accelerates subsonic flow: converging or diverging?
  3. For air (γ = 1.4), what is p*/p₀?

Answers: 1) μ = sin⁻¹(1/3) ≈ 19.47°. 2) Converging accelerates subsonic (diverging decelerates subsonic); diverging accelerates supersonic. 3) p*/p₀ = (2/2.4)^{3.5} ≈ 0.5283.

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

Stuck on something here?