blob: 2906083e6123e8c3aa9a1dca9744d6cf762316b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clc
clear
//Initalization of variables
eff=0.97
c1=94.9 //Btu/lb
c2=138.8 //Btu/lb
ntee=246 //Btu/lb
//calculations
cwork=c1/eff
twork=c2*eff
net=twork-cwork
etat=net/ntee *100
//results
printf("Compressor work = %.1f Btu/lb",cwork)
printf("\n Turbine work = %.1f Btu/lb",twork)
printf("\n Net work = %.1f Btu/lb",net)
printf("\n Thermal efficiency = %.1f percent",etat)
|