summaryrefslogtreecommitdiff
path: root/1379/CH5/EX5.1.9/example5_9.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1379/CH5/EX5.1.9/example5_9.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 '1379/CH5/EX5.1.9/example5_9.sce')
-rwxr-xr-x1379/CH5/EX5.1.9/example5_9.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/1379/CH5/EX5.1.9/example5_9.sce b/1379/CH5/EX5.1.9/example5_9.sce
new file mode 100755
index 000000000..119d8f7c6
--- /dev/null
+++ b/1379/CH5/EX5.1.9/example5_9.sce
@@ -0,0 +1,21 @@
+
+
+//exapple 5.9
+clc; funcprot(0);
+// Initialization of Variable
+B2=1.60;//breadth at 2
+D2=(1-0.047)*1.27;//depth at 2
+g=9.81;
+B1=2.95;//breadth at 1
+D1=1.27;//depth at 1
+Z=0;
+//calculation
+Q=B2*D2*(2*g*(D1-D2-Z)/(1-(B2*D2/B1/D1)^2))^0.5;
+disp(Q,"volumetric flow rate over flat topped weir over rectangular section in non uniform width(m^3/s)");
+//next part
+B2=12.8;
+D1=2.58;
+Z=1.25;
+Q=1.705*B2*(D1-Z)^1.5;
+disp(Q,"volumetric flow rate over flat topped weir over rectangular section in uniform width (m^3/s):")
+