summaryrefslogtreecommitdiff
path: root/2132/CH3/EX3.7/Example3_7.sce
blob: e8f5102e4682d05d5acceb3b9f88ed37b13b0fde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Example 3.7
clc;
clear;
close;
format('v',7);
//Given data :
b=3;//in meter
h=3;//in meter
S_oil=0.8;//(specific gravity of oil)
A=1/2*h*b;//in m^2
x_bar=2/3*3;//in meter
SW_water=9.81*1000;//in N/m^3
SW_oil=SW_water*S_oil;//in N/m^3
F_surface=SW_oil*A*x_bar;//in kN
IG=b*h^3/36;//in m^3
h_bar=IG/A/x_bar+x_bar;//in meter
disp(h_bar,"Force shall act at depth of centre of pressure. This depth in meter is : ");