blob: 8989e42d25a9b50ef841cbc0a82f13349a899414 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//Example 3.18
clc;
clear;
close;
format('v',7);
//Given data :
D=1.5;//meter
BE=2;//meter
AD=0.75;//meter
CE=AD;//meter
BC=BE-AD;//meter
FG=CE+BC/2;//meter
xbar=FG;//meter
w=9.81;//kN/m^2
A=%pi*D^2/4;//m^2
AB=D;//meter
sin_theta=BC/AB;
P=w*A*xbar;//kN
disp(P,"Total Pressure in kN : ");
IG=(%pi/64*D^4);//in m^4
h_bar=IG/A/xbar*sin_theta^2+xbar;//in meter
disp(h_bar,"Position of centre of pressure in meter : ");
|