summaryrefslogtreecommitdiff
path: root/2063/CH7/EX7.10/7_10.sce
blob: 1c2088003c5b763c5a5c9ae9ad6cdfa631776575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clc
clear
//Input data
d=6;//Diameter of the bore in cm
l=9;//Length of the stroke in cm
m=0.00025;//Mass of charge admitted in each suction stroke
R=29.27;//Gas constant Kgfm/kg K
p=1;//Normal pressure in kgf/cm^2
T=273;//Temperature in K

//Calculations
V=(m*R*T)*10^6/(p*10^4);//Volume of charge admitted in each cycle in m^3
Vs=(3.14*d^2*l)/4;//Swept volume of the cylinder
nv=(V/Vs)*100;//Volumetric efficiency in percentage

//Output
printf('The volumetric efficiency is %3.1f percent',nv)