Chapter 10 - Tabulated Properties : Steam Tables

Example 1 - Pg 155

In [1]:
#Calculate the work and heat of vaporization of water
#initialization of varaibles
P=100. #psia
hfg=888.8 #B/lb
#calculations
print '%s' %("From steam tables,")
vg=4.432 #cu ft/lb
vf=0.001774 #cu ft/lb
W=P*(vg-vf)*144
ufg=807.1 #B/lb
W=hfg-ufg
sfg=1.1286
Q=788*sfg #Heat
#results
print '%s %.1f %s' %("Work done = ",W,"B/lb")
print '%s %d %s' %("\n Heat of vaporization of water =",Q,"B/lb")
From steam tables,
Work done =  81.7 B/lb

 Heat of vaporization of water = 889 B/lb

Example 2 - Pg 156

In [2]:
#caclulate the pressure, temperature and enthalpy
#initialization of varaibles
s=1.6315 #B/lb R
#calculations
print '%s' %("From table 1 ")
h=1180.6 #B/lb
t=302.92 #F
p=70 #psia
#results
print '%s %d %s' %("Pressure = ",p,"psia")
print '%s %.2f %s' %("\n Temperature =",t,"F")
print '%s %.1f %s' %("\n Enthalpy =",h,"B/lb")
From table 1 
Pressure =  70 psia

 Temperature = 302.92 F

 Enthalpy = 1180.6 B/lb

Example 3 - Pg 156

In [3]:
#calculate the Internal energy of the gas
#initialization of varaibles
T=250. #F
print '%s' %("From table 1,")
p=29.825 #psia
hg=1164 #B/lb
vg=13.821 #cu ft/lb
#calculations
ug=hg-(p)*144*vg/778.
#results
print '%s %.1f %s' %("Internal energy of the gas = ",ug,"B/lb")
From table 1,
Internal energy of the gas =  1087.7 B/lb

Example 4 - Pg 158

In [4]:
#Calculate the specific volume, Enthalpy and Entropy of the gas
#initialization of varaibles
x=0.4
P=100. #psia
#calculations
y=1-x
print '%s' %("From table 2,")
vf=0.01774
vg=4.432
vx=x*vf+y*vg
hf=298.4
hfg=888.8
hx=hf+y*hfg
sg=1.6026
sfg=1.1286
sx=sg-x*sfg
#results
print '%s %.3f %s' %("Specific volume = ",vx,"cu ft/lb")
print '%s %.1f %s' %("\n Enthalpy =",hx,"B/lb")
print '%s %.4f %s' %("\n Entropy = ",sx,"B/lb R")
From table 2,
Specific volume =  2.666 cu ft/lb

 Enthalpy = 831.7 B/lb

 Entropy =  1.1512 B/lb R

Example 5 - Pg 158

In [5]:
#Calculate the enthalpy of the gas
#initialization of varaibles
x=0.97
P=100. #psia
#calculations
print '%s' %("From table 2,")
hf=298.4
hfg=888.8
hx=hf+x*hfg
hg=1187.2
hx2=hg-(1-x)*hfg
#results
print '%s %d %s' %("\n Enthalpy =",hx,"B/lb")
print '%s %.1f %s' %("\n Accurate Enthalpy =",hx2,"B/lb")
From table 2,

 Enthalpy = 1160 B/lb

 Accurate Enthalpy = 1160.5 B/lb

Example 6 - Pg 159

In [1]:
#Calculate the specific volume and enthalpy of the process
#initialization of varaibles
s=1.7050 #B/lb R
#calculations
print '%s' %("From table 2,")
sx=1.7050
sg=1.7549
sfg=1.4415
dx=(sg-sx)/sfg
hg=1150.8
hfg=969.7
hx=hg-dx*hfg
vg=26.29
vfg=26.27
vx=vg-dx*vfg
#results
print '%s %.2f %s' %("Specific volume = ",vx,"cu ft/lb")
print '%s %.1f %s' %("\n Enthalpy =",hx,"B/lb")
From table 2,
Specific volume =  25.38 cu ft/lb

 Enthalpy = 1117.2 B/lb

Example 7 - Pg 159

In [7]:
#calculate the enthalpy required
#initialization of varaibles
P=150 #psia
T=400 #F
#calculations
print '%s' %("From table 3,")
h=1219.4 #B/lb
#results
print '%s %.1f %s' %("Enthalpy =",h,"B/lb")
From table 3,
Enthalpy = 1219.4 B/lb

Example 8 - Pg 159

In [8]:
#Calculate the temperature of steam
#initialization of varaibles
en=1303.7 #B/lb
P=300 #psia
#calculations
print '%s' %("Given hg is less than h, steam is superheated. T=580 F")
T=580 #F
#results
print '%s %d %s' %("Temperature =",T,"F")
Given hg is less than h, steam is superheated. T=580 F
Temperature = 580 F

Example 9 - Pg 160

This is a theoretical example.

Example 10 - Pg 161

In [10]:
#Calculate the Enthalpy and Volume of the gas
#initialization of varaibles
import math
T=100. #F
P=1000. #psia
#calculations
print '%s' %("From table 4")
dvf=-5.1*math.pow(10,-5)
dhf=2.7
vf=0.01613
hf=67.97
v=vf+dvf
h=hf+dhf
#results
print '%s %.2f %s' %("Enthalpy =",h,"B/lb")
print '%s %.5f %s' %("\n Volume = ",v,"cu ft/lb")
From table 4
Enthalpy = 70.67 B/lb

 Volume =  0.01608 cu ft/lb

Example 11 - Pg 164

In [11]:
#calculate the Quality of steam
#initialization of varaibles
h1=1183.2 #B/lb
hg=1198.4 #B/lb
hfg=843.
#calculations
x=1- (hg-h1)/hfg
#results
print '%s %.3f' %("Quality =",x)
Quality = 0.982