Chapter 1 : Purpose, Usefulness, And Definitions of Thermodynamics

Example 1.1 page : 3

In [1]:
			
# Variables
P = 2050. 			#kPa
T = 700. 			#K
E = 10.	    		#J
			
# Calculations
Pe = P*10**3 *0.3048**2 /4.4482 /144
Te = T*1.8-460
Ee = E*10**8 /(1055.1)
			
# Results
print "Temperature  =  %d F"%(Te)
print " Pressure  =  %d lbf/in**2 "%(Pe)
print " Energy  =  %.2e Btu"%(Ee)
Temperature  =  800 F
 Pressure  =  297 lbf/in**2 
 Energy  =  9.48e+05 Btu