Sie sind auf Seite 1von 15

High temperature gas dynamics assignment

report.
Question-4.
Student name: Pravallika K
SC code : SC15B023
Branch : Aerospace engineering
Year : 4th year

Shock tube equations


The equations applicable in the case of shock tube which are the moving
normal shock equations may be derived considering the shock fixed coordinate
system. In the figures, Ws represents the wave speed which is the speed at
which the shock front propagates in the shock tube and v1 and v2 are the gas
particle velocities ahead and behind the moving shock respectively. To convert
the Laboratory fixed coordinates to shock fixed, wave speed Ws is applied in
the opposite direction of the propagating shock.
Particle Velocity behind the moving shock wave
Dependence of shock on diaphragm pressure ratio
Reflected Shocks

Reflected Shock Parameters


Flow chart for code: Shock Tube Theory

Given p1,p4 gamma1, gamma4,T1,T4


First the initial speeds of sound, a1 and a4 , were determined by:
a = sqrt(gamma*R*T)
The pressure ratio across the shock wave ( p1/p2) was then calculated
iteratively through the following:

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.

%Code for compressive shock


clc;
clear all;

%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);

Das könnte Ihnen auch gefallen