summaryrefslogtreecommitdiff
path: root/2783/CH11/EX11.6/Ex11_6.sce
blob: 674b1730c7c2623e44381b624940e23e48a25267 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
clc
//initialization of new variables
clear
r1=0.1 //m
r2=0.4 //m
bet=15 //degrees
eta=0.9
cp=0.24
w=5000 //RPM
Cth1=0
gama=1.4
T01=300 //K
//calculations
bet=bet*%pi/180
U2=r2*w*2*%pi/60
U1=r1*w*2*%pi/60
wr2=U2/2
cp=cp*4200
Cth2=wr2*tan(bet)+U2
Tr=(U2*Cth2-U1*Cth1)/(cp*T01)
Pr=(1+eta*Tr)^(gama/(gama-1))
//results
printf('The pressure rise is %.2f',Pr)