summaryrefslogtreecommitdiff
path: root/1226/CH17/EX17.26/EX17_26.sce
blob: e41fc0e0cb271e7689f80013bfbcf297d3978b7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc;funcprot(0);//EXAMPLE 17.26
// Initialisation of Variables
n=1.3;...................//Index of compression
pa=1.4;pb=3.6;posa=(1/4);..........//Point a - the position 1/4 of the stroke
posb=(3/4);..........//Point b - the position 3/4 of the stroke
ga=1.4;...............//Degree of freedom for gas
etarel=0.4;...................//Relative efficiency
C=18800;....................//Calorific value of fuel in kJ/m^3
//Calculations
r=1+((((pb/pa)^(1/n))-1)/(posb-(((pb/pa)^(1/n))*(posa))));.........//Compression ratio
disp(r,"The compression ratio :")
etast=1-(1/r^(ga-1));............//Air standard efficiency 
etath=etarel*etast;............//Thermal efficiency
disp(etath*100,"Thermal efficiency (in %):")
v=1/(etath*C);...............//Gas consumption per IP sec
disp(v*3600,"Gas consumption (in m^3/IP hour):")