summaryrefslogtreecommitdiff
path: root/2168/CH15/EX15.6/Chapter15_example6.sce
blob: 0b1aa0ec081faced608e711a1bbeda84ddd7ed75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clc
clear
//Input data
Vf=6.2//Volume of fuel in c.c
l=65//Length of fuel line in cm
di=2.5//Inner diameter in mm
V=2.75//Volume of fuel in the injector valve in c.c
Vd=0.15//Volume of fuel to be delivered in c.c. In textbook it is given wrong as 0.047
p=140//Pressure in kg/cm^2
pp=1//Pump pressure in kg/cm^2
patm=1.03//Atmospheric pressure in kg/cm^2
b=78.8*10^-6//Coefficient of compressibility in cm^2/kg when pressure is taken as atmospheric

//Calculations
V1=(Vf+(3.14/4)*(di/10)^2*l+V)//Initial volume in c.c
dV=((b*V1*(p-pp)/patm))//Change in volume in c.c
d=(dV+Vd)//Total displacement of the plunger in c.c

//Output
printf('The total displacement of the plunger is %3.3f c.c',d)