summaryrefslogtreecommitdiff
path: root/443/CH17/EX17.23/17_23.sce
blob: 5d97c9d65d1314f5d955fc0a1c2aadc791f47f9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pathname=get_absolute_file_path('17_23.sce')
filename=pathname+filesep()+'17_23_data.sci'
exec(filename)
//Air standard efficiency
nas=1-(1/r^(y-1))
//Indicaed hermal efficiency
nith=nrel*nas
//Calorific value of fuel(in kJ/kgK)
CV=(3600)/(nith*isfc)
//Indicated power(in kW)
ip=(pim*10^5*L*0.25*%pi*D^2*0.5*N*K)/60000
//Fuel consumption(in kg/h)
Fc=isfc*ip
printf("\n\nRESULTS\n\n")
printf("\nCalorific value of the fuel:%f\n",CV)
printf("\nFuel consumption:%f\n",Fc)