summaryrefslogtreecommitdiff
path: root/1775/CH2/EX2.2/Chapter2_Example2.sce
blob: f85fd4b7dd332287ea0308001482826dea05a4e4 (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
27
28
29
30
//Chapter-2, Illustration 2, Page 57
//Title: Gas Power Cycles
//=============================================================================
clc
clear

//INPUT DATA
d=80;//Bore in mm
L=85;//Stroke in mm
Vc=0.06;//Clearance volume in litre
n=0.22;//Actual thermal efficiency
y=1.4;//Ratio of specific heats

//CALCULATIONS
Vs=(3.147/4)*(d^2)*L;//Stroke volume in mm^3
Vt=Vs+(Vc*(10^6));//Total volume in mm^3
rv=Vt/(Vc*(10^6));//Compression ratio
ni=(1-(1/(rv^(y-1))));//Ideal thermal efficiency
nr=(n/ni)*100;//Relative efficiency

//OUTPUT
mprintf('Relative efficiency of the engine is %3.1f percent',nr)







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