Quick answer In compressible flow Ma = v/a with a = √(γRT) (γ = specific-heat ratio, ≈1.4 for air; R = 287 J/(kg·K); T in K). The isentropic pressure ratio is p₀/p = (1 + (γ−1)Ma²/2)^(γ/(γ−1)), and nozzle design rests on the area–Mach relation A/A* = (1/Ma)·[2/(γ+1)·(1 + (γ−1)Ma²/2)]^((γ+1)/(2(γ−1))), where A* is the critical area at Ma = 1.
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
Subsonic M<1 / Supersonic M>1
Specific Heat Ratio γ
Air=1.40 / He=1.67 / CO₂=1.30
Stagnation Temperature T₀
K
Stagnation Pressure p₀
kPa
Display mode
Calorically perfect-gas model with constant γ. Speeds use fixed R=287 J/(kg·K); γ examples do not select a different gas constant. Fanno 4fL*/D uses Fanning f (equivalently f_Darcy L*/D). T₀ and p₀ describe the state at input M.
—
Mach M
—
Static T [K]
—
Static p [kPa]
—
Flow V [m/s]
While paused, moving a slider updates the results immediately.
Main
—
Exit Mach number Me
—
Exit pₑ/p₀,in
—
Exit T/T₀
—
Exit area Aₑ/Aₜ
Choked reference nozzle, not a back-pressure solution. Input M sets the isentropic design exit Mach and geometry; in shock mode the diagram inserts a shock at x/L=0.78, so its local upstream Mach and final exit Mach differ from the calculator’s input M₁ and immediate M₂. Fanno/Rayleigh selection changes the table, not this nozzle profile. Blue/red shows high/low p/p₀,in. The axisymmetric section fits the canvas (radius ∝ √area); axial length and particle motion are schematic.
Mach number vs. pressure and temperature ratios
Main
Isentropic reference curves for all modes; logarithmic vertical axes show the full valid ratio range. The selected mode’s separate table gives its own ratios.
Theory & Key Formulas
$$Ma = \frac{v}{a}, \quad a = \sqrt{\gamma R T}$$
Mach number and speed of sound: $\gamma$ is the specific-heat ratio (air≈1.4), $R$ is the gas constant (287 J/kg·K), and $T$ is temperature (K).
$$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.
What is Compressible Flow?
🙋
What exactly is "compressible" flow? I thought air was always a gas, so isn't it always compressible?
🎓
That's a great starting point. Basically, all gases can be compressed, but in many engineering flows, the density change is so tiny we ignore it. Compressible flow is when the gas speed is high enough—typically above Mach 0.3—that density changes become significant and must be accounted for. In this simulator, the key parameter is the Mach number (M), which you can adjust with the slider. Try setting it to 0.1 and then to 0.8, and watch how the calculated properties change much more dramatically at the higher speed.
🙋
Wait, really? So what's the big deal with the "stagnation" properties, like T₀ and p₀? Why are they always higher than the regular ones?
🎓
In practice, stagnation properties are super useful. They represent the temperature and pressure you would measure if you could magically slow the fast-moving fluid down to zero speed without losing any energy (that's the "isentropic" part). The energy from the motion gets converted into heat and pressure. For instance, the leading edge of a jet engine inlet is a stagnation point. In the simulator, you input T₀ and p₀ as your known reference conditions. When you increase the Mach number, you'll see the calculated static temperature (T) and pressure (p) drop because more energy is tied up in the fluid's velocity.
🙋
Okay, that makes sense. But what's the "Specific Heat Ratio" (γ) for? Why is it a separate input?
🎓
Ah, γ defines the "personality" of the gas! It's the ratio of specific heats ($c_p/c_v$) and depends on the molecular structure. For air (mostly diatomic), it's about 1.4. For monatomic gases like helium, it's 1.67. This value changes how the gas responds to compression. A common case is in rocket engines, where the exhaust gas might be mostly steam (γ ≈ 1.33). Change γ in the simulator and you'll see the pressure ratio $p_0/p$ change for the same Mach number. It's a powerful way to see how different gases behave.
Physical Model & Key Equations
The core of isentropic flow is the relationship between velocity (expressed as Mach number M) and thermodynamic properties. The total (stagnation) energy per unit mass is constant. This leads to the temperature ratio:
$$\frac{T_0}{T}= 1 + \frac{\gamma-1}{2}M^2$$
Where $T_0$ is the stagnation temperature, $T$ is the static temperature, $\gamma$ is the specific heat ratio, and $M$ is the Mach number. The term $\frac{\gamma-1}{2}M^2$ represents the conversion of kinetic energy into thermal energy.
Assuming an isentropic (reversible and adiabatic) process, we can relate pressure and density to temperature. The pressure ratio is derived from the temperature ratio and the isentropic relation:
Here, $p_0$ is the stagnation pressure and $p$ is the static pressure. The exponent $\gamma/(\gamma-1)$ comes from the isentropic relation $p/\rho^\gamma = constant$. This equation shows that pressure changes are even more sensitive to Mach number than temperature changes.
Frequently Asked Questions
Please check whether the input values are in a physically invalid range (e.g., Mach number is negative, specific heat ratio is less than 1). Also, ensure that JavaScript is enabled in your browser. Enter numbers in half-width characters and use "." for the decimal point.
Isentropic flow is used for designing nozzles or accelerating flows without friction or heat. Normal shock waves are used to calculate pressure and temperature increases when supersonic flow decelerates abruptly. Use them to verify conditions such as shock wave occurrence at the nozzle exit.
Yes, it is possible. Using the isentropic flow relations, you can calculate the area ratio and pressure ratio corresponding to the nozzle exit Mach number. However, since actual design also requires consideration of the combustion gas specific heat ratio and chemical reaction effects, please use this tool for basic parameter understanding.
Rayleigh flow analyzes changes in flow due to heating or cooling (e.g., heat exchangers), while Fanno flow analyzes changes due to friction (e.g., long pipes). Both are constant-area flows and are useful for examining behavior as the Mach number approaches 1.
Real-World Applications
Jet Engine & Aircraft Inlet Design: Engineers use these isentropic relations to design the inlet diffuser that slows down incoming air from flight speed (e.g., Mach 0.8) to a lower speed suitable for the compressor. The calculated pressure rise ($p_0/p$) is critical for predicting engine performance and efficiency.
Supersonic Wind Tunnels & Nozzles: To achieve supersonic flow in a test section, a convergent-divergent (de Laval) nozzle is used. The design is entirely based on isentropic flow relations to expand the gas to the desired Mach number, ensuring the static pressure and temperature in the test section are correct for model testing.
Rocket Nozzle Expansion: In rocket engines, the hot gas expands isentropically through the nozzle to produce thrust. The exit Mach number and the corresponding pressure ratio determine the thrust efficiency. The specific heat ratio (γ) is crucial here as it changes with the combustion products.
CFD Solver Verification & Validation (V&V): Before running complex 3D simulations in software like ANSYS Fluent or OpenFOAM for a new intake design, engineers first calculate the 1D isentropic flow solution using these exact equations. The CFD results are then compared against this analytical benchmark to ensure the solver is set up correctly—a fundamental CAE practice.
Common Misunderstandings and Points to Note
Stagnation temperature T₀ is an input here. At fixed T₀, increasing M lowers the calculated static temperature T; it does not raise T₀. For M=2, γ=1.4 and T₀=300 K, T=166.7 K. Wall recovery temperature and heat transfer are not calculated.
Next, the pitfall of the "isentropic" assumption. This tool's basic calculations are for an "ideal flow," ignoring friction, shock waves, and heat transfer. In practice, it's crucial to discern where this assumption holds. For instance, friction at the nozzle wall (boundary layer) can cause actual thrust to be a few percent lower than the calculated value. The typical workflow is to first find the ideal solution with this tool, then apply loss coefficients to estimate the real-world value.
A common parameter-setting mistake is carelessly fixing the specific heat ratio γ. For air, 1.4 is generally fine, but rocket combustion gases can range from about 1.2 to 1.3 depending on composition. Changing γ significantly alters the achievable Mach number for the same area ratio. For example, with A/A*=4, M≈2.94 for γ=1.4, but M≈2.62 for γ=1.2. Try changing γ in the tool to see firsthand how sensitive nozzle design is to gas properties.
Enter Mach number (0.3–5.0) using the input field input or the slider to explore subsonic, transonic, and supersonic regimes.
Set specific heat ratio gamma (1.2–1.4) for your gas: air at 1.4, diatomic gases typically 1.4, monatomic gases at 1.67.
Input stagnation temperature (T0, 200–600 K) and stagnation pressure (p0, 50–500 kPa) to define the flow's energy state.
Read static temperature, static pressure, and flow velocity from the output labels; simulator updates in real-time as you adjust sliders.
Worked Example
For M=2.5, γ=1.4, T₀=450 K and p₀=200 kPa, the isentropic relations give T=200 K, p=11.706 kPa and V=708.70 m/s with R=287 J/(kg·K). These are one-dimensional perfect-gas reference values, not a viscous inlet or wall-temperature solution.
Practical Notes
Normal shock, Fanno friction and Rayleigh heat addition are distinct ideal models. The tables do not determine whether a shock forms in a particular duct or combustor.
The one-dimensional reference relations do not predict wing shock position or buffet margins.
High-temperature turbine flows: CO2 at gamma=1.30 or H2 at gamma=1.41 require accurate gamma input to avoid 5–10% prediction errors in expansion turbine design.
🎬 Watch it in motion
Phase Transitions of Matter Explained | Melting, Boiling and Sublimation Visualized