Simulation of 1D Super Sonic nozzles
Objective: Main Code clear all clc close all n=31; x=linspace(0,3,n); dx=x(2)-x(1); C=0.5; gamma=1.4; nt=1400; %Non Comservative Approach [rho,T,V,mass,p,M,rho_throat,V_throat,T_throat,mass_throat,p_throat,M_throat]=nonconservative(n,x,dx,C,gamma,nt); %Conservative Approach [rho_c,T_c,V_c,mass_c,p_c,M_c,rho_c_throat,V_c_throat,T_c_throat,mass_c_throat,p_c_throat,M_c_throat]=conservative(n,x,dx,C,gamma,nt);…