Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Mathdisplay
w = \frac{q}{1 - q}


Anchor
mixing_ratio_from_vapour_pressuremixing_ratio_from_vapour_pressure

number mixing_ratio_from_vapour_pressure(p: number, e: number)

Computes the mixing ratio from the given (total) pressure and vapour pressure, where

    • p: pressure (Pa)
    • e: vapour pressure (Pa)

The result is the mixing ratio in kg/kg units. On error  nil is returned. The computation is based on the following formula:

Mathdisplay
w = \epsilon \frac{e}{p - e}

with

Mathinline
\epsilon = \frac{R_{dry}}{R_{vapour}} = 0.621981

Anchor
potential_temperature
potential_temperature

...