loading...
running...
The science
Rising air expands and cools with no heat exchange: T/T0 = (p/p0)^(Rd/cp), about 9.8 K/km while unsaturated. Saturation vapour pressure follows Bolton's fit of Clausius-Clapeyron, es = 6.112 exp(17.67 T/(T+243.5)) hPa, and the saturation mixing ratio is qs = 0.622 es/(p-es).
At the lifting condensation level (LCL ~ 125 (T - Td) m) the parcel is saturated. Above it the excess vapour condenses, dq = (qv-qs)/(1 + L^2 qs/(cp Rv T^2)), and the latent heat L dq/cp warms the parcel, so the moist lapse rate is only 3-6 K/km. Droplets turn into rain by Kessler autoconversion dqr/dt = k (ql - q0), k = 6e-4 1/s, q0 = 1 g/kg; rain parcels fall at up to 6 m/s.
Same physics core as the 3D page (equations and constants copied unchanged). Simplifications: a prescribed updraft instead of computed buoyancy, no entrainment, no ice phase, no evaporation of rain below the cloud, one air mass per parcel (4e8 kg), hydrostatic pressure for a 6.5 K/km environment. The terrain and the cumulus sprites are Blender 5.2 renders and are decorative (the terrain is not coupled to the physics).
About the theta_e check. The 3D page originally checked the simple formula theta_e = T (p0/p)^(Rd/cp) exp(L qv/(cp T)) and it drifted by 2.15 K over 3 km of ascent. We traced this to the check, not to the parcel core: that formula treats exp(L q/(cp T)) as if T were constant while the parcel cools by about 25 K, so it is only approximately conserved (the neglected term is -L q dT/(cp T^2)). The drift is identical for 10 m and 1 m steps, which rules out integration error. This page uses Bolton's (1980) empirical eq. 43, accurate to about 0.3 K; the remaining ~0.9 K difference comes from the constant-L, constant-cp, no-ice approximations of the core. Tolerance: 1.5 K.
Checks run in the page: LCL vs Bolton's T_LCL formula (3 cases); theta_e conservation; total-water conservation; the moist lapse rate against its closed form; the dry lapse rate; the live water budget. Literature constants (Bolton 1980, Kessler 1969) are quoted from memory: spot-check.