Simulation of a Quasi-1D Super-Sonic nozzle flow equation using MacCormack method
Objective: Non-Conservative Form: Conservative form Equations are: The Solution terms(U),Flex terms(F) and Souce terms(J) respectively are: Primitive variables and their corresponding relations with Solution,Flex and Source terms Main code: clear all close all clc %Inputs n=31; x=linspace(0,3,n); dx=x(2)-x(1); gamma=1.4; %TimeSteps…