# Virtual temperature

In atmospheric thermodynamics, the virtual temperature ($T_{v}$) of a moist air parcel is the temperature at which a theoretical dry air parcel would have a total pressure and density equal to the moist parcel of air. The virtual temperature of unsaturated moist air is always greater than the absolute air temperature, however, as the existence of suspended cloud droplets reduces the virtual temperature.
The virtual temperature effect is also known as the vapor buoyancy effect. It has been described to increase Earth's thermal emission by warming the tropical atmosphere.

## Introduction
### Description

In atmospheric thermodynamic processes, it is often useful to assume air parcels behave approximately adiabatically, and approximately ideally. The specific gas constant for the standardized mass of one kilogram of a particular gas is variable, and described mathematically as
    $R_{x}={\frac {R^{*}}{M_{x}}},$
where $R^{*}$ is the molar gas constant, and $M_{x}$ is the apparent molar mass of gas $x$ in kilograms per mole. The apparent molar mass of a theoretical moist parcel in Earth's atmosphere can be defined in components of water vapor and dry air as
    $M_{\text{air}}={\frac {e}{p}}M_{v}+{\frac {p_{d}}{p}}M_{d},$
with $e$ being partial pressure of water, $p_{d}$ dry air pressure, and $M_{v}$ and $M_{d}$ representing the molar masses of water vapor and dry air respectively. The total pressure $p$ is described by Dalton's law of partial pressures:
    $p=p_{d}+e.$

### Purpose

Rather than carry out these calculations, it is convenient to scale another quantity within the ideal gas law to equate the pressure and density of a dry parcel to a moist parcel. The only variable quantity of the ideal gas law independent of density and pressure is temperature. This scaled quantity is known as virtual temperature, and it allows for the use of the dry-air equation of state for moist air. Temperature has an inverse proportionality to density. Thus, analytically, a higher vapor pressure would yield a lower density, which should yield a higher virtual temperature in turn.

## Derivation

Consider a moist air parcel containing masses $m_{d}$ and $m_{v}$ of dry air and water vapor in a given volume $V$. The density is given by
    $\rho ={\frac {m_{d}+m_{v}}{V}}=\rho _{d}+\rho _{v},$
where $\rho _{d}$ and $\rho _{v}$ are the densities the dry air and water vapor would respectively have when occupying the volume of the air parcel. Rearranging the standard ideal gas equation with these variables gives
    $e=\rho _{v}R_{v}T$ and $p_{d}=\rho _{d}R_{d}T.$
Solving for the densities in each equation and combining with the law of partial pressures yields
    $\rho ={\frac {p-e}{R_{d}T}}+{\frac {e}{R_{v}T}}.$
Then, solving for $p$ and using $\epsilon ={\tfrac {R_{d}}{R_{v}}}={\tfrac {M_{v}}{M_{d}}}$ is approximately 0.622 in Earth's atmosphere:
    $p=\rho R_{d}T_{v},$
where the virtual temperature $T_{v}$ is
    $T_{v}={\frac {T}{1-{\frac {e}{p}}(1-\epsilon )}}.$
We now have a non-linear scalar for temperature dependent purely on the unitless value $e/p$, allowing for varying amounts of water vapor in an air parcel. This virtual temperature $T_{v}$ in units of kelvin can be used seamlessly in any thermodynamic equation necessitating it.

## Variations

Often the more easily accessible atmospheric parameter is the mixing ratio $w$. Through expansion upon the definition of vapor pressure in the law of partial pressures as presented above and the definition of mixing ratio:
    ${\frac {e}{p}}={\frac {w}{w+\epsilon }},$
which allows
    $T_{v}=T{\frac {w+\epsilon }{\epsilon (1+w)}}.$
Algebraic expansion of that equation, ignoring higher orders of $w$ due to its typical order in Earth's atmosphere of $10^{-3}$, and substituting $\epsilon$ with its constant value yields the linear approximation
    $T_{v}\approx T(1+0.608w).$
With the mixing ratio $w$ expressed in g/g.
An approximate conversion using $T$ in degrees Celsius and mixing ratio $w$ in g/kg is
    $T_{v}\approx T+{\frac {w}{6}}.$
Knowing that specific humidity $q$ is given in terms of mixing ratio $w$ as $q={\frac {w}{1+w}}$, then we can write mixing ratio in terms of the specific humidity as $w={\frac {q}{1-q}}$. We can now write the virtual temperature $T_{v}$ in terms of specific humidity as $T_{v}=T{\frac {{\frac {q}{1-q}}+\epsilon }{\epsilon (1+{\frac {q}{1-q}})}}$
Simplifying the above will reduce to
$T_{v}=T[{\frac {q}{\epsilon }}+(1-q)]$
and using the value of $\epsilon =0.622$, then we can write
$T_{v}=T(0.608q+1)$

### Virtual potential temperature

Virtual potential temperature is similar to potential temperature in that it removes the temperature variation caused by changes in pressure. Virtual potential temperature is useful as a surrogate for density in buoyancy calculations and in turbulence transport which includes vertical air movement.

### Density temperature

A moist air parcel may also contain liquid droplets and ice crystals in addition to water vapor. A net mixing ratio $w_{T}$ can be defined as the sum of the mixing ratios of water vapor $w$, liquid $w_{i}$, and ice $w_{l}$ present in the parcel. Assuming that $w_{i}$ and $w_{l}$ are typically much smaller than $w$, a density temperature of a parcel $T_{\rho }$ can be defined, representing the temperature at which a theoretical dry air parcel would have the a pressure and density equal to a moist parcel of air while accounting for condensates:$^{:113}$
    $T_{\rho }=T{\frac {1+w/\epsilon }{1+w_{T}}}$

## Uses

Virtual temperature is used in adjusting CAPE soundings for assessing available convective potential energy from skew-T log-P diagrams. The errors associated with ignoring virtual temperature correction for smaller CAPE values can be quite significant. Thus, in the early stages of convective storm formation, a virtual temperature correction is significant in identifying the potential intensity in tropical cyclogenesis.