# Prognostic Equations (Moist)¶

## Model 1: Warm Moisture with no Precipitation¶

With this model, which is analogous to that in FASTEddy, we consider a mixture of dry air \(\rho_d\) and nonprecipitating water vapor \(\rho_v\), assumed to be a perfect ideal gas with constant heat capacities \(C_{vd}\), \(C_{vv}\), \(C_{pd}\), \(C_{pv}\), and (non-precipitating) cloud water \(\rho_c\).

Neglecting the volume occupied by all water not in vapor form, we have

where \(p_d\) and \(p_v\) are the partial pressures of dry air and water vapor, respectively, and \(R_d\) and \(R_v\) are the gas constants for dry air and water vapor, respectively.

We define the mixing ratio of each moist component, \(q_s\), as the mass density of species \(s\) relative to the density of dry air, i.e. \(q_s = \frac{\rho_s}{\rho_d}\).

## Governing Equations¶

The governing equations for this model are

Here \(L_v\) is the latent heat of vaporization, \(\theta_d\) is the (dry) potential temperature \(\mathbf{B}\) is the buoyancy force, which is defined in Buoyancy.

The pressure perturbation is computed as

where \(\gamma = C_{pd} / C_{vd}\) and

is the moist potential temperature. We note that this is the only place \(\theta_m\) is used; we evolve \(\theta_d\) above.

## Model 2: Full Moisture Including Precipitation¶

With this model, in addition to dry air \(\rho_d\) and nonprecipitating water vapor \(\rho_v\), assumed to be a perfect ideal gas with constant heat capacities \(C_{vd}\), \(C_{vv}\), \(C_{pd}\), \(C_{pv}\), we include non-precipitating condensates \(\rho_c + \rho_i\), and precipitating condensates \(\rho_p = \rho_{rain} + \rho_{snow} + \rho_{graupel}\). Here \(\rho_c\) is the density of cloud water and \(\rho_i\) is the density of cloud ice, and we define the sum of all non-precipitating moist quantities to be \(\rho_T = \rho_v + \rho_c + \rho_i\). All condensates are treated as incompressible; cloud water and ice have constant heat capacities \(C_p\) and \(C_i\), respectively.

Neglecting the volume occupied by all water not in vapor form, we have

where \(p_d\) and \(p_v\) are the partial pressures of dry air and water vapor, respectively, and \(R_d\) and \(R_v\) are the gas constants for dry air and water vapor, respectively.

We define the mixing ratio of each moist component, \(q_s\), as the mass density of species \(s\) relative to the density of dry air, i.e. \(q_s = \frac{\rho_s}{\rho_d}\).

We define the total potential temperature

and write the EOS as

or

where \(p_0\) is the reference pressure. and

with \(\alpha = \frac{R^\star}{p}(\frac{p}{p_0})^\frac{R^\star}{c_p^\star} \theta\)

here, \(R^\star = R_{d} + q_v R_{v} + q_i R_{i} + q_p R_{p}\), and \(C_p^\star = C_{pd} + q_v C_{pv} + q_i C_{pi} + q_p C_{pp}\).

\(R_d\), \(R_v\), \(R_i\), and \(R_p\) are the gas constants for dry air, water vapor, cloud ice, precipitating condensates, respectively. \(C_{pd}\), \(C_{pv}\), \(C_{pi}\), and \(C_{pp}\) are the specific heats for dry air, water vapor, cloud ice, and precipitating condensates, respectively.

## Governing Equations¶

We assume that all species have same average speed, Then the governing equations become

In this set of equations, the subgrid turbulent parameterization effects are included with fluxes \(F_\rho\), \(F_u\), \(F_C\), \(F_{\theta}\), \(F_{q_{T}}\), \(F_{q_{r}}\). \(\mathbf{F}\) stands for the external force, and \(Q\) and \(F_Q\) represent the mass and energy transformation of water vapor to/from water through condensation/evaporation, which is determined by the microphysics parameterization processes. \(\mathbf{B}\) is the buoyancy force, which is defined in Buoyancy.