blob: b22deea62164cd5b6f35d55326fbc5626b535063 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// A Textbook of Fluid Mecahnics and Hydraulic Machines - By R K Bansal
// Chapter 4-Buoyancy and Floatation
//// Problem 4.10
//Given Data Set in the Problem
dens=1000
g=9.81
D=4
h=3
sg=0.6
//calculations
d=0.6*h
AB=d/2
AG=h/2
BG=AG-AB
//For meta centric height
I_yy=%pi/64*D^4
V_sub=%pi/4*D^2*d
GM=I_yy/V_sub-BG
mprintf("The meta centric height is at %f m\n",GM)
|