Chapter 8: Dimensional Analysis

Example 8.1, Page 268

In [1]:
from __future__ import division
import math


 #Initializing  the  variables
P1  =  57;                                         #Power  in  SI
M  =  1/14.6;                                      #Ratio  of  mass  in  SI/British
L  =  1/0.3048;                                    #Ratio  of  length  in  SI/British
T  =  1;                                           #Ratio  of  time  in  SI/British

#Calculations
'''
n1 is the horsepower and N1 is the corresponding number of British units (ft*lbf/second),
then     N1 = 550*n1.
Similarly, for the SI system, n2 in kW,
         N2 = 1000*n2
''' 
N = (T**3)/(M*L**2)                         # N2/N1
n = N*550/1000                              #n2/n1 
P2  =  n*P1  ;                              #Power  in  kW

print "Power in kW       :",round(P2,1)
print "Conversion Factor :",round(n,3)
Power in kW       : 42.5
Conversion Factor : 0.746