summaryrefslogtreecommitdiff
path: root/2132/CH3/EX3.17/Example3_17.sce
blob: 2c5b6806728591ba5360636ac21c32e9ada24fe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Example 3.17
clc;
clear;
close;
format('v',7);
//Given data :
b=4;//meter
d=4;//meter
h=8;//meter
w=9.81;//kN/m^2
xbar=8;//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 : ");