The code utilizes method of characterisitics to solve the velocity potential equation (which is a hyperbolic partial differential equation) used for modelling compressible, inviscid and irrotational fluid flow.
Figure: PDE modelling the flow (J.D Anderson, Fundamentals of Aerodynamics)
Figures attached below demonstrate the progression of the nozzle contour for required exit Mach number of '2' with adiabatic gas constant of 1.4. As the number of characteristic curves are increased, the contour becomes smoother and more accurate.
Figure 1: Contour for considering 2 characteristic curves
Figure 2: Contour for considering 5 characteristic curves
Figure 3: Contour for considering 50 characteristic curves
Figure 4: Contour for considering 90 characteristic curves