summaryrefslogtreecommitdiff
path: root/1775/CH2/EX2.12/Chapter2_Example12.sce
blob: c764eb2ff49ec497f3a7474d4cbe5521f0f424c1 (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
//Chapter-2, Illustration 12, Page 69
//Title: Gas Power Cycles
//=============================================================================
clc
clear

//INPUT DATA
rv=16;//Compression ratio
rp=1.5;//Pressure ratio
y=1.4;//Ratio of specific heats
cp=8;//Cut-off percentage

//CALCULATIONS
rc=2.2;//Cut-off ratio
ntd=(1-((rp*(rc^y)-1)/((rv^(y-1)*((rp-1)+(y*rp*(rc-1)))))))*100;//Dual cycle efficiency

//OUTPUT
mprintf('Ideal efficiency of engine is %3.1f percent',ntd)






//==============================END OF PROGRAM=================================