Chapter 3 : Dimensional Analysis

Example 3.1 Page No : 58

In [2]:
import math 
	
#initialisation of variables
g= 32.2 	#ft/sec**2
t= 1.    	#hr
g1= 32.2 	#ft/sec**2
g2= 32.2 	#lbm ft/lbf
u= 2.4*10**-5 	#lbf sec/ft**2
	
#CALCULATIONS
q2= g*(t*60*60)**2
go= g*(t*60*60)**2
q3= g/g2
u1= u/(t*60*60)
	
#RESULTS
print  ' q2 = %.2e lbm ft/lbf hr**2'%(q2)
print  ' go = %.2e lbm ft/lbf hr**2'%(go)
print  ' go = %.f slug ft/lbf sec**2'%(q3)
print  ' viscosity = %.2e lbf hr/ft**2'%(u1)
 q2 = 4.17e+08 lbm ft/lbf hr**2
 go = 4.17e+08 lbm ft/lbf hr**2
 go = 1 slug ft/lbf sec**2
 viscosity = 6.67e-09 lbf hr/ft**2

Example 3.2 Page No : 64

In [2]:
	
#initialisation of variables
g= 32.2 	#ft/sec**2
m= 1     	#lb
	
#CALCULATIONS
m1= g/m
	
#RESULTS
print  '1 lbf/sec ft**2 = %.1f lbm/ft sec'%(m1)
1 lbf/sec ft**2 = 32.2 lbm/ft sec

Example 3.5 Page No : 75

In [3]:
	
#initialisation of variables
n1=1.
n2= 3.
n3=2.
	
#CALCULATIONS
a1= -n1
a2= -n3
a3= -n1-a2+3*a1
b1= -n1
b2= -n1
b3= n1+3*b1-b2
	
#RESULTS
print  ' a1 = %.f '%(a1)
print  ' a2 = %.f '%(a2)
print  ' a3 = %.f '%(a3)
print  ' b1 = %.f '%(b1)
print  ' b2 = %.f '%(b2)
print  ' b3 = %.f '%(b3)
 a1 = -1 
 a2 = -2 
 a3 = -2 
 b1 = -1 
 b2 = -1 
 b3 = -1