summaryrefslogtreecommitdiff
path: root/3819/CH3/EX3.26/Ex3_26.sce
blob: 4638d02193d080b697be00127b1a7a70414c5868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// A Textbook of Fluid Mecahnics and Hydraulic Machines - By R K Bansal
// Chapter 3-Hydrostatic Forces on surfaces
// Problem 3.26

//Data given in the Problem
dens=1000
g=9.81
theta=30
w=4
R=8

//calculations
h=w/2
A=w*1       //Area
F_x=dens*g*w*h
W_CBDC=dens*g*(theta/360*%pi*R^2-w/2*8*cos(theta*%pi/180))
F_y=W_CBDC
mprintf("The resultant Force is %f N in x and %f N in y direction\n",F_x,F_y)