Course
Guided
1,200 XP3–4 hours

Isentropic Nozzle Flow Solver

Solve compressible flow through a converging–diverging nozzle.

Implement the isentropic flow relations and use a root-finder to get Mach number from an area ratio — the core of nozzle and inlet analysis.

Isentropic relationsArea–Mach relationChoked flowRoot-finding (brentq)
Milestones
0/4
At M=2, γ=1.4: T0/T = 1+0.2M². Print p0/p (should be ~7.824).
numpy
p0/p ≈ 7.824