Consider a pipe (diameter of 50 mm) with air flowing through it.The inlet conditions are: Mach 3; total pressure = 1000 kPa and 550K. The friction coefficient (f) is 0.004. The exit Mach numberdecreases with the length of the pipe. Assume adiabatic, steadyflow.
Write a short Matlab code and plot the following,while the exit Mach number changes from 2.5 to 0.99 with incrementsof ?M=0.01. Find the length of the pipe that is going to give thedesired exit Mach number. Find the pipe exit pressure, pipe exittemperature, and pipe exit total pressure.