Beruflich Dokumente
Kultur Dokumente
report.
Question-4.
Student name: Pravallika K
SC code : SC15B023
Branch : Aerospace engineering
Year : 4th year
P4/p1 is known. The above equation is solved to get the value of p2/p1. The
flow parameters are calculated from formula in the theory mentioned above.
%p4 = xlsread('input.xlsx',1,'B2')
% p1 = xlsread('input.xlsx',1,'B3')
% T4 = xlsread('input.xlsx',1,'B4');
% T1 = xlsread('input.xlsx',1,'B5');
% gamma = xlsread('input.xlsx',1,'B6');
syms gamma a1 a4 p4top1 p2top1 p4 p1 a1toa4
p4 = 10^6;
p1 = 10^5;
T4 = 2000;
T1 = 500;
gamma = 1.4;
R = 8.314;
M = 28.9647*10^-3;
p4top1 = p4/p1;
a1 = sqrt(((gamma)*R*T1)/M);
a4 = sqrt(((gamma)*R*T4)/M);
a1toa4 = (a1)/(a4);
p2top1_0 = sqrt(p4top1);
p2top1 = fzero(@(p2top1) -(p4top1)+(p2top1)*(1- ((gamma-
1)*(a1toa4)*(p2top1))/((2*gamma)*((2*gamma)+(gamma+1)*(p2top1)
)))^(-(2*gamma)/(gamma-1)),p2top1_0)
Ws= a1*(((gamma+1)/(2*gamma))*(p2top1-1)+1)^.5;
u_p= a1/gamma*(p2top1-1)*((2*gamma/(gamma+1))/...
(p2top1+(gamma-1)/(gamma+1)))^.5;
t2tot1=p2top1*((gamma+1)/(gamma-
1)+p2top1)/(1+(gamma+1)/(gamma-1)*p2top1);
T2=t2tot1*T1;
Ms=Ws/a1;
M1 = ((p2top1)*(gamma+1)+gamma-1)/(2*gamma);
rho2torho1 = ((gamma+1)*(M1)^2)/((gamma-1)*M1^2+2);
v1 = 0;
v2 = ((2*a1)/(gamma+1))*(M1-(1/M1))+v1
p5top1 = ((2*gamma*M1^2 - gamma +1)/(gamma+1))*(((3*gamma-
1)*M1^2-2*(gamma-1))/((gamma-1)*M1^2+2))
p5 = p5top1 *p1;
p2 = (p2top1)*p1;
p5top2 = (p5)/(p2);
t5tot2 = ((p5top2)*(((gamma+1)/(gamma-1))+(p5top2)))/(1+(
(gamma+1)/(gamma-1) ));
T5 = (t5tot2)*T2;
Wr = Ws*((2+(2/(gamma-1))/(p2top1))/(((gamma+1)/(gamma-1)) -
(p2top1)^-1))
v2 = ((2*a1)/(gamma+1))*(M1-(M1)^(-1));
% u21 is the velocity flow w.r.t shock after reflection of
% compressive wave
u21 = Wr + v2;
a2 = sqrt(((gamma)*R*T2)/M);
Mr = (u21)/(a2);