Oblique Shock Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

Enter M₁, θ, and γ to evaluate the shock.

Oblique Shocks in Supersonic Flow

When a supersonic stream encounters a wedge or a compression corner, it cannot turn the flow abruptly without generating discontinuities. Instead, nature forms an oblique shock that emanates from the corner at an angle β. Across this thin region, the flow direction changes by the wedge angle θ, the Mach number drops, and pressure, temperature, and density jump to higher values. Unlike a normal shock, an oblique shock preserves some component of velocity along the shock front, enabling the flow to remain supersonic downstream if the deflection is modest. Understanding the geometry and strength of these shocks is crucial in designing supersonic aircraft, inlets, and nozzles where controlling compression and total pressure loss is paramount.

The Theta-Beta-Mach Relation

The key relationship governing oblique shocks is the transcendental theta-beta-Mach equation. For a perfect gas, it links upstream Mach number M1, wedge angle θ, shock angle β, and heat capacity ratio γ:

tanθ=2cotβ(M12sin2β-1)M12sin2β(γ+cos2β)+2

This implicit expression admits two solutions for β: a weak shock with a smaller angle and a strong shock with a larger angle that often yields subsonic downstream flow. The weak solution typically occurs in external aerodynamics because it requires less pressure rise and therefore less entropy generation. Solving the equation for β requires numerical methods; our calculator uses a simple bisection search between the Mach angle and ninety degrees to locate the physically relevant root for the chosen θ.

Property Changes Across the Shock

Once the shock angle is known, the flow can be decomposed into components normal and tangential to the shock. Only the normal component experiences the abrupt compression; the tangential component remains unchanged. The normal Mach number upstream is Mn1=M1sinβ. Applying the normal shock relations yields the downstream normal Mach number:

Mn22=1+γ-1}{2Mn12γMn12-γ-1}{2

The downstream Mach number is then M2=Mn2/sin(β-θ). Static pressure, temperature, and density follow from the normal shock relations using Mn1. For example, the pressure ratio across the shock is

p2p1=1+2γγ+1(Mn12-1)

Downstream velocity remains supersonic as long as the deflection angle is below the maximum that still allows a real solution for β. Exceeding this detachment angle forces the shock to stand off the surface and behave more like a normal shock, dramatically raising drag.

Engineering Applications

Designers of supersonic aircraft intakes rely on controlled sequences of oblique shocks to compress air efficiently before it enters the engine. Each shock increases pressure and temperature while decreasing Mach number. A series of weak shocks results in smaller total-pressure losses than a single normal shock performing the same overall compression. Similarly, supersonic wind tunnels employ adjustable wedges or cones to generate predictable shocks for aerodynamic testing. In rocket nozzles, internal oblique shocks may form if the nozzle is overexpanded, causing flow separation and performance loss. Understanding the theta-beta-M relation helps engineers anticipate these behaviors and shape surfaces to manage shocks deliberately.

Sample Shock Calculations

The following table illustrates how varying the deflection angle affects downstream conditions for a flow at M1=3 in air (γ=1.4). Only the weak-shock solution is considered.

θ (deg)β (deg)M₂p₂/p₁T₂/T₁
522.52.601.221.05
1027.82.151.551.13
1534.61.722.181.28
2044.31.293.441.56

Using the Calculator

Provide the upstream Mach number, the flow deflection angle, and the heat capacity ratio. The script searches for a shock angle satisfying the theta-beta-M equation, then computes downstream Mach number and property ratios. Results help estimate how much compression and loss occur for a given wedge or corner. Because all calculations run locally in your browser with no external dependencies, you can experiment freely by adjusting parameters or exploring different gases. Try increasing the deflection angle until no solution exists to observe the onset of shock detachment. Such interactive exploration deepens intuition for compressible-flow phenomena encountered in high-speed aerodynamics.

Related Calculators

Lennard-Jones Potential Calculator - Intermolecular Forces

Compute the interaction energy between two neutral atoms using the Lennard-Jones potential and learn about van der Waals forces.

Lennard-Jones potential calculator intermolecular forces van der Waals

Wave Equation Solver

Solve the one-dimensional wave equation with fixed ends using a finite difference method.

wave equation solver

Otto Cycle Efficiency Calculator - Ideal Gasoline Engine

Estimate the thermal efficiency of an ideal Otto cycle using compression ratio and heat capacity ratio.

otto cycle efficiency calculator compression ratio thermodynamics