12 for (
int n = 0; n < NCLOUD; ++n) q_gas -= qfrac.
c[n];
16 for (
int n = 1; n <= NVAPOR; ++n)
19 for (
int n = 0; n < NCLOUD; ++n)
21 Real cphat_ov_r = gammad / (gammad - 1.) * f_sig / q_gas;
25 for (
int n = 1; n <= NVAPOR; ++n) xd -= qfrac.
w[n];
27 Real c1 = 0., c2 = 0., c3 = 0.;
28 for (
int iv = 1; iv <= NVAPOR; ++iv) {
29 c1 += qfrac.
w[iv] / xd * latent[iv];
30 c2 += qfrac.
w[iv] / xd * latent[iv] * latent[iv];
31 c3 += qfrac.
w[iv] / xd;
34 return (1. + c1) / (cphat_ov_r + (c2 + c1 * c1) / (1. + c3));
std::array< Real, Size > cp_ratio_mole_
ratio of specific heat capacities [J/mol] at constant pressure
Real calDlnTDlnP(AirParcel const &qfrac, Real latent[]) const
Calculate moist adiabatic temperature gradient.
Real GetGammad(AirParcel const &var) const
adiaibatic index of dry air [1]