summaryrefslogtreecommitdiff
path: root/2783/CH10/EX10.5/Ex10_5.sce
blob: 3bcec350c8794e9d0489beff3c4e81ae777001e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
clc
//initialization of new variables
clear
P0=4 //atm
T0=300 //K
At=5 //cm^2
Ae=10 //cm^2
//calculations
//case (1)
P1=3.8 //atm
Pr=P0/P1
M1=0.26  //from the figure
Ar=2.32
Aa=Ae/Ar  //A*
Art=At/Aa //At/A*
Mt=0.64 //from the figure
printf('case (1)')
printf('\n Exit Mach = %.2f ',Mt)
//case (2)
Aer=2.00 //from figure
M2=0.3 //based on the area ratio
Pr=0.939
P2=Pr*P0
printf('\n case (2)')
printf('\n back Pressure is %.2f atm',P2)
printf('\n Exit Mach = %.2f ',M2)
printf('\n So when the pressure at the exit is lowered a bit, the velocity at the throat becomes sonic.')
//case (3)
Ar=2.00 //from figure
M2=2.2 //based on area ratio
Pr=0.094 
P2=Pr*P0
printf('\n case (3)')
printf('\n back pressure is %.2f atm',P2)
printf('\n Exit Mach = %.2f ',M2)
printf('\n The pressure ratio has to be very smaller to create a supersonic nozzle')