summaryrefslogtreecommitdiff
path: root/1808/CH1/EX1.19/Chapter1_Example19.sce
blob: a4919ad59e663d7fa777e296b115a66454887a3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
clc
clear
//INPUT DATA
Sp=8;//mean piston speed in m/s
P=101.325;//atmospheric pressure in kPa
Ra=0.287;//Gas constnat
Ta=303;//assumed temperature in K 
x=0.5;//fuelair ratio
nv=0.92;//volumetric efficiency in percentage
L=0.136;//stroke in m
d=0.125;//borre diameter in m
nc=6;//number of cylinders

//CALCULATIONS
N=(Sp/(2*L));//Speed in rps
Roa=(P/(Ra*Ta));//Density of air in kg/m^3
Vs=(3.14*d^2*L*nc/4);//swept volume 
ma=(nv*Roa*Vs*N)/2;//mass flow rate of air in kg/s
mf=ma*x;//mass flow rate of fuel
mf1=(2*mf*10^2)/(N*nc);//mass of fuel injected per cylinder per cycle in g/cylinder/cycle
 //OUTPUT
 printf('(i)Mass flow rate of air is %3.4f kg/s \n (ii)mass of fuel injected per cylinder per cycle is %3.4f g/cylinder/cycle',ma,mf1)