Quasi 1-D supersonic nozzle flow
Objective: The following lines of code are for the non-conservative and conservative methods,using the McCormack method for the simulation of 1-D supersonic nozzle flow: clear all close all clc %MAIN INPUT: n = 31; x = linspace(0,3,n); dx = x(2) - x(1); %let gamma = Y: Y = 1.4; nt = 1400; dt= 0.0267; %mach number = M M = 1; %exact…