AirDensity: Provides convenient computations for air density.
Description
Implements a set of computations and constants to compute air density as a function of altitude (a.s.l.), temperature and relative humidity.
Usage
AirDensity(Altitude = 0, Temperature = 20, phi = 0.76)
Value
AirDensity returns a single value representing air density in kg per cubic meter.
Arguments
Altitude
altitude in meters above sea level.
Temperature
temperature in degrees Celsius.
phi
relative humidity, must be within [0, 1].
Author
Carsten Croonenbroeck
Details
The function first computes air pressure at user provided target altitude based on the barometric formula. Then, saturation vapor pressure is computed using the Magnus formula. With both, the density of air is computed afterward.
See Also
WindspeedLog and WindspeedHellmann to compute wind speed at target heights using two slightly different established models.