Supersonic Conical Flow Solver
MATLAB solver for supersonic flow over a cone, checked against a hand calculation and the NACA 1135 charts.
Numbers
- 10.74°
- Cone half-angle for a 15° shock at Mach 6
- 4.901
- Mach number on the cone surface
- 4
- Significant figures of agreement with the hand calculation at the shock
An individual assignment for a gas dynamics course: write a program that solves the Taylor-Maccoll equation for supersonic flow over a sharp cone at zero angle of attack, then use it on a real case.
How it works
The Taylor-Maccoll equation is a second-order nonlinear ODE for the flow between the conical shock and the cone surface. I split it into two first-order ODEs and integrated them with a classical fourth-order Runge-Kutta march. The program uses the inverse method: the shock angle is given, the oblique-shock relations set the flow just behind it, and the march steps in from the shock until the normal velocity reaches zero, which marks the cone surface. Linear interpolation between the last two steps pins down the exact cone angle.
Result
For Mach 6 and a 15° shock, the cone half-angle comes out at 10.737° with a surface Mach number of 4.901. On the cone surface the pressure is 3.057 times the free-stream value, the density 2.164 times and the temperature 1.413 times, with a pressure coefficient of 0.0816.
How I checked it
Before trusting the march, I worked the shock jump by hand to four significant figures and compared it with the program: the flow deflection, pressure, density and temperature ratios agree to four significant figures. The final cone-surface values match NACA 1135 charts 5, 6 and 7 within reading accuracy.