Chapter 8 Second and third law topics

Ex:8.1 Pg:255

In [1]:
#Initialization of variables
P=500 #psia
T=700 #F
J=778
#calculations
dpds=1490 *144/J
#results
print "dp by ds at constant volume = %d F/ft**3/lbm"%(dpds)
print "The answer is a bit different due to rounding off error in textbook"
dp by ds at constant volume = 275 F/ft**3/lbm
The answer is a bit different due to rounding off error in textbook

Ex:8.2 Pg:256

In [3]:
from __future__ import division
from math import log
#Initialization of variables
cp=0.25 #Btu/lbm R
T0=520 #R
T1=3460 #R
#calculations
dq=cp*(T0-T1)
ds=cp*log(T0/T1)
dE=dq-T0*ds
eta=dE/dq
#results
print "Thermal efficiency = %.1f percent"%(eta*100)
Thermal efficiency = 66.5 percent

Ex:8.3 Pg:256

In [4]:
from __future__ import division
from math import log
#Initialization of variables
cp=0.25 #Btu/lbm R
T0=520 #R
T1=3460 #R
dG=21069 #Btu/lbm
dH=21502 #Btu/lbm
#calculations
dq=cp*(T0-T1)
ds=cp*log(T0/T1)
dE=dq-T0*ds
eta=dE/dq
dw=eta*dH
de=-dG+dw
#results
print "Loss of available energy = %d Btu/lbm"%(de)
print "The answer is a bit different due to rounding off error in textbook"
Loss of available energy = -6774 Btu/lbm
The answer is a bit different due to rounding off error in textbook