psych ro metric

5
28 ASHRAE Journal ashrae.org January 2006 © 2006, American Society of Heating, Refrigerating and Air-Conditioning Engineers, Inc. (www.ashrae.org). Published in ASHRAE Journal, (Vol. 48, January 2006). For personal use only. Additional distribution in either paper or digital form is not permitted without ASHRAE’s permission. Psychrometric Spreadsheet M any e y y ngineers use spreadsheet programs for calculations and graphing because of the variety of relatively easy-to- use embedded features. One such feature is the Microsoft ® Visual Basic ® Macro for use in Excel ® . This tool permits BASIC computer programming codes to be used to perform computations that are cumbersome with conventional spreadsheet equations. Review of Psychrometric Equations Humidity Ratio Psychrometric charts and equations are convenient methods of dealing with the thermodynamic properties of mixtures of water vapor and air. Obviously, an important parameter is the mass of these two components. The humidity ratio (W) is used to express the mass of water vapor per unit mass of dry air and corresponds to the near right vertical axis of the psy- chrometric chart. Current practice is to use the units of mass of water to mass By Steve Kavanaugh, Ph.D., Fellow ASHRAE, Barbara Hattemer McCrary and Keith A. Woodbury About the Authors Steve Kavanaugh, Ph.D., is a professor of me- chanical engineering at the University of Alabama in Tuscaloosa, Ala. Barbara Hattemer McCrary is an engineer with Johnson, Spellman and Associ- ates in Norcross, Ga., and a former grants-in-aid recipient at the University of Alabama. Keith A. Woodbury is an associate professor of mechanical y y engineering at the University of Alabama. This article describes a series of mac- ros that use psychrometric equations 1 to compute moist air properties (humidity ratio, dew point, enthalpy, specific vol- ume, specific heat, relative humidity) by entering the dry-bulb temperature, wet-bulb temperature (RH), and local elevation. The resulting spreadsheet is essentially an electronic psychrometric chart with the added benefit of being appropriate for any elevation—not just sea level. The macros also can be extended to spreadsheet pro- grams that compute the properties when two airstreams are mixed, an airstream passes through a cooling coil, a heat re- covery unit, or a heating coil. Engineers can cut and paste the necessary macros from existing public domain programs or develop their own versions.

Upload: kalyana-sundaram

Post on 28-Apr-2015

55 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Psych Ro Metric

28 ASHRAE Jou rna l ash rae .o rg Janua ry 2006

© 2006, American Society of Heating, Refrigerating and Air-Conditioning Engineers, Inc. (www.ashrae.org). Published in ASHRAE Journal, (Vol. 48, January 2006). For personal use only. Additional distribution in either paper or digital form is not permitted without ASHRAE’s permission.

PsychrometricSpreadsheet

Many eany eany ngineers use spreadsheet programs for calculations

and graphing because of the variety of relatively easy-to-

use embedded features. One such feature is the Microsoft® Visual

Basic® Macro for use in Excel®. This tool permits BASIC computer

programming codes to be used to perform computations that are

cumbersome with conventional spreadsheet equations.

Review of Psychrometric EquationsHumidity RatioHumidity Ratio

Psychrometric charts and equations are convenient methods of dealing with the thermodynamic properties of mixtures of water vapor and air. Obviously, an important parameter is the mass of these two components. The humidity ratio (W) W) Wis used to express the mass of water vapor per unit mass of dry air and corresponds to the near right vertical axis of the psy-chrometric chart. Current practice is to use the units of mass of water to mass

By Steve Kavanaugh, Ph.D., Fellow ASHRAE, Barbara Hattemer McCrary and Keith A. Woodbury

About the Authors

Steve Kavanaugh, Ph.D., is a professor of me-chanical engineering at the University of Alabama in Tuscaloosa, Ala. Barbara Hattemer McCrary is an engineer with Johnson, Spellman and Associ-ates in Norcross, Ga., and a former grants-in-aid recipient at the University of Alabama. Keith A. Woodbury is an associate professor of mechanical Woodbury is an associate professor of mechanical Woodburyengineering at the University of Alabama.

This article describes a series of mac-ros that use psychrometric equations1 to compute moist air properties (humidity ratio, dew point, enthalpy, specifi c vol-ume, specifi c heat, relative humidity) by entering the dry-bulb temperature, wet-bulb temperature (RH), and local elevation.

The resulting spreadsheet is essentially an electronic psychrometric chart with the

added benefi t of being appropriate for any elevation—not just sea level. The macros also can be extended to spreadsheet pro-grams that compute the properties when two airstreams are mixed, an airstream passes through a cooling coil, a heat re-covery unit, or a heating coil. Engineers can cut and paste the necessary macros from existing public domain programs or develop their own versions.

Page 2: Psych Ro Metric

Janua ry 2006 ASHRAE Jou rna l 29

of air (lbw /lba or gw gw g /kgakgakg ). Some documents continue the use of grains per pound mass of air, where 7,000 grains = 1 pound (0.45 kg) mass.

Mw Mw M lbw grains lbwW = W = W w w 7,000 ( )grains lb)grains lb ×

Ma Ma M lba lbw lba (1)The maximum amount of water vapor that can be mixed

with air increases with temperature. RH is the mole fraction (or percent) of water vapor present in the air relative to the mole fraction of air that is completely saturated with moisture at a given temperature. This ratio is also the partial pressure of the water vapor (pwater vapor (pwater vapor ( w) relative to the partial pressure of water vapor when the air is saturated (pwhen the air is saturated (pwhen the air is saturated ( ws).

xw pwRH = RH = RH =

xws at tatat pws at tatat(2)

In lieu of steam tables to provide the value of pws as a func-(2)

as a func-(2)

tion of temperature, Equation 3 is suggested for temperatures between 492°R (32°F or 0°C) and 852°R (392°F or 200°C).1

C8pws = Exp( + C9C9C + C10t + t + t C11t2t2t + C12t3 + C13 ln t)t + t + Ct C9t 9C9Ct C9C + t + Ct C10t 10tt t + t + t + tt t + t Ct C11t 11tt t + t + Ct C (3)where pws psia t °R C8 = –1.0440397× 104

C9C9C = –1.129465× 10 C10 = –2.7022355 × 10–2

C11 = 1.2890360 × 10–5

C12 = –2.4780681 × 10–9

C13 = 6.5459673

The partial pressure of water vapor for unsaturated air (pThe partial pressure of water vapor for unsaturated air (pThe partial pressure of water vapor for unsaturated air ( w) can be found by combining Equations 2 and 3 if the relative humidity is known. Equation 4 is used to compute the humidity ratio (W) from the local atmospheric pressure (W) from the local atmospheric pressure (W p) from the local atmospheric pressure (p) from the local atmospheric pressure ( ) and pw using the relationships of molecular weight (MWthe relationships of molecular weight (MWthe relationships of molecular weight ( ), mole fractions (MW), mole fractions (MW x), ), mole fractions (x), ), mole fractions (and the partial pressures of water and air,

Mw Mw M MWwMWwMW × xw 18.01528 × xw pwW = W = W = = = 0.62198 Ma Ma M MWaMWaMW × xa 28.9645 × xa pa

pw = 0.62198 p – pw (4)

The atmospheric pressure can be corrected for non-sea level elevations (Z, in feet above sea level) as shown in the Z, in feet above sea level) as shown in the Z 2001 ASHRAE Handbook—Fundamentals:1

p(psia(psia( ) = 14.696 (1 – 6.8753 × 10–6 Z)5.2559 (5)

In addition to the easily measured air dry-bulb temperature (tatat ), a second indicator is necessary to determine moist air properties. Options include the dew-point temperature (td), d), dwet-bulb temperature (twbtwbt ), or RH.

The dew-point temperature can be determined by measuring the temperature of a surface when moisture begins to condense. The dew-point temperature also corresponds to the saturation temperature or the temperature when RH is 100%. A correlation for dew-point temperature (tdtdt °F) from 32°F to 200°F (0°C to 93°C) as a function of the partial pressure of water vapor (pto 93°C) as a function of the partial pressure of water vapor (pto 93°C) as a function of the partial pressure of water vapor ( w psia) is (2001 ASHRAE Handbook—Fundamentals):1

tdtdt = 100.45 + 33.193(ln pw) + 2.319(ln pw)2 + 0.17074 (ln pw)3

+ 1.2063(p + 1.2063(p + 1.2063( w)0.1984 (6)

The air wet-bulb temperature is determined by placing a ther-mometer bulb that is covered with a completely wetted wick in an airstream. The evaporation rate and corresponding cooling effect noted by the depression of the wet bulb relative to the dry-bulb temperatures provides an indication of the moisture level in the air.

When relative humidity is used as the second indicator, the value of pw can be determined using Equation 2 with the value of pws determined from Equation 3. When the dew-point tem-perature is the second indicator, pw is the saturation pressure at this dew-point temperature (pat this dew-point temperature (pat this dew-point temperature ( ws at tdtdt ), which is also found d), which is also found dusing Equation 3. In either case, pw is used in Equation 4 to determine the humidity ratio (W ). If the wet-bulb temperature (twbtwbt ) is the second indicator, the humidity ratio is found from 2001 ASHRAE Handbook—Fundamentals:

lbw (1,093 – 0.556twbtwbt ) WsWsW at twbtwbt – 0.24(t – t – t twbtwbt )W ( ) =

lba 1,093 + 0.444t – twbt – twbt – t(7)

Page 3: Psych Ro Metric

30 ASHRAE Jou rna l ash rae .o rg Janua ry 2006

Function HumRat (db, wb, ElevInFt)

Convert the wet bulb in °F to RankineRT = wb + 459.67

Find the atmospheric pressure in psia from Equation 5AtmPress = 14.696 × (1 – 0.0000068753 × ElevInFt)5.2559

Use Equation 3 to fi nd the saturation pressure at wet-bulb temperature c8 = –10,440.397 c9 = –11.29465 c10 = –0.027022355 c11 = 0.00001289036 c12 = –0.000000002478068 c13 = 6.5459673 pws = Exp

(c8/RT + c9 + c10 × RT + c11 × RT2 + c12 × RT3 + c13 × Log(RT))Use Equation 4 to fi nd the saturated humidity ratio at the wet bulb-temperature

wsat = (pws × 0.62198) / (AtmPress – pws)

Use Equation 7 to fi nd the humidity ratio HumRat = ((1,093 – 0.556 × wb) × wsat - 0.24 × (db – wb)) / (1,093 + 0.444 × db – wb)End Function

Figure 1: Macro for humidity ratio from dry-bulb temperature, wet-bulb temperature and elevation.

WsWsW in Equation 7 is determined by inserting the saturation pressure of water vapor at the wet-bulb temperature (twbtwbt ) into Equation 4. The value in Equation 7 is the thermodynamic wet-bulb temperature (also called the temperature of adiabatic saturation). For moist air, the wet-bulb temperature measured by the proper use of a psychrometer closely approximates the thermodynamic wet-bulb temperature.

Equations for Moist Air PropertiesEquations for Moist Air PropertiesThe thermodynamic properties of moist air can be deter-

mined from the dry bulb temperature and humidity ratio. These include the enthalpy, specifi c volume (or its inverse, density) and specifi c heat. In the United States, the current convention is to set base values at 0°F (–18°C) and compute the values at other temperatures. At 0°F (–18°C), hw=1,061 Btu/lb (2468 kJ/kg) and ha= 0 Btu/lb (0 kJ/kg). The specifi c heat of air is 0.24 Btu/lb·°F [1 kJ/(kg · K)] and water vapor is 0.444 Btu/lb·°F [1.9 kJ/(kg · K)]. For moist air at dry bulb temperature (tatat ) and humidity ratio (W),W),W

h(Btu/lba(Btu/lba( ) = 0.24t + Wt + Wt (1,061 + 0.444t) (8)

The specifi c heat of moist air is:

cpcpc (Btu/lba – (Btu/lba – ( °F) = 0.24 + 0.444W (9)

The specifi c volume of moist air is:

ft3 ( ) = 0.37059t + 459.67[1 + 1.6078t + 459.67[1 + 1.6078t W ] / p(psia)lb

(10)

Psychrometric Equations in Spreadsheet Macro FormatPrevious articles in ASHRAE Journal have alluded to the use ASHRAE Journal have alluded to the use ASHRAE Journal

of spreadsheet macros for com-puting piping pressure drops2 and solving for friction factors in air ducts.3 These articles emphasized another spreadsheet tool (Goal Seek) that was used to iteratively solve the implicit Colebrook equation for friction factor ( f equation for friction factor ( f equation for friction factor ( ). This additional tool is unneces-sary since the computation of moist air properties is straightfor-ward once the macro for humidity ratio is developed.

Figure 1 is an example macro for computing humidity ratio from the dry-bulb temperature (tatat ), wet bulb (twbtwbt ), and elevation (feet above sea level). The macro is stored in an Excel module in the form of a function called HumRat. The function is used just like any other Excel function by clicking on a cell in the main spreadsheet and inserting an “=” sign and the Figure 2: Dew-point spreadsheet. Visual Basic Editor is accessed from a drop-down menu.

function name followed by a set of parenthesis containing the dry-bulb temperature, wet-bulb temperature, and elevation.

For example, if a cell contains “=HumRat (80,67,0)”, the displayed value should be 0.0112, which is the humidity ratio in lbw /lba for air with a dry bulb of 80°F (27°C) and a wet bulb of 67°F (19°C) at sea level.

Once the humidity ratio is known, enthalpy, specifi c heat, and specifi c volume can also be calculated using Equations 8, 9, and 10. Since these equations are relatively simple, the values can be computed with a formula in a spreadsheet cell.

Page 4: Psych Ro Metric

Janua ry 2006 ASHRAE Jou rna l 31

Function TDP(pw)

C1 = 100.45 C2 = 33.193 C3 = 2.319 C4 = 0.17074 C4 = 0.17074 C C5 = 1.2063 Alpha = Log(pw)

Equation 6—Also Equation 37, Chp. 6, 2001 ASHRAE Handbook—FundamentalsTDP = C1 + C2 × Alpha + C3 × (Alpha2) + 0.17074 × (Alpha3) + 1.2063 × pw0.1984

End Function

Figure 4: Macro for dew-point temperature for vapor pressure.

For enthalpy (Btu/lb): = 0.24 × 80 + HumRat (80,67,0) × (1,061 + 0.444 × 80) (11)

For specifi c heat (Btu/lb – °F): = 0.24 + 0.444 × HumRat (80,67,0) (12)

Note that Equation 10 requires the value of atmospheric pressure. This value was found inside the function HumRat, but it is not available since only one value can be passed from a function to the Excel spreadsheet. Therefore, atmospheric pressure must be calculated with Equation 5 in another macro or spreadsheet cell. However, the value of atmospheric pres-sure rather than elevation must be passed to the macro if it is calculated in a cell.

Make Your Own Dew-Point MacroEquation 6 is used to demonstrate the steps required to

develop a macro to compute dew-point temperature when the vapor pressure is known. Although this value could also be found with an equation in a spreadsheet cell, it serves as a simple example. Figure 2 shows how the main spreadsheet might look. The value for saturated vapor pressure is entered in Cell B1 and an equation in Cell B2 calls the macro function TDP to compute the dew-point temperature for the value in Cell B1.

Then develop the macro:• Select “Tools” on the main toolbar;• Select “Macros” on the fi rst drop-down box; and• Select “Visual Basic Editor” in the second drop down

box (Figure 2).box (Figure 2).box (This will bring up a screen as shown in Figure 3 that has

a work box on the left side with the heading “Project-VBA Project.”

• Select “This Workbook”;• Select “Insert” on the top toolbar;• Select “Module” on the drop-down box;• Type the code (Equation 6) shown in Figure 4 in the

empty box that appears in the right portion of the screen;

• When the entry is completed, select “File” on the main toolbar;

• Save the spreadsheet (Note: You must save the spread-sheet after any changes are made to the macro or the edited macro will not function correctly in the spread-sheet); and

• Select “File” again, and then “Close and Return to Mi-crosoft Excel.”

Extending Psychrometric Spreadsheets to Mixed Air Processes

These spreadsheets are essentially an electronic psychro-metric chart and can be combined with the equations for moist air processes that appear in the 2001 ASHRAE Handbook—Fundamentals. Consider Equation 13, which computes the total capacity of a cooling coil (neglecting the small amount of energy in the condensate) as shown in Figure 5. Known values are typically the airfl ow rate (Q), the elevation, and the entering

Figure 3: Screenshot of inserting module in Visual Basic program.

Figure 5: Air coil: total cooling.4

Page 5: Psych Ro Metric

32 ASHRAE Jou rna l ash rae .o rg Janua ry 2006

air dry-bulb and wet-bulb temperatures. The function HumRat is used to fi nd the humidity ratio for the entering air (Point 1) and Equations 8 and 10 are used to compute the enthalpy (h1) and specifi c volume (and specifi c volume (and specifi c volume ( 1 1 ). For case where the outlet air dry-bulb and wet-bulb temperatures are known, HumRat is used to fi nd the leaving air humidity ratio and Equation 8 is used to fi nd the leaving air enthalpy (h2 ).

(13)(13)

SummaryEquations are available in the psychrometrics chapter of the

2001 ASHRAE Handbook—Fundamentals to determine moist air properties if the dry-bulb temperature, local pressure, and the humidity ratio are known. The pressure can be computed from elevations above sea level. The humidity ratio can be determined from the dry-bulb temperature and one of three other indicators: wet-bulb temperature, relative humidity or dew-point temperature. Visual Basic macros can be used to handle the somewhat cumbersome equations for determining humidity ratio. When completed, these macros can be combined with equations for moist air properties to develop an electronic psychrometric chart. The usefulness of this tool can be further

extended to solving and analyzing HVAC moist air process problems.

NoteAn objective of this article is to demonstrate the ease of

adding functions to spreadsheet programs. The examples are applicable when the dry-bulb, wet-bulb, and dew-point tem-peratures are above the freezing point of water. The ASHRAE publication Understanding Psychrometrics5 includes additional below freezing equations. Also, the public domain spreadsheet program PsychProcess.xls is available at www.geokiss.com/software/PsychProcess05.xls. It contains additional macros and moist air programs.

References1. 2001 ASHRAE Handbook—Fundamentals, Chapter 6, Psychro-

metrics.2. Lester, T.G. 2002. “Calculating pressure drops in piping systems.”

ASHRAE Journal 44(9):41–43. ASHRAE Journal 44(9):41–43. ASHRAE Journal3. Lester, T.G. 2003. “Solving for friction factor.” ASHRAE Journal

45(7):41–44.4. Kavanaugh, S.P. 2006. HVAC Simplifi ed. Atlanta: ASHRAE,

forthcoming.5. Gatley, D.P. 2005. Understanding Psychrometrics. Atlanta:

ASHRAE.

Advertisement formerly in this space.