Fluid & Conditions
Normal Shock
$P/P_0 = (T/T_0)^{\gamma/(\gamma-1)}$
$A/A^* = \frac{1}{M}\left[\frac{2+(\gamma-1)M^2}{\gamma+1}\right]^{\frac{\gamma+1}{2(\gamma-1)}}$
Compute isentropic nozzle flow properties (Mach number, area ratio A/A*, pressure, temperature, density) in real time. Add optional normal shock to explore supersonic inlet and thrust nozzle design scenarios.
The core of isentropic flow is the relationship between the local Mach number ($M$) and the area ratio ($A/A^*$), derived from conservation of mass, momentum, and energy for an ideal gas.
$$ \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)}}$$Here, $\gamma$ is the specific heat ratio (e.g., ~1.4 for air). $A^*$ is the throat area where $M=1$. This equation tells you the nozzle shape needed to achieve a desired Mach number.
When a normal shock is present, we use the Rankine-Hugoniot relations to find the property changes across the shock. The key is the upstream Mach number ($M_1$), which must be > 1.
$$ M_2^2 = \frac{1 + \frac{\gamma-1}{2} M_1^2}{\gamma M_1^2 - \frac{\gamma-1}{2}} $$$M_2$ is the subsonic Mach number after the shock. The pressure and temperature ratios across the shock, $p_2/p_1$ and $T_2/T_1$, are also functions of $M_1$ and $\gamma$. These jumps represent irreversible losses in total pressure.
Rocket Engine Nozzles: The bell-shaped nozzle on rockets like the SpaceX Merlin is designed using these principles. The area ratio $A/A^*$ determines the exit Mach number and thrust. Engineers use this simulator's calculations to optimize expansion for different altitudes, where ambient pressure changes.
Supersonic Wind Tunnels: To generate a steady supersonic flow for testing aircraft models, a wind tunnel uses a convergent-divergent (de Laval) nozzle. The design precisely follows the isentropic area-Mach relation. The "Add Normal Shock" feature models what happens if the test section conditions are incorrectly matched.
Steam Turbines & Gas Turbines: The nozzles that direct high-pressure steam or combustion gases onto turbine blades operate with compressible flow. CAE software uses these fundamental equations to predict efficiency and prevent condensation shocks (in steam) or performance losses.
High-Speed Inlets for Jet Engines: For aircraft like the SR-71 Blackbird, the inlet must slow supersonic air to subsonic speeds for the engine. This often involves a series of oblique shocks, but normal shock analysis (like in this tool) provides the foundational understanding of the pressure and temperature rise during deceleration.
Model assumptions: The mathematical model used here relies on simplifying assumptions such as linearity, homogeneity, and isotropy. Always verify that your real system satisfies these assumptions before applying results directly to design decisions.
Units and scale: Many calculation errors arise from unit conversion mistakes or order-of-magnitude errors. Pay close attention to the units shown next to each parameter input.
Validating results: Always sanity-check simulator output against physical intuition or hand calculations. If a result seems unexpected, review your input parameters or verify with an independent method.
Structural & Mechanical Engineering: Solid mechanics, elasticity theory, and materials science form the foundation for many of the governing equations used here.
Fluid & Thermal Engineering: Fluid dynamics and heat transfer share similar mathematical structures (conservation equations, boundary-value problems) and frequently appear in multi-physics problems alongside structural analysis.
Control & Systems Engineering: Dynamic system analysis, state-space methods, and signal processing connect to the time-dependent behaviors modeled in this simulator.
Consider air (gamma=1.4) flowing through a convergent-divergent nozzle at Mach 2.5. The calculator yields: pressure ratio P/P0=0.0563, temperature ratio T/T0=0.444, and area ratio A/A*=1.687. For a throat diameter of 25mm and total pressure 500kPa, the exit pressure is 28.15kPa and temperature drops from 288K to 128K. Adding a normal shock at M=2.5 upstream produces post-shock Mach of 0.513 and pressure jump ratio of 7.13.