summaryrefslogtreecommitdiff
path: root/1808/CH2/EX2.17/Chapter2_Example17.sce
blob: ce9eb8720263c91a3654aedd0ae6e6326bcc17e6 (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
clc
clear
//INPUT DATA
hc=4;//cylinders
mf=2;//mass flow rate in g/s
vd=2.8;//capacity in litres
N=1500;//speed in rpm
ta=303;//temperature in K
Pa=101.325;//atmospheric pressure in kPa
R=0.287;//gas constant in kJ/kgK
xs =15.14;//air fuel ratio 
//C8H18+12.5(O2+3.773N2)=8CO2+9H2O+47.16 N2;//Chemical equation 

//CALCULATIONS
ma1=xs*mf;//mass of air in g/s
ma=ma1/50;//mass of air in g/cylinder/cycle
ro=Pa/(R*ta);//density in kg/m^3
nv=ma/(ro*vd/4);//Volumetric efficiency

//OUTPUT
printf('Volumetric effiiciency is %3.4f ',nv)