Chapter 7: Principles of Stability and Control

Example 7.1

In [1]:
# -*- coding: utf8 -*-
from __future__ import division
#Example: 7.1
'''An automobile engine produces 136 hp on the output shaft with a thermal efficiency of
30%. The fuel it burns gives 35 000 kJ/kg as energy release. Find the total rate of energy
rejected to the ambient and the rate of fuel consumption in kg/s.'''

#Variable Declaration: 
W = 136*0.7355 	#Output of automobile engine in kW
neng = 0.3 		#Thermal efficiency of automobile engine
qh = 35000 		#Energy output of fuel in kJ/kg

#Calculation:
Qh = W/neng 	#Energy output of fuel in kW
Ql = Qh-W 		#Total rate of energy rejected to the ambient
m = Qh/qh 		#Rate of fuel consumption in kg/s

#Result:
print "Total rate of energy rejected is: ",round(Ql),"KW" 
print "Rate of fuel consumption is: ",round(m,4),"Kg/s"
Total rate of energy rejected is:  233.0 KW
Rate of fuel consumption is:  0.0095 Kg/s

Example 7.2

In [2]:
# -*- coding: utf8 -*-
from __future__ import division
#Example: 7.2
'''The refrigerator in a kitchen shown in Fig. 7.7 receives electrical input power of 150 W
to drive the system, and it rejects 400 W to the kitchen air. Find the rate of energy taken
out of the cold space and the COP of the refrigerator.'''

#Variable Declaration: 
Qh = 400 		#Heat rejected to kitchen air in W
W = 150 		#Electrical input power in W

#Calculation:
Ql = Qh-W 		#Rate of energy taken out to cold space in W
B = Ql/W 		#Coefficicent of performnace of refrigerator

#Result:
print "Rate of energy taken out of the cold space is: ",round(Ql,2),"W"
print "Coefficient of performance of the refrigerator is: ",round(B,2)
Rate of energy taken out of the cold space is:  250.0 W
Coefficient of performance of the refrigerator is:  1.67

Example 7.3

In [3]:
# -*- coding: utf8 -*-
from __future__ import division
#Example: 7.3
'''In a certain constant-volume ideal-gas thermometer, the measured pressure at the ice point
(see Section 2.11) of water, 0◦C, is 110.9 kPa and at the steam point, 100◦C, is 151.5 kPa.
Extrapolating, at what Celsius temperature does the pressure go to zero (i.e., zero absolute
temperature)?'''

#Variable Declaration: 
P1 = 110.9          #Pressure at 1 in Kpa
P2 = 151.5          #Pressure at 2 in Kpa
T1 = 0              #Temperature at 1 in °C
T2 = 100            #Temperature at 2 in °C
P = 0               #pressure at which temperature is to be found out(KPa)

#Calculation:
C =P1              #y-intercept
m = (P2-P1)/(T2-T1)#Slope of P-T graph
T = (P-C)/m        #Interpolating straight line P=mT+C and finding T in °C

#Result:
print 'Celcius temperature at which pressure go to zero: ',round(T,2),"°C" 
Celcius temperature at which pressure go to zero:  -273.15 °C

Example 7.4

In [4]:
# -*- coding: utf8 -*-
from __future__ import division
#Example: 7.4
'''Let us consider the heat engine, shown schematically in Fig. 7.25, that receives a heattransfer
rate of 1 MW at a high temperature of 550◦C and rejects energy to the ambient
surroundings at 300 K. Work is produced at a rate of 450 kW. We would like to know
how much energy is discarded to the ambient surroundings and the engine efficiency and
compare both of these to a Carnot heat engine operating between the same two reservoirs.'''

#Variable Declaration: 
Qh = 1000 		#Rate of heat transfer to heat engine in kW
W = 450 		#Rate of production of work in kW
Tl = 300 		#Temperature of surroundings in K
Th = 550 		#Temperature of heat source in Celsius

#Calculation:
Ql = Qh-W 		#Rate of heat rejected by heat engine in kW
nthermal = W/Qh 	#Efficiency from the definition of efficiency
ncarnot = 1-Tl/(Th+273)#Efficiency if heat engine is considered to be ideal carnot heat engine
W2 = ncarnot*Qh 	#Rate of work production if heat engine is assumed to be ideal carnot heat engine in kW
Ql2 = Qh-W2 	#Rate of heat rejected by heat engine in kW if heat engine is assumed to be ideal carnot heat engine

#Result:
print "Engine efficiency is: ",round(ncarnot,3)
print "Energy discarded to the ambient surroundings is: ",round(Ql2),"KW"
Engine efficiency is:  0.635
Energy discarded to the ambient surroundings is:  365.0 KW

Example 7.5

In [5]:
# -*- coding: utf8 -*-
from __future__ import division
#Example: 7.5
'''As one mode of operation of an air conditioner is the cooling of a room on a hot day, it
works as a refrigerator, shown in Fig. 7.26.Atotal of 4kWshould be removed from a room
at 24◦C to the outside atmosphere at 35◦C.We would like to estimate the magnitude of the
required work. To do this we will not analyze the processes inside the refrigerator, which
is deferred to Chapter 11, but we can give a lower limit for the rate of work, assuming it
is a Carnot-cycle refrigerator.'''

#Variable Declaration: 
Tl = 24+273 		#Room temperature in Kelvins
Th = 35+273 		#Atmospheric temperature in Kelvins
Ql = 4 		      #Rate of heat rejection from room

#Calculation:
B = Tl/(Th-Tl) 		#Coefficient of performance of air conditioner
W = Ql/B 		      #Required work in kW

#Result:
print "Magnitude of reqiured work is: ",round(W,2),"KW"
Magnitude of reqiured work is:  0.15 KW