diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3720/CH13/EX13.2/Ex13_2.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3720/CH13/EX13.2/Ex13_2.sce')
-rw-r--r-- | 3720/CH13/EX13.2/Ex13_2.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/3720/CH13/EX13.2/Ex13_2.sce b/3720/CH13/EX13.2/Ex13_2.sce new file mode 100644 index 000000000..3a59e9904 --- /dev/null +++ b/3720/CH13/EX13.2/Ex13_2.sce @@ -0,0 +1,24 @@ +//Example 13_2
+clc;clear;
+// Given values
+b=0.8;// Width in m
+y=0.52;// Flow depth in m
+g=9.81;// m/s^2
+theta=60;// Trapezoid angle in degree
+alpha=0.3;// Bottom slope angle
+//Properties
+n=0.030;// The Manning coefficient for an open channel with weedy surfaces
+
+//Calculation
+A_c=(y*(b+(y/tand(theta))));//The cross-sectional area in m^2
+p=b+((2*y)/sind(theta));// Perimeter in m
+R_h=A_c/p;// Hydraulic radius of the channel
+S_0=tand(alpha);//The bottom slope of the channel
+a=1;// m^(1/3)/s
+v=(a/n)*(A_c*R_h^(2/3)*S_0^(1/2));// The flow rate through the channel in m^3/s
+printf('The flow rate through the channel is determined from the Manning equation to be,v=%0.2f m^3/s\n',v);
+//The flow rate for a bottom angle of 1° can be determined by using S_0= tan alpha=tan 1°
+alpha_1=1;// degree
+S_01=tand(alpha_1);// The bottom slope of the channel
+v=(a/n)*(A_c*R_h^(2/3)*S_01^(1/2));// The flow rate through the channel in m^3/s
+printf('The flow rate for a bottom angle of 1°,v=%0.1f m^3/s\n',v);
|