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 /629/CH6/EX6.9/example6_9.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 '629/CH6/EX6.9/example6_9.sce')
-rw-r--r-- | 629/CH6/EX6.9/example6_9.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/629/CH6/EX6.9/example6_9.sce b/629/CH6/EX6.9/example6_9.sce new file mode 100644 index 000000000..c70d35a89 --- /dev/null +++ b/629/CH6/EX6.9/example6_9.sce @@ -0,0 +1,25 @@ +clear
+clc
+//Example 6.9 FORCE ON A SLUICE GATE
+g=32.2; //[ft/s^2]
+d1=20; //[ft]
+d2=3; //[ft]
+w=20; //gate width[ft]
+v2=sqrt((2*g*(d1-d2))/(1-(d2/d1)^2)) //[ft/s]
+v1=d2*v2/d1 //[ft/s]
+rho=1.94; //[slugs/ft^3]
+Q=v2*d2*w //discharge[ft^3/s]
+printf("\n The flow rate under the sluice gate = %.f ft^3/s.\n",Q)
+m=rho*Q //mass flow rate[slugs/s]
+Gamma=62.4; //[lbf/ft^3]
+F1=Gamma*w*(d1^2)/2
+F2=Gamma*w*(d2^2)/2
+//momentum inflow
+mi=m*v1 //[lbf]
+//momentum outflow
+mo=m*v2 //[lbf]
+Fx=mo-mi //[lbf]
+//Sum of forces in x-direction, Fx=F1-F2-Fg
+//1ton=2000 lbf
+Fg=(F1-F2-Fx)/2000 //tons
+printf("\n The force on the sluice gate = %.1f tons.\n",Fg)
\ No newline at end of file |