summaryrefslogtreecommitdiff
path: root/2132/CH5/EX5.17/Example5_17.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2132/CH5/EX5.17/Example5_17.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2132/CH5/EX5.17/Example5_17.sce')
-rwxr-xr-x2132/CH5/EX5.17/Example5_17.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2132/CH5/EX5.17/Example5_17.sce b/2132/CH5/EX5.17/Example5_17.sce
new file mode 100755
index 000000000..295f7f743
--- /dev/null
+++ b/2132/CH5/EX5.17/Example5_17.sce
@@ -0,0 +1,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 : ");