powered by
Return dry-air density given dry-bulb temperature and pressure.
GetDryAirDensity(TDryBulb, Pressure)
A numeric vector of dry-bulb temperature in degreeF [IP] or degreeC [SI]
A numeric vector of atmospheric pressure in Psi [IP] or Pa [SI]
A numeric vector of dry air density in lb ft-3 [IP] or kg m-3 [SI]
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.
# NOT RUN { SetUnitSystem("IP") GetDryAirDensity(77:87, 14.696) SetUnitSystem("SI") GetDryAirDensity(25:30, 101325) # }
Run the code above in your browser using DataLab