Chapter 01:Introduction

Ex1.1:pg-20

In [1]:
import math
# Given Data
d_r = 13640 # Density of mercury in kg/m^3
g = 9.79 # Acceleration due to gravity in m/s^2
z = 562e-03 # Difference in height in m
z0 = 761e-03 # Reading of barometer in m
P = (d_r*g*(z+z0))*(0.987/1e05) # Gas Pressure in atm

print "\n Example 1.1\n"
print "\n Gas Pressure is ",round(P,2)," atm"
#The answers vary due to round off error
 Example 1.1


 Gas Pressure is  1.74  atm

Ex1.2:pg-21

In [2]:
import math
#Given Data
d_r = 13.6e03 # Density of mercury in kg/m^3
g = 9.81 # Acceleration due to gravity in m/s^2
z = 710e-03 # Steam flow pressure in m
z0 = 772e-03 # Reading of barometer in m
P = 1.4e06 # Gauge pressure of applied steam in Pa
P0 = d_r*g*z0 # Atmospheric pressure in Pa
Pi = P+P0  # Inlet steam pressure in Pa
Pc = d_r*g*(z0-z) # Condenser pressure in Pa

print "\n Example 1.2\n"
print "\n Inlet steam pressure is",round(Pi/1e6,2)," MPa"
print "\n Condenser pressure is",round(Pc/1e3,2)," kPa"
#The answers vary due to round off error
 Example 1.2


 Inlet steam pressure is 1.5  MPa

 Condenser pressure is 8.27  kPa