blob: bc3e2eee02d639e2e727157c562aaaba65bff1d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clc
//initialization of variables
P1=100 //lb/in^2
T1=500+460 //R
P2=15 //lb/in^2
eta=0.95
A=1 //in^2
gamma=1.4
//calculations
Ve=2200 //ft/sec
V2=eta*Ve
T2=T1*(1-eta*(1-(P2/P1)^((gamma-1)/gamma)))
vexit=53.3*T2/(144*P2)
wdot=A*V2/(144*vexit)
//results
printf("Exit velocity = %.1f ft^3/lbm",vexit)
printf("\n Mass flow = %.3f lbm/sec",wdot)
|