Compressible Flow Calculator & Gasdynamics Simulator

Interactive gasdynamics engineering suite for Isentropic Flow, Normal & Oblique Shocks, Prandtl-Meyer Expansion Fans, Fanno & Rayleigh Flow, Nozzle Lab, and Pitot Tube calculations.

Working Fluid
γ Specific Heat Ratio
1.400
R Gas Constant
287.05 J/kg·K
cp / cv
1004.7 / 717.7

Inputs

Isentropic
0.500
288.15 K
101325 Pa
0.0100

Flow State

Subsonic

Static / Stagnation Distribution vs Mach

γ = 1.4
P/P0
T/T0
ρ/ρ0
A/A*

Formula Breakdown

Upstream Conditions (1)

Normal Shock
2.000
101325 Pa
288.15 K

Downstream State (2)

Rankine–Hugoniot

Normal Shock Animation

M1 = 2.000 → M2 = 0.577
Upstream supersonic (→)
Normal shock (vertical)
Downstream subsonic (→)

M₁ → M₂ Curve

Formula Breakdown

Wedge / Inputs

θ–β–M
2.500
15.0 deg
101325 Pa
288.15 K

Downstream State (2)

Wedge & Attached Shock

β = shock angle · θ = deflection
Streamline
Shock wave (β)
Wedge (θ)

θ–β–M Diagram

Formula Breakdown

Inputs

Expansion
1.500
12.0 deg
101325 Pa
288.15 K

Downstream State (2)

Expansion Fan Around a Corner

μ1 leading Mach line
μ2 trailing Mach line
Wall

Prandtl–Meyer Function ν(M)

Formula Breakdown

Pipe / Inlet Conditions

Fanno
0.300
0.100 m
5.00 m
0.0200
101325 Pa
288.15 K

Station 1 (inlet) & Station 2 (L downstream)

Mach Number Evolution Along Pipe

Mach M(x)
Choking limit L*

4f̄L*/D vs Mach

Formula Breakdown

Inlet Conditions

Rayleigh
0.400
150.0 kJ/kg
101325 Pa
288.15 K

Station 1 (inlet) & Station 2 (after heat transfer)

Rayleigh Line — T–s Diagram

Rayleigh line (subsonic branch)
Rayleigh line (supersonic branch)
State points

T0/T0* & P/P* vs Mach

Formula Breakdown

Configuration

Duct Flow

Controls

500000 Pa
500.0 K
101325 Pa
2.500
0.00500

Flow Regime

Supersonic

Nozzle Geometry & Flow Field

Subsonic (M<1)
Transonic
Supersonic (M>1)
Normal shock

Mach Number Distribution

Pressure Distribution P/P0

Off-Design Operating Map

Drag the back-pressure slider above and watch the shock traverse the diverging section

Formula Breakdown

ISA Standard Atmosphere

ICAO 1976
11,000 m
300.0 m/s

Pitot / Pitot-Static Probe

Measures M∞ from stagnation pressure
1.276

Atmospheric Profile 0–47 km

Temperature
Pressure (log)
Density (log)

Formula Breakdown

Unit Converter

Engineering Units
Result

NASA / Textbook Test Cases

Load a verified preset into any module
Presets are cross-checked against NACA Report 1135 tables and Anderson's Modern Compressible Flow worked examples. Loading a preset switches to the relevant tab and populates its inputs.

Calculation History

TimeModuleGasKey InputsKey Results
No calculations logged yet — every solve is recorded here automatically.

Select or Define Working Fluid

cp
cv
Molar Mass
a @ 288.15K

Display Unit System

All internal computation is always performed in SI base units for numerical accuracy — this setting only changes how results are displayed.

📘 Educational Notes

How to Use the Compressible Flow Simulator

Follow these steps to analyze high-speed gas flows, shock wave physics, and nozzle performance.

Step 1 — Select Calculation Module & Working Gas

Choose your target gasdynamics module from the top navigation bar (Isentropic, Normal Shock, Oblique Shock, Expansion Fan, Fanno Flow, Rayleigh Flow, Nozzle Lab, Atmosphere & Pitot, or Tools). In the global status bar, choose your working gas (Air, $N_2$, $O_2$, $He$, $H_2$, $CO_2$, Steam, Argon, Methane) or specify a custom specific heat ratio $\gamma$ ($c_p/c_v$) and gas constant $R$.

💡 Tip: Switching working gases instantly updates specific heat ratio $\gamma$ and gas constant $R$, immediately recalibrating all downstream Mach numbers, acoustic speeds, and choking limits across every active tab.
Step 2 — Set Up Flow Inputs & Boundary Conditions

Adjust upstream flow parameters such as Mach number $M_1$, static pressure $P_1$, static temperature $T_1$, wedge deflection angle $\theta$, duct length-to-diameter ratio $4fL/D$, or nozzle reservoir pressure $P_0$. Input fields allow instant slider adjustments or precise keyboard numerical entries.

Step 3 — Inspect Real-Time Graphs & Visual Canvas Animations

Observe the dynamic simulation viewports! Watch real-time particle motion across 1D normal shock fronts, 2D oblique shock waves, Prandtl-Meyer expansion fan angles, converging-diverging nozzle shock locations, and 2D pressure-Mach contour heatmaps. Interactive line charts automatically display operating point markers along thermodynamic curves.

💡 Tip: Hover over any chart curve to inspect exact property values at intermediate Mach numbers or duct lengths.
Step 4 — Review Step-by-Step Equations & Export Data

Expand the Formula Breakdown accordions at the bottom of each panel to study full mathematical derivations, variable units, and physical explanations. Use the Tools & Converter tab to generate formatted PDF engineering reports, download CSV data tables, or copy high-resolution PNG canvas graphics.

Sultan Saudagar — Mechanical Engineer
Written & Reviewed by
Sultan SaudagarMechanical Engineer & Gasdynamics Specialist

Mechanical engineer specializing in high-speed aerodynamics, gasdynamics, thermal systems design, and interactive physics simulation.

1. What is Compressible Flow? (Fundamentals of High-Speed Gasdynamics)

Compressible flow is the branch of fluid mechanics and aerodynamics concerned with fluid motion in which changes in fluid density ($\rho$) are significant, non-negligible, and directly coupled to pressure and temperature variations. Unlike low-speed liquids or sub-audible air currents where fluid density remains virtually constant, compressible flows undergo dramatic thermodynamic state changes as velocity approaches or exceeds the local speed of sound ($a$).

In high-speed aerodynamics, gas compression and expansion create physical phenomena impossible in incompressible flows: acoustic wave accumulation, supersonic shock waves, Prandtl-Meyer expansion fans, thermal and friction choking in ducts, and severe stagnation pressure losses. Understanding compressible flow is essential for designing supersonic aircraft, space launch rockets, gas turbine engines, steam power nozzles, hypervelocity projectiles, and industrial gas distribution pipelines.

Why Aerospace & Mechanical Engineers Use a Compressible Flow Calculator

Solving compressible gasdynamics equations manually involves evaluating non-linear thermodynamic power laws, transcendental trigonometric relations, and implicit Mach number functions ($A/A^*$, $\theta$-$\beta$-$M$, $4fL^*/D$). A modern interactive compressible flow calculator allows engineers, researchers, and students to:

  • Solve State Property Ratios: Instantly compute static-to-total ratios ($P/P_0$, $T/T_0$, $\rho/\rho_0$) and critical area ratios ($A/A^*$) across all flow Mach numbers.
  • Calculate Shock Wave Jumps: Determine exact Rankine-Hugoniot pressure jumps ($P_2/P_1$), downstream Mach numbers ($M_2$), and total pressure loss ($P_{02}/P_{01}$) across 1D normal shocks and 2D oblique shocks.
  • Analyze Duct Choking: Evaluate friction-induced choking limits in Fanno flow ($4fL^*/D$) and heat-transfer-induced choking limits in Rayleigh flow ($T_0/T_0^*$).
  • Design Nozzles & Diffusers: Simulate converging-diverging (de Laval) nozzles to identify choking thresholds, over-expansion shock cells, under-expansion waves, and design pressure ratios.
Aerospace Engineering Scenario: Consider a military fighter jet flying at Mach $M_1 = 2.2$ at an altitude of $12,000\text{ m}$ ($P_1 = 19.4\text{ kPa}, T_1 = 216.65\text{ K}$). To feed air into the jet engine compressor at subsonic speeds ($M_2 \approx 0.4$), the engine intake utilizes a series of oblique shocks followed by a terminal normal shock. Using our compressible flow calculator, engineers determine that a single normal shock at Mach 2.2 would cause a severe total pressure loss of $37.2\%$ ($P_{02}/P_{01} = 0.6281$). By introducing a $12^\circ$ wedge to generate an oblique shock ($\beta = 36.65^\circ$) that decelerates the flow to $M_2 = 1.73$ before the normal shock, total pressure recovery rises to $88.4\%$, saving thousands of pounds of jet engine thrust.

2. How Does the Compressible Flow Simulator Work?

Our simulation suite operates on rigorous perfect-gas thermodynamic relations and 1D/2D conservation equations (mass, momentum, energy). The calculation engine assumes ideal gas behavior governed by the equation of state:

$$P = \rho R T, \quad c_p - c_v = R, \quad \gamma = \frac{c_p}{c_v}$$

Where $P$ is static pressure ($\text{Pa}$), $\rho$ is density ($\text{kg/m}^3$), $R$ is the specific gas constant ($\text{J/kg}\cdot\text{K}$), $T$ is absolute static temperature ($\text{K}$), and $\gamma$ is the specific heat ratio ($1.400$ for air at standard conditions).

Core Mathematical Engines in the Suite

  1. Isentropic Flow Engine: Calculates reversible, adiabatic property variations ($s = \text{const}$) as functions of local Mach number $M$.
  2. 1D Normal Shock Engine: Applies Rankine-Hugoniot jump conditions across thin, irreversible normal shock fronts where flow transitions from supersonic ($M_1 > 1$) to subsonic ($M_2 < 1$).
  3. 2D Oblique Shock Engine: Implements a high-precision Newton-Raphson numerical solver to invert the implicit $\theta$-$\beta$-$M$ relation, yielding weak and strong shock wave angles ($\beta$).
  4. Prandtl-Meyer Expansion Engine: Integrates smooth, centered supersonic expansion fan turn angles using the analytic Prandtl-Meyer function $\nu(M)$.
  5. Fanno Flow Engine: Models 1D compressible flow in constant-area ducts with wall friction ($f \neq 0, dq = 0$).
  6. Rayleigh Flow Engine: Models 1D compressible flow in constant-area ducts with heat transfer ($dq \neq 0, f = 0$).
  7. Nozzle Lab Engine: Solves quasi-1D area-Mach relations to determine mass flow rates, throat choking, back-pressure regimes ($P_b$), and shock wave locations inside converging-diverging nozzles.

3. Interactive Features of the Simulation Suite

Isentropic Module

Computes static-to-stagnation ratios ($P/P_0, T/T_0, \rho/\rho_0$), critical area ratio ($A/A^*$), and dynamic pressure ($q$).

Normal Shock Module

Solves downstream Mach ($M_2$), Rankine-Hugoniot pressure jump ($P_2/P_1$), temperature jump, stagnation pressure loss, and entropy creation ($\Delta s$).

Oblique Shock Module

Calculates shock wave angle ($\beta$), weak/strong solution branches, detachment angle ($\theta_{max}$), and normal Mach components ($M_{1n}, M_{2n}$).

Expansion Fan Module

Determines downstream Mach ($M_2$), expansion angle ($\Delta\nu$), wave boundary angles ($\mu_1, \mu_2$), and static state drops across centered expansion waves.

Fanno Flow Module

Computes friction choking length ($4fL^*/D$), duct entry/exit Mach numbers, and property variations along insulated rough pipes.

Rayleigh Flow Module

Calculates heat addition choking thresholds ($T_0/T_0^*$), maximum thermal energy input ($q_{max}$), and thermal choking transitions.

Nozzle Lab Module

Simulates de Laval nozzles under varying back pressures, displaying Mach profiles, pressure distributions, and internal shock wave locations.

Atmosphere & Pitot Module

Computes 1976 ISA standard atmosphere properties ($0$ to $47\text{ km}$) and solves Rayleigh supersonic Pitot tube pressure equations.

4. Incompressible vs Compressible Flow (Deep Technical Comparison)

One of the most fundamental questions in fluid mechanics is understanding incompressible vs compressible flow regimes. Fluid flows are classified based on whether changes in fluid density significantly alter the flow field momentum and pressure distribution.

What is Compressible Flow?

Compressible flow occurs when variations in fluid density $\rho$ are large enough to influence the pressure field, velocity profile, and temperature distribution. In gasdynamics, density changes occur due to high kinetic energy converting into internal thermal energy or large pressure gradients forcing gas volume compression.

At What Mach Number is Flow Compressible?

Flow is universally classified as compressible when the local Mach number reaches $M \ge 0.3$. The mathematical justification originates from the Taylor series expansion of the isentropic density ratio for an ideal gas:

$$\frac{\rho_0}{\rho} = \left(1 + \frac{\gamma-1}{2} M^2\right)^{\frac{1}{\gamma-1}} = 1 + \frac{1}{2} M^2 + \frac{2-\gamma}{8} M^4 + \dots$$

Subtracting $1$ yields the relative density variation ($\Delta\rho / \rho_0$):

$$\frac{\Delta\rho}{\rho_0} \approx \frac{1}{2} M^2$$

Evaluating this expression at key Mach numbers for air ($\gamma = 1.400$):

  • At $M = 0.10$: $\Delta\rho / \rho_0 \approx 0.5\%$ (strictly incompressible).
  • At $M = 0.20$: $\Delta\rho / \rho_0 \approx 2.0\%$ (incompressible approximation holds).
  • At $M = 0.30$: $\Delta\rho / \rho_0 \approx 4.4\% \approx 5.0\%$ (engineering threshold for compressible flow).
  • At $M = 0.70$: $\Delta\rho / \rho_0 \approx 21.8\%$ (highly compressible subsonic).
  • At $M = 1.00$: $\Delta\rho / \rho_0 \approx 35.6\%$ (sonic compression).
  • At $M = 2.00$: $\Delta\rho / \rho_0 \approx 62.9\%$ (supersonic compression).

How to Determine Compressible Flow & How to Tell if a Flow is Compressible

To determine whether a flow field must be analyzed using compressible flow equations, follow these four engineering criteria:

  1. Calculate the Local Mach Number: Determine $M = V / a$. If $M \ge 0.3$, compressibilty must be accounted for.
  2. Evaluate Relative Density Variation: If $\Delta\rho / \rho > 5\%$, the flow is compressible.
  3. Check Velocity Magnitude Relative to Acoustic Waves: If flow speed $V$ approaches acoustic speed $a = \sqrt{\gamma R T}$, pressure signals cannot propagate upstream rapidly, leading to wave accumulation and shock formation.
  4. Identify High-Pressure Gradients or Large Temperature Changes: Flows through high-pressure turbine stages, rocket nozzles, or long gas pipelines exhibit large density shifts even at lower spatial velocities.

When Does Flow Become Compressible?

Flow becomes compressible whenever pressure gradients or speed increases cause gas molecules to pack closer together, altering gas density. This occurs in five specific regimes:

  • Subsonic Compressible ($0.3 \le M < 0.8$): Density changes are significant, but no shock waves form.
  • Transonic ($0.8 \le M \le 1.2$): Mixed regions of subsonic and supersonic flow coexist over airfoils, forming local shock waves.
  • Supersonic ($1.2 < M \le 5.0$): Flow speed exceeds local sound speed everywhere, forming attached or detached shock waves and Prandtl-Meyer expansion fans.
  • Hypersonic ($M > 5.0$): Extreme kinetic heating causes high temperature gas dissociation, plasma ionization, and thin shock layers.
Flow Regime / PropertyIncompressible Flow ($M < 0.3$)Compressible Flow ($M \ge 0.3$)
Density ($\rho$)Constant ($\frac{d\rho}{dt} = 0$)Variable ($\rho = f(P, T)$)
Governing EquationBernoulli Equation ($P + \frac{1}{2}\rho V^2 = \text{const}$)Energy & Isentropic Gas Law ($P/\rho^\gamma = \text{const}$)
Speed of Sound ($a$)Assumed infinite ($a \rightarrow \infty$)Finite ($a = \sqrt{\gamma R T}$)
Shock WavesImpossiblePresent in supersonic regimes ($M > 1$)
Duct ChokingDoes not occurOccurs at $M = 1$ (Fanno, Rayleigh, Nozzle)
Temperature CouplingDecoupled from pressure fieldStrongly coupled via Total Temperature $T_0$

5. Compressible Flow Equations & Mathematical Foundations

The following section details the governing compressible flow equations implemented inside our simulator engine.

1. Speed of Sound & Mach Number Equations

The speed of sound $a$ is the propagation velocity of small pressure disturbances through a compressible medium:

$$a = \sqrt{\left(\frac{\partial P}{\partial \rho}\right)_s} = \sqrt{\gamma R T}$$ $$M = \frac{V}{a} = \frac{V}{\sqrt{\gamma R T}}$$

2. Isentropic Flow Equations (Stagnation Ratios)

For reversible adiabatic flow of a perfect gas, total (stagnation) temperature $T_0$, pressure $P_0$, and density $\rho_0$ relate to static properties via:

$$\frac{T_0}{T} = 1 + \frac{\gamma - 1}{2} M^2$$ $$\frac{P_0}{P} = \left(1 + \frac{\gamma - 1}{2} M^2\right)^{\frac{\gamma}{\gamma - 1}}$$ $$\frac{\rho_0}{\rho} = \left(1 + \frac{\gamma - 1}{2} M^2\right)^{\frac{1}{\gamma - 1}}$$

3. Area-Mach Number Equation (Nozzle Throat Scaling)

The non-dimensional area ratio $A/A^*$ relating local cross-sectional duct area $A$ to sonic throat area $A^*$ is:

$$\frac{A}{A^*} = \frac{1}{M} \left[ \frac{2}{\gamma + 1} \left(1 + \frac{\gamma - 1}{2} M^2\right) \right]^{\frac{\gamma + 1}{2(\gamma - 1)}}$$

4. Normal Shock Waves (Rankine-Hugoniot Jump Equations)

Across a thin 1D normal shock wave, flow decelerates from supersonic $M_1 > 1$ to subsonic $M_2 < 1$ according to:

$$M_2 = \sqrt{\frac{(\gamma - 1) M_1^2 + 2}{2\gamma M_1^2 - (\gamma - 1)}}$$ $$\frac{P_2}{P_1} = 1 + \frac{2\gamma}{\gamma + 1} (M_1^2 - 1)$$ $$\frac{\rho_2}{\rho_1} = \frac{V_1}{V_2} = \frac{(\gamma + 1) M_1^2}{(\gamma - 1) M_1^2 + 2}$$ $$\frac{T_2}{T_1} = \left(\frac{P_2}{P_1}\right) \left(\frac{\rho_1}{\rho_2}\right)$$ $$\frac{P_{02}}{P_{01}} = \left[\frac{(\gamma+1)M_1^2}{(\gamma-1)M_1^2+2}\right]^{\frac{\gamma}{\gamma-1}} \left[\frac{\gamma+1}{2\gamma M_1^2 - (\gamma-1)}\right]^{\frac{1}{\gamma-1}}$$

5. Oblique Shock Waves ($\theta$-$\beta$-$M$ Equation)

For a 2D supersonic stream at Mach $M_1$ deflected by wedge angle $\theta$, the shock wave angle $\beta$ satisfies the implicit relation:

$$\tan\theta = 2 \cot\beta \left[ \frac{M_1^2 \sin^2\beta - 1}{M_1^2 (\gamma + \cos 2\beta) + 2} \right]$$

Normal Mach components before and after the shock front are $M_{1n} = M_1 \sin\beta$ and $M_{2n} = M_2 \sin(\beta - \theta)$.

6. Prandtl-Meyer Expansion Fan Equations

Smooth supersonic expansion around a convex corner turns flow through angle $\Delta\theta = \nu(M_2) - \nu(M_1)$, governed by the Prandtl-Meyer function $\nu(M)$:

$$\nu(M) = \sqrt{\frac{\gamma + 1}{\gamma - 1}} \arctan\sqrt{\frac{\gamma - 1}{\gamma + 1}(M^2 - 1)} - \arctan\sqrt{M^2 - 1}$$ $$\mu = \arcsin\left(\frac{1}{M}\right) \quad (\text{Mach Wave Angle})$$

7. Fanno Flow Equations (Duct Flow with Friction)

Flow in a constant-area insulated pipe with wall friction factor $f$ reaches maximum friction length $L^*$ before choking at $M=1$:

$$\frac{4f L^*}{D} = \frac{1 - M^2}{\gamma M^2} + \frac{\gamma + 1}{2\gamma} \ln\left[ \frac{(\gamma + 1) M^2}{2 + (\gamma - 1) M^2} \right]$$

8. Rayleigh Flow Equations (Duct Flow with Heat Transfer)

Frictionless flow in a constant-area pipe undergoing thermal energy addition $q$ satisfies total temperature ratio $T_0/T_0^*$:

$$\frac{T_0}{T_0^*} = \frac{2(\gamma + 1) M^2 \left(1 + \frac{\gamma - 1}{2} M^2\right)}{(1 + \gamma M^2)^2}$$

6. Worked Engineering Numerical Examples

Worked Example 1: Isentropic Expansion in a Rocket Nozzle

Problem Statement: Combustion gases ($\gamma = 1.200, R = 320\text{ J/kg}\cdot\text{K}$) enter a rocket nozzle at stagnation conditions $P_0 = 6.0\text{ MPa}, T_0 = 3200\text{ K}$. Calculate static pressure $P$, static temperature $T$, speed of sound $a$, flow velocity $V$, and area ratio $A/A^*$ at Mach $M = 2.400$.

Step-by-Step Solution:

  1. Temperature Ratio:$$\frac{T_0}{T} = 1 + \frac{1.200 - 1}{2} (2.400)^2 = 1 + 0.10 \times 5.76 = 1.5760$$ $$T = \frac{3200\text{ K}}{1.5760} = 2030.46\text{ K}$$
  2. Pressure Ratio:$$\frac{P_0}{P} = (1.5760)^{\frac{1.200}{0.200}} = (1.5760)^6 = 15.6262$$ $$P = \frac{6000\text{ kPa}}{15.6262} = 383.97\text{ kPa}$$
  3. Speed of Sound & Velocity:$$a = \sqrt{\gamma R T} = \sqrt{1.200 \times 320 \times 2030.46} = 882.88\text{ m/s}$$ $$V = M \times a = 2.400 \times 882.88\text{ m/s} = 2118.91\text{ m/s}$$
  4. Critical Area Ratio ($A/A^*$):$$\frac{A}{A^*} = \frac{1}{2.400} \left[ \frac{2}{2.200} (1.5760) \right]^{\frac{2.200}{0.400}} = 0.41667 \times [1.4327]^{5.500} = 2.9734$$

Engineering Conclusion: To expand the gas to Mach 2.4, the nozzle exit area must be expanded to $2.973$ times the throat area, yielding an exhaust velocity of $2118.9\text{ m/s}$.

Worked Example 2: Normal Shock Wave Jump at Mach 2.5

Problem Statement: Air ($\gamma = 1.400$) at static pressure $P_1 = 50\text{ kPa}$ and temperature $T_1 = 250\text{ K}$ encounters a normal shock wave at Mach $M_1 = 2.500$. Calculate downstream Mach $M_2$, static pressure $P_2$, static temperature $T_2$, and total pressure loss ratio $P_{02}/P_{01}$.

Step-by-Step Solution:

  1. Downstream Mach Number ($M_2$):$$M_2 = \sqrt{\frac{0.4 \times (2.5)^2 + 2}{2.8 \times (2.5)^2 - 0.4}} = \sqrt{\frac{2.5 + 2}{17.5 - 0.4}} = \sqrt{\frac{4.5}{17.1}} = 0.5130$$
  2. Pressure Jump ($P_2/P_1$):$$\frac{P_2}{P_1} = 1 + \frac{2.8}{2.4} ((2.5)^2 - 1) = 1 + 1.1667 \times 5.25 = 7.1250$$ $$P_2 = 50\text{ kPa} \times 7.1250 = 356.25\text{ kPa}$$
  3. Density & Temperature Ratios:$$\frac{\rho_2}{\rho_1} = \frac{2.4 \times 6.25}{0.4 \times 6.25 + 2} = \frac{15.0}{4.5} = 3.3333$$ $$\frac{T_2}{T_1} = \frac{P_2/P_1}{\rho_2/\rho_1} = \frac{7.1250}{3.3333} = 2.1375 \implies T_2 = 250\text{ K} \times 2.1375 = 534.38\text{ K}$$
  4. Stagnation Pressure Loss ($P_{02}/P_{01}$):$$\frac{P_{02}}{P_{01}} = \left[\frac{15.0}{4.5}\right]^{3.5} \left[\frac{2.4}{17.1}\right]^{2.5} = (69.444) \times (0.007186) = 0.4990$$

Engineering Conclusion: The normal shock decelerates the air to subsonic speed ($M_2 = 0.513$), causes a $712.5\%$ pressure jump, and destroys $50.1\%$ of the available stagnation pressure due to irreversible entropy production.

7. Input Parameters & Units Reference

Parameter SymbolNameStandard UnitsTypical RangeEngineering Influence
$M_1$Upstream Mach NumberDimensionless$0.01$ to $10.0$Primary velocity ratio governing compressible state changes.
$P_1$Static Pressure$\text{Pa}, \text{kPa}, \text{bar}, \text{psi}$$100\text{ Pa}$ to $10\text{ MPa}$Establishes baseline force and static enthalpy level.
$T_1$Static Temperature$\text{K}, ^\circ\text{C}, ^\circ\text{R}, ^\circ\text{F}$$50\text{ K}$ to $3500\text{ K}$Determines local acoustic speed $a = \sqrt{\gamma R T}$.
$\gamma$Specific Heat Ratio ($c_p/c_v$)Dimensionless$1.100$ to $1.667$Reflects molecular degrees of freedom (mono, di, polyatomic).
$R$Specific Gas Constant$\text{J/kg}\cdot\text{K}$$188.9$ to $4124.2$Relates molecular weight $M_{molar}$ to gas constant ($R = \bar{R}/M$).
$\theta$Wedge Deflection AngleDegrees ($^\circ$)$0.1^\circ$ to $40.0^\circ$Governs oblique shock wave strength and detachment boundary.
$4fL/D$Friction ParameterDimensionless$0.001$ to $50.0$Quantifies pipe wall drag in Fanno flow choking.
$q$Heat Addition per Mass$\text{kJ/kg}$$0$ to $5000\text{ kJ/kg}$Determines thermal energy input in Rayleigh flow.

8. Output Parameters & Interpretation

Output SymbolNameUnitsInterpretation & Significance
$M_2$Downstream Mach NumberDimensionlessIndicates flow speed state after shock, expansion, or duct flow.
$P_2 / P_1$Static Pressure RatioDimensionlessMeasures static compression or expansion across wave structures.
$T_2 / T_1$Static Temperature RatioDimensionlessIndicates static heating or cooling caused by kinetic exchange.
$\rho_2 / \rho_1$Density RatioDimensionlessDirect measure of fluid volume compression ($V_1/V_2 = \rho_2/\rho_1$).
$P_{02} / P_{01}$Stagnation Pressure RatioDimensionlessQuantifies total pressure recovery and aerodynamic efficiency ($1.0 = \text{lossless}$).
$\Delta s$Entropy Change$\text{J/kg}\cdot\text{K}$Measures thermodynamic irreversibility ($\Delta s = -R \ln(P_{02}/P_{01})$).
$\beta$Oblique Shock AngleDegrees ($^\circ$)Angle between freestream flow direction and shock wave front.
$A/A^*$Critical Area RatioDimensionlessRatio of local duct cross-section to sonic throat area ($A^*$).
$\dot{m}$Mass Flow Rate$\text{kg/s}$Total mass throughput ($\dot{m} = \rho V A$). Choked at sonic throat.

9. Typical Values & Working Gas Property Database

Properties of common engineering gases at standard conditions ($288.15\text{ K}, 101.325\text{ kPa}$):

Gas NameFormulaSpecific Heat Ratio $\gamma$Gas Constant $R$ ($\text{J/kg}\cdot\text{K}$)$c_p$ ($\text{J/kg}\cdot\text{K}$)$c_v$ ($\text{J/kg}\cdot\text{K}$)Speed of Sound at $288.15\text{ K}$ ($\text{m/s}$)
Air (Standard)$\text{Air}$$1.400$$287.05$$1004.7$$717.7$$340.3\text{ m/s}$
Nitrogen$N_2$$1.400$$296.80$$1038.8$$742.0$$346.0\text{ m/s}$
Oxygen$O_2$$1.395$$259.83$$917.9$$658.1$$323.1\text{ m/s}$
Helium$He$$1.667$$2077.10$$5192.6$$3115.5$$998.6\text{ m/s}$
Hydrogen$H_2$$1.405$$4124.20$$14307.0$$10183.0$$1291.6\text{ m/s}$
Carbon Dioxide$CO_2$$1.289$$188.92$$841.8$$652.9$$264.8\text{ m/s}$
Steam (Ideal)$H_2O$$1.330$$461.52$$1859.9$$1398.4$$420.5\text{ m/s}$
Argon$Ar$$1.667$$208.13$$520.3$$312.2$$316.0\text{ m/s}$
Methane$CH_4$$1.304$$518.28$$2222.8$$1704.5$$441.1\text{ m/s}$

10. Common Mistakes in Compressible Flow Calculations

Common MistakeWhy It HappensCorrect Engineering Practice
Using Bernoulli Equation at $M > 0.3$Assuming constant density $\rho$ in high-speed flows.Use Isentropic energy relations $P/\rho^\gamma = \text{const}$ or Total Pressure $P_0$.
Mixing Gauge & Absolute PressuresInputting gauge values ($\text{psig}, \text{kPa(g)}$) into equations.Always convert all inputs to absolute pressure ($\text{Pa}, \text{kPa(abs)}, \text{psia}$).
Using Celsius or Fahrenheit in FormulasForgetting that thermodynamic state equations require absolute units.Always use Kelvin ($\text{K}$) or Rankine ($^\circ\text{R}$) for temperatures.
Expecting Subsonic Acceleration in Diverging DuctsApplying incompressible diffuser intuition to supersonic flow.Remember supersonic flow accelerates ($M \uparrow$) in diverging channels ($dA > 0$).
Assuming Total Pressure is Conserved Across ShocksTreating shock waves as reversible isentropic processes.Shocks are highly irreversible ($\Delta s > 0$); total pressure always drops ($P_{02} < P_{01}$).

11. Practical Engineering Applications Across Industries

  • Aerospace & Defense: Jet engine inlet diffusers, supersonic wing design, rocket nozzle contouring, artillery projectile drag modeling, and re-entry heat shield design.
  • Turbomachinery & Power Generation: High-pressure steam turbine nozzle vanes, centrifugal compressor impellers, and industrial gas turbine combustors.
  • Gas Processing & Pipelines: High-pressure natural gas relief valves, pipeline blowdown orifices, and cryogenic choke valves.
  • Automotive Systems: Turbocharger compressor housing design, engine intake manifold wave tuning, and high-performance exhaust headers.
  • Medical & Industrial Safety: High-pressure oxygen cylinder regulator vents, safety relief valve discharge sizing, and acoustic shock suppressors.

12. Applicable Industry & Aerospace Standards

  • NASA SP-3008: Compressible Flow Tables and Charts for Air.
  • AIAA S-120: Standard for Numerical Grid Generation and Aerodynamics Simulation.
  • SAE Aerospace Recommended Practice ARP1420: Gas Turbine Engine Inlet Flow Distortion Guidelines.
  • ASME PTC 19.5: Flow Measurement and Orifice Discharge Standards.
  • ISO 5167: Measurement of Fluid Flow by Means of Pressure Differential Devices Inserted in Circular Cross-Section Conduits.

13. Historical Milestones & Pioneers of Gasdynamics

  • Ernst Mach (1838–1916): Austrian physicist who pioneered optical shadowgraph photography of supersonic shock waves and introduced the non-dimensional velocity ratio $M = V/a$.
  • William Rankine (1820–1872) & Pierre-Henri Hugoniot (1851–1887): Developed the governing Rankine-Hugoniot thermodynamic jump conditions across 1D normal shock waves.
  • Ludwig Prandtl (1875–1953) & Theodor Meyer (1882–1972): Formulated boundary layer theory and developed the mathematical theory of 2D centered supersonic expansion fans.
  • Gino Fanno (1882–1962): Italian engineer who published the thermodynamic equations governing 1D compressible friction flow in constant-area ducts.
  • Lord Rayleigh (1842–1919): British physicist who derived the governing equations for 1D compressible duct flows with thermal energy addition.

14. Frequently Asked Questions (FAQ)

What is compressible flow?

Compressible flow is a fluid mechanics regime in which variations in fluid density $\rho$ are significant and coupled to pressure and temperature changes. Unlike low-speed flows where density is assumed constant, compressible flow occurs when gas velocities approach or exceed the local speed of sound ($M \ge 0.3$), creating phenomena such as shock waves, expansion fans, and duct choking.

At what Mach number is flow compressible?

Gas flow is considered compressible when the Mach number reaches $M \ge 0.3$. At $M = 0.3$, the relative density variation ($\Delta\rho / \rho_0$) in air reaches approximately $5\%$. Below Mach 0.3, density variations are less than 5% and the flow can be treated as incompressible with negligible engineering error.

How to determine compressible flow?

To determine if a flow field is compressible: (1) Calculate local Mach number $M = V / \sqrt{\gamma R T}$; if $M \ge 0.3$, it is compressible. (2) Check relative density variation $\Delta\rho/\rho$; if $\Delta\rho/\rho > 5\%$, density changes must be accounted for. (3) Identify if acoustic wave accumulation or shock waves are present.

How to tell if a flow is compressible?

You can tell a flow is compressible if flow velocity exceeds $30\%$ of local sound speed ($M \ge 0.3$), if pressure changes cause visible gas expansion/compression, if the fluid experiences sonic choking through a nozzle or valve, or if shock waves form around solid objects.

When does flow become compressible?

Flow becomes compressible whenever pressure gradients, heat input, wall friction, or speed increases force fluid density to vary by more than 5%. In standard atmospheric air ($a \approx 340\text{ m/s}$), this threshold occurs at flow velocities exceeding $102\text{ m/s}$ ($367\text{ km/h}$ or $228\text{ mph}$).

What is a compressible flow calculator?

A compressible flow calculator is an online engineering simulator that computes gasdynamics property ratios, Rankine-Hugoniot shock jumps, Prandtl-Meyer expansion angles, Fanno friction limits, and de Laval nozzle choking states across various gases.

What is the difference between incompressible vs compressible flow?

Incompressible flow assumes constant density ($d\rho = 0$), governed by Bernoulli's equation with no temperature coupling. Compressible flow models density variations ($d\rho \neq 0$), governed by thermodynamics, acoustic sound speed limits, shock wave discontinuities, and sonic choking.

What happens to temperature across a normal shock wave?

Static temperature $T_2$ increases sharply across a normal shock wave due to extreme kinetic energy dissipation ($T_2/T_1 > 1$). However, total (stagnation) temperature $T_0$ remains strictly constant ($T_{02} = T_{01}$) because no heat is added to or removed from the system ($dq = 0$).

What is sonic choking in a nozzle or duct?

Sonic choking occurs when flow velocity reaches Mach $M = 1.0$ at a restriction (such as a nozzle throat or pipe exit). Once choked, mass flow rate reaches its maximum theoretical limit ($\dot{m}_{max}$) and cannot be increased by lowering downstream back pressure further.

Why does supersonic flow accelerate in a diverging duct?

From the differential area-velocity relation $\frac{dA}{A} = (M^2 - 1) \frac{dV}{V}$, when flow is supersonic ($M > 1$), $(M^2 - 1) > 0$. Therefore, increasing cross-sectional area ($dA > 0$) forces flow velocity to increase ($dV > 0$) because gas density drops faster than area expands.

15. References & Recommended Engineering Literature

  1. Anderson, John D. Jr., Modern Compressible Flow: With Historical Perspective, 4th Edition, McGraw-Hill Education, 2021.
  2. Shapiro, Ascher H., The Dynamics and Thermodynamics of Compressible Fluid Flow, Vol. 1 & 2, Ronald Press, 1953.
  3. Zucker, Robert D., and Oscar Biblarz, Fundamentals of Gas Dynamics, 2nd Edition, John Wiley & Sons, 2002.
  4. Oosthuizen, Patrick H., and William E. Carscallen, Compressible Fluid Flow, 2nd Edition, CRC Press, 2013.
  5. National Advisory Committee for Aeronautics (NACA), Report 1135: Equations, Tables, and Charts for Compressible Flow, Ames Research Staff, 1953.

Related Engineering Simulation Tools

Explore more free online fluid, thermal & mechanical simulators

All gasdynamics calculations run locally in your browser — no server roundtrips needed.