Learn R Programming

psychrolib (version 2.5.2)

GetDryAirDensity: Return dry-air density given dry-bulb temperature and pressure.

Description

Return dry-air density given dry-bulb temperature and pressure.

Usage

GetDryAirDensity(TDryBulb, Pressure)

Arguments

TDryBulb

A numeric vector of dry-bulb temperature in degreeF [IP] or degreeC [SI]

Pressure

A numeric vector of atmospheric pressure in Psi [IP] or Pa [SI]

Value

A numeric vector of dry air density in lb ft-3 [IP] or kg m-3 [SI]

References

ASHRAE Handbook - Fundamentals (2017) ch. 1

  • Eqn 14 for the perfect gas relationship for dry air.

  • Eqn 1 for the universal gas constant.

  • The factor 144 in IP is for the conversion of Psi = lb in-2 to lb ft-2.

Examples

Run this code
# NOT RUN {
SetUnitSystem("IP")
GetDryAirDensity(77:87, 14.696)

SetUnitSystem("SI")
GetDryAirDensity(25:30, 101325)

# }

Run the code above in your browser using DataLab