Home▸Aerospace Engineering & Orbital Mechanics▸Supersonic Flow (2D)

Supersonic Flow (2D): Shock Waves, Mach Cone & Oblique Shocks

2D compressible-flow lab: pressure-wave rings, the Mach cone (μ = arcsin 1/M), an oblique or bow shock from the θ-β-M relation, Rankine-Hugoniot property jumps, and an altitude slider that scales the ambient atmosphere so the post-shock pressure and temperature come out in real units.

Aerospace Engineering & Orbital Mechanics2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-supersonic-flow ↗ Open standalone

This 2D companion drives the same gas-dynamics equations as the 3D version — the Mach-angle relation, the θ-β-M bisection for the weak oblique shock, and the Rankine-Hugoniot jump conditions — through a plain canvas view instead of a GPU shader, and adds a dimensional layer the 3D version doesn't have: an altitude slider that scales ambient pressure and temperature through a standard-atmosphere approximation, so the post-shock pressure and temperature readouts are real physical values (Pa, K), not just ratios.

⚙ Under the hood

2D compressible-flow lab: pressure-wave rings, the Mach cone, an oblique/bow shock from the θ-β-M relation, Rankine-Hugoniot property jumps, and altitude-scaled ambient conditions.

supersonic flowmach coneshock waveoblique shockrankine-hugoniotcompressible flow

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)