## Question

## Transcribed Text

## Solution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

clcclear all

%Given data

r1 = 1.4;

r4 = 1.4;

R1 = 287;

R4 = 287;

T1 = 300;

T4 = T1;

%Calculation of Speed of Sound

a1 = sqrt(r1*R1*T1);

a4 = sqrt(r4*R4*T4);

P4P1 = 5;

P2P1 = 45.5554;

%Shock wave Calculations

Ms = sqrt(((r1+1)*P2P1+(r1-1))/(2*r1));

Cs = Ms*a1;

V2 = (2*Cs/(r1+1))*(1-((a1/Cs)*(a1/Cs)));

rho2rho1 = (r1+1)*Ms*Ms/((2+(r1-1)*Ms*Ms));

T2T1 = P2P1/rho2rho1;

T2 = T1*T2T1;

M2 = V2/sqrt(r1*R1*T2);

a2 = sqrt(r1*R1*T2);

%reflected shock wave

Cr = ((r1+1)/4)*V2+ sqrt((((r1+1)/4)*V2)*(((r1+1)/4)*V2)+a2*a2);

Wr = Cr - V2;

%Contact deformity

P2P4 = P2P1/P4P1;

V3 = V2;

%Finding x(t)

t=0:0.00001:0.0135;

n=0;

m=0;

o=0;

p=0;

for i=1:length(t)

x4(i) = -a4*t(i); % Expansion head

x5(i) = (-a4+(0.7*(r4-1)/2)*V3)*t(i); %Expansion wave

x6(i) = (-a4+(0.3*(r4-1)/2)*V3)*t(i); %Expansion wave

x3(i) = (-a4+((r4-1)/2)*V3)*t(i); % Expansion tail

x2(i) = V2*t(i); %Contact deformity

%Contact is assumed to cease at the wall

if x2(i)>(9)

x2(i)= 9;

end...

By purchasing this solution you'll be able to access the following files:

Solution1.m and Solution2.jpg.