Chapter 3 - Temperature and the ideal gas

Example 2 - Pg 48

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

Example 3 - Pg 48

In [2]:
#calculate the density of nitrogen
#Initialization of variables
p=20 #psia
R0=1545. 
t=460. +100 #R
M=28.
#calculations
v=R0*t/(p*144*M)
rho=1/v
#results
print '%s %.4f %s' %("density of nitrogen =",rho,"lbm/ft^3")
density of nitrogen = 0.0932 lbm/ft^3