1D supersonic nozzle flow equations using the Macormack Method
Objective: Aim:To Evaluate the 1D supersonic nozzle flow equations using the Macormack Method. Source: GNU OCtave Source Code: Main Program clear all close all clc %Input L=3; n=31; %No. of grid points x=linspace(0,L,n); %Domain Length dx=x(2)-x(1); %Grid spacing gamma=1.4; nt=1400; throat=(n-1)/2; a=1+2.2*(x-1.5).^2; %Area Profile…