blob: 5caa061bc2832e83f4a72a1faa8c11bce3d25084 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
// A Textbook of Fluid Mecahnics and Hydraulic Machines - By R K Bansal
// Chapter 2 - Pressure and its measurements
// Problem 3.35
//Given Data Set in the Problem
dens=1000
g=9.81
L=6
b=2.5
d=2
h=1.5
FD=1
//Calculations
//1) horizontal accn imparted
//a)
tan_theta=(d-h)/(L/2)
a=g*tan_theta
//b)
h1=d/2
A1=d*b
F1=dens*g*A1*h1
A2=FD*b
h2=FD/2
F2=dens*g*A2*h2
//c)
F=F1-F2
//this too can be used ,,calulate colume V=L*b*h
//then.....F_=dens*V*a //Force required to accelerate the mass of water in the tank
mprintf("Part 1)Force required to accelerate the mass of water in the tank is %f N \n",F)
//2) horizontal accn when front bottom corner is just exposed
//a)
CE=2
ED=6
tan_theta=CE/ED
a=g*tan_theta //acceleration
//b)
h1=CE/2
A1=CE*b
F1=dens*g*A1*h1
F2=0
//c)
F=F1-F2
mprintf("Part 2) Force required to accelerate the mass of water in the tank is %f N \n",F)
//2) horizontal accn when front bottom in half exposed
//a)
CE=2
ED=3
tan_theta=CE/ED
a=g*tan_theta //acceleration
//b)
h1=CE/2
A1=CE*b
F1=dens*g*A1*h1
F2=0
//c)
F=F1-F2
mprintf("Part 2) Force required to accelerate the mass of water in the tank is %f N \n",F)
|