Chapter 1 - Units and Dimensions

Example 1 - Pg 4

In [1]:
#calculate the force required to accelerate
#Initialization of variables
gc=32.1739 #lbm ft/lbf s^2
m=10 #lbm
a=10. #ft/s^2
#calculations
F=m*a/gc
#results
print '%s %.3f %s' %("Force to accelerate =",F,"lbf")
Force to accelerate = 3.108 lbf

Example 2 - Pg 4

In [2]:
#calculate the force required to accelerate
#Initialization of variables
gc=32.1739 #lbm ft/lbf s^2
m=10. #lbm
a=gc #ft/s^2
#calculations
F=m*a/gc
#results
print '%s %d %s' %("Force to accelerate =",F,"lbf")
Force to accelerate = 10 lbf

Example 3 - Pg 4

In [3]:
#calculate the force required to accelerate
#Initialization of variables
gc=32.1739 #lbm ft/lbf s^2
F=5.00e-9 #lbf hr/ft^2
#calculations
F2=F*3600*gc
#results
print '%s %.2e %s' %("Force required =",F2,"lbm/ft sec")
Force required = 5.79e-04 lbm/ft sec

Example 4 - Pg 7

In [4]:
#calculate the velocity
#Initialization of variables
v=88. #ft/s
#calculations
v2=v*3600./5280.
#results
print '%s %d %s' %("velocity =",v2,"mph")
velocity = 60 mph

Example 5 - Pg 7

In [5]:
#calculate the velocity
#Initialization of variables
v=88. #ft/s
#calculations
v2=v*1/5280*3600.
#results
print '%s %d %s' %("velocity =",v2,"mph")
velocity = 60 mph

Example 6 - Pg 9

In [6]:
#calculate the density of water and also the specific weight
#Initialization of variables
rho=62.305 #lbf/ft^2
g=32.1739 #ft/s^2
#calculations
gam=rho/g
#results
print '%s %.3f %s' %("Density of water in this system =",gam,"lbf/ft^2")
print '%s %.3f %s' %("\n Specific weight =",rho,"lbf/ft^2")
Density of water in this system = 1.937 lbf/ft^2

 Specific weight = 62.305 lbf/ft^2