summaryrefslogtreecommitdiff
path: root/3819/CH3/EX3.24/Ex3_24.sce
diff options
context:
space:
mode:
Diffstat (limited to '3819/CH3/EX3.24/Ex3_24.sce')
-rw-r--r--3819/CH3/EX3.24/Ex3_24.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3819/CH3/EX3.24/Ex3_24.sce b/3819/CH3/EX3.24/Ex3_24.sce
new file mode 100644
index 000000000..c3440d631
--- /dev/null
+++ b/3819/CH3/EX3.24/Ex3_24.sce
@@ -0,0 +1,22 @@
+// A Textbook of Fluid Mecahnics and Hydraulic Machines - By R K Bansal
+// Chapter 3-Hydrostatic Forces on surfaces
+// Problem 3.24
+
+//Data given in the Problem
+d=4
+R=2
+l=8
+dens=1000
+g=9.81
+
+//calculations
+A=d*l
+h=d/2
+F_x=dens*g*A*h
+V_ACB=%pi/2*R^2*l //volume of portion ACB
+F_y=dens*g*V_ACB
+//Net F
+F=(F_x^2+F_y^2)^(1/2)
+//Angle maded my the resultant force
+theta=(atan(F_y/F_x))/%pi*180
+mprintf("The resultant Force is %f N at an angle of %f with horizontal\n",F,theta)