HomeAerospace Engineering & Orbital MechanicsRocket Nozzle Flow: Quasi-1D Euler PDE Solver

Rocket Nozzle Flow: Quasi-1D Euler PDE Solver

Interactive quasi-1D compressible-flow simulator: a MacCormack time-marching finite-difference solver integrates the unsteady Euler equations through a converging-diverging rocket nozzle, converges live to a steady supersonic profile, and cross-checks its own exit Mach number against the closed-form isentropic area-Mach relation in real time.

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

Real computational fluid dynamics doesn't solve for a nozzle's Mach number by inverting an algebraic formula — it marches the governing partial differential equations forward in (pseudo-)time until the flow settles into a steady state. This simulator does exactly that: a 181-point finite-difference grid integrates the unsteady quasi-1D Euler equations for continuity, momentum and energy through a converging-diverging nozzle using MacCormack's predictor-corrector method, the same explicit time-marching scheme taught in introductory CFD courses. Watch the crude initial guess relax, frame by frame, into the true subsonic-to-supersonic flow profile — then check the result two independent ways: against the closed-form isentropic area-Mach relation, and against mass-flow conservation along the grid. Tune expansion ratio, chamber pressure, throat size and altitude to see the same engine's thrust, Isp and exit-pressure regime respond exactly as gas dynamics predicts, arrived at by a completely different numerical route than a root-finder.

⚙ Under the hood

Watch a real MacCormack time-marching finite-difference solver integrate the unsteady quasi-1D Euler equations through a converging-diverging rocket nozzle, relaxing frame by frame from a crude initial guess to the true supersonic profile, then cross-check its converged exit Mach number live against the closed-form isentropic area-Mach relation and against mass-flow conservation.

quasi-1D euler equationsmaccormack methodcomputational fluid dynamicsde laval nozzleisentropic flowfinite-difference solver

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

What did you find?

Add reproduction steps (optional)