summaryrefslogtreecommitdiff
path: root/2168/CH9/EX9.3/Chapter9_example3.sce
blob: 019f701ce4ded63b1af51b15162150b31e71e489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clc
clear
//Input data
af=15//Air fuel ratio
dp=753//Density of petrol in kg/m^3
da=1.28//Density of air in kg/m^3
C=[0.84,0.7]//Coefficient of discharge for air and fuel respectively

//Calculations
A=1/(af*(C(2)/C(1))*sqrt(dp/da))//Ratio of areas
d=sqrt(A)//Ratio of diamter of jet to diameter of venturi
x=(1/d)//Reverse of ratio

//Output
printf('The ratio of diameter of jet to diameter of venturi is 1 : %3.1f',x)