Rho: Gives the air density for a certain atmosphere condition.

Description Usage Arguments Value Author(s) References Examples

Description

By inputting temperature, dew temperature and air pressure, it's possible to calculate the air density in kg/m^3.

Usage

1
Rho(t, t.dew, hpa)

Arguments

t

Temperature in Celsius.

t.dew

Dew temperature in Celsius.

hpa

Air pressure in hPa.

Value

rho

Returns the air density calculation in kg/m^3.

Author(s)

Natan Freitas Leite

References

https://www.gribble.org/cycling/air_density.html

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## The function is currently defined as
function (t, t.dew, hpa)
{
    rho = ((P.d(hpa, t.dew)/(287.0531 * (t + 273.15))) + (P.v(t.dew)/(461.4964 *
        (t + 273.15))))
    return(rho)
  }

t=23.2 #celsius
t.dew=20 #celsius
hpa=1012.1 #hpa
rho=Rho(t,t.dew,hpa)
rho

Bolshom/optimumtt documentation built on May 24, 2019, 8:56 a.m.