summaryrefslogtreecommitdiff
path: root/2132/CH5/EX5.17/Example5_17.sce
blob: 295f7f7433ecec24ee99162e849072361e0ab2b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//Example 5.17
clc;
clear;
close;
format('v',4);
//Given data :
D1=200/1000;//meter
D2=100/1000;//meter
x=220/1000;//meter
g=9.81;//gravity constant
K=0.98;//Coeff. of meter
S=1;//sp. gravity
Sm=13.6;//sp. gravity of mercury
A1=%pi*D1^2/4;//m^2
A2=%pi*D2^2/4;//m^2
C=A1*sqrt(2*g)/sqrt((A1/A2)^2-1);//venturi constant
h=x*(Sm/S-1);//meter
Q=K*C*sqrt(h);//m^3/sec
Q=Q*1000;//litres/sec
disp(Q,"Rate of flow in litres/sec : ");