summaryrefslogtreecommitdiff
path: root/629/CH3/EX3.11/example3_11.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /629/CH3/EX3.11/example3_11.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-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/CH3/EX3.11/example3_11.sce')
-rw-r--r--629/CH3/EX3.11/example3_11.sce33
1 files changed, 33 insertions, 0 deletions
diff --git a/629/CH3/EX3.11/example3_11.sce b/629/CH3/EX3.11/example3_11.sce
new file mode 100644
index 000000000..dd4d790df
--- /dev/null
+++ b/629/CH3/EX3.11/example3_11.sce
@@ -0,0 +1,33 @@
+clear
+clc
+//Example 3.11 HYDROSTATIC FORCE ON A CURVED SURFACE
+//Equilibrium in horizontal direction
+g_w=9.81; //specific weight of water[kN/m^3]
+r=2; //[m]
+w=1; //[m]
+A=r*w //area[m^2]
+l=5; //[m]
+p=g_w*l //pressure[kN/m^3]
+Fx=p*A //horizontal force on side AC[kN]
+
+//Equilibrium in vertical direction
+h=4; //height[m]
+p0=g_w*h //[kN/m^2]
+Fv=p0*A //vertical force on side CB[kN]
+W=g_w*(%pi*r^2/4)*w //weight of water in ABC[kN]
+Fy=W+Fv //[kN]
+
+//Line of action (horizontal force)
+y=5; //[m]
+ycp=y+(w*r^3/12)/(y*A) //[m]
+
+//For line of action for vertical forces, sum moments about point C
+xW=4*r/(3*%pi) //distance of centroid from C[m]
+xcp=(Fv*r/2+W*xW)/Fy //[m]
+printf("\n The line of action for vertical force, xcp = %.3fm\n and for horizontal force, ycp = %.3fm\n\n",xcp,ycp)
+
+//tan(theta)=Fy/Fx
+theta=atand(Fy/Fx) //angle with the horizontal(degrees)
+F=sqrt(Fx^2+Fy^2) //resultant force[kN]
+printf("\n Hydrostatic force on curved surface AB = %.1f kN at %.f degrees to the horizontal.\n",F,theta)
+