summaryrefslogtreecommitdiff
path: root/2132/CH3/EX3.16/Example3_16.sce
blob: 7c0600849da992dfc629eb139e9fba59c9a87b54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Example 3.16
clc;
clear;
close;
format('v',7);
//Given data :
b=2;//meter
d=3;//meter
h=2;//meter
w=9.81;//kN/m^2
xbar=2+3/2;//meter
A=b*d;//m^2
P=w*A*xbar;//kN
disp(P,"Total Pressure in kN : ");
IG=(b*d^3)/12;//in m^4
h_bar=IG/A/xbar+xbar;//in meter
disp(h_bar,"Position of centre of pressure in meter : ");