Gas Dynamics
JP EN ZH
Compressible Flow

Gas Dynamics & Compressible Flow Calculator

Real-time calculation of all isentropic, normal shock, Rayleigh, and Fanno flow parameters from Mach number and specific heat ratio. Covers nozzle design, supersonic wind tunnels, and rocket propulsion.

Flow Parameters
Mach Number M 2.00
Subsonic M<1 / Supersonic M>1
Specific Heat Ratio γ 1.40
Air=1.40 / He=1.67 / CO₂=1.30
Stagnation Temperature T₀ 300 K
Stagnation Pressure p₀ 101.3 kPa
Display Mode
Mach Number vs Pressure & Temperature Ratios
Nozzle Area Ratio A/A*

Governing Equations for Compressible Flow

Isentropic relations:

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

Normal shock (Rankine-Hugoniot):

$$M_2^2 = \frac{M_1^2(\gamma-1)+2}{2\gamma M_1^2 - (\gamma-1)}$$ $$\frac{p_2}{p_1} = \frac{2\gamma M_1^2-(\gamma-1)}{\gamma+1}$$
CFD Integration: These analytical solutions are used to verify (V&V) CFD solver results from OpenFOAM, Fluent, etc. For supersonic nozzles, shock tubes, and aircraft engine inlet analyses, comparison with analytical solutions is always required. Fanno and Rayleigh flow are used for 1D estimation of Rayleigh friction losses and combustion heating.