Air flows through a constant area duct. The pressure andtemperature of the air at the inlet to the duct are P1 = 100 kPaabsolute, and T1 = 298 K, respectively. Inlet Mach number is M1 =0.1. Heat is transferred to the air as it flows through the ductand as a result the Mach number at the exit increases.
Write a Matlab code and plot the following:
a) Find the pressure and temperature at theexit, while the exit Mach number changes between M=0.2 to 0.99with
increments of ?M=0.01.
b) Find the amount of heat that is transferredto the air per unit mass of air.