blob: c1eca187c37e422c98512c6cd205982b999c7979 (
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
|
clc
//Initialization of variables
J=778
g=32.2
pc=54.6 //psia
h1=1329.1 //Btu/lbm
h2=1265 //btu/lbm
V2rev=1790 //ft/s
cv=0.99
m=1 //lbm
cv2=0.96
//calculations
V2d=cv*V2rev
hd=cv^2 *(h1-h2)
h2d=h1-hd
v2d=9.946
A2d=m*v2d/V2d
dh=-154.3
V3=2775 //ft/s
V3d=cv2*V3
h3d= h1+ cv2^2 *dh
v3d=22.05 //ft^3/lbm
A3d=m*v3d/V3d
//results
printf("Throat area in case 2 = %.4f ft^2",A2d)
printf("\n Throat area in case 3 = %.5f ft^2",A3d)
|