Chapter 8 :Fluids

Example 8.3 , Page no:46

In [1]:
import math
from __future__ import division

#initialisation of variables
dg=1200; #density in lb/ft cube
v=1/1728; #in ft cube/in cube

#CALCULATIONS
w=dg*v; #calculating weight

#RESULTS
print"Weight in lb =",round(w,3);
Weight in lb = 0.694

Example 8.4 , Page no:46

In [2]:
import math
from __future__ import division

#initialisation of variables
m=58; #mass in kg
v=0.1*0.2*4; #calculating volume using v=l*b*h in m cube
dw=1000; #density of water in kg/m cube

#CALCULATIONS
d=m/v; #calculating density using d=m/v in kg/m cube
spgr=d/dw; #calculating specific gravity of oak

#RESULTS
print"Specific Gravity of Oak =",round(spgr,3);
print"Since specific gravity of oak is less than that of water (ie. 1), it floats in water";
Specific Gravity of Oak = 0.725
Since specific gravity of oak is less than that of water (ie. 1), it floats in water

Example 8.5 , Page no:46

In [3]:
import math
from __future__ import division
 
#initialisation of variables
dg=0.08; #weight density of air in lb/ft cube
v=12*12*10; #calculating volume using v=l*b*h in ft cube

#CALCULATIONS
w=dg*v; #calculating weight in lb using weight=weight density*volume

#RESULTS
print"Weight of the air in lb =",round(w,3);
Weight of the air in lb = 115.2

Example 8.6 , Page no:46

In [4]:
import math
from __future__ import division
 
#initialisation of variables
w=500; #weight in lb
dg=62; #density in lb/ft cube

#CALCULATIONS
v=w/dg; #calculating volume using density=mass/volume

#RESULTS
print"Volume in ft cube =",round(v,3);
Volume in ft cube = 8.065

Example 8.7 , Page no:47

In [5]:
import math
from __future__ import division
 
#initialisation of variables
F=130; #force in lb
r=1; #radius in inch

#CALCULATIONS
A=3.14*r*r; #calculating Area using area=pi*r*r in in square
p=F/A; #calculating pressure in lb/in square using p=F/area
p1=p/14.7;

#RESULTS
print"Pressure exerted on ground in lb/in square =",round(p,3);
print"Times greater than atmospheric pressure =",round(p1,3);
Pressure exerted on ground in lb/in square = 41.401
Times greater than atmospheric pressure = 2.816

Example 8.8 , Page no:47

In [6]:
import math
from __future__ import division
 
#initialisation of variables
m=20000; #mass in kg
A=60; #area in metre square
g=9.8; #gravitational constant in m/sec square

#CALCULATIONS
F=m*g; #calculating force in Newton
p=F/A; #calculating pressure in Pascal
p1=p/(1.013*10**5);

#RESULTS
print"Pressure in Pascal =",round(p,3);
print"Pressure in atm =",round(p1,3);
Pressure in Pascal = 3266.667
Pressure in atm = 0.032

Example 8.9 , Page no:47

In [7]:
import math
from __future__ import division
 
#initialisation of variables
pa=14.7; #atm pressure in lb/in square
dg=62; #density in lb/ft cube

#CALCULATIONS
h=6/144; #in ft cube/in square
p=pa+(dg*h); #calculating pressure

#RESULTS
print"Pressure in lb/in square =",round(p,3);
Pressure in lb/in square = 17.283

Example 8.10 , Page no:47

In [8]:
import math
from __future__ import division
 
#initialisation of variables
g=9.8; #gravitational constant in m/sec square
d=1.03*10**3; #density of sea water in kg/m cube
depth=50; #depth in m
side=20; #length of side in cm

#CALCULATIONS
p=d*depth*g; #calculating pressure on window
A=side*side*10**-4; #calculating area in metre square
F=p*A; #calculating FOrce in Newton

#RESULTS
print"Force acting on window in Newton =",round(F);
Force acting on window in Newton = 20188.0

Example 8.11 , Page no:47

In [9]:
import math
from __future__ import division
 
#initialisation of variables
w=200; #weight in lb
ds=64; #weight density of seawater in lb/ft cube
dg=480; #weight density of iron in lb/ft cube

#CALCULATIONS
V=w/dg; #calculating V using dg=w/V in ft cube
w1=ds*V; #calculating weight of seawater displaced by anchor in lb
bf=w-w1; #calculating net force in lb

#RESULTS
print"Net Force to support in lb =",round(bf,3);
Net Force to support in lb = 173.333

Example 8.12 , Page no:48

In [10]:
import math
from __future__ import division
 
#initialisation of variables
r=2; #side in m
m=70; #mass of man in kg
d=10**3; #density in kg/m cube

#CALCULATIONS
V=m/d; #calculating Volume in m cube
A=r*r; #calculating area in m square
h=V/A; #calculating height using vol=height*area in metre

#RESULTS
print"Height in metre =",round(h,3);
Height in metre = 0.018

Example 8.13 , Page no:48

In [11]:
import math
from __future__ import division
 
#initialisation of variables
dice=920; #desity of ice in kg/m cube
dwater=1030; #density of water in kg/m cube

#CALCULATIONS
vsub=dice/dwater; #calculating percentage volume of iceberg that is submerged using relation:dice*g*v=dwater*g*vsub
vsub1=vsub*100;

#RESULTS
print"Percentage of volume of submerged iceberg =",round(vsub1,3);
Percentage of volume of submerged iceberg = 89.32

Example 8.14 , Page no:48

In [12]:
import math
from __future__ import division
 
#initialisation of variables
v=100*0.134; #volume in ft cube
w1=50; #weight in lb
dg=42; #density in lb/ft cube
dgw=64; #density in lb/ft cube

#CALCULATIONS
w=w1+(dg*v); #calculating weight
F=dgw*v; #calculating force

#RESULTS
print"Weight in lb =",round(w,3);
print"Maximumforce in lb =",round(F,3);
Weight in lb = 612.8
Maximumforce in lb = 857.6

Example 8.15 , Page no:48

In [13]:
import math
from __future__ import division
 
#initialisation of variables
w1=40000; #weight in lb
dga=0.08; #density in lb/ft cube
dgh=0.011; #density in lb/ft cube

#CALCULATIONS
v=w1/(dga-dgh); #calculating volume

#RESULTS
print"Volume in ft cube =",round(v,3);
Volume in ft cube = 579710.145