Oblique Shock Calculator

Free Oblique Shock Calculator — solve the θ–β–M relation for two-dimensional oblique shocks in compressible flow.

860.4K uses Updated · 2026-05-11 Runs locally · zero upload
AD

How to Use Oblique Shock Calculator

The Oblique Shock Calculator solves the implicit θ–β–M relation numerically to find weak and strong wave angles for a given deflection, or conversely computes the flow deflection from a measured wave angle.

  1. Enter upstream Mach number M₁ — must be supersonic (M₁ > 1) for an oblique shock to exist.
  2. Enter specific-heat ratio γ — default 1.4 for air; adjust for other gases (CO₂ ≈ 1.3, He ≈ 1.67).
  3. Choose input type — “deflection θ” if the wedge or ramp geometry is known; “wave angle β” if the shock is visible in schlieren or shadowgraph imagery.
  4. Read β weak and β strong when θ is the input, or read θ when β is the input.
  5. Check the detachment warning — if θ exceeds θ_max for the given M₁, the shock detaches and a bow shock forms; the calculator flags this condition.
  6. Review downstream Mach M₂ and the static pressure ratio p₂/p₁ in the result panel.

Formula & Theory — Oblique Shock Calculator

The Oblique Shock Calculator solves the θ–β–M relation, derived by applying Rankine–Hugoniot conditions across the oblique shock:

tan θ = 2 cot β · [ M₁² sin²β − 1 ] / [ M₁²(γ + cos 2β) + 2 ]
M₂² sin(β − θ) = (M₁² sin²β + 2/(γ−1)) / (2γM₁² sin²β/(γ−1) − 1)
p₂/p₁ = 1 + 2γ(M₁² sin²β − 1)/(γ + 1)
SymbolMeaningSI Unit
M₁, M₂Upstream / downstream Mach numbers
βWave angle from upstream flow direction°
θFlow deflection (wedge or ramp half-angle)°
γSpecific-heat ratio
p₂/p₁Static pressure ratio across shock

For any M₁ there is a maximum deflection θ_max; below it two solutions exist — the weak shock (smaller β, M₂ typically supersonic) and the strong shock (larger β, M₂ subsonic). In practice the weak solution is realised unless back pressure forces a strong shock.

Use Cases for Oblique Shock Calculator

  • Supersonic inlet ramp design — size multi-ramp deflection angles to compress airflow progressively to near-sonic without producing a detached bow shock.
  • Wind-tunnel schlieren analysis — convert measured shock angles from optical images into flow deflections and pressure ratios for test-section calibration.
  • Diamond-foil and double-wedge airfoils — compute leading-edge shock properties and trailing-edge expansion fans for wave-drag and lift prediction.
  • Hypersonic vehicle forebody — calculate the shock-layer temperature and pressure ratio at the stagnation region for thermal protection system sizing.
  • Shock-tube and detonation studies — assess whether an oblique detonation front angle is consistent with Chapman–Jouguet oblique shock conditions.
  • Compressible-flow coursework — solve θ–β–M homework problems numerically and verify against graphical Mach-angle charts in gas dynamics textbooks.

Frequently asked questions about Oblique Shock Calculator

What is an oblique shock?

A planar shock wave inclined to the flow direction, formed when supersonic flow is deflected by an angle θ.

Why are there two solutions?

For any deflection angle below θ_max two wave angles satisfy the θ–β–M relation: a weak shock (smaller β) and a strong shock (larger β).

What is θ_max?

The maximum deflection a flow at given M₁ and γ can support before becoming detached, increasing toward 45° at high Mach.

Does the calculator find both solutions?

Yes. It searches numerically and returns weak/strong roots when they exist.

Is my data stored?

No. All calculations happen in your browser; nothing is sent to a server.