Question

Plot the variation of Mach number and static pressure as a supersonic airflow goes through a...

Plot the variation of Mach number and static pressure as a supersonic airflow goes through a normal shock. The Mach number of the approaching flow varies between 1.2 to 5 (use ?M=0.01 for the incremental changes in MATLAB), and the static pressure before the shock is 100 kPa. Develop a short MATLAB code.

Homework Answers

Answer #1

Show i assume here the flow is same and ...also i am assuming that all normal shock relation are known...

so the relation for pressure is given as -

figure is given in the plot below .

Matlab Code is given as following -

y=1.4; %flow coefficent
P1=100; %%presuree before the shock
M1=1.2:0.01:5;
ratio =1+((2*y)/(y+1)*(M1.^2-1)); %Using the relation of normal shock (P2/P1)
P2=ratio*P1; %pressure after the shock

plot(M1,P2);
xlabel('M1');
ylabel('P2(in KPa)');

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT