Backend Class

Wind Class

# Moist Class¶

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

class amsimp.moist.Moist

This class is concerned with incorpating moisture into the atmospheric model.

density

Generates an array of atmospheric density.

$\rho = \frac{p}{R T_v}$
Returns

Atmospheric density

Return type

astropy.units.quantity.Quantity

Notes

The atmospheric density is the mass of the atmosphere per unit volume. The ideal gas equation is the equation of state for the atmosphere, and is defined as an equation relating temperature, pressure, and specific volume of a system in theromodynamic equilibrium.

mixing_ratio

“Generates an array of the mixing ratio.

$r = \frac{0.622 e}{p - e}$
Returns

Mixing ratio

Return type

astropy.units.quantity.Quantity

Notes

The mixing ratio is the ratio of the mass of a variable atmospheric constituent to the mass of dry air. In this particular case, it refers to water vapor.

potential_temperature

Generates an array of potential temperature.

$\theta = T (\frac{p}{p_0})^{-R / c_p}$
Parameters

moist (bool) – If true, returns virtual potential temperature

Returns

Potential temperature

Return type

astropy.units.quantity.Quantity

Notes

The potential temperature of a parcel of fluid at pressure P is the temperature that the parcel would attain if adiabatically brought to a standard reference pressure.

precipitable_water

Generates an array of precipitable water vapor.

$W = \frac{1}{\rho g} \int r dp$
Parameters

sum_pwv (bool) – If true, returns 3-dimensional precipitable water vapor array.

Returns

Precipitable water vapor

Return type

astropy.units.quantity.Quantity

Notes

Precipitable water is the total atmospheric water vapor contained in a vertical column of unit cross-sectional area extending between any two specified levels.

vapor_pressure

Generates an array of vapor pressure.

$e_s = 6.112 \exp{\frac{17.67 T}{T + 243.15}}$
$e = \frac{r_h e_s}{100}$
Returns

Vapor pressure

Return type

astropy.units.quantity.Quantity

Notes

Vapor pressure, in meteorology, is the partial pressure of water vapor. The partial pressure of water vapor is the pressure that water vapor contributes to the total atmospheric pressure.

virtual_temperature

Generates an array of the virtual temperature.

$T_v = \frac{T}{1 - \frac{0.378 e}{p}}$
Returns

Virtual temperature

Return type

astropy.units.quantity.Quantity

Notes

The virtual temperature is the temperature at which dry air would have the same density as the moist air, at a given pressure. In other words, two air samples with the same virtual temperature have the same density, regardless of their actual temperature or relative humidity.