summaryrefslogtreecommitdiff
path: root/494/CH3/EX3.6.a/3_6_a.sce
blob: b3a1d4c60dbfb805be164620fb93002318e30334 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//all the quantities are expressed in SI units

V2 = 100*1609/3600;        //test section flow velocity converted from miles per hour to meters per second
p_atm = 101000;            //atmospheric pressure
p2 = p_atm;                //pressure of the test section which is vented to atmosphere
rho = 1.23;                //air density at sea level
ratio = 10;                //contraction ratio of the nozzle

//the pressure difference in the wind tunnel can be calculated as
delta_p = rho/2*(V2^2)*(1-(1/ratio^2));

//thus the reservoir pressure can be given as
p1 = p2 + delta_p;

p1_atm = p1/p_atm;         //reservoir pressure expressed in units of atm

printf("\nRESULTS\n--------\nThe reservoir pressure is\n              p1 = %1.2f atm",p1_atm)