summaryrefslogtreecommitdiff
path: root/629/CH6/EX6.9/example6_9.sce
blob: c70d35a89c4767f9d052247c003f2424d505bb0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)