Chapter 3 Temperature and the ideal gas

Ex:3.2 Pg:59

In [1]:
#Initialization of variables
p=14.7 #psia
R0=1545 
t=460 +60 #R
#calculations
v=R0*t/(p*144)
#results
print "Volume = %.1f ft**3/mol"%(v)
Volume = 379.5 ft**3/mol

Ex:3.3 Pg:59

In [3]:
#Initialization of variables
p=20.0 #psia
R0=1545.0 
t=460 +100 #R
M=28
#calculations
v=R0*t/(p*144*M)
rho=1/v
#results
print "density of nitrogen = %.4f lbm/ft**3"%(rho)
density of nitrogen = 0.0932 lbm/ft**3