summaryrefslogtreecommitdiff
path: root/2063/CH1/EX1.12/1_12.sce
blob: e7970b5b8c5d2575ddaf5c37d03f2b91a331ff88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
clear
r=15;//Compression ratio of a diesel engine
Q=5;//Heat supplied upto 5 percent of the stroke
r1=1.4;//Isentropic ratio

//Calculations
p=1+(Q/100)*(r-1);//Cut off ratio
n=(1-((1/r^(r1-1)*(p^r1-1)/(r1*(p-1)))))*100;//Efficiency of diesel cycle in percent

//Output
printf('Air standard efficiency of the diesel cycle is %3.2f percent',n)