Version: dev

Freitas2007PlumeRise

One-dimensional, time-dependent wildfire plume-rise model of Freitas et al. (2007), with the environmental wind drag of Freitas et al. (2010), as implemented in the stand-alone Fortran plume model of Mallia and Wilmot (see references). A buoyant plume rises above a circular fire of area A𝒻 into a prescribed ambient sounding; the model predicts the vertical profiles of plume vertical velocity, temperature, water vapor, cloud water, rain, cloud ice, horizontal velocity, radius and a passive tracer, and from them the plume-top height hₚ.

.esm schema
2.0.0
Source
components/environmental_transport/plume_rise/freitas_2007.esm

Description

One-dimensional, time-dependent wildfire plume-rise model of Freitas et al. (2007), with the environmental wind drag of Freitas et al. (2010), as implemented in the stand-alone Fortran plume model of Mallia and Wilmot (see references). A buoyant plume rises above a circular fire of area A𝒻 into a prescribed ambient sounding; the model predicts the vertical profiles of plume vertical velocity, temperature, water vapor, cloud water, rain, cloud ice, horizontal velocity, radius and a passive tracer, and from them the plume-top height hₚ.

FORMULATION. The column has NLEV levels on two staggered grids spaced Δz = 100 m apart: scalar levels zₜ (level 1 at the surface, level 2 at 50 m, then every Δz) and vertical-velocity levels (faces) z𝑤 = (k − 1)Δz. Level 1 is the lower boundary and the top level is held fixed; every other level obeys ∂X/∂t = advection + eddy diffusion + exchange with the environment + sources. (1) Vertical momentum: dw/dt = flux-form momentum advection + buoyancy (relative virtual-temperature excess times g/(1 + γ), with virtual-mass coefficient γ = 0.5, minus condensate loading) − entrainment drag (2α|w|/(1.5 r) and the wind-driven term |u − uₐ|/(π r), each times |w|) + eddy diffusion − Rayleigh sponge damping. (2) Scalars: advection by the air mass flux wρ through the faces with the scalar interpolated linearly to the face (centred), eddy diffusion with a diffusivity decreasing linearly from ν₀ = 500 m²/s at the surface, entrainment of ambient air at the rate λ = 2α|w̄|/r plus the wind-driven rate (2/π)|uₐ − u|/r, dry-adiabatic cooling −w̄g/cₚ, radius growth by entrainment and wind shear, and sedimentation of rain and ice at fixed fall speeds. (3) Microphysics (Kessler / Ogura–Takahashi bulk scheme with Berry autoconversion): a staged process chain — cloud condensation or evaporation limited by the rate |w̄ ∂qₛ/∂z|, rain evaporation, ice sublimation, vapor deposition onto ice, freezing of rain, melting, then autoconversion and accretion — gives the state X⁽ᵃᵈʲ⁾ the parcel reaches over the adjustment interval τμ, and the model relaxes towards it, M = (X⁽ᵃᵈʲ⁾ − X)/τμ. Parenthesized superscripts (0)…(6) number the stages of the chain. The chain is evaluated at every level, so the lower boundary uses exactly the same equations as the interior (with the interval 3τμ there, as the Fortran applies one full step at the surface and three substeps above). (4) Lower boundary: the Turner/Briggs similarity solution for a buoyant point source below the surface gives w₀ and the plume temperature from the convective heat flux ℋ₀ = ηQ𝒻 (η = 0.55); the fire adds combustion water and fuel moisture to the ambient vapor, any excess over saturation becomes cloud water, and rain and ice are taken from level 2. ℋ₀ is a step function of time: a small value in the first minute, a ramp in one-minute steps to the full flux at 4 minutes, the full flux until t𝒻 and a small value afterwards (the Fortran heating table indexed by the minute that contains t). (5) Plume top and sponge: hₚ is the height of the first velocity level with w ≤ wₘᵢₙ = 1 m/s (the Fortran ztop). A continuous version of that level, jᶜ (w interpolated linearly to wₘᵢₙ), feeds kₜ, the highest plume-top level reached so far (the Fortran kkmax, starting at level 10); the Rayleigh sponge acts above (kₜ − 1)Δz, its rate rising linearly to 1/τᴅ over the 20 levels ℋᴅ and constant above.

AMBIENT SOUNDING AND COUPLING. The ambient atmosphere is a sounding on its own NSND levels — heights above the fire zₛ, pressure pₛ, temperature Tₛ, relative humidity RHₛ and wind components uₛ, vₛ — the coupling inputs through which a host model or data source supplies the ambient column. The model interpolates it linearly to the plume grid, as the Fortran does (htint), giving Tₑ, pₑ, uₑ = |(uₑˣ, uₑʸ)| and qᵥₑ = max(RH·qₛ(Tₑ, pₑ), 1e-8). The default is the Williams Flats fire sounding (Spokane, OTX, 2019-08-09 00Z, 90 levels, surface at 728 m); the fire defaults are Q𝒻 = 2.56 kW/m², A𝒻 = 750 ha and α = 0.05. Because the sounding is interpolated, the grid is free: the level count is the metaparameter NLEV (default 200, reaching 19.85 km, as in the Fortran) and Δz is a parameter, and both can be changed at a mount (freitas_2007_tests.esm runs the model on 52 levels of 200 m). Levels above the sponge over the highest plume top are inert, so a shorter column gives the same answer as long as it reaches ℋᴅ above the plume top. The prognostic states are scaled to values of order 1–10 (temperature as the excess T − Tₑ, water in g/kg, radius in km, tracer as a fraction of its boundary value c₀ = 1000) so that the finite-difference Jacobian used by implicit integrators perturbs every component by a meaningful relative amount; with unscaled states that perturbation (proportional to the norm of the whole state vector) was about 0.5 g/kg on every water species and the implicit integration failed.

DEPARTURES FROM THE REFERENCE FORTRAN. Defects of the Fortran corrected here: (1) the lower-boundary ventilation coefficient of ice sublimation and melting uses the boundary velocity w₀ (the Fortran used an array element that is never set, which switched both processes off at level 1); (2) when deposition onto ice would exceed the available vapor, the vapor is added to the existing ice (the Fortran replaced the ice by the vapor); (3) rain evaporates into the vapor deficit qₛ − qᵥ (the Fortran also subtracted cloud water, which can grow rain in unsaturated air); (4) melting uses the same latent-heat coefficient L𝒻/cₚ as freezing (the Fortran used 332.27 K against 332.67 K); (5) with no fire heat flux the similarity solution is 0/0 in the thermal correction β₀ and in the fire moisture increment δq₀; both take their limit, zero; (6) the heat-flux ramp is divided into tᵣ/tₘ steps (4 at the defaults, as in the Fortran); (7) sedimentation: the Fortran calls its fall routine inside the three-substep microphysics loop and accumulates the tendency each time, so rain and ice sedimented three times too fast, and it differenced ρv rather than the fall flux ρqv (its own comment asks whether the gradient is correct); here the tendency is minus the divergence of ρqv over ρ, counted once, with the flux through each face taken from the level above; (8) ice sublimation is driven by the subsaturation qᵥ/qₛ − 1 (the Fortran used SD/qₛ − 1 = −qᵥ/qₛ, where SD is the remaining vapor deficit, so sublimation was fastest in nearly saturated air); (9) vertical velocity: the Fortran’s leapfrog step advances w from the previous time level by Δt·F instead of 2Δt·F, so its w evolved at half the rate of its own forcing while every other variable advanced at the full rate (the steady state is unaffected, the rise is not); here dw/dt = F; (10) the Fortran’s surface microphysics read the module variables WBAR and DQSDZ left over from the last interior level of the previous step; here the surface condensation capacity |w̄ ∂qₛ/∂z| is zero (the gradient of qₛ is zero at the boundary); (11) the Fortran resets condensate below 1e-10 kg/kg to zero at every microphysics substep, an underflow guard that wipes out rain produced by less than 1e-10 in one substep, so the onset of rain by continental autoconversion depends on its time step (at small steps there is none); here the threshold qε defaults to 0. Formulation differences that are not defects: the model is a continuous-time ODE system, whereas the Fortran is an operator-split scheme with steps of up to 5 s. In the limit of vanishing step the Fortran’s scalar transport becomes the centred flux used here (its Lax–Wendroff-type correction is proportional to Δt and its positivity limiter only acts when a face would empty half a cell in one step), its microphysics becomes an instantaneous adjustment (here a relaxation over τμ) and its sponge time 3Δt vanishes (here a fixed τᴅ = 15 s, the Fortran value at its maximum step). The Fortran integrates only up to 20 levels above kkmax and leaves the levels above unchanged; here the whole column is integrated, with the sponge, at full strength above the 20-level layer, damping w and relaxing T to Tₑ there. The plume-top level that sets the sponge is continuous (jᶜ, tracked with τⱼ = 0.5 s) rather than the integer level, which jumps when the plume top passes a level and made the implicit integration fail.

NUMERICAL PARAMETERS THAT REMAIN. τμ = 5/3 s (the Fortran substep at its maximum step) is a relaxation time for saturation adjustment; rate-limited processes do not depend on it. Tripling it to 5 s changes cloud water at 1200 s by at most 1.4 % and vertical velocity below the plume head by less than 2 %; with τμ = 0.5 s the Rust BDF integration fails after about 3 minutes of model time. τᴅ = 15 s sets the sponge strength above the plume, and τⱼ = 0.5 s how closely kₜ tracks the plume top. hₚ is quantized to Δz, as in the Fortran. The centred advection is not positivity-preserving; at cloud edges water species can undershoot to small negative values (about 1e-3 g/kg), which the microphysics treats as zero.

VALIDITY. This is the Freitas 1-D entraining-plume model for vegetation fires: hydrostatic ambient, top-hat profiles, a fixed entrainment coefficient, bulk microphysics with fixed fall speeds and a fixed droplet number; it is not designed for plumes whose radius approaches their height or for strongly sheared environments beyond the wind-drag closure. The default sounding has a superadiabatic surface layer (virtual potential temperature decreasing by about 1.8 K up to 1250 m), as is common in late afternoon, so even without a fire (Q𝒻 = 0, where the boundary reduces to the ambient state) the column develops a dry convective updraft, reaching about 2.6 m/s at 900 s; that behavior is physical, not numerical, and the no-fire case integrates without solver failures.

TESTS. This file carries an instantaneous test of its default configuration: the lower-boundary similarity solution under full heating and the interpolated sounding, against the reference Fortran (single-precision agreement, 1e-5). The time-dependent comparison with the Fortran is in freitas_2007_tests.esm, which mounts this model on 52 levels of 200 m so that its 20-minute integration takes about 10 s instead of several minutes on 200 levels: one run of the Williams Flats fire with the Fortran’s maritime autoconversion, covering the dry rise (300 s), the pyrocumulus cloud, rain and ice (1200 s), 39 assertions. Its expected values come from the reference Fortran (repository and commit in the references; GNU Fortran 11.5.0, -O3) built with departures (1)–(4) and (7)–(10) patched in, on the same 200 m grid, with its maximum time step reduced from 5 s to 0.2 s and its sponge time fixed at 15 s, so that it approximates the continuous-time limit that the model represents: at its native 5 s step the corrected Fortran differs from that limit by up to 19 % in vertical velocity at 300 s and 17–21 % in cloud water and rain at 1200 s, while between 0.2 s and 0.1 s steps it changes by at most 0.6 % at the asserted levels. Fix (11) is not patched (the rain amounts asserted are far above its threshold). Tolerances are about twice the largest model–reference difference measured for each field: 0.8–2 % for vertical velocity, 0.04–0.06 K for the temperature excess, ≤ 0.3 % for vapor, 0.7–2 % for the tracer, 3 % for cloud water, 20 % for the small rain and ice amounts, and one grid level for hₚ. The Fortran patch and the generator of both files are recorded in the pull request that introduced them.

Reference

  • Freitas, S. R., Longo, K. M., Chatfield, R., Latham, D., Silva Dias, M. A. F., Andreae, M. O., Prins, E., Santos, J. C., Gielow, R., and Carvalho Jr., J. A. (2007). Including the sub-grid scale plume rise of vegetation fires in low resolution atmospheric transport models. Atmospheric Chemistry and Physics, 7, 3385–3398.
  • Freitas, S. R., Longo, K. M., Trentmann, J., and Latham, D. (2010). Technical Note: Sensitivity of 1-D smoke plume rise models to the inclusion of environmental wind drag. Atmospheric Chemistry and Physics, 10, 585–594.
  • Freitas, S. R., Longo, K. M., and Andreae, M. O. (2006). Impact of including the plume rise of vegetation fires in numerical simulations of associated atmospheric pollutants. Geophysical Research Letters, 33, L17808.
  • Mallia, D. V., and Wilmot, T. Y. Plume-model_stand_alone: stand-alone Fortran implementation of the Freitas plume-rise model with the Mallia–Wilmot developments.

Variables

NameUnitsDefaultDescription
velocity_statem/sPrognostic vertical velocity w. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed. The prognostic states are scaled to values of order 1–10 (temperature as the excess over the ambient profile, water in g/kg, radius in km, tracer as a fraction of c₀) so that the finite-difference Jacobian of an implicit integrator perturbs every component by a meaningful relative amount.
temperature_stateKPrognostic temperature excess T − Tₑ. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed.
vapor_stateg/kgPrognostic water-vapor mixing ratio, in g/kg. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed.
cloud_stateg/kgPrognostic cloud-water mixing ratio, in g/kg. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed.
rain_stateg/kgPrognostic rainwater mixing ratio, in g/kg. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed.
ice_stateg/kgPrognostic cloud-ice mixing ratio, in g/kg. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed.
horizontal_speed_statem/sPrognostic horizontal plume velocity u. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed.
radius_statekmPrognostic plume radius, in km. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed.
tracer_state1Prognostic passive tracer as a fraction of its boundary value c₀. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed.
kₜ1Highest plume-top level reached so far (the Fortran kkmax, here continuous): a running maximum of jᶜ that starts at level 10 and never decreases. It follows increases of jᶜ with the tracking time τⱼ. The Rayleigh sponge starts at this level.

Parameters

NameUnitsDefaultDescription
zₛm[0.0, 9.0, 87.0, 186.0, 491.0, 761.0, 1101.0, 1267.0, 1406.0, 1710.0, 2015.0, 2420.0, 2648.0, 2930.0, 3539.0, 3844.0, 4056.0, 4149.0, 4237.0, 4449.0, 4653.0, 5010.0, 5102.0, 5368.0, 5398.0, 5446.0, 5574.0, 5673.0, 5720.0, 5819.0, 5978.0, 6004.0, 6587.0, 6782.0, 6892.0, 7197.0, 7506.0, 7806.0, 7910.0, 8111.0, 8355.0, 8416.0, 8530.0, 8619.0, 8708.0, 8822.0, 8914.0, 9031.0, 10052.0, 10430.0, 10514.0, 10550.0, 10828.0, 10916.0, 11157.0, 11438.0, 11464.0, 11502.0, 11729.0, 11795.0, 11964.0, 12074.0, 12103.0, 12672.0, 13292.0, 13510.0, 13600.0, 14259.0, 14358.0, 14512.0, 14510.0, 14719.0, 15447.0, 15566.0, 15872.0, 16221.0, 16897.0, 17041.0, 17322.0, 17560.0, 18132.0, 18170.0, 18269.0, 18602.0, 18984.0, 19238.0, 19389.0, 19694.0, 19998.0, 20272.0]Heights of the ambient sounding levels above the fire (the lowest sounding level). Coupling input, with pₛ, Tₛ, RHₛ, uₛ and vₛ: a host model or data source supplies the ambient column on its own NSND levels, and the model interpolates it linearly to the plume grid as the Fortran does (htint). The default is the Williams Flats fire sounding (Spokane, OTX, 2019-08-09 00Z), surface at 728 m.
pₛkPa[92.6, 92.5, 91.7, 90.6, 87.6, 85.0, 81.7, 80.2, 78.9, 76.1, 73.4, 70.0, 68.1, 65.7, 60.9, 58.7, 57.2, 56.5, 55.9, 54.4, 53.0, 50.6, 50.0, 48.2, 48.1, 47.8, 47.0, 46.3, 46.1, 45.5, 44.5, 44.4, 41.0, 40.0, 39.4, 37.7, 36.2, 34.7, 34.2, 33.2, 32.1, 31.8, 31.3, 30.9, 30.5, 30.0, 29.6, 29.1, 25.0, 23.6, 23.3, 23.1, 22.2, 21.9, 21.1, 20.2, 20.1, 20.0, 19.3, 19.1, 18.6, 18.2, 18.2, 16.5, 15.0, 14.5, 14.3, 12.9, 12.7, 12.4, 12.4, 12.0, 10.7, 10.5, 10.0, 9.4, 8.5, 8.3, 7.9, 7.6, 7.0, 6.9, 6.8, 6.5, 6.1, 5.8, 5.7, 5.4, 5.2, 5.0]Ambient pressure at the sounding levels (coupling input).
TₛK[307.34999999999997, 307.34999999999997, 305.34999999999997, 304.34999999999997, 301.25, 298.54999999999995, 295.15, 293.54999999999995, 292.34999999999997, 289.75, 287.04999999999995, 283.54999999999995, 281.54999999999995, 279.04999999999995, 273.54999999999995, 270.75, 268.84999999999997, 268.25, 267.65, 266.84999999999997, 265.25, 262.45, 261.84999999999997, 259.84999999999997, 259.65, 259.25, 258.45, 257.95, 257.65, 257.45, 256.95, 256.84999999999997, 252.64999999999998, 251.24999999999997, 250.34999999999997, 247.84999999999997, 245.24999999999997, 242.74999999999997, 241.84999999999997, 240.34999999999997, 238.45, 237.84999999999997, 236.84999999999997, 236.04999999999998, 235.64999999999998, 234.84999999999997, 234.45, 234.04999999999998, 224.84999999999997, 221.74999999999997, 221.04999999999998, 220.95, 220.04999999999998, 220.84999999999997, 219.24999999999997, 219.45, 219.24999999999997, 218.84999999999997, 217.45, 217.64999999999998, 219.84999999999997, 219.34999999999997, 219.24999999999997, 223.45, 220.24999999999997, 219.45, 220.04999999999998, 217.04999999999998, 217.64999999999998, 216.84999999999997, 216.84999999999997, 218.24999999999997, 215.45, 214.84999999999997, 214.24999999999997, 214.04999999999998, 216.24999999999997, 216.64999999999998, 216.24999999999997, 216.45, 217.04999999999998, 217.14999999999998, 217.24999999999997, 216.45, 217.84999999999997, 217.24999999999997, 217.64999999999998, 218.34999999999997, 219.04999999999998, 219.64999999999998]Ambient temperature at the sounding levels (coupling input).
RHₛ1[0.2, 0.22, 0.23, 0.23, 0.25, 0.28, 0.31, 0.33, 0.33, 0.35, 0.37, 0.4, 0.39, 0.45, 0.59, 0.68, 0.75, 0.73, 0.72, 0.27, 0.2, 0.28, 0.23, 0.23, 0.22, 0.36, 0.27, 0.34, 0.38, 0.6, 0.55, 0.55, 0.54, 0.53, 0.54, 0.55, 0.56, 0.66, 0.7, 0.57, 0.44, 0.45, 0.48, 0.25, 0.08, 0.24, 0.38, 0.34, 0.34, 0.3, 0.29, 0.27, 0.17, 0.11, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.02, 0.01, 0.01, 0.09, 0.06, 0.05, 0.05, 0.03, 0.04, 0.03, 0.03, 0.04, 0.02, 0.03, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02]Ambient relative humidity (fraction) at the sounding levels (coupling input); the vapor mixing ratio is RH times the Tetens saturation mixing ratio, as in the Fortran.
uₛm/s[2.1298096183182933, 2.684693934184062, 3.8276946803395795, 5.02252893766797, 4.169035259201585, 4.9262354513565265, 3.0528978824742423, 2.5901036715336536, 2.0999999998724963, -0.2500005301813014, 0.8660303013496974, 3.5453145442362146, 3.5994523921295283, 4.03770365101432, 3.2693237534444366, 5.988721457266669, 5.284922523702027, 4.6221437632077915, 4.822125150715766, 5.093007652968537, 4.988563928793236, 4.018884573754934, 3.6062777000893638, 4.384102302069423, 4.384102302069423, 4.384102302069423, 4.384102302069423, 4.384102302069423, 4.818341746444385, 5.572550152907492, 6.674510792493225, 6.663304244566118, 5.8024030190429725, 6.66843332039267, 7.534463621742367, 6.281613911266791, 6.89211459838498, 6.768286766609239, 7.94212347564827, 10.1824311531935, 10.825086298331218, 10.927506294846886, 11.642555739276903, 12.005535486445059, 12.10852311687826, 12.6761980967851, 12.637923261583467, 12.559260464971338, 11.08170116461106, 11.799959573428444, 11.799959573428444, 11.799959573428444, 11.644014898027239, 11.510862251756269, 10.986752260119902, 9.75014473918833, 9.500141027927093, 9.75014473918833, 11.050164037746777, 10.800160326485537, 10.05014919270182, 9.500141027927093, 9.785863673396792, 13.679208817564792, 10.21915755592643, 10.418836310596326, 10.959435627981266, 12.122079825287086, 12.122079825287086, 11.558262158994664, 11.558262158994664, 11.404408048046163, 10.21915755592643, 9.583001651925196, 9.256480264229506, 9.86633504572319, 10.298433233037262, 9.78656372531209, 9.585823035804939, 8.739103725269754, 3.0529097464256294, 4.443271191419612, 4.9262354513565265, 5.55392281823937, 7.042678487708099, 7.558544842859519, 8.0754386840936, 3.5506790550151726, 1.7781092352956474, 1.1019615309299247e-05]Eastward ambient wind at the sounding levels (coupling input).
vₛm/s[1.4912783072649072, 1.549973702923796, 1.469269694133818, 0.8855524096787505, 1.944002316751185, 1.319925860720274, -0.5383442385540018, -0.2266340016588144, -2.314119215020081e-05, -0.43301239579146944, 0.49999151707219225, 0.6250958185967651, 0.06278914550317176, -0.7120036703456152, -4.6692100183183, -1.6047477394512146, -2.1353205657387826, -2.155408785413875, -1.66045446514936, -0.26697012342941406, 1.060297094376375, 3.139835470663171, 3.6062114677093136, 4.384021784274068, 4.384021784274068, 4.384021784274068, 4.384021784274068, 4.384021784274068, 3.9017409978714985, 2.7178456161693028, 0.5838712879492055, 0.7002689085966679, 3.349943164383688, 3.8499346814558804, 4.349926198528072, 5.270799433651361, 7.654329256226744, 9.665934732085784, 10.165268058322745, 10.182244144120416, 12.452610434510579, 13.022657416060735, 14.377096224823372, 15.366102878859962, 16.66564333975814, 18.103148947381, 18.736138760009425, 20.0986312114285, 30.44595045811935, 32.41929909892338, 32.41929909892338, 32.41929909892338, 27.430948161784706, 25.853240613530303, 21.562265065960723, 16.887411807760184, 16.454401248586848, 16.887411807760184, 19.139066715461546, 18.706056156288206, 17.407024478768193, 16.454401248586848, 16.286094441752848, 9.226551150102493, 5.899899901451869, 5.539661535960435, 5.583974455182876, 4.411936163337795, 4.411936163337795, 4.206729830159293, 4.206729830159293, 4.60754566701839, 5.899899901451869, 5.987994600799084, 6.481324950805173, 4.392656686509248, 0.179646721856297, -0.513001413648678, -2.0376448969904923, -3.1808907681617007, 0.5382769549027699, 1.1905213645712276, 1.319925860720274, 1.2821627545050807, 1.4968900155901765, 1.469149365613234, 1.4238293645815203, -2.050043474728416, 2.5393557347005027, 1.4999999999595226]Northward ambient wind at the sounding levels (coupling input).
q∅10Ambient mixing ratio of cloud water, rain, ice and tracer: zero, so exchange with ambient air only dilutes these quantities.
Q𝒻kW/m^22.56Fire heat flux (total, before the convective fraction η). Default 2.56 kW/m² (Williams Flats).
A𝒻m^27500000.0Burning area defining the circular source radius sqrt(A𝒻/π₀).
α10.05Entrainment coefficient controlling radial growth and exchange with ambient air.
m𝒻110.0Fuel moisture expressed as a numerical percentage; its integer part enters the surface moisture factor.
χ𝑤11Ambient-wind switch: 1 includes the prescribed wind, 0 suppresses its contribution.
χμ11Multiplier of the microphysical phase-change tendencies; zero disables phase-change forcing.
χᵥ11Multiplier of the prescribed eddy diffusivity profile.
c₀11000.0Passive-tracer value prescribed at the lower boundary (the Fortran SC(1) = 1000); the tracer is reported relative to it.
τμs1.6666666666666667Microphysical adjustment time. The staged microphysics computes the state the Fortran process chain would reach after an interval τμ and relaxes towards it, M = (X⁽ᵃᵈʲ⁾ − X)/τμ. For the rate-limited processes (rain evaporation, sublimation, deposition, freezing, melting, autoconversion, accretion and the |w̄Gₛ| condensation rate) M is the process rate and does not depend on τμ while the transfer over τμ is small compared with the available water; for saturation adjustment τμ is the relaxation time. The default, 5/3 s, is the Fortran microphysics substep at its maximum time step (5 s / 3 substeps). Halving it changes the asserted cloud-water values by less than their tolerance (see the tests).
τᴅs15.0Relaxation time of the Rayleigh sponge at full strength (from ℋᴅ above the highest plume top kₜ upward). The Fortran uses 3·Δt (12–15 s in the reference runs, Δt ≤ 5 s); a fixed value keeps the model independent of a time step.
gm/s^29.80796Gravitational acceleration in the lower-boundary buoyancy flux f₀ and thermal factor β₀ (the reference code’s 9.80796 m/s²). Interior buoyancy uses gᵦ and adiabatic cooling uses Γᴅ.
RᴅJ/kg/K287.04Specific gas constant of dry air, used in the lower-boundary buoyancy flux f₀.
cₚᴅJ/kg/K1004.6Specific heat of dry air at constant pressure, used in the lower-boundary buoyancy flux f₀.
κρg*K/m^3/kPa3483.8Air-density coefficient 1/Rᴅ expressed for pressure in kPa and density in g/m³, so that ρ = κρ p/T.
e₀kPa0.61078Saturation vapor pressure at Tᵣ in the Tetens formula eₛ = e₀ exp[aₑₛ(T − Tᵣ)/(T − Tₑₛ)].
TᵣK273.15Reference temperature (0 °C) in the Tetens formula eₛ = e₀ exp[aₑₛ(T − Tᵣ)/(T − Tₑₛ)].
TₑₛK35.85Temperature offset in the denominator of the Tetens formula eₛ = e₀ exp[aₑₛ(T − Tᵣ)/(T − Tₑₛ)].
κWW/kW1000Unit conversion from kW to W for the surface heat flux.
κpPa/kPa1000Unit conversion from kPa to Pa in the lower-boundary buoyancy flux.
κgg/kg1000Unit conversion from kg to g in the fire water-vapor increment δq₀.
κkgkg/g0.001Unit conversion from g to kg; converts air density from g/m³ to kg/m³ in the mass fluxes.
h𝒻J/kg19300000.0Heat of combustion of the fuel. The surface heat flux divided by η h𝒻 is the fuel burning rate, which sets the fire’s water-vapor source δq₀.
tₘs60One-minute forcing interval: the surface heat flux is a step function of time that changes every tₘ (the Fortran indexes its heating table by minute).
tᵣs240End of the heat-flux ramp; the ramp rises in equal steps every tₘ and the full fire heat flux applies from tᵣ. The reference code ramps over four minutes (tᵣ = 240 s).
t𝒻s3180End (inclusive) of the full-intensity fire; the post-fire floor ℋₑₙd applies afterwards.
ℋₘᵢₙW/m^20.1Small surface heat flux applied during the first minute, before the ramp starts.
ℋₑₙdW/m^21e-06Small surface heat flux applied after the fire ends.
Δzm100Vertical grid spacing of both staggered grids (100 m).
wₘᵢₙm/s1Vertical-velocity threshold that defines the plume top (first level with w ≤ wₘᵢₙ) and floor of the speed in the transport timescale.
rₘᵢₙm1Minimum plume radius in the entrainment and wind-exchange rates; prevents division by a vanishing radius.
ℋᴅm2000Depth over which the Rayleigh sponge rate rises from zero at the highest plume top kₜ to 1/τᴅ (20 levels, the Fortran sponge depth).
νₘᵢₙm^2/s0.001Minimum eddy diffusivity.
ν₀m^2/s500Eddy diffusivity at the surface; ν decreases linearly with level index down to νₘᵢₙ.
vᵢm/s-3Fall speed of ice (negative is downward). Used for ice sedimentation and in the ventilation coefficient of ice sublimation and melting.
vᵣm/s-4Fall speed of rain (negative is downward), used for rain sedimentation.
gᵦm/s^26.533333333333334Gravitational coefficient in the buoyancy acceleration, g/(1 + γ) with g = 9.8 m/s² and virtual-mass coefficient γ = 0.5 (numerically 9.8/1.5), as in the reference code.
ΓᴅK/m0.009770916334661355Dry-adiabatic lapse rate g/cₚ, numerically 9.81/1004; rising plume air cools at the rate w̄Γᴅ.
π₀13.14159Value of π (3.14159) for the source radius, the initial radius and the lower-boundary buoyancy flux, as in the reference code.
πᵣ13.1416Value of π (3.1416) in the wind-shear radius growth and in κλ and κE; it differs from π₀ as in the reference code.
εᵥ10.622Ratio of the molar masses of water vapor and dry air.
aₑₛ117.2693882Exponential coefficient in the Tetens formula eₛ = e₀ exp[aₑₛ(T − Tᵣ)/(T − Tₑₛ)].
η10.55Convective fraction of the fire heat release: the part that heats the plume. It also converts the heat flux back to a fuel burning rate in δq₀.
cᵦ10.9Coefficient of the buoyancy-flux scale B₀ = cᵦ α f₀ in the lower-boundary similarity solution.
LᵥkJ/kg2500.0Latent heat of condensation (vapor ↔ liquid).
LₛkJ/kg2834.0Latent heat of sublimation (vapor ↔ ice).
L𝒻kJ/kg334.0Latent heat of fusion (liquid ↔ ice).
cₚφkJ/kg/K1.004Specific heat that converts latent heat into a temperature change in phase-change heating (Λ = L/cₚφ).
qε10.0Condensate mixing ratio at or below which cloud water, rain and ice are treated as absent by the microphysics. The Fortran uses 1e-10 as an underflow guard and applies it to the state at every microphysics substep, which wipes out any rain produced in one substep by less than 1e-10; at small time steps that suppresses the onset of rain by continental (Berry) autoconversion entirely, so the onset depends on the time step. The default 0 removes that dependence; 1e-10 restores the Fortran guard.
T𝒻K269.3Temperature threshold for ice processes: deposition onto ice and rain freezing occur at or below T𝒻, and warm-rain conversion requires T > T𝒻.
TₘK273.0Temperature at or above which ice melts to rain.
aᵣm^1.95/g^0.65/s0.000544Coefficient of the empirical rain-evaporation rate.
aᵢ1700000.0Constant term in the normalized resistance to vapor transfer between air and ice.
bᵢ14100000.0Coefficient of the saturation-vapor-pressure term in the normalized ice-transfer resistance.
κₑ110.0Pressure normalization factor in the empirical ice-transfer resistance; saturation vapor pressure is scaled by 1 kPa.
κρᵢ11000000.0Reciprocal-density normalization factor in the empirical ice-transfer relation; air density is scaled by 1 g/m³.
cᵢₛ11.13Coefficient scaling the normalized vapor-transfer driving terms for ice sublimation and deposition.
a𝒻1/s0.025Rate coefficient for rain freezing to ice (glaciation): the fraction of rain frozen per second when freezing is possible.
aₘg/m^3*(cm^3/g)^0.525/s/K2.27Coefficient of the empirical ice-melting rate.
κₘm^3/cm^31e-06Unit conversion from g/m³ to g/cm³ for the ice mass concentration in the empirical melting relation.
cₘ10.75Normalization factor in the ventilation coefficient cᵢ = cᵢ₀ + cᵢ₁|w + vᵢ|^1.5/cₘ and in the melting rate.
aₐm^2.625/g^0.875/s0.0052Coefficient of the rate at which rain collects cloud water (accretion).
cᵤ10.146Berry size-dispersion coefficient of the autoconversion rate. The default 0.146 is the Fortran continental value; 0.366 is its maritime alternative.
tᵤs60.0Time scale in the autoconversion rate 𝒞ᵤ = cᵤ mₗ³/[tᵤ(aᵤ cᵤ mₗ + bᵤ nᵤ)].
aᵤg/m^35.0Concentration coefficient in the denominator of the autoconversion rate 𝒞ᵤ = cᵤ mₗ³/[tᵤ(aᵤ cᵤ mₗ + bᵤ nᵤ)].
bᵤ(g/m^3)^2*cm^30.0366Mass coefficient in the denominator of the autoconversion rate 𝒞ᵤ = cᵤ mₗ³/[tᵤ(aᵤ cᵤ mₗ + bᵤ nᵤ)].
nᵤ1/cm^3100000.0Cloud-droplet number concentration in the Berry autoconversion rate. The default 1e5 cm⁻³ is the Fortran continental value; 50 cm⁻³ is its maritime alternative.
cᵢ₀11.6Constant term of the ventilation coefficient cᵢ = cᵢ₀ + cᵢ₁|w + vᵢ|^1.5/cₘ, which increases ice sublimation and melting because air flows past falling ice.
cᵢ₁(s/m)^1.50.00057Speed coefficient of the ventilation coefficient cᵢ = cᵢ₀ + cᵢ₁|w + vᵢ|^1.5/cₘ.
aᵣ₀11.2Coefficient of the initial radius profile r = r₀ + aᵣ₀ α z.
κλ10.6366182836771073Coefficient 2/πᵣ of the wind-driven exchange rate λ𝑤.
κE10.31830914183855363Coefficient 1/πᵣ of the wind-driven vertical-momentum loss in E𝑤.
aᵣ₁10.6Coefficient of radius growth by entrainment, aᵣ₁ λ r, in the radius tendency.
κkmm/km1000.0Unit conversion from km to m for the radius state.
ℓνm20000.0Height over which the eddy diffusivity would decrease linearly from ν₀ to zero (the Fortran reduces it by ν₀/200 per 100 m level, i.e. over its 200-level, 20 km grid); fixed in metres so that the profile does not depend on the number of levels.
τⱼs0.5Tracking time of the running maximum kₜ of the plume-top level; small compared with the time the plume top takes to rise one level (about 10 s), so kₜ is the running maximum to within a fraction of a second.

Observed

NameUnitsDefaultDescription
zₜmHeights of the scalar levels: 0 at level 1 (the surface), 50 m at level 2, then Δz spacing.
z𝑤mHeights of the vertical-velocity levels (faces): (k − 1)Δz.
TₑKAmbient temperature on the scalar levels, interpolated from the sounding; also the initial plume temperature.
pₑkPaAmbient pressure on the scalar levels, interpolated from the sounding.
RHₑ1Ambient relative humidity on the scalar levels, interpolated from the sounding.
uₑˣm/sEastward ambient wind on the scalar levels.
uₑʸm/sNorthward ambient wind on the scalar levels.
qᵥₑ1Ambient water-vapor mixing ratio on the scalar levels: RH times the Tetens saturation mixing ratio, floored at 1e-8 (as in the Fortran); also the initial plume vapor.
uₑm/sAmbient horizontal wind speed on the scalar levels.
ℋ₀W/m^2Convective surface heat flux at time t: ℋₘᵢₙ during the first minute, then a four-step one-minute ramp to Q𝒻κWη, held until t𝒻 and ℋₑₙd afterwards (the Fortran heating table indexed by the minute containing t).
r₀mRadius of the circular burning area, sqrt(A𝒻/π₀).
f₀m^4/s^3Buoyancy flux of the circular source from the convective heat flux and the surface state.
a₀1Similarity factor 5/(6α).
B₀m^4/s^3Buoyancy-flux scale cᵦαf₀.
b₀m^(4/3)/sCube root of B₀.
ℓ₀mVirtual-origin distance a₀r₀ below the surface.
w₀m/sLower-boundary vertical velocity of the similarity solution, a₀b₀/ℓ₀^(1/3).
β₀1Density (temperature) correction of the similarity solution; set to its limit 0 when ℋ₀ = 0, where the general expression is 0/0.
T₀⁽⁰⁾KLower-boundary plume temperature before phase changes, Tₑ[1]/(1 − β₀).
φₘ1Fuel-moisture factor 1/2 + floor(m𝒻)/100 of the fire water source.
δq₀1Water-vapor increment supplied by the fire (combustion water plus fuel moisture) spread over the boundary mass flux w₀ρ; zero when ℋ₀ = 0.
qᵥ₀⁽⁰⁾1Lower-boundary vapor before phase changes: ambient plus fire vapor, capped at saturation.
qₗ₀⁽⁰⁾1Lower-boundary cloud water before phase changes: the fire vapor in excess of saturation.
T⁽⁰⁾KTemperature before microphysical adjustment: T₀⁽⁰⁾ at level 1, Tₑ plus the state above.
qᵥ⁽⁰⁾1Vapor before microphysical adjustment: qᵥ₀⁽⁰⁾ at level 1, the prognostic state above.
qₗ⁽⁰⁾1Cloud water before microphysical adjustment: qₗ₀⁽⁰⁾ at level 1, the prognostic state above.
qᵣ⁽⁰⁾1Rain before microphysical adjustment. At level 1 the boundary takes the rain of level 2 (the Fortran “soaks up” hydrometeors at the surface).
qᵢ⁽⁰⁾1Ice before microphysical adjustment; level 1 takes the ice of level 2.
TKPhysical plume temperature: the adjusted boundary value T⁽⁶⁾[1] at level 1, Tₑ plus the state above.
qᵥ1Physical water-vapor mixing ratio (adjusted boundary value at level 1).
qₗ1Physical cloud-water mixing ratio (adjusted boundary value at level 1).
qᵣ1Physical rainwater mixing ratio (adjusted boundary value at level 1).
qᵢ1Physical cloud-ice mixing ratio (adjusted boundary value at level 1).
um/sPhysical horizontal plume velocity; zero at the lower boundary.
rmPhysical plume radius; the source radius r₀ at the lower boundary.
c1Passive tracer; c₀ at the lower boundary.
wm/sPhysical vertical velocity; w₀ at the lower boundary.
ρg/m^3Air density κρpₑ/T⁽⁰⁾ (the Fortran RHO, which at level 1 is evaluated before the boundary phase changes).
eₛkPaSaturation vapor pressure (Tetens) at T⁽⁰⁾.
qₛ1Saturation water-vapor mixing ratio at T⁽⁰⁾ and pₑ.
Gₛ1/mCentred vertical gradient of qₛ, zero at both boundaries.
w̄m/sVertical velocity averaged to the scalar levels; w₀ at level 1 and zero at the top.
τᵏsMicrophysical adjustment interval by level: 3τμ at the lower boundary (where the Fortran applies one full step instead of three substeps) and τμ above.
cᵢ1Ice ventilation coefficient at each scalar level, from the vertical velocity of the face below (w₀ at level 1).
qₗᶜ1Nonnegative cloud-water mixing ratio retained above the threshold qε; smaller values are set to zero.
qᵣᶜ1Nonnegative rainwater mixing ratio retained above the threshold qε; smaller values are set to zero.
qᵢᶜ1Nonnegative ice mixing ratio retained above the threshold qε; smaller values are set to zero.
δq⁽⁰⁾1Saturation mixing ratio minus water-vapor mixing ratio before phase changes; positive values indicate a vapor deficit.
Eₘ1Transport-related capacity for cloud condensation or evaporation over the interval τᵏ, based on vertical motion and the saturation-mixing-ratio gradient.
Eₗ1Cloud-water evaporation capacity, limited by the transport-related capacity and available cloud water.
qᵥ⁽¹⁾1Water-vapor mixing ratio after stage 1: condensation of excess vapor to cloud water, or evaporation of cloud water into unsaturated air.
qₗ⁽¹⁾1Cloud-water mixing ratio after stage 1 (condensation or evaporation). Cloud water loads the plume, reducing buoyancy, and is the source of rain.
T⁽¹⁾KTemperature after stage 1. Condensation releases latent heat that warms the plume and adds buoyancy; cloud evaporation cools it.
δq⁽¹⁾1Remaining nonnegative vapor deficit after cloud condensation or evaporation.
Qᵣg/m^3Vapor deficit qₛ − qᵥ⁽¹⁾ after the cloud stage, as a mass concentration (times ρ); it drives rain evaporation.
Eᵣ⁽⁰⁾1Potential rainwater evaporation over the interval τᵏ, before limitation by available rain and vapor deficit. Superscript (0) identifies the potential transfer.
Eᵣ1Rainwater evaporation amount limited by available rain; the subsequent phase updates also limit transfer by the remaining vapor deficit.
qᵥ⁽²⁾1Water-vapor mixing ratio after stage 2, evaporation of rain into unsaturated air.
qᵣ⁽²⁾1Rainwater mixing ratio after stage 2 (rain evaporation).
T⁽²⁾KTemperature after stage 2. Rain evaporation absorbs latent heat and cools the plume, reducing buoyancy.
δq⁽²⁾1Remaining nonnegative vapor deficit after rain evaporation.
Dᵢ1Normalized resistance to vapor transfer between air and ice, with saturation vapor pressure scaled by 1 kPa.
𝒩ᵢ⁻1Normalized ice-sublimation driving term (κρᵢ/ρ)^0.475 (qᵥ⁽²⁾/qₛ − 1) qᵢᶜ^0.525 cᵢₛ, negative in subsaturated air. Dimensionless.
Eᵢ⁽⁰⁾1Potential ice sublimation over the interval τᵏ, before limitation by available ice and vapor deficit. Superscript (0) identifies the potential transfer.
Eᵢ1Ice-sublimation amount limited by available ice; the subsequent phase updates also limit transfer by the remaining vapor deficit.
qᵥ⁽³⁾1Water-vapor mixing ratio after stage 3, sublimation of ice into unsaturated air.
qᵢ⁽³⁾1Ice mixing ratio after stage 3 (sublimation).
T⁽³⁾KTemperature after stage 3. Ice sublimation absorbs latent heat and cools the plume.
𝒩ᵢ⁺1Normalized driving term for vapor deposition onto ice, combining supersaturation, ice content and air density scaled by 1 g/m³.
Δqₛ1Potential vapor deposition onto ice over the interval τᵏ; available vapor limits the subsequent phase updates.
qᵥ⁽⁴⁾1Water-vapor mixing ratio after stage 4, deposition of excess vapor onto ice at or below T𝒻.
qᵢ⁽⁴⁾1Ice mixing ratio after stage 4 (vapor deposition onto ice).
T⁽⁴⁾KTemperature after stage 4. Deposition onto ice releases latent heat of sublimation, warming the plume and adding buoyancy.
Δq𝒻1Potential rain-to-ice transfer by glaciation over the interval τᵏ; available rain limits the subsequent phase updates.
qᵢ⁽⁵⁾1Ice mixing ratio after stage 5, freezing of rain to ice (glaciation) at or below T𝒻 in saturated air.
qᵣ⁽⁵⁾1Rainwater mixing ratio after stage 5, in which part of the rain freezes to ice (glaciation) at or below T𝒻. Freezing matters for plume rise because it releases latent heat (see T⁽⁵⁾) that adds buoyancy to high, cold plumes.
T⁽⁵⁾KTemperature after stage 5. Freezing of rain releases latent heat of fusion, warming the plume and adding buoyancy.
Δqₘ1Potential ice-to-rain transfer by melting over the interval τᵏ; available ice limits the subsequent phase updates.
qᵣ⁽⁶⁾1Rainwater mixing ratio after stage 6, melting of ice to rain at or above Tₘ.
qᵢ⁽⁶⁾1Ice mixing ratio after stage 6 (melting).
T⁽⁶⁾KTemperature after stage 6. Melting absorbs latent heat of fusion and cools the plume.
mₗg/m^3Cloud-water mass concentration after condensation or evaporation, before warm-rain conversion.
mᵣg/m^3Rainwater mass concentration after the phase-change sequence through ice melting, before warm-rain conversion.
𝒞ₐg/m^3/sRate of rainwater mass production by accretion of cloud water.
𝒞ᵤg/m^3/sRate of rainwater mass production by autoconversion of cloud water.
Δqᵣ1Potential cloud-to-rain transfer by autoconversion and accretion over the interval τᵏ; available cloud water limits the subsequent updates.
qₗμ1Cloud-water mixing ratio after phase changes and warm-rain conversion by autoconversion and accretion.
qᵣμ1Rainwater mixing ratio after phase changes and warm-rain conversion by autoconversion and accretion.
MₜK/sMicrophysical tendency of temperature (latent heating): the change of the staged adjustment over τᵏ divided by τᵏ, scaled by χμ.
Mᵥ1/sMicrophysical tendency of water vapor: the change of the staged adjustment over τᵏ divided by τᵏ, scaled by χμ.
Mₗ1/sMicrophysical tendency of cloud water: the change of the staged adjustment over τᵏ divided by τᵏ, scaled by χμ.
Mᵣ1/sMicrophysical tendency of rain: the change of the staged adjustment over τᵏ divided by τᵏ, scaled by χμ.
Mᵢ1/sMicrophysical tendency of ice: the change of the staged adjustment over τᵏ divided by τᵏ, scaled by χμ.
ΛᵥKLatent heat of condensation divided by the phase-change heat capacity.
ΛₛKLatent heat of sublimation divided by the phase-change heat capacity.
Λ𝒻KLatent heat of fusion divided by the phase-change heat capacity.
uₐm/sAmbient wind acting on the plume, χ𝑤uₑ.
λ1/sEntrainment rate 2α|w̄|/max(r, rₘᵢₙ).
λ𝑤1/sWind-driven (dynamic) entrainment rate (2/π)|uₐ − u|/max(r, rₘᵢₙ).
ℬₜm/s^2Buoyancy on the scalar levels: gᵦ times the relative virtual-temperature excess minus the condensate loading.
ℬm/s^2Buoyancy averaged to the velocity levels; zero at the boundary levels.
E𝑤m/s^2Vertical-momentum loss by radial entrainment (with the virtual-mass factor 1/1.5) and by the wind-driven exchange, at the velocity levels.
fρkg/m^2/sAir mass flux through the velocity faces, w times the mean density of the adjacent scalar levels; w₀ρ[1] at the surface face and zero at the top.
A𝑤m/s^2Momentum advection in flux form on the velocity levels (the Fortran vel_advectc stencil).
νm^2/sEddy diffusivity, decreasing linearly with level index from ν₀ to the floor νₘᵢₙ, scaled by χᵥ.
nₗ1Number of levels on each grid (the length of the index sets zt and zm).
𝒱𝑤m/s^2Eddy diffusion of vertical velocity.
ℱₜkg/m^2/s*(K)Upward advective flux of temperature through the velocity faces.
AₜK/sVertical-advection tendency of temperature: (−∂ℱ/∂z + T ∂fρ/∂z)/ρ.
𝒱ₜK/sEddy-diffusion tendency of temperature.
ℱᵥkg/m^2/sUpward advective flux of water vapor through the velocity faces.
Aᵥ1/sVertical-advection tendency of water vapor: (−∂ℱ/∂z + qᵥ ∂fρ/∂z)/ρ.
𝒱ᵥ1/sEddy-diffusion tendency of water vapor.
ℱₗkg/m^2/sUpward advective flux of cloud water through the velocity faces.
Aₗ1/sVertical-advection tendency of cloud water: (−∂ℱ/∂z + qₗ ∂fρ/∂z)/ρ.
𝒱ₗ1/sEddy-diffusion tendency of cloud water.
ℱᵣkg/m^2/sUpward advective flux of rain through the velocity faces.
Aᵣ1/sVertical-advection tendency of rain: (−∂ℱ/∂z + qᵣ ∂fρ/∂z)/ρ.
𝒱ᵣ1/sEddy-diffusion tendency of rain.
ℱᵢkg/m^2/sUpward advective flux of cloud ice through the velocity faces.
Aᵢ1/sVertical-advection tendency of cloud ice: (−∂ℱ/∂z + qᵢ ∂fρ/∂z)/ρ.
𝒱ᵢ1/sEddy-diffusion tendency of cloud ice.
ℱᵤkg/m^2/s*(m/s)Upward advective flux of horizontal velocity through the velocity faces.
Aᵤm/s/sVertical-advection tendency of horizontal velocity: (−∂ℱ/∂z + u ∂fρ/∂z)/ρ.
𝒱ᵤm/s/sEddy-diffusion tendency of horizontal velocity.
ℱᵣₐkg/m^2/s*(m)Upward advective flux of plume radius through the velocity faces.
Aᵣₐm/sVertical-advection tendency of plume radius: (−∂ℱ/∂z + r ∂fρ/∂z)/ρ.
𝒱ᵣₐm/sEddy-diffusion tendency of plume radius.
ℱ𝒸kg/m^2/sUpward advective flux of passive tracer through the velocity faces.
A𝒸1/sVertical-advection tendency of passive tracer: (−∂ℱ/∂z + c ∂fρ/∂z)/ρ.
𝒱𝒸1/sEddy-diffusion tendency of passive tracer.
𝒮ᵣ1/sRain sedimentation tendency (fall speed vᵣ).
𝒮ᵢ1/sIce sedimentation tendency (fall speed vᵢ).
σᴅ1/sRayleigh sponge rate above the highest plume top reached so far: zero below height (kₜ − 1)Δz, rising linearly over the depth ℋᴅ to 1/τᴅ and constant above (the Fortran sponge occupies the 20 levels above kkmax, the top of its active column, and leaves the levels above that unchanged).
R𝑤m/s^2Vertical-velocity tendency: advection, buoyancy, entrainment drag, diffusion and sponge damping.
RₜK/sTemperature tendency: advection, diffusion, entrainment, dry-adiabatic cooling of rising air, sponge relaxation and latent heating.
Rᵥ1/sWater-vapor tendency.
Rₗ1/sCloud-water tendency.
Rᵣ1/sRain tendency, including sedimentation.
Rᵢ1/sIce tendency, including sedimentation.
Rᵤm/s^2Horizontal-velocity tendency: advection, diffusion and exchange with the ambient wind.
Rᵣₐm/sRadius tendency: advection, diffusion, entrainment growth and wind-shear growth.
R𝒸1/sTracer tendency: advection, diffusion and dilution by entrained tracer-free air.
j⋆1First velocity level with w ≤ wₘᵢₙ (nₗ if none).
hₚmPlume-top height (j⋆ − 1)Δz: the height of the first velocity level with w ≤ wₘᵢₙ (the Fortran ztop).
jᶜ1Plume-top level as a continuous number: the position between velocity levels j⋆ − 1 and j⋆ at which w, interpolated linearly, falls to wₘᵢₙ (1 when the lower boundary is already below wₘᵢₙ). Unlike j⋆ it does not jump when the plume top passes a level.
𝒲m/sMaximum absolute vertical velocity.

Observed expressions

$$ zₜ = \mathrm{faq}\left(\right) $$

Heights of the scalar levels: 0 at level 1 (the surface), 50 m at level 2, then Δz spacing.

$$ z𝑤 = \mathrm{faq}\left(\right) $$

Heights of the vertical-velocity levels (faces): (k − 1)Δz.

$$ Tₑ = \mathrm{faq}\left(\right) $$

Ambient temperature on the scalar levels, interpolated from the sounding; also the initial plume temperature.

$$ pₑ = \mathrm{faq}\left(\right) $$

Ambient pressure on the scalar levels, interpolated from the sounding.

$$ RHₑ = \mathrm{faq}\left(\right) $$

Ambient relative humidity on the scalar levels, interpolated from the sounding.

$$ uₑˣ = \mathrm{faq}\left(\right) $$

Eastward ambient wind on the scalar levels.

$$ uₑʸ = \mathrm{faq}\left(\right) $$

Northward ambient wind on the scalar levels.

$$ qᵥₑ = \mathrm{max}\left(RHₑ \cdot \mathrm{qₛ}\left(X=Tₑ, P=pₑ\right), 1 \times 10^{-8}\right) $$

Ambient water-vapor mixing ratio on the scalar levels: RH times the Tetens saturation mixing ratio, floored at 1e-8 (as in the Fortran); also the initial plume vapor.

$$ uₑ = \sqrt{uₑˣ^{2} + uₑʸ^{2}} $$

Ambient horizontal wind speed on the scalar levels.

$$ ℋ₀ = \mathrm{ℋ𝒻}\left(s=t\right) $$

Convective surface heat flux at time t: ℋₘᵢₙ during the first minute, then a four-step one-minute ramp to Q𝒻κWη, held until t𝒻 and ℋₑₙd afterwards (the Fortran heating table indexed by the minute containing t).

$$ r₀ = \sqrt{\frac{A𝒻}{π₀}} $$

Radius of the circular burning area, sqrt(A𝒻/π₀).

$$ f₀ = \frac{g \cdot Rᴅ \cdot ℋ₀ \cdot A𝒻}{\mathrm{index}\left(pₑ, 1\right) \cdot κp \cdot cₚᴅ \cdot π₀} $$

Buoyancy flux of the circular source from the convective heat flux and the surface state.

$$ a₀ = \frac{5}{6 \cdot α} $$

Similarity factor 5/(6α).

$$ B₀ = cᵦ \cdot α \cdot f₀ $$

Buoyancy-flux scale cᵦαf₀.

$$ b₀ = B₀^{\frac{1}{3}} $$

Cube root of B₀.

$$ ℓ₀ = a₀ \cdot r₀ $$

Virtual-origin distance a₀r₀ below the surface.

$$ w₀ = \frac{a₀ \cdot b₀}{ℓ₀^{\frac{1}{3}}} $$

Lower-boundary vertical velocity of the similarity solution, a₀b₀/ℓ₀^(1/3).

$$ β₀ = \mathrm{ifelse}\left(ℋ₀ = 0, 0, \frac{a₀ \cdot f₀}{g \cdot b₀ \cdot ℓ₀^{\frac{5}{3}}}\right) $$

Density (temperature) correction of the similarity solution; set to its limit 0 when ℋ₀ = 0, where the general expression is 0/0.

$$ T₀⁽⁰⁾ = \frac{\mathrm{index}\left(Tₑ, 1\right)}{1 - β₀} $$

Lower-boundary plume temperature before phase changes, Tₑ[1]/(1 − β₀).

$$ φₘ = 0.5 + \frac{\mathrm{floor}\left(m𝒻\right)}{100} $$

Fuel-moisture factor 1/2 + floor(m𝒻)/100 of the fire water source.

$$ δq₀ = \mathrm{ifelse}\left(ℋ₀ = 0, 0, \frac{κg \cdot ℋ₀ \cdot φₘ}{h𝒻 \cdot η \cdot w₀ \cdot \frac{κρ \cdot \mathrm{index}\left(pₑ, 1\right)}{T₀⁽⁰⁾}}\right) $$

Water-vapor increment supplied by the fire (combustion water plus fuel moisture) spread over the boundary mass flux w₀ρ; zero when ℋ₀ = 0.

$$ qᵥ₀⁽⁰⁾ = \mathrm{min}\left(\mathrm{index}\left(qᵥₑ, 1\right) + δq₀, \mathrm{index}\left(qₛ, 1\right)\right) $$

Lower-boundary vapor before phase changes: ambient plus fire vapor, capped at saturation.

$$ qₗ₀⁽⁰⁾ = \mathrm{max}\left(\mathrm{index}\left(qᵥₑ, 1\right) + δq₀ - \mathrm{index}\left(qₛ, 1\right), 0\right) $$

Lower-boundary cloud water before phase changes: the fire vapor in excess of saturation.

$$ T⁽⁰⁾ = \mathrm{makearray}\left(\right) $$

Temperature before microphysical adjustment: T₀⁽⁰⁾ at level 1, Tₑ plus the state above.

$$ qᵥ⁽⁰⁾ = \mathrm{makearray}\left(\right) $$

Vapor before microphysical adjustment: qᵥ₀⁽⁰⁾ at level 1, the prognostic state above.

$$ qₗ⁽⁰⁾ = \mathrm{makearray}\left(\right) $$

Cloud water before microphysical adjustment: qₗ₀⁽⁰⁾ at level 1, the prognostic state above.

$$ qᵣ⁽⁰⁾ = \mathrm{makearray}\left(\right) $$

Rain before microphysical adjustment. At level 1 the boundary takes the rain of level 2 (the Fortran “soaks up” hydrometeors at the surface).

$$ qᵢ⁽⁰⁾ = \mathrm{makearray}\left(\right) $$

Ice before microphysical adjustment; level 1 takes the ice of level 2.

$$ T = \mathrm{makearray}\left(\right) $$

Physical plume temperature: the adjusted boundary value T⁽⁶⁾[1] at level 1, Tₑ plus the state above.

$$ qᵥ = \mathrm{makearray}\left(\right) $$

Physical water-vapor mixing ratio (adjusted boundary value at level 1).

$$ qₗ = \mathrm{makearray}\left(\right) $$

Physical cloud-water mixing ratio (adjusted boundary value at level 1).

$$ qᵣ = \mathrm{makearray}\left(\right) $$

Physical rainwater mixing ratio (adjusted boundary value at level 1).

$$ qᵢ = \mathrm{makearray}\left(\right) $$

Physical cloud-ice mixing ratio (adjusted boundary value at level 1).

$$ u = \mathrm{makearray}\left(\right) $$

Physical horizontal plume velocity; zero at the lower boundary.

$$ r = \mathrm{makearray}\left(\right) $$

Physical plume radius; the source radius r₀ at the lower boundary.

$$ c = \mathrm{makearray}\left(\right) $$

Passive tracer; c₀ at the lower boundary.

$$ w = \mathrm{makearray}\left(\right) $$

Physical vertical velocity; w₀ at the lower boundary.

$$ ρ = \frac{κρ \cdot pₑ}{T⁽⁰⁾} $$

Air density κρpₑ/T⁽⁰⁾ (the Fortran RHO, which at level 1 is evaluated before the boundary phase changes).

$$ eₛ = \mathrm{eₛ}\left(X=T⁽⁰⁾\right) $$

Saturation vapor pressure (Tetens) at T⁽⁰⁾.

$$ qₛ = \mathrm{qₛ}\left(X=T⁽⁰⁾, P=pₑ\right) $$

Saturation water-vapor mixing ratio at T⁽⁰⁾ and pₑ.

$$ Gₛ = \mathrm{D}\left(qₛ\right) $$

Centred vertical gradient of qₛ, zero at both boundaries.

$$ w̄ = \mathrm{makearray}\left(\right) $$

Vertical velocity averaged to the scalar levels; w₀ at level 1 and zero at the top.

$$ τᵏ = \mathrm{makearray}\left(\right) $$

Microphysical adjustment interval by level: 3τμ at the lower boundary (where the Fortran applies one full step instead of three substeps) and τμ above.

$$ cᵢ = \mathrm{faq}\left(\right) $$

Ice ventilation coefficient at each scalar level, from the vertical velocity of the face below (w₀ at level 1).

$$ qₗᶜ = \mathrm{ifelse}\left(\mathrm{<=}\left(\mathrm{max}\left(qₗ⁽⁰⁾, 0\right), qε\right), 0.0, \mathrm{max}\left(qₗ⁽⁰⁾, 0\right)\right) $$

Nonnegative cloud-water mixing ratio retained above the threshold qε; smaller values are set to zero.

$$ qᵣᶜ = \mathrm{ifelse}\left(\mathrm{<=}\left(\mathrm{max}\left(qᵣ⁽⁰⁾, 0\right), qε\right), 0.0, \mathrm{max}\left(qᵣ⁽⁰⁾, 0\right)\right) $$

Nonnegative rainwater mixing ratio retained above the threshold qε; smaller values are set to zero.

$$ qᵢᶜ = \mathrm{ifelse}\left(\mathrm{<=}\left(\mathrm{max}\left(qᵢ⁽⁰⁾, 0\right), qε\right), 0.0, \mathrm{max}\left(qᵢ⁽⁰⁾, 0\right)\right) $$

Nonnegative ice mixing ratio retained above the threshold qε; smaller values are set to zero.

$$ δq⁽⁰⁾ = qₛ - \mathrm{max}\left(qᵥ⁽⁰⁾, 0\right) $$

Saturation mixing ratio minus water-vapor mixing ratio before phase changes; positive values indicate a vapor deficit.

$$ Eₘ = \left|w̄ \cdot Gₛ\right| \cdot τᵏ $$

Transport-related capacity for cloud condensation or evaporation over the interval τᵏ, based on vertical motion and the saturation-mixing-ratio gradient.

$$ Eₗ = \mathrm{min}\left(Eₘ, qₗᶜ\right) $$

Cloud-water evaporation capacity, limited by the transport-related capacity and available cloud water.

$$ qᵥ⁽¹⁾ = \mathrm{qᵥ⁽¹⁾}\left(δq⁽⁰⁾=δq⁽⁰⁾, v⁽⁰⁾=\mathrm{max}\left(qᵥ⁽⁰⁾, 0\right), Eₘ=Eₘ, qₛ=qₛ, Eₗ=Eₗ\right) $$

Water-vapor mixing ratio after stage 1: condensation of excess vapor to cloud water, or evaporation of cloud water into unsaturated air.

$$ qₗ⁽¹⁾ = \mathrm{qₗ⁽¹⁾}\left(δq⁽⁰⁾=δq⁽⁰⁾, qₗᶜ=qₗᶜ, Eₘ=Eₘ, Eₗ=Eₗ\right) $$

Cloud-water mixing ratio after stage 1 (condensation or evaporation). Cloud water loads the plume, reducing buoyancy, and is the source of rain.

$$ T⁽¹⁾ = \mathrm{T⁽¹⁾}\left(δq⁽⁰⁾=δq⁽⁰⁾, T⁽⁰⁾=T⁽⁰⁾, Eₘ=Eₘ, Eₗ=Eₗ\right) $$

Temperature after stage 1. Condensation releases latent heat that warms the plume and adds buoyancy; cloud evaporation cools it.

$$ δq⁽¹⁾ = \mathrm{δq⁽¹⁾}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ\right) $$

Remaining nonnegative vapor deficit after cloud condensation or evaporation.

$$ Qᵣ = \mathrm{faq}\left(\right) $$

Vapor deficit qₛ − qᵥ⁽¹⁾ after the cloud stage, as a mass concentration (times ρ); it drives rain evaporation.

$$ Eᵣ⁽⁰⁾ = \mathrm{Eᵣ⁽⁰⁾}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ, τ=τᵏ, Qᵣ=Qᵣ, ρ=ρ\right) $$

Potential rainwater evaporation over the interval τᵏ, before limitation by available rain and vapor deficit. Superscript (0) identifies the potential transfer.

$$ Eᵣ = \mathrm{min}\left(Eᵣ⁽⁰⁾, qᵣᶜ\right) $$

Rainwater evaporation amount limited by available rain; the subsequent phase updates also limit transfer by the remaining vapor deficit.

$$ qᵥ⁽²⁾ = \mathrm{qᵥ⁽²⁾}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ, δq⁽¹⁾=δq⁽¹⁾, Eᵣ=Eᵣ, qₛ=qₛ, qᵥ⁽¹⁾=qᵥ⁽¹⁾\right) $$

Water-vapor mixing ratio after stage 2, evaporation of rain into unsaturated air.

$$ qᵣ⁽²⁾ = \mathrm{qᵣ⁽²⁾}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ, δq⁽¹⁾=δq⁽¹⁾, Eᵣ=Eᵣ, Eᵣ⁽⁰⁾=Eᵣ⁽⁰⁾\right) $$

Rainwater mixing ratio after stage 2 (rain evaporation).

$$ T⁽²⁾ = \mathrm{T⁽²⁾}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ, T⁽¹⁾=T⁽¹⁾, δq⁽¹⁾=δq⁽¹⁾, Eᵣ=Eᵣ\right) $$

Temperature after stage 2. Rain evaporation absorbs latent heat and cools the plume, reducing buoyancy.

$$ δq⁽²⁾ = \mathrm{δq⁽²⁾}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ, δq⁽¹⁾=δq⁽¹⁾, Eᵣ=Eᵣ\right) $$

Remaining nonnegative vapor deficit after rain evaporation.

$$ Dᵢ = \mathrm{Dᵢ}\left(eₛ=eₛ\right) $$

Normalized resistance to vapor transfer between air and ice, with saturation vapor pressure scaled by 1 kPa.

$$ 𝒩ᵢ⁻ = \mathrm{𝒩ᵢ⁻}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ, δq⁽¹⁾=δq⁽¹⁾, Eᵣ=Eᵣ, qᵢᶜ=qᵢᶜ, ρ=ρ, δq⁽²⁾=δq⁽²⁾, qₛ=qₛ\right) $$

Normalized ice-sublimation driving term (κρᵢ/ρ)^0.475 (qᵥ⁽²⁾/qₛ − 1) qᵢᶜ^0.525 cᵢₛ, negative in subsaturated air. Dimensionless.

$$ Eᵢ⁽⁰⁾ = \mathrm{faq}\left(\right) $$

Potential ice sublimation over the interval τᵏ, before limitation by available ice and vapor deficit. Superscript (0) identifies the potential transfer.

$$ Eᵢ = \mathrm{min}\left(Eᵢ⁽⁰⁾, qᵢᶜ\right) $$

Ice-sublimation amount limited by available ice; the subsequent phase updates also limit transfer by the remaining vapor deficit.

$$ qᵥ⁽³⁾ = \mathrm{qᵥ⁽³⁾}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ, δq⁽¹⁾=δq⁽¹⁾, Eᵣ=Eᵣ, qᵢᶜ=qᵢᶜ, δq⁽²⁾=δq⁽²⁾, Eᵢ=Eᵢ, qₛ=qₛ, qᵥ⁽²⁾=qᵥ⁽²⁾\right) $$

Water-vapor mixing ratio after stage 3, sublimation of ice into unsaturated air.

$$ qᵢ⁽³⁾ = \mathrm{qᵢ⁽³⁾}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ, δq⁽¹⁾=δq⁽¹⁾, Eᵣ=Eᵣ, qᵢᶜ=qᵢᶜ, δq⁽²⁾=δq⁽²⁾, Eᵢ=Eᵢ, Eᵢ⁽⁰⁾=Eᵢ⁽⁰⁾\right) $$

Ice mixing ratio after stage 3 (sublimation).

$$ T⁽³⁾ = \mathrm{T⁽³⁾}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ, δq⁽¹⁾=δq⁽¹⁾, Eᵣ=Eᵣ, qᵢᶜ=qᵢᶜ, T⁽²⁾=T⁽²⁾, δq⁽²⁾=δq⁽²⁾, Eᵢ=Eᵢ\right) $$

Temperature after stage 3. Ice sublimation absorbs latent heat and cools the plume.

$$ 𝒩ᵢ⁺ = \mathrm{𝒩ᵢ⁺}\left(T⁽³⁾=T⁽³⁾, qᵥ⁽³⁾=qᵥ⁽³⁾, qₛ=qₛ, ρ=ρ, qᵢ⁽³⁾=qᵢ⁽³⁾\right) $$

Normalized driving term for vapor deposition onto ice, combining supersaturation, ice content and air density scaled by 1 g/m³.

$$ Δqₛ = \mathrm{Δqₛ}\left(T⁽³⁾=T⁽³⁾, qᵥ⁽³⁾=qᵥ⁽³⁾, qₛ=qₛ, 𝒩ᵢ⁺=𝒩ᵢ⁺, Dᵢ=Dᵢ, τ=τᵏ\right) $$

Potential vapor deposition onto ice over the interval τᵏ; available vapor limits the subsequent phase updates.

$$ qᵥ⁽⁴⁾ = \mathrm{qᵥ⁽⁴⁾}\left(T⁽³⁾=T⁽³⁾, qᵥ⁽³⁾=qᵥ⁽³⁾, qₛ=qₛ, Δqₛ=Δqₛ\right) $$

Water-vapor mixing ratio after stage 4, deposition of excess vapor onto ice at or below T𝒻.

$$ qᵢ⁽⁴⁾ = \mathrm{qᵢ⁽⁴⁾}\left(T⁽³⁾=T⁽³⁾, qᵥ⁽³⁾=qᵥ⁽³⁾, qₛ=qₛ, Δqₛ=Δqₛ, qᵢ⁽³⁾=qᵢ⁽³⁾\right) $$

Ice mixing ratio after stage 4 (vapor deposition onto ice).

$$ T⁽⁴⁾ = \mathrm{T⁽⁴⁾}\left(T⁽³⁾=T⁽³⁾, qᵥ⁽³⁾=qᵥ⁽³⁾, qₛ=qₛ, Δqₛ=Δqₛ\right) $$

Temperature after stage 4. Deposition onto ice releases latent heat of sublimation, warming the plume and adding buoyancy.

$$ Δq𝒻 = \mathrm{Δq𝒻}\left(qᵣ⁽²⁾=qᵣ⁽²⁾, qᵥ⁽⁴⁾=qᵥ⁽⁴⁾, qₛ=qₛ, T⁽⁴⁾=T⁽⁴⁾, τ=τᵏ\right) $$

Potential rain-to-ice transfer by glaciation over the interval τᵏ; available rain limits the subsequent phase updates.

$$ qᵢ⁽⁵⁾ = \mathrm{qᵢ⁽⁵⁾}\left(qᵣ⁽²⁾=qᵣ⁽²⁾, qᵥ⁽⁴⁾=qᵥ⁽⁴⁾, qₛ=qₛ, T⁽⁴⁾=T⁽⁴⁾, qᵢ⁽⁴⁾=qᵢ⁽⁴⁾, Δq𝒻=Δq𝒻\right) $$

Ice mixing ratio after stage 5, freezing of rain to ice (glaciation) at or below T𝒻 in saturated air.

$$ qᵣ⁽⁵⁾ = \mathrm{qᵣ⁽⁵⁾}\left(qᵣ⁽²⁾=qᵣ⁽²⁾, qᵥ⁽⁴⁾=qᵥ⁽⁴⁾, qₛ=qₛ, T⁽⁴⁾=T⁽⁴⁾, Δq𝒻=Δq𝒻\right) $$

Rainwater mixing ratio after stage 5, in which part of the rain freezes to ice (glaciation) at or below T𝒻. Freezing matters for plume rise because it releases latent heat (see T⁽⁵⁾) that adds buoyancy to high, cold plumes.

$$ T⁽⁵⁾ = \mathrm{T⁽⁵⁾}\left(qᵣ⁽²⁾=qᵣ⁽²⁾, qᵥ⁽⁴⁾=qᵥ⁽⁴⁾, qₛ=qₛ, T⁽⁴⁾=T⁽⁴⁾, Δq𝒻=Δq𝒻\right) $$

Temperature after stage 5. Freezing of rain releases latent heat of fusion, warming the plume and adding buoyancy.

$$ Δqₘ = \mathrm{faq}\left(\right) $$

Potential ice-to-rain transfer by melting over the interval τᵏ; available ice limits the subsequent phase updates.

$$ qᵣ⁽⁶⁾ = \mathrm{qᵣ⁽⁶⁾}\left(qᵢ⁽⁵⁾=qᵢ⁽⁵⁾, T⁽⁵⁾=T⁽⁵⁾, qᵣ⁽⁵⁾=qᵣ⁽⁵⁾, Δqₘ=Δqₘ\right) $$

Rainwater mixing ratio after stage 6, melting of ice to rain at or above Tₘ.

$$ qᵢ⁽⁶⁾ = \mathrm{qᵢ⁽⁶⁾}\left(qᵢ⁽⁵⁾=qᵢ⁽⁵⁾, T⁽⁵⁾=T⁽⁵⁾, Δqₘ=Δqₘ\right) $$

Ice mixing ratio after stage 6 (melting).

$$ T⁽⁶⁾ = \mathrm{T⁽⁶⁾}\left(qᵢ⁽⁵⁾=qᵢ⁽⁵⁾, T⁽⁵⁾=T⁽⁵⁾, Δqₘ=Δqₘ\right) $$

Temperature after stage 6. Melting absorbs latent heat of fusion and cools the plume.

$$ mₗ = ρ \cdot qₗ⁽¹⁾ $$

Cloud-water mass concentration after condensation or evaporation, before warm-rain conversion.

$$ mᵣ = ρ \cdot qᵣ⁽⁶⁾ $$

Rainwater mass concentration after the phase-change sequence through ice melting, before warm-rain conversion.

$$ 𝒞ₐ = \mathrm{𝒞ₐ}\left(T⁽⁶⁾=T⁽⁶⁾, qₗ⁽¹⁾=qₗ⁽¹⁾, qᵣ⁽⁶⁾=qᵣ⁽⁶⁾, mₗ=mₗ, mᵣ=mᵣ\right) $$

Rate of rainwater mass production by accretion of cloud water.

$$ 𝒞ᵤ = \mathrm{𝒞ᵤ}\left(T⁽⁶⁾=T⁽⁶⁾, qₗ⁽¹⁾=qₗ⁽¹⁾, mₗ=mₗ\right) $$

Rate of rainwater mass production by autoconversion of cloud water.

$$ Δqᵣ = \mathrm{Δqᵣ}\left(T⁽⁶⁾=T⁽⁶⁾, qₗ⁽¹⁾=qₗ⁽¹⁾, 𝒞ᵤ=𝒞ᵤ, 𝒞ₐ=𝒞ₐ, τ=τᵏ, ρ=ρ\right) $$

Potential cloud-to-rain transfer by autoconversion and accretion over the interval τᵏ; available cloud water limits the subsequent updates.

$$ qₗμ = \mathrm{qₗμ}\left(T⁽⁶⁾=T⁽⁶⁾, qₗ⁽¹⁾=qₗ⁽¹⁾, Δqᵣ=Δqᵣ\right) $$

Cloud-water mixing ratio after phase changes and warm-rain conversion by autoconversion and accretion.

$$ qᵣμ = \mathrm{qᵣμ}\left(T⁽⁶⁾=T⁽⁶⁾, qₗ⁽¹⁾=qₗ⁽¹⁾, qᵣ⁽⁶⁾=qᵣ⁽⁶⁾, Δqᵣ=Δqᵣ\right) $$

Rainwater mixing ratio after phase changes and warm-rain conversion by autoconversion and accretion.

$$ Mₜ = \frac{χμ \cdot \left(T⁽⁶⁾ - T⁽⁰⁾\right)}{τᵏ} $$

Microphysical tendency of temperature (latent heating): the change of the staged adjustment over τᵏ divided by τᵏ, scaled by χμ.

$$ Mᵥ = \frac{χμ \cdot \left(qᵥ⁽⁴⁾ - qᵥ⁽⁰⁾\right)}{τᵏ} $$

Microphysical tendency of water vapor: the change of the staged adjustment over τᵏ divided by τᵏ, scaled by χμ.

$$ Mₗ = \frac{χμ \cdot \left(qₗμ - qₗ⁽⁰⁾\right)}{τᵏ} $$

Microphysical tendency of cloud water: the change of the staged adjustment over τᵏ divided by τᵏ, scaled by χμ.

$$ Mᵣ = \frac{χμ \cdot \left(qᵣμ - qᵣ⁽⁰⁾\right)}{τᵏ} $$

Microphysical tendency of rain: the change of the staged adjustment over τᵏ divided by τᵏ, scaled by χμ.

$$ Mᵢ = \frac{χμ \cdot \left(qᵢ⁽⁶⁾ - qᵢ⁽⁰⁾\right)}{τᵏ} $$

Microphysical tendency of ice: the change of the staged adjustment over τᵏ divided by τᵏ, scaled by χμ.

$$ Λᵥ = \frac{Lᵥ}{cₚφ} $$

Latent heat of condensation divided by the phase-change heat capacity.

$$ Λₛ = \frac{Lₛ}{cₚφ} $$

Latent heat of sublimation divided by the phase-change heat capacity.

$$ Λ𝒻 = \frac{L𝒻}{cₚφ} $$

Latent heat of fusion divided by the phase-change heat capacity.

$$ uₐ = χ𝑤 \cdot uₑ $$

Ambient wind acting on the plume, χ𝑤uₑ.

$$ λ = \frac{2 \cdot α \cdot \left|w̄\right|}{\mathrm{max}\left(r, rₘᵢₙ\right)} $$

Entrainment rate 2α|w̄|/max(r, rₘᵢₙ).

$$ λ𝑤 = \frac{κλ \cdot \left|uₐ - u\right|}{\mathrm{max}\left(r, rₘᵢₙ\right)} $$

Wind-driven (dynamic) entrainment rate (2/π)|uₐ − u|/max(r, rₘᵢₙ).

$$ ℬₜ = \mathrm{faq}\left(\right) $$

Buoyancy on the scalar levels: gᵦ times the relative virtual-temperature excess minus the condensate loading.

$$ ℬ = \mathrm{makearray}\left(\right) $$

Buoyancy averaged to the velocity levels; zero at the boundary levels.

$$ E𝑤 = \mathrm{makearray}\left(\right) $$

Vertical-momentum loss by radial entrainment (with the virtual-mass factor 1/1.5) and by the wind-driven exchange, at the velocity levels.

$$ fρ = \mathrm{makearray}\left(\right) $$

Air mass flux through the velocity faces, w times the mean density of the adjacent scalar levels; w₀ρ[1] at the surface face and zero at the top.

$$ A𝑤 = \mathrm{makearray}\left(\right) $$

Momentum advection in flux form on the velocity levels (the Fortran vel_advectc stencil).

$$ ν = \mathrm{faq}\left(\right) $$

Eddy diffusivity, decreasing linearly with level index from ν₀ to the floor νₘᵢₙ, scaled by χᵥ.

$$ nₗ = \mathrm{faq}\left(\right) $$

Number of levels on each grid (the length of the index sets zt and zm).

$$ 𝒱𝑤 = \mathrm{V}\left(q=w, ζ=z𝑤\right) $$

Eddy diffusion of vertical velocity.

$$ ℱₜ = \mathrm{F}\left(q=T\right) $$

Upward advective flux of temperature through the velocity faces.

$$ Aₜ = \frac{-\mathrm{D}\left(ℱₜ\right) + T \cdot \mathrm{D}\left(fρ\right)}{ρ \cdot κkg} $$

Vertical-advection tendency of temperature: (−∂ℱ/∂z + T ∂fρ/∂z)/ρ.

$$ 𝒱ₜ = \mathrm{V}\left(q=T, ζ=zₜ\right) $$

Eddy-diffusion tendency of temperature.

$$ ℱᵥ = \mathrm{F}\left(q=qᵥ\right) $$

Upward advective flux of water vapor through the velocity faces.

$$ Aᵥ = \frac{-\mathrm{D}\left(ℱᵥ\right) + qᵥ \cdot \mathrm{D}\left(fρ\right)}{ρ \cdot κkg} $$

Vertical-advection tendency of water vapor: (−∂ℱ/∂z + qᵥ ∂fρ/∂z)/ρ.

$$ 𝒱ᵥ = \mathrm{V}\left(q=qᵥ, ζ=zₜ\right) $$

Eddy-diffusion tendency of water vapor.

$$ ℱₗ = \mathrm{F}\left(q=qₗ\right) $$

Upward advective flux of cloud water through the velocity faces.

$$ Aₗ = \frac{-\mathrm{D}\left(ℱₗ\right) + qₗ \cdot \mathrm{D}\left(fρ\right)}{ρ \cdot κkg} $$

Vertical-advection tendency of cloud water: (−∂ℱ/∂z + qₗ ∂fρ/∂z)/ρ.

$$ 𝒱ₗ = \mathrm{V}\left(q=qₗ, ζ=zₜ\right) $$

Eddy-diffusion tendency of cloud water.

$$ ℱᵣ = \mathrm{F}\left(q=qᵣ\right) $$

Upward advective flux of rain through the velocity faces.

$$ Aᵣ = \frac{-\mathrm{D}\left(ℱᵣ\right) + qᵣ \cdot \mathrm{D}\left(fρ\right)}{ρ \cdot κkg} $$

Vertical-advection tendency of rain: (−∂ℱ/∂z + qᵣ ∂fρ/∂z)/ρ.

$$ 𝒱ᵣ = \mathrm{V}\left(q=qᵣ, ζ=zₜ\right) $$

Eddy-diffusion tendency of rain.

$$ ℱᵢ = \mathrm{F}\left(q=qᵢ\right) $$

Upward advective flux of cloud ice through the velocity faces.

$$ Aᵢ = \frac{-\mathrm{D}\left(ℱᵢ\right) + qᵢ \cdot \mathrm{D}\left(fρ\right)}{ρ \cdot κkg} $$

Vertical-advection tendency of cloud ice: (−∂ℱ/∂z + qᵢ ∂fρ/∂z)/ρ.

$$ 𝒱ᵢ = \mathrm{V}\left(q=qᵢ, ζ=zₜ\right) $$

Eddy-diffusion tendency of cloud ice.

$$ ℱᵤ = \mathrm{F}\left(q=u\right) $$

Upward advective flux of horizontal velocity through the velocity faces.

$$ Aᵤ = \frac{-\mathrm{D}\left(ℱᵤ\right) + u \cdot \mathrm{D}\left(fρ\right)}{ρ \cdot κkg} $$

Vertical-advection tendency of horizontal velocity: (−∂ℱ/∂z + u ∂fρ/∂z)/ρ.

$$ 𝒱ᵤ = \mathrm{V}\left(q=u, ζ=zₜ\right) $$

Eddy-diffusion tendency of horizontal velocity.

$$ ℱᵣₐ = \mathrm{F}\left(q=r\right) $$

Upward advective flux of plume radius through the velocity faces.

$$ Aᵣₐ = \frac{-\mathrm{D}\left(ℱᵣₐ\right) + r \cdot \mathrm{D}\left(fρ\right)}{ρ \cdot κkg} $$

Vertical-advection tendency of plume radius: (−∂ℱ/∂z + r ∂fρ/∂z)/ρ.

$$ 𝒱ᵣₐ = \mathrm{V}\left(q=r, ζ=zₜ\right) $$

Eddy-diffusion tendency of plume radius.

$$ ℱ𝒸 = \mathrm{F}\left(q=c\right) $$

Upward advective flux of passive tracer through the velocity faces.

$$ A𝒸 = \frac{-\mathrm{D}\left(ℱ𝒸\right) + c \cdot \mathrm{D}\left(fρ\right)}{ρ \cdot κkg} $$

Vertical-advection tendency of passive tracer: (−∂ℱ/∂z + c ∂fρ/∂z)/ρ.

$$ 𝒱𝒸 = \mathrm{V}\left(q=c, ζ=zₜ\right) $$

Eddy-diffusion tendency of passive tracer.

$$ 𝒮ᵣ = \mathrm{S}\left(q=qᵣ, v=vᵣ\right) $$

Rain sedimentation tendency (fall speed vᵣ).

$$ 𝒮ᵢ = \mathrm{S}\left(q=qᵢ, v=vᵢ\right) $$

Ice sedimentation tendency (fall speed vᵢ).

$$ σᴅ = \mathrm{faq}\left(\right) $$

Rayleigh sponge rate above the highest plume top reached so far: zero below height (kₜ − 1)Δz, rising linearly over the depth ℋᴅ to 1/τᴅ and constant above (the Fortran sponge occupies the 20 levels above kkmax, the top of its active column, and leaves the levels above that unchanged).

$$ R𝑤 = \mathrm{faq}\left(\right) $$

Vertical-velocity tendency: advection, buoyancy, entrainment drag, diffusion and sponge damping.

$$ Rₜ = Aₜ + 𝒱ₜ + \mathrm{E}\left(q=T, qₑ=Tₑ\right) - w̄ \cdot Γᴅ + σᴅ \cdot \left(Tₑ - T\right) + Mₜ $$

Temperature tendency: advection, diffusion, entrainment, dry-adiabatic cooling of rising air, sponge relaxation and latent heating.

$$ Rᵥ = Aᵥ + 𝒱ᵥ + \mathrm{E}\left(q=qᵥ, qₑ=qᵥₑ\right) + Mᵥ $$

Water-vapor tendency.

$$ Rₗ = Aₗ + 𝒱ₗ + \mathrm{E}\left(q=qₗ, qₑ=q∅\right) + Mₗ $$

Cloud-water tendency.

$$ Rᵣ = Aᵣ + 𝒱ᵣ + \mathrm{E}\left(q=qᵣ, qₑ=q∅\right) + Mᵣ + 𝒮ᵣ $$

Rain tendency, including sedimentation.

$$ Rᵢ = Aᵢ + 𝒱ᵢ + \mathrm{E}\left(q=qᵢ, qₑ=q∅\right) + Mᵢ + 𝒮ᵢ $$

Ice tendency, including sedimentation.

$$ Rᵤ = Aᵤ + 𝒱ᵤ + \mathrm{E}\left(q=u, qₑ=uₐ\right) $$

Horizontal-velocity tendency: advection, diffusion and exchange with the ambient wind.

$$ Rᵣₐ = Aᵣₐ + 𝒱ᵣₐ + aᵣ₁ \cdot λ \cdot r + \frac{\left|uₐ - u\right|}{πᵣ} $$

Radius tendency: advection, diffusion, entrainment growth and wind-shear growth.

$$ R𝒸 = A𝒸 + 𝒱𝒸 + \mathrm{E}\left(q=c, qₑ=q∅\right) $$

Tracer tendency: advection, diffusion and dilution by entrained tracer-free air.

$$ j⋆ = \mathrm{faq}\left(\right) $$

First velocity level with w ≤ wₘᵢₙ (nₗ if none).

$$ hₚ = \left(j⋆ - 1\right) \cdot Δz $$

Plume-top height (j⋆ − 1)Δz: the height of the first velocity level with w ≤ wₘᵢₙ (the Fortran ztop).

$$ jᶜ = \mathrm{ifelse}\left(\mathrm{<=}\left(j⋆, 1\right), 1, j⋆ - 1 + \frac{\mathrm{index}\left(w, \mathrm{max}\left(j⋆, 2\right) - 1\right) - wₘᵢₙ}{\mathrm{index}\left(w, \mathrm{max}\left(j⋆, 2\right) - 1\right) - \mathrm{index}\left(w, \mathrm{max}\left(j⋆, 2\right)\right)}\right) $$

Plume-top level as a continuous number: the position between velocity levels j⋆ − 1 and j⋆ at which w, interpolated linearly, falls to wₘᵢₙ (1 when the lower boundary is already below wₘᵢₙ). Unlike j⋆ it does not jump when the plume top passes a level.

$$ 𝒲 = \mathrm{faq}\left(\right) $$

Maximum absolute vertical velocity.

Equations

$$ \mathrm{D}\left(velocity_{state}\right) = \mathrm{Ω}\left(f=R𝑤, o=\mathrm{const}\left(\right)\right) $$ $$ \mathrm{D}\left(temperature_{state}\right) = \mathrm{Ω}\left(f=Rₜ, o=\mathrm{const}\left(\right)\right) $$ $$ \mathrm{D}\left(vapor_{state}\right) = \mathrm{Ω}\left(f=κg \cdot Rᵥ, o=\mathrm{const}\left(\right)\right) $$ $$ \mathrm{D}\left(cloud_{state}\right) = \mathrm{Ω}\left(f=κg \cdot Rₗ, o=\mathrm{const}\left(\right)\right) $$ $$ \mathrm{D}\left(rain_{state}\right) = \mathrm{Ω}\left(f=κg \cdot Rᵣ, o=\mathrm{const}\left(\right)\right) $$ $$ \mathrm{D}\left(ice_{state}\right) = \mathrm{Ω}\left(f=κg \cdot Rᵢ, o=\mathrm{const}\left(\right)\right) $$ $$ \mathrm{D}\left(horizontal_{speed\,state}\right) = \mathrm{Ω}\left(f=Rᵤ, o=\mathrm{const}\left(\right)\right) $$ $$ \mathrm{D}\left(radius_{state}\right) = \mathrm{Ω}\left(f=\frac{Rᵣₐ}{κkm}, o=\mathrm{const}\left(\right)\right) $$ $$ \mathrm{D}\left(tracer_{state}\right) = \mathrm{Ω}\left(f=\frac{R𝒸}{c₀}, o=\mathrm{const}\left(\right)\right) $$ $$ \mathrm{ic}\left(velocity_{state}\right) = \mathrm{faq}\left(\right) $$ $$ \mathrm{ic}\left(temperature_{state}\right) = \mathrm{faq}\left(\right) $$ $$ \mathrm{ic}\left(vapor_{state}\right) = κg \cdot qᵥₑ $$ $$ \mathrm{ic}\left(cloud_{state}\right) = \mathrm{faq}\left(\right) $$ $$ \mathrm{ic}\left(rain_{state}\right) = \mathrm{faq}\left(\right) $$ $$ \mathrm{ic}\left(ice_{state}\right) = \mathrm{faq}\left(\right) $$ $$ \mathrm{ic}\left(horizontal_{speed\,state}\right) = \mathrm{faq}\left(\right) $$ $$ \mathrm{ic}\left(radius_{state}\right) = \mathrm{faq}\left(\right) $$ $$ \mathrm{ic}\left(tracer_{state}\right) = \mathrm{faq}\left(\right) $$ $$ \mathrm{D}\left(kₜ\right) = \frac{\mathrm{max}\left(0, jᶜ - kₜ\right)}{τⱼ} $$ $$ \mathrm{ic}\left(kₜ\right) = 10 $$

Expression Templates

eₛ

Parameters: X

$$ e₀ \cdot e^{\frac{aₑₛ \cdot \mathrm{ΔTᵣ}\left(X=X\right)}{X - Tₑₛ}} $$

qₛ

Parameters: X, P

$$ \frac{εᵥ \cdot \mathrm{eₛ}\left(X=X\right)}{P - \mathrm{eₛ}\left(X=X\right)} $$

Tᵥ

Parameters: X, q

$$ \frac{X \cdot \mathrm{φᵥ}\left(q=q\right)}{1 + q} $$

φᵥ

Parameters: q

$$ 1 + \frac{q}{εᵥ} $$

ΔTᵣ

Parameters: X

$$ X - Tᵣ $$

fᵥᵢ

Parameters: w

$$ cᵢ₀ + \frac{cᵢ₁ \cdot \left|w + vᵢ\right|^{1.5}}{cₘ} $$

E

Parameters: q, qₑ

$$ \mathrm{faq}\left(\right) $$

V

Parameters: q, ζ

$$ \mathrm{makearray}\left(\right) $$

∇ₜ

Parameters: f

$$ \mathrm{makearray}\left(\right) $$

∇𝒻

Parameters: F

$$ \mathrm{makearray}\left(\right) $$

Ω

Parameters: f, o

$$ \mathrm{makearray}\left(\right) $$

ℋ𝒻

Parameters: s

$$ \mathrm{ifelse}\left(\mathrm{<}\left(s, tₘ\right), ℋₘᵢₙ, \mathrm{ifelse}\left(\mathrm{<}\left(s, tᵣ\right), \mathrm{ℋᵣ}\left(s=s\right), \mathrm{ifelse}\left(\mathrm{<=}\left(s, t𝒻\right), Q𝒻 \cdot κW \cdot η, ℋₑₙd\right)\right)\right) $$

ℋᵣ

Parameters: s

$$ \frac{\mathrm{floor}\left(\frac{s}{tₘ}\right) \cdot Q𝒻 \cdot κW \cdot η}{\frac{tᵣ}{tₘ}} $$

zᴵ

Parameters: k

$$ \mathrm{ifelse}\left(k = 1, \mathrm{const}\left(\right), \mathrm{ζₖ}\left(k=k\right) \cdot Δz\right) $$

ζₖ

Parameters: k

$$ k - 1.5 $$

qᵥ⁽¹⁾

Parameters: δq⁽⁰⁾, v⁽⁰⁾, Eₘ, qₛ, Eₗ

$$ \mathrm{ifelse}\left(δq⁽⁰⁾ = 0.0, v⁽⁰⁾, \mathrm{ifelse}\left(\mathrm{<=}\left(δq⁽⁰⁾, 0.0\right), \mathrm{ifelse}\left(\mathrm{>=}\left(Eₘ, \left|δq⁽⁰⁾\right|\right), qₛ, v⁽⁰⁾ - Eₘ\right), \mathrm{ifelse}\left(\mathrm{<=}\left(δq⁽⁰⁾, Eₗ\right), qₛ, v⁽⁰⁾ + Eₗ\right)\right)\right) $$

qₗ⁽¹⁾

Parameters: δq⁽⁰⁾, qₗᶜ, Eₘ, Eₗ

$$ \mathrm{ifelse}\left(δq⁽⁰⁾ = 0.0, qₗᶜ, \mathrm{ifelse}\left(\mathrm{<=}\left(δq⁽⁰⁾, 0.0\right), \mathrm{ifelse}\left(\mathrm{>=}\left(Eₘ, \left|δq⁽⁰⁾\right|\right), qₗᶜ - δq⁽⁰⁾, qₗᶜ + Eₘ\right), \mathrm{ifelse}\left(\mathrm{<=}\left(δq⁽⁰⁾, Eₗ\right), qₗᶜ - δq⁽⁰⁾, \mathrm{ifelse}\left(\mathrm{<=}\left(Eₘ, qₗᶜ\right), qₗᶜ - Eₘ, 0.0\right)\right)\right)\right) $$

T⁽¹⁾

Parameters: δq⁽⁰⁾, T⁽⁰⁾, Eₘ, Eₗ

$$ \mathrm{ifelse}\left(δq⁽⁰⁾ = 0.0, T⁽⁰⁾, \mathrm{ifelse}\left(\mathrm{<=}\left(δq⁽⁰⁾, 0.0\right), \mathrm{ifelse}\left(\mathrm{>=}\left(Eₘ, \left|δq⁽⁰⁾\right|\right), T⁽⁰⁾ - δq⁽⁰⁾ \cdot Λᵥ, T⁽⁰⁾ + Eₘ \cdot Λᵥ\right), T⁽⁰⁾ - \mathrm{ifelse}\left(\mathrm{<=}\left(δq⁽⁰⁾, Eₗ\right), δq⁽⁰⁾, Eₗ\right) \cdot Λᵥ\right)\right) $$

δq⁽¹⁾

Parameters: δq⁽⁰⁾, Eₗ

$$ \mathrm{ifelse}\left(\mathrm{>}\left(δq⁽⁰⁾, 0.0\right), \mathrm{ifelse}\left(\mathrm{<=}\left(δq⁽⁰⁾, Eₗ\right), 0.0, δq⁽⁰⁾ - Eₗ\right), 0.0\right) $$

Eᵣ⁽⁰⁾

Parameters: δq⁽⁰⁾, Eₗ, qᵣᶜ, τ, Qᵣ, ρ

$$ \mathrm{ifelse}\left(\mathrm{χᵣ}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ\right), \frac{τ \cdot aᵣ \cdot Qᵣ \cdot \mathrm{mᵣᶜ}\left(qᵣᶜ=qᵣᶜ, ρ=ρ\right)^{0.65}}{ρ}, 0.0\right) $$

qᵥ⁽²⁾

Parameters: δq⁽⁰⁾, Eₗ, qᵣᶜ, δq⁽¹⁾, Eᵣ, qₛ, qᵥ⁽¹⁾

$$ \mathrm{ifelse}\left(\mathrm{χᵣ}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ\right), \mathrm{ifelse}\left(\mathrm{<=}\left(δq⁽¹⁾, Eᵣ\right), qₛ, qᵥ⁽¹⁾ + Eᵣ\right), qᵥ⁽¹⁾\right) $$

qᵣ⁽²⁾

Parameters: δq⁽⁰⁾, Eₗ, qᵣᶜ, δq⁽¹⁾, Eᵣ, Eᵣ⁽⁰⁾

$$ \mathrm{ifelse}\left(\mathrm{χᵣ}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ\right), \mathrm{ifelse}\left(\mathrm{<=}\left(δq⁽¹⁾, Eᵣ\right), qᵣᶜ - δq⁽¹⁾, \mathrm{ifelse}\left(\mathrm{<=}\left(Eᵣ⁽⁰⁾, qᵣᶜ\right), qᵣᶜ - Eᵣ⁽⁰⁾, 0.0\right)\right), qᵣᶜ\right) $$

T⁽²⁾

Parameters: δq⁽⁰⁾, Eₗ, qᵣᶜ, T⁽¹⁾, δq⁽¹⁾, Eᵣ

$$ \mathrm{ifelse}\left(\mathrm{χᵣ}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ\right), T⁽¹⁾ - \mathrm{ifelse}\left(\mathrm{<=}\left(δq⁽¹⁾, Eᵣ\right), δq⁽¹⁾, Eᵣ\right) \cdot Λᵥ, T⁽¹⁾\right) $$

δq⁽²⁾

Parameters: δq⁽⁰⁾, Eₗ, qᵣᶜ, δq⁽¹⁾, Eᵣ

$$ \mathrm{ifelse}\left(\mathrm{χᵣ}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ\right), \mathrm{ifelse}\left(\mathrm{<=}\left(δq⁽¹⁾, Eᵣ\right), 0.0, δq⁽¹⁾ - Eᵣ\right), δq⁽¹⁾\right) $$

Dᵢ

Parameters: eₛ

$$ aᵢ + \frac{bᵢ}{κₑ \cdot \frac{eₛ}{\mathrm{const}\left(\right)}} $$

𝒩ᵢ⁻

Parameters: δq⁽⁰⁾, Eₗ, qᵣᶜ, δq⁽¹⁾, Eᵣ, qᵢᶜ, ρ, δq⁽²⁾, qₛ

$$ \mathrm{ifelse}\left(\mathrm{χᵢ}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ, δq⁽¹⁾=δq⁽¹⁾, Eᵣ=Eᵣ, qᵢᶜ=qᵢᶜ\right), \frac{κρᵢ}{\frac{ρ}{\mathrm{const}\left(\right)}}^{0.475} \cdot \mathrm{sᵢ⁻}\left(δq⁽²⁾=δq⁽²⁾, qₛ=qₛ\right) \cdot qᵢᶜ^{0.525} \cdot cᵢₛ, 0.0\right) $$

Eᵢ⁽⁰⁾

Parameters: δq⁽⁰⁾, Eₗ, qᵣᶜ, δq⁽¹⁾, Eᵣ, qᵢᶜ, cᵢ, 𝒩ᵢ⁻, Dᵢ, τ

$$ \mathrm{ifelse}\left(\mathrm{χᵢ}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ, δq⁽¹⁾=δq⁽¹⁾, Eᵣ=Eᵣ, qᵢᶜ=qᵢᶜ\right), \frac{\left(-cᵢ\right) \cdot 𝒩ᵢ⁻}{Dᵢ} \cdot \frac{τ}{\mathrm{const}\left(\right)}, 0.0\right) $$

qᵥ⁽³⁾

Parameters: δq⁽⁰⁾, Eₗ, qᵣᶜ, δq⁽¹⁾, Eᵣ, qᵢᶜ, δq⁽²⁾, Eᵢ, qₛ, qᵥ⁽²⁾

$$ \mathrm{ifelse}\left(\mathrm{χᵢ}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ, δq⁽¹⁾=δq⁽¹⁾, Eᵣ=Eᵣ, qᵢᶜ=qᵢᶜ\right), \mathrm{ifelse}\left(\mathrm{<=}\left(δq⁽²⁾, Eᵢ\right), qₛ, qᵥ⁽²⁾ + Eᵢ\right), qᵥ⁽²⁾\right) $$

qᵢ⁽³⁾

Parameters: δq⁽⁰⁾, Eₗ, qᵣᶜ, δq⁽¹⁾, Eᵣ, qᵢᶜ, δq⁽²⁾, Eᵢ, Eᵢ⁽⁰⁾

$$ \mathrm{ifelse}\left(\mathrm{χᵢ}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ, δq⁽¹⁾=δq⁽¹⁾, Eᵣ=Eᵣ, qᵢᶜ=qᵢᶜ\right), \mathrm{ifelse}\left(\mathrm{<=}\left(δq⁽²⁾, Eᵢ\right), qᵢᶜ - δq⁽²⁾, \mathrm{ifelse}\left(\mathrm{<=}\left(Eᵢ⁽⁰⁾, qᵢᶜ\right), qᵢᶜ - Eᵢ⁽⁰⁾, 0.0\right)\right), qᵢᶜ\right) $$

T⁽³⁾

Parameters: δq⁽⁰⁾, Eₗ, qᵣᶜ, δq⁽¹⁾, Eᵣ, qᵢᶜ, T⁽²⁾, δq⁽²⁾, Eᵢ

$$ \mathrm{ifelse}\left(\mathrm{χᵢ}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ, δq⁽¹⁾=δq⁽¹⁾, Eᵣ=Eᵣ, qᵢᶜ=qᵢᶜ\right), T⁽²⁾ - \mathrm{ifelse}\left(\mathrm{<=}\left(δq⁽²⁾, Eᵢ\right), δq⁽²⁾, Eᵢ\right) \cdot Λₛ, T⁽²⁾\right) $$

𝒩ᵢ⁺

Parameters: T⁽³⁾, qᵥ⁽³⁾, qₛ, ρ, qᵢ⁽³⁾

$$ \mathrm{ifelse}\left(\mathrm{χₛ}\left(T⁽³⁾=T⁽³⁾, qᵥ⁽³⁾=qᵥ⁽³⁾, qₛ=qₛ\right), \frac{κρᵢ}{\frac{ρ}{\mathrm{const}\left(\right)}}^{0.475} \cdot \mathrm{sᵢ⁺}\left(qᵥ⁽³⁾=qᵥ⁽³⁾, qₛ=qₛ\right) \cdot qᵢ⁽³⁾^{0.525} \cdot cᵢₛ, 0.0\right) $$

Δqₛ

Parameters: T⁽³⁾, qᵥ⁽³⁾, qₛ, 𝒩ᵢ⁺, Dᵢ, τ

$$ \mathrm{ifelse}\left(\mathrm{χₛ}\left(T⁽³⁾=T⁽³⁾, qᵥ⁽³⁾=qᵥ⁽³⁾, qₛ=qₛ\right), \left|\frac{𝒩ᵢ⁺}{Dᵢ}\right| \cdot \frac{τ}{\mathrm{const}\left(\right)}, 0.0\right) $$

qᵥ⁽⁴⁾

Parameters: T⁽³⁾, qᵥ⁽³⁾, qₛ, Δqₛ

$$ \mathrm{ifelse}\left(\mathrm{χₛ}\left(T⁽³⁾=T⁽³⁾, qᵥ⁽³⁾=qᵥ⁽³⁾, qₛ=qₛ\right), \mathrm{ifelse}\left(\mathrm{<}\left(Δqₛ, qᵥ⁽³⁾\right), qᵥ⁽³⁾ - Δqₛ, 0.0\right), qᵥ⁽³⁾\right) $$

qᵢ⁽⁴⁾

Parameters: T⁽³⁾, qᵥ⁽³⁾, qₛ, Δqₛ, qᵢ⁽³⁾

$$ \mathrm{ifelse}\left(\mathrm{χₛ}\left(T⁽³⁾=T⁽³⁾, qᵥ⁽³⁾=qᵥ⁽³⁾, qₛ=qₛ\right), \mathrm{ifelse}\left(\mathrm{<}\left(Δqₛ, qᵥ⁽³⁾\right), qᵢ⁽³⁾ + Δqₛ, qᵢ⁽³⁾ + qᵥ⁽³⁾\right), qᵢ⁽³⁾\right) $$

T⁽⁴⁾

Parameters: T⁽³⁾, qᵥ⁽³⁾, qₛ, Δqₛ

$$ \mathrm{ifelse}\left(\mathrm{χₛ}\left(T⁽³⁾=T⁽³⁾, qᵥ⁽³⁾=qᵥ⁽³⁾, qₛ=qₛ\right), T⁽³⁾ + \mathrm{ifelse}\left(\mathrm{<}\left(Δqₛ, qᵥ⁽³⁾\right), Δqₛ, qᵥ⁽³⁾\right) \cdot Λₛ, T⁽³⁾\right) $$

Δq𝒻

Parameters: qᵣ⁽²⁾, qᵥ⁽⁴⁾, qₛ, T⁽⁴⁾, τ

$$ \mathrm{ifelse}\left(\mathrm{χ𝒻}\left(qᵣ⁽²⁾=qᵣ⁽²⁾, qᵥ⁽⁴⁾=qᵥ⁽⁴⁾, qₛ=qₛ, T⁽⁴⁾=T⁽⁴⁾\right), τ \cdot a𝒻 \cdot qᵣ⁽²⁾, 0.0\right) $$

qᵢ⁽⁵⁾

Parameters: qᵣ⁽²⁾, qᵥ⁽⁴⁾, qₛ, T⁽⁴⁾, qᵢ⁽⁴⁾, Δq𝒻

$$ \mathrm{ifelse}\left(\mathrm{χ𝒻}\left(qᵣ⁽²⁾=qᵣ⁽²⁾, qᵥ⁽⁴⁾=qᵥ⁽⁴⁾, qₛ=qₛ, T⁽⁴⁾=T⁽⁴⁾\right), qᵢ⁽⁴⁾ + \mathrm{ifelse}\left(\mathrm{<}\left(Δq𝒻, qᵣ⁽²⁾\right), Δq𝒻, qᵣ⁽²⁾\right), qᵢ⁽⁴⁾\right) $$

qᵣ⁽⁵⁾

Parameters: qᵣ⁽²⁾, qᵥ⁽⁴⁾, qₛ, T⁽⁴⁾, Δq𝒻

$$ \mathrm{ifelse}\left(\mathrm{χ𝒻}\left(qᵣ⁽²⁾=qᵣ⁽²⁾, qᵥ⁽⁴⁾=qᵥ⁽⁴⁾, qₛ=qₛ, T⁽⁴⁾=T⁽⁴⁾\right), \mathrm{ifelse}\left(\mathrm{<}\left(Δq𝒻, qᵣ⁽²⁾\right), qᵣ⁽²⁾ - Δq𝒻, 0.0\right), qᵣ⁽²⁾\right) $$

T⁽⁵⁾

Parameters: qᵣ⁽²⁾, qᵥ⁽⁴⁾, qₛ, T⁽⁴⁾, Δq𝒻

$$ \mathrm{ifelse}\left(\mathrm{χ𝒻}\left(qᵣ⁽²⁾=qᵣ⁽²⁾, qᵥ⁽⁴⁾=qᵥ⁽⁴⁾, qₛ=qₛ, T⁽⁴⁾=T⁽⁴⁾\right), T⁽⁴⁾ + Λ𝒻 \cdot \mathrm{ifelse}\left(\mathrm{<}\left(Δq𝒻, qᵣ⁽²⁾\right), Δq𝒻, qᵣ⁽²⁾\right), T⁽⁴⁾\right) $$

Δqₘ

Parameters: qᵢ⁽⁵⁾, T⁽⁵⁾, τ, ρ, cᵢ

$$ \mathrm{ifelse}\left(\mathrm{χₘ}\left(qᵢ⁽⁵⁾=qᵢ⁽⁵⁾, T⁽⁵⁾=T⁽⁵⁾\right), τ \cdot \frac{aₘ}{ρ} \cdot cᵢ \cdot \mathrm{ΔTₘ}\left(T⁽⁵⁾=T⁽⁵⁾\right) \cdot \mathrm{mᵢᶜ}\left(qᵢ⁽⁵⁾=qᵢ⁽⁵⁾, ρ=ρ\right)^{0.525} \cdot cₘ^{-0.42}, 0.0\right) $$

qᵣ⁽⁶⁾

Parameters: qᵢ⁽⁵⁾, T⁽⁵⁾, qᵣ⁽⁵⁾, Δqₘ

$$ \mathrm{ifelse}\left(\mathrm{χₘ}\left(qᵢ⁽⁵⁾=qᵢ⁽⁵⁾, T⁽⁵⁾=T⁽⁵⁾\right), qᵣ⁽⁵⁾ + \mathrm{ifelse}\left(\mathrm{<}\left(Δqₘ, qᵢ⁽⁵⁾\right), Δqₘ, qᵢ⁽⁵⁾\right), qᵣ⁽⁵⁾\right) $$

qᵢ⁽⁶⁾

Parameters: qᵢ⁽⁵⁾, T⁽⁵⁾, Δqₘ

$$ \mathrm{ifelse}\left(\mathrm{χₘ}\left(qᵢ⁽⁵⁾=qᵢ⁽⁵⁾, T⁽⁵⁾=T⁽⁵⁾\right), \mathrm{ifelse}\left(\mathrm{<}\left(Δqₘ, qᵢ⁽⁵⁾\right), qᵢ⁽⁵⁾ - Δqₘ, 0.0\right), qᵢ⁽⁵⁾\right) $$

T⁽⁶⁾

Parameters: qᵢ⁽⁵⁾, T⁽⁵⁾, Δqₘ

$$ \mathrm{ifelse}\left(\mathrm{χₘ}\left(qᵢ⁽⁵⁾=qᵢ⁽⁵⁾, T⁽⁵⁾=T⁽⁵⁾\right), T⁽⁵⁾ - Λ𝒻 \cdot \mathrm{ifelse}\left(\mathrm{<}\left(Δqₘ, qᵢ⁽⁵⁾\right), Δqₘ, qᵢ⁽⁵⁾\right), T⁽⁵⁾\right) $$

𝒞ₐ

Parameters: T⁽⁶⁾, qₗ⁽¹⁾, qᵣ⁽⁶⁾, mₗ, mᵣ

$$ \mathrm{ifelse}\left(\mathrm{χₐ}\left(T⁽⁶⁾=T⁽⁶⁾, qₗ⁽¹⁾=qₗ⁽¹⁾, qᵣ⁽⁶⁾=qᵣ⁽⁶⁾\right), aₐ \cdot mₗ \cdot mᵣ^{0.875}, 0.0\right) $$

𝒞ᵤ

Parameters: T⁽⁶⁾, qₗ⁽¹⁾, mₗ

$$ \mathrm{ifelse}\left(\mathrm{χᵤ}\left(T⁽⁶⁾=T⁽⁶⁾, qₗ⁽¹⁾=qₗ⁽¹⁾\right), \frac{mₗ \cdot mₗ \cdot mₗ \cdot cᵤ}{tᵤ \cdot \mathrm{dᵤ}\left(mₗ=mₗ\right)}, 0.0\right) $$

Δqᵣ

Parameters: T⁽⁶⁾, qₗ⁽¹⁾, 𝒞ᵤ, 𝒞ₐ, τ, ρ

$$ \mathrm{ifelse}\left(\mathrm{χᵤ}\left(T⁽⁶⁾=T⁽⁶⁾, qₗ⁽¹⁾=qₗ⁽¹⁾\right), \frac{\mathrm{𝒞ᵣ}\left(𝒞ᵤ=𝒞ᵤ, 𝒞ₐ=𝒞ₐ\right) \cdot τ}{ρ}, 0.0\right) $$

qₗμ

Parameters: T⁽⁶⁾, qₗ⁽¹⁾, Δqᵣ

$$ \mathrm{ifelse}\left(\mathrm{χᵤ}\left(T⁽⁶⁾=T⁽⁶⁾, qₗ⁽¹⁾=qₗ⁽¹⁾\right), \mathrm{ifelse}\left(\mathrm{<}\left(Δqᵣ, qₗ⁽¹⁾\right), qₗ⁽¹⁾ - Δqᵣ, 0.0\right), qₗ⁽¹⁾\right) $$

qᵣμ

Parameters: T⁽⁶⁾, qₗ⁽¹⁾, qᵣ⁽⁶⁾, Δqᵣ

$$ \mathrm{ifelse}\left(\mathrm{χᵤ}\left(T⁽⁶⁾=T⁽⁶⁾, qₗ⁽¹⁾=qₗ⁽¹⁾\right), qᵣ⁽⁶⁾ + \mathrm{ifelse}\left(\mathrm{<}\left(Δqᵣ, qₗ⁽¹⁾\right), Δqᵣ, qₗ⁽¹⁾\right), qᵣ⁽⁶⁾\right) $$

χᵣ

Parameters: δq⁽⁰⁾, Eₗ, qᵣᶜ

$$ \mathrm{and}\left(\mathrm{and}\left(\mathrm{>}\left(δq⁽⁰⁾, 0.0\right), \mathrm{not}\left(\mathrm{χₑ}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ\right)\right)\right), \mathrm{>}\left(qᵣᶜ, qε\right)\right) $$

χᵢ

Parameters: δq⁽⁰⁾, Eₗ, qᵣᶜ, δq⁽¹⁾, Eᵣ, qᵢᶜ

$$ \mathrm{and}\left(\mathrm{and}\left(\mathrm{and}\left(\mathrm{>}\left(δq⁽⁰⁾, 0.0\right), \mathrm{not}\left(\mathrm{χₑ}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ\right)\right)\right), \mathrm{not}\left(\mathrm{χᵣₑ}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ, δq⁽¹⁾=δq⁽¹⁾, Eᵣ=Eᵣ\right)\right)\right), \mathrm{>}\left(qᵢᶜ, qε\right)\right) $$

χₛ

Parameters: T⁽³⁾, qᵥ⁽³⁾, qₛ

$$ \mathrm{and}\left(\mathrm{<=}\left(T⁽³⁾, T𝒻\right), \mathrm{>}\left(qᵥ⁽³⁾, qₛ\right)\right) $$

χ𝒻

Parameters: qᵣ⁽²⁾, qᵥ⁽⁴⁾, qₛ, T⁽⁴⁾

$$ \mathrm{and}\left(\mathrm{and}\left(\mathrm{>}\left(qᵣ⁽²⁾, 0.0\right), \mathrm{>=}\left(qᵥ⁽⁴⁾, qₛ\right)\right), \mathrm{<=}\left(T⁽⁴⁾, T𝒻\right)\right) $$

χₘ

Parameters: qᵢ⁽⁵⁾, T⁽⁵⁾

$$ \mathrm{and}\left(\mathrm{>}\left(qᵢ⁽⁵⁾, 0.0\right), \mathrm{>=}\left(T⁽⁵⁾, Tₘ\right)\right) $$

χₐ

Parameters: T⁽⁶⁾, qₗ⁽¹⁾, qᵣ⁽⁶⁾

$$ \mathrm{and}\left(\mathrm{χᵤ}\left(T⁽⁶⁾=T⁽⁶⁾, qₗ⁽¹⁾=qₗ⁽¹⁾\right), \mathrm{>}\left(qᵣ⁽⁶⁾, 0.0\right)\right) $$

χᵤ

Parameters: T⁽⁶⁾, qₗ⁽¹⁾

$$ \mathrm{and}\left(\mathrm{>}\left(T⁽⁶⁾, T𝒻\right), \mathrm{!=}\left(qₗ⁽¹⁾, 0.0\right)\right) $$

mᵣᶜ

Parameters: qᵣᶜ, ρ

$$ qᵣᶜ \cdot ρ $$

sᵢ⁻

Parameters: δq⁽²⁾, qₛ

$$ \frac{-δq⁽²⁾}{qₛ} $$

sᵢ⁺

Parameters: qᵥ⁽³⁾, qₛ

$$ \frac{qᵥ⁽³⁾}{qₛ} - 1.0 $$

ΔTₘ

Parameters: T⁽⁵⁾

$$ T⁽⁵⁾ - Tₘ $$

mᵢᶜ

Parameters: qᵢ⁽⁵⁾, ρ

$$ ρ \cdot qᵢ⁽⁵⁾ \cdot κₘ $$

dᵤ

Parameters: mₗ

$$ aᵤ \cdot mₗ \cdot cᵤ + bᵤ \cdot nᵤ $$

𝒞ᵣ

Parameters: 𝒞ᵤ, 𝒞ₐ

$$ 𝒞ᵤ + 𝒞ₐ $$

χₑ

Parameters: δq⁽⁰⁾, Eₗ

$$ \mathrm{<=}\left(δq⁽⁰⁾, Eₗ\right) $$

χᵣₑ

Parameters: δq⁽⁰⁾, Eₗ, qᵣᶜ, δq⁽¹⁾, Eᵣ

$$ \mathrm{and}\left(\mathrm{χᵣ}\left(δq⁽⁰⁾=δq⁽⁰⁾, Eₗ=Eₗ, qᵣᶜ=qᵣᶜ\right), \mathrm{<=}\left(δq⁽¹⁾, Eᵣ\right)\right) $$

F

Parameters: q

$$ \mathrm{makearray}\left(\right) $$

S

Parameters: q, v

$$ \mathrm{makearray}\left(\right) $$

𝓘

Parameters: f, z

$$ \mathrm{ifelse}\left(\mathrm{>=}\left(z, \mathrm{index}\left(zₛ, NSND\right)\right), \mathrm{index}\left(f, NSND\right), \mathrm{faq}\left(\right)\right) $$

Analyses

williams_flats_rise

Rise of the Williams Flats plume over the first 30 minutes of the fire: plume-top height and maximum vertical velocity. The plume reaches a quasi-steady height of about 8.5 km with a pyrocumulus cloud above about 4 km.

Time span: 0 → 1800

Raw .esm

Raw .esm JSON (this component)
{
  "variables": {
    "zₛ": {
      "type": "parameter",
      "units": "m",
      "shape": [
        "snd"
      ],
      "default": [
        0.0,
        9.0,
        87.0,
        186.0,
        491.0,
        761.0,
        1101.0,
        1267.0,
        1406.0,
        1710.0,
        2015.0,
        2420.0,
        2648.0,
        2930.0,
        3539.0,
        3844.0,
        4056.0,
        4149.0,
        4237.0,
        4449.0,
        4653.0,
        5010.0,
        5102.0,
        5368.0,
        5398.0,
        5446.0,
        5574.0,
        5673.0,
        5720.0,
        5819.0,
        5978.0,
        6004.0,
        6587.0,
        6782.0,
        6892.0,
        7197.0,
        7506.0,
        7806.0,
        7910.0,
        8111.0,
        8355.0,
        8416.0,
        8530.0,
        8619.0,
        8708.0,
        8822.0,
        8914.0,
        9031.0,
        10052.0,
        10430.0,
        10514.0,
        10550.0,
        10828.0,
        10916.0,
        11157.0,
        11438.0,
        11464.0,
        11502.0,
        11729.0,
        11795.0,
        11964.0,
        12074.0,
        12103.0,
        12672.0,
        13292.0,
        13510.0,
        13600.0,
        14259.0,
        14358.0,
        14512.0,
        14510.0,
        14719.0,
        15447.0,
        15566.0,
        15872.0,
        16221.0,
        16897.0,
        17041.0,
        17322.0,
        17560.0,
        18132.0,
        18170.0,
        18269.0,
        18602.0,
        18984.0,
        19238.0,
        19389.0,
        19694.0,
        19998.0,
        20272.0
      ],
      "description": "Heights of the ambient sounding levels above the fire (the lowest sounding level). Coupling input, with pₛ, Tₛ, RHₛ, uₛ and vₛ: a host model or data source supplies the ambient column on its own NSND levels, and the model interpolates it linearly to the plume grid as the Fortran does (htint). The default is the Williams Flats fire sounding (Spokane, OTX, 2019-08-09 00Z), surface at 728 m."
    },
    "pₛ": {
      "type": "parameter",
      "units": "kPa",
      "shape": [
        "snd"
      ],
      "default": [
        92.6,
        92.5,
        91.7,
        90.6,
        87.6,
        85.0,
        81.7,
        80.2,
        78.9,
        76.1,
        73.4,
        70.0,
        68.1,
        65.7,
        60.9,
        58.7,
        57.2,
        56.5,
        55.9,
        54.4,
        53.0,
        50.6,
        50.0,
        48.2,
        48.1,
        47.8,
        47.0,
        46.3,
        46.1,
        45.5,
        44.5,
        44.4,
        41.0,
        40.0,
        39.4,
        37.7,
        36.2,
        34.7,
        34.2,
        33.2,
        32.1,
        31.8,
        31.3,
        30.9,
        30.5,
        30.0,
        29.6,
        29.1,
        25.0,
        23.6,
        23.3,
        23.1,
        22.2,
        21.9,
        21.1,
        20.2,
        20.1,
        20.0,
        19.3,
        19.1,
        18.6,
        18.2,
        18.2,
        16.5,
        15.0,
        14.5,
        14.3,
        12.9,
        12.7,
        12.4,
        12.4,
        12.0,
        10.7,
        10.5,
        10.0,
        9.4,
        8.5,
        8.3,
        7.9,
        7.6,
        7.0,
        6.9,
        6.8,
        6.5,
        6.1,
        5.8,
        5.7,
        5.4,
        5.2,
        5.0
      ],
      "description": "Ambient pressure at the sounding levels (coupling input)."
    },
    "Tₛ": {
      "type": "parameter",
      "units": "K",
      "shape": [
        "snd"
      ],
      "default": [
        307.34999999999997,
        307.34999999999997,
        305.34999999999997,
        304.34999999999997,
        301.25,
        298.54999999999995,
        295.15,
        293.54999999999995,
        292.34999999999997,
        289.75,
        287.04999999999995,
        283.54999999999995,
        281.54999999999995,
        279.04999999999995,
        273.54999999999995,
        270.75,
        268.84999999999997,
        268.25,
        267.65,
        266.84999999999997,
        265.25,
        262.45,
        261.84999999999997,
        259.84999999999997,
        259.65,
        259.25,
        258.45,
        257.95,
        257.65,
        257.45,
        256.95,
        256.84999999999997,
        252.64999999999998,
        251.24999999999997,
        250.34999999999997,
        247.84999999999997,
        245.24999999999997,
        242.74999999999997,
        241.84999999999997,
        240.34999999999997,
        238.45,
        237.84999999999997,
        236.84999999999997,
        236.04999999999998,
        235.64999999999998,
        234.84999999999997,
        234.45,
        234.04999999999998,
        224.84999999999997,
        221.74999999999997,
        221.04999999999998,
        220.95,
        220.04999999999998,
        220.84999999999997,
        219.24999999999997,
        219.45,
        219.24999999999997,
        218.84999999999997,
        217.45,
        217.64999999999998,
        219.84999999999997,
        219.34999999999997,
        219.24999999999997,
        223.45,
        220.24999999999997,
        219.45,
        220.04999999999998,
        217.04999999999998,
        217.64999999999998,
        216.84999999999997,
        216.84999999999997,
        218.24999999999997,
        215.45,
        214.84999999999997,
        214.24999999999997,
        214.04999999999998,
        216.24999999999997,
        216.64999999999998,
        216.24999999999997,
        216.45,
        217.04999999999998,
        217.14999999999998,
        217.24999999999997,
        216.45,
        217.84999999999997,
        217.24999999999997,
        217.64999999999998,
        218.34999999999997,
        219.04999999999998,
        219.64999999999998
      ],
      "description": "Ambient temperature at the sounding levels (coupling input)."
    },
    "RHₛ": {
      "type": "parameter",
      "units": "1",
      "shape": [
        "snd"
      ],
      "default": [
        0.2,
        0.22,
        0.23,
        0.23,
        0.25,
        0.28,
        0.31,
        0.33,
        0.33,
        0.35,
        0.37,
        0.4,
        0.39,
        0.45,
        0.59,
        0.68,
        0.75,
        0.73,
        0.72,
        0.27,
        0.2,
        0.28,
        0.23,
        0.23,
        0.22,
        0.36,
        0.27,
        0.34,
        0.38,
        0.6,
        0.55,
        0.55,
        0.54,
        0.53,
        0.54,
        0.55,
        0.56,
        0.66,
        0.7,
        0.57,
        0.44,
        0.45,
        0.48,
        0.25,
        0.08,
        0.24,
        0.38,
        0.34,
        0.34,
        0.3,
        0.29,
        0.27,
        0.17,
        0.11,
        0.04,
        0.04,
        0.04,
        0.04,
        0.04,
        0.04,
        0.02,
        0.01,
        0.01,
        0.09,
        0.06,
        0.05,
        0.05,
        0.03,
        0.04,
        0.03,
        0.03,
        0.04,
        0.02,
        0.03,
        0.02,
        0.02,
        0.02,
        0.02,
        0.02,
        0.02,
        0.02,
        0.02,
        0.02,
        0.02,
        0.02,
        0.02,
        0.02,
        0.02,
        0.02,
        0.02
      ],
      "description": "Ambient relative humidity (fraction) at the sounding levels (coupling input); the vapor mixing ratio is RH times the Tetens saturation mixing ratio, as in the Fortran."
    },
    "uₛ": {
      "type": "parameter",
      "units": "m/s",
      "shape": [
        "snd"
      ],
      "default": [
        2.1298096183182933,
        2.684693934184062,
        3.8276946803395795,
        5.02252893766797,
        4.169035259201585,
        4.9262354513565265,
        3.0528978824742423,
        2.5901036715336536,
        2.0999999998724963,
        -0.2500005301813014,
        0.8660303013496974,
        3.5453145442362146,
        3.5994523921295283,
        4.03770365101432,
        3.2693237534444366,
        5.988721457266669,
        5.284922523702027,
        4.6221437632077915,
        4.822125150715766,
        5.093007652968537,
        4.988563928793236,
        4.018884573754934,
        3.6062777000893638,
        4.384102302069423,
        4.384102302069423,
        4.384102302069423,
        4.384102302069423,
        4.384102302069423,
        4.818341746444385,
        5.572550152907492,
        6.674510792493225,
        6.663304244566118,
        5.8024030190429725,
        6.66843332039267,
        7.534463621742367,
        6.281613911266791,
        6.89211459838498,
        6.768286766609239,
        7.94212347564827,
        10.1824311531935,
        10.825086298331218,
        10.927506294846886,
        11.642555739276903,
        12.005535486445059,
        12.10852311687826,
        12.6761980967851,
        12.637923261583467,
        12.559260464971338,
        11.08170116461106,
        11.799959573428444,
        11.799959573428444,
        11.799959573428444,
        11.644014898027239,
        11.510862251756269,
        10.986752260119902,
        9.75014473918833,
        9.500141027927093,
        9.75014473918833,
        11.050164037746777,
        10.800160326485537,
        10.05014919270182,
        9.500141027927093,
        9.785863673396792,
        13.679208817564792,
        10.21915755592643,
        10.418836310596326,
        10.959435627981266,
        12.122079825287086,
        12.122079825287086,
        11.558262158994664,
        11.558262158994664,
        11.404408048046163,
        10.21915755592643,
        9.583001651925196,
        9.256480264229506,
        9.86633504572319,
        10.298433233037262,
        9.78656372531209,
        9.585823035804939,
        8.739103725269754,
        3.0529097464256294,
        4.443271191419612,
        4.9262354513565265,
        5.55392281823937,
        7.042678487708099,
        7.558544842859519,
        8.0754386840936,
        3.5506790550151726,
        1.7781092352956474,
        1.1019615309299247e-05
      ],
      "description": "Eastward ambient wind at the sounding levels (coupling input)."
    },
    "vₛ": {
      "type": "parameter",
      "units": "m/s",
      "shape": [
        "snd"
      ],
      "default": [
        1.4912783072649072,
        1.549973702923796,
        1.469269694133818,
        0.8855524096787505,
        1.944002316751185,
        1.319925860720274,
        -0.5383442385540018,
        -0.2266340016588144,
        -2.314119215020081e-05,
        -0.43301239579146944,
        0.49999151707219225,
        0.6250958185967651,
        0.06278914550317176,
        -0.7120036703456152,
        -4.6692100183183,
        -1.6047477394512146,
        -2.1353205657387826,
        -2.155408785413875,
        -1.66045446514936,
        -0.26697012342941406,
        1.060297094376375,
        3.139835470663171,
        3.6062114677093136,
        4.384021784274068,
        4.384021784274068,
        4.384021784274068,
        4.384021784274068,
        4.384021784274068,
        3.9017409978714985,
        2.7178456161693028,
        0.5838712879492055,
        0.7002689085966679,
        3.349943164383688,
        3.8499346814558804,
        4.349926198528072,
        5.270799433651361,
        7.654329256226744,
        9.665934732085784,
        10.165268058322745,
        10.182244144120416,
        12.452610434510579,
        13.022657416060735,
        14.377096224823372,
        15.366102878859962,
        16.66564333975814,
        18.103148947381,
        18.736138760009425,
        20.0986312114285,
        30.44595045811935,
        32.41929909892338,
        32.41929909892338,
        32.41929909892338,
        27.430948161784706,
        25.853240613530303,
        21.562265065960723,
        16.887411807760184,
        16.454401248586848,
        16.887411807760184,
        19.139066715461546,
        18.706056156288206,
        17.407024478768193,
        16.454401248586848,
        16.286094441752848,
        9.226551150102493,
        5.899899901451869,
        5.539661535960435,
        5.583974455182876,
        4.411936163337795,
        4.411936163337795,
        4.206729830159293,
        4.206729830159293,
        4.60754566701839,
        5.899899901451869,
        5.987994600799084,
        6.481324950805173,
        4.392656686509248,
        0.179646721856297,
        -0.513001413648678,
        -2.0376448969904923,
        -3.1808907681617007,
        0.5382769549027699,
        1.1905213645712276,
        1.319925860720274,
        1.2821627545050807,
        1.4968900155901765,
        1.469149365613234,
        1.4238293645815203,
        -2.050043474728416,
        2.5393557347005027,
        1.4999999999595226
      ],
      "description": "Northward ambient wind at the sounding levels (coupling input)."
    },
    "q∅": {
      "type": "parameter",
      "units": "1",
      "shape": [
        "zt"
      ],
      "default": 0,
      "description": "Ambient mixing ratio of cloud water, rain, ice and tracer: zero, so exchange with ambient air only dilutes these quantities."
    },
    "Q𝒻": {
      "type": "parameter",
      "units": "kW/m^2",
      "default": 2.56,
      "description": "Fire heat flux (total, before the convective fraction η). Default 2.56 kW/m² (Williams Flats)."
    },
    "A𝒻": {
      "type": "parameter",
      "units": "m^2",
      "default": 7500000.0,
      "description": "Burning area defining the circular source radius sqrt(A𝒻/π₀)."
    },
    "α": {
      "type": "parameter",
      "units": "1",
      "default": 0.05,
      "description": "Entrainment coefficient controlling radial growth and exchange with ambient air."
    },
    "m𝒻": {
      "type": "parameter",
      "units": "1",
      "default": 10.0,
      "description": "Fuel moisture expressed as a numerical percentage; its integer part enters the surface moisture factor."
    },
    "χ𝑤": {
      "type": "parameter",
      "units": "1",
      "default": 1,
      "description": "Ambient-wind switch: 1 includes the prescribed wind, 0 suppresses its contribution."
    },
    "χμ": {
      "type": "parameter",
      "units": "1",
      "default": 1,
      "description": "Multiplier of the microphysical phase-change tendencies; zero disables phase-change forcing."
    },
    "χᵥ": {
      "type": "parameter",
      "units": "1",
      "default": 1,
      "description": "Multiplier of the prescribed eddy diffusivity profile."
    },
    "c₀": {
      "type": "parameter",
      "units": "1",
      "default": 1000.0,
      "description": "Passive-tracer value prescribed at the lower boundary (the Fortran SC(1) = 1000); the tracer is reported relative to it."
    },
    "τμ": {
      "type": "parameter",
      "units": "s",
      "default": 1.6666666666666667,
      "description": "Microphysical adjustment time. The staged microphysics computes the state the Fortran process chain would reach after an interval τμ and relaxes towards it, M = (X⁽ᵃᵈʲ⁾ − X)/τμ. For the rate-limited processes (rain evaporation, sublimation, deposition, freezing, melting, autoconversion, accretion and the |w̄Gₛ| condensation rate) M is the process rate and does not depend on τμ while the transfer over τμ is small compared with the available water; for saturation adjustment τμ is the relaxation time. The default, 5/3 s, is the Fortran microphysics substep at its maximum time step (5 s / 3 substeps). Halving it changes the asserted cloud-water values by less than their tolerance (see the tests)."
    },
    "τᴅ": {
      "type": "parameter",
      "units": "s",
      "default": 15.0,
      "description": "Relaxation time of the Rayleigh sponge at full strength (from ℋᴅ above the highest plume top kₜ upward). The Fortran uses 3·Δt (12–15 s in the reference runs, Δt ≤ 5 s); a fixed value keeps the model independent of a time step."
    },
    "g": {
      "type": "parameter",
      "units": "m/s^2",
      "default": 9.80796,
      "description": "Gravitational acceleration in the lower-boundary buoyancy flux f₀ and thermal factor β₀ (the reference code's 9.80796 m/s²). Interior buoyancy uses gᵦ and adiabatic cooling uses Γᴅ."
    },
    "Rᴅ": {
      "type": "parameter",
      "units": "J/kg/K",
      "default": 287.04,
      "description": "Specific gas constant of dry air, used in the lower-boundary buoyancy flux f₀."
    },
    "cₚᴅ": {
      "type": "parameter",
      "units": "J/kg/K",
      "default": 1004.6,
      "description": "Specific heat of dry air at constant pressure, used in the lower-boundary buoyancy flux f₀."
    },
    "κρ": {
      "type": "parameter",
      "units": "g*K/m^3/kPa",
      "default": 3483.8,
      "description": "Air-density coefficient 1/Rᴅ expressed for pressure in kPa and density in g/m³, so that ρ = κρ p/T."
    },
    "e₀": {
      "type": "parameter",
      "units": "kPa",
      "default": 0.61078,
      "description": "Saturation vapor pressure at Tᵣ in the Tetens formula eₛ = e₀ exp[aₑₛ(T − Tᵣ)/(T − Tₑₛ)]."
    },
    "Tᵣ": {
      "type": "parameter",
      "units": "K",
      "default": 273.15,
      "description": "Reference temperature (0 °C) in the Tetens formula eₛ = e₀ exp[aₑₛ(T − Tᵣ)/(T − Tₑₛ)]."
    },
    "Tₑₛ": {
      "type": "parameter",
      "units": "K",
      "default": 35.85,
      "description": "Temperature offset in the denominator of the Tetens formula eₛ = e₀ exp[aₑₛ(T − Tᵣ)/(T − Tₑₛ)]."
    },
    "κW": {
      "type": "parameter",
      "units": "W/kW",
      "default": 1000,
      "description": "Unit conversion from kW to W for the surface heat flux."
    },
    "κp": {
      "type": "parameter",
      "units": "Pa/kPa",
      "default": 1000,
      "description": "Unit conversion from kPa to Pa in the lower-boundary buoyancy flux."
    },
    "κg": {
      "type": "parameter",
      "units": "g/kg",
      "default": 1000,
      "description": "Unit conversion from kg to g in the fire water-vapor increment δq₀."
    },
    "κkg": {
      "type": "parameter",
      "units": "kg/g",
      "default": 0.001,
      "description": "Unit conversion from g to kg; converts air density from g/m³ to kg/m³ in the mass fluxes."
    },
    "h𝒻": {
      "type": "parameter",
      "units": "J/kg",
      "default": 19300000.0,
      "description": "Heat of combustion of the fuel. The surface heat flux divided by η h𝒻 is the fuel burning rate, which sets the fire's water-vapor source δq₀."
    },
    "tₘ": {
      "type": "parameter",
      "units": "s",
      "default": 60,
      "description": "One-minute forcing interval: the surface heat flux is a step function of time that changes every tₘ (the Fortran indexes its heating table by minute)."
    },
    "tᵣ": {
      "type": "parameter",
      "units": "s",
      "default": 240,
      "description": "End of the heat-flux ramp; the ramp rises in equal steps every tₘ and the full fire heat flux applies from tᵣ. The reference code ramps over four minutes (tᵣ = 240 s)."
    },
    "t𝒻": {
      "type": "parameter",
      "units": "s",
      "default": 3180,
      "description": "End (inclusive) of the full-intensity fire; the post-fire floor ℋₑₙd applies afterwards."
    },
    "ℋₘᵢₙ": {
      "type": "parameter",
      "units": "W/m^2",
      "default": 0.1,
      "description": "Small surface heat flux applied during the first minute, before the ramp starts."
    },
    "ℋₑₙd": {
      "type": "parameter",
      "units": "W/m^2",
      "default": 1e-06,
      "description": "Small surface heat flux applied after the fire ends."
    },
    "Δz": {
      "type": "parameter",
      "units": "m",
      "default": 100,
      "description": "Vertical grid spacing of both staggered grids (100 m)."
    },
    "wₘᵢₙ": {
      "type": "parameter",
      "units": "m/s",
      "default": 1,
      "description": "Vertical-velocity threshold that defines the plume top (first level with w ≤ wₘᵢₙ) and floor of the speed in the transport timescale."
    },
    "rₘᵢₙ": {
      "type": "parameter",
      "units": "m",
      "default": 1,
      "description": "Minimum plume radius in the entrainment and wind-exchange rates; prevents division by a vanishing radius."
    },
    "ℋᴅ": {
      "type": "parameter",
      "units": "m",
      "default": 2000,
      "description": "Depth over which the Rayleigh sponge rate rises from zero at the highest plume top kₜ to 1/τᴅ (20 levels, the Fortran sponge depth)."
    },
    "νₘᵢₙ": {
      "type": "parameter",
      "units": "m^2/s",
      "default": 0.001,
      "description": "Minimum eddy diffusivity."
    },
    "ν₀": {
      "type": "parameter",
      "units": "m^2/s",
      "default": 500,
      "description": "Eddy diffusivity at the surface; ν decreases linearly with level index down to νₘᵢₙ."
    },
    "vᵢ": {
      "type": "parameter",
      "units": "m/s",
      "default": -3,
      "description": "Fall speed of ice (negative is downward). Used for ice sedimentation and in the ventilation coefficient of ice sublimation and melting."
    },
    "vᵣ": {
      "type": "parameter",
      "units": "m/s",
      "default": -4,
      "description": "Fall speed of rain (negative is downward), used for rain sedimentation."
    },
    "gᵦ": {
      "type": "parameter",
      "units": "m/s^2",
      "default": 6.533333333333334,
      "description": "Gravitational coefficient in the buoyancy acceleration, g/(1 + γ) with g = 9.8 m/s² and virtual-mass coefficient γ = 0.5 (numerically 9.8/1.5), as in the reference code."
    },
    "Γᴅ": {
      "type": "parameter",
      "units": "K/m",
      "default": 0.009770916334661355,
      "description": "Dry-adiabatic lapse rate g/cₚ, numerically 9.81/1004; rising plume air cools at the rate w̄Γᴅ."
    },
    "π₀": {
      "type": "parameter",
      "units": "1",
      "default": 3.14159,
      "description": "Value of π (3.14159) for the source radius, the initial radius and the lower-boundary buoyancy flux, as in the reference code."
    },
    "πᵣ": {
      "type": "parameter",
      "units": "1",
      "default": 3.1416,
      "description": "Value of π (3.1416) in the wind-shear radius growth and in κλ and κE; it differs from π₀ as in the reference code."
    },
    "εᵥ": {
      "type": "parameter",
      "units": "1",
      "default": 0.622,
      "description": "Ratio of the molar masses of water vapor and dry air."
    },
    "aₑₛ": {
      "type": "parameter",
      "units": "1",
      "default": 17.2693882,
      "description": "Exponential coefficient in the Tetens formula eₛ = e₀ exp[aₑₛ(T − Tᵣ)/(T − Tₑₛ)]."
    },
    "η": {
      "type": "parameter",
      "units": "1",
      "default": 0.55,
      "description": "Convective fraction of the fire heat release: the part that heats the plume. It also converts the heat flux back to a fuel burning rate in δq₀."
    },
    "cᵦ": {
      "type": "parameter",
      "units": "1",
      "default": 0.9,
      "description": "Coefficient of the buoyancy-flux scale B₀ = cᵦ α f₀ in the lower-boundary similarity solution."
    },
    "Lᵥ": {
      "type": "parameter",
      "units": "kJ/kg",
      "default": 2500.0,
      "description": "Latent heat of condensation (vapor ↔ liquid)."
    },
    "Lₛ": {
      "type": "parameter",
      "units": "kJ/kg",
      "default": 2834.0,
      "description": "Latent heat of sublimation (vapor ↔ ice)."
    },
    "L𝒻": {
      "type": "parameter",
      "units": "kJ/kg",
      "default": 334.0,
      "description": "Latent heat of fusion (liquid ↔ ice)."
    },
    "cₚφ": {
      "type": "parameter",
      "units": "kJ/kg/K",
      "default": 1.004,
      "description": "Specific heat that converts latent heat into a temperature change in phase-change heating (Λ = L/cₚφ)."
    },
    "qε": {
      "type": "parameter",
      "units": "1",
      "default": 0.0,
      "description": "Condensate mixing ratio at or below which cloud water, rain and ice are treated as absent by the microphysics. The Fortran uses 1e-10 as an underflow guard and applies it to the state at every microphysics substep, which wipes out any rain produced in one substep by less than 1e-10; at small time steps that suppresses the onset of rain by continental (Berry) autoconversion entirely, so the onset depends on the time step. The default 0 removes that dependence; 1e-10 restores the Fortran guard."
    },
    "T𝒻": {
      "type": "parameter",
      "units": "K",
      "default": 269.3,
      "description": "Temperature threshold for ice processes: deposition onto ice and rain freezing occur at or below T𝒻, and warm-rain conversion requires T > T𝒻."
    },
    "Tₘ": {
      "type": "parameter",
      "units": "K",
      "default": 273.0,
      "description": "Temperature at or above which ice melts to rain."
    },
    "aᵣ": {
      "type": "parameter",
      "units": "m^1.95/g^0.65/s",
      "default": 0.000544,
      "description": "Coefficient of the empirical rain-evaporation rate."
    },
    "aᵢ": {
      "type": "parameter",
      "units": "1",
      "default": 700000.0,
      "description": "Constant term in the normalized resistance to vapor transfer between air and ice."
    },
    "bᵢ": {
      "type": "parameter",
      "units": "1",
      "default": 4100000.0,
      "description": "Coefficient of the saturation-vapor-pressure term in the normalized ice-transfer resistance."
    },
    "κₑ": {
      "type": "parameter",
      "units": "1",
      "default": 10.0,
      "description": "Pressure normalization factor in the empirical ice-transfer resistance; saturation vapor pressure is scaled by 1 kPa."
    },
    "κρᵢ": {
      "type": "parameter",
      "units": "1",
      "default": 1000000.0,
      "description": "Reciprocal-density normalization factor in the empirical ice-transfer relation; air density is scaled by 1 g/m³."
    },
    "cᵢₛ": {
      "type": "parameter",
      "units": "1",
      "default": 1.13,
      "description": "Coefficient scaling the normalized vapor-transfer driving terms for ice sublimation and deposition."
    },
    "a𝒻": {
      "type": "parameter",
      "units": "1/s",
      "default": 0.025,
      "description": "Rate coefficient for rain freezing to ice (glaciation): the fraction of rain frozen per second when freezing is possible."
    },
    "aₘ": {
      "type": "parameter",
      "units": "g/m^3*(cm^3/g)^0.525/s/K",
      "default": 2.27,
      "description": "Coefficient of the empirical ice-melting rate."
    },
    "κₘ": {
      "type": "parameter",
      "units": "m^3/cm^3",
      "default": 1e-06,
      "description": "Unit conversion from g/m³ to g/cm³ for the ice mass concentration in the empirical melting relation."
    },
    "cₘ": {
      "type": "parameter",
      "units": "1",
      "default": 0.75,
      "description": "Normalization factor in the ventilation coefficient cᵢ = cᵢ₀ + cᵢ₁|w + vᵢ|^1.5/cₘ and in the melting rate."
    },
    "aₐ": {
      "type": "parameter",
      "units": "m^2.625/g^0.875/s",
      "default": 0.0052,
      "description": "Coefficient of the rate at which rain collects cloud water (accretion)."
    },
    "cᵤ": {
      "type": "parameter",
      "units": "1",
      "default": 0.146,
      "description": "Berry size-dispersion coefficient of the autoconversion rate. The default 0.146 is the Fortran continental value; 0.366 is its maritime alternative."
    },
    "tᵤ": {
      "type": "parameter",
      "units": "s",
      "default": 60.0,
      "description": "Time scale in the autoconversion rate 𝒞ᵤ = cᵤ mₗ³/[tᵤ(aᵤ cᵤ mₗ + bᵤ nᵤ)]."
    },
    "aᵤ": {
      "type": "parameter",
      "units": "g/m^3",
      "default": 5.0,
      "description": "Concentration coefficient in the denominator of the autoconversion rate 𝒞ᵤ = cᵤ mₗ³/[tᵤ(aᵤ cᵤ mₗ + bᵤ nᵤ)]."
    },
    "bᵤ": {
      "type": "parameter",
      "units": "(g/m^3)^2*cm^3",
      "default": 0.0366,
      "description": "Mass coefficient in the denominator of the autoconversion rate 𝒞ᵤ = cᵤ mₗ³/[tᵤ(aᵤ cᵤ mₗ + bᵤ nᵤ)]."
    },
    "nᵤ": {
      "type": "parameter",
      "units": "1/cm^3",
      "default": 100000.0,
      "description": "Cloud-droplet number concentration in the Berry autoconversion rate. The default 1e5 cm⁻³ is the Fortran continental value; 50 cm⁻³ is its maritime alternative."
    },
    "cᵢ₀": {
      "type": "parameter",
      "units": "1",
      "default": 1.6,
      "description": "Constant term of the ventilation coefficient cᵢ = cᵢ₀ + cᵢ₁|w + vᵢ|^1.5/cₘ, which increases ice sublimation and melting because air flows past falling ice."
    },
    "cᵢ₁": {
      "type": "parameter",
      "units": "(s/m)^1.5",
      "default": 0.00057,
      "description": "Speed coefficient of the ventilation coefficient cᵢ = cᵢ₀ + cᵢ₁|w + vᵢ|^1.5/cₘ."
    },
    "aᵣ₀": {
      "type": "parameter",
      "units": "1",
      "default": 1.2,
      "description": "Coefficient of the initial radius profile r = r₀ + aᵣ₀ α z."
    },
    "κλ": {
      "type": "parameter",
      "units": "1",
      "default": 0.6366182836771073,
      "description": "Coefficient 2/πᵣ of the wind-driven exchange rate λ𝑤."
    },
    "κE": {
      "type": "parameter",
      "units": "1",
      "default": 0.31830914183855363,
      "description": "Coefficient 1/πᵣ of the wind-driven vertical-momentum loss in E𝑤."
    },
    "aᵣ₁": {
      "type": "parameter",
      "units": "1",
      "default": 0.6,
      "description": "Coefficient of radius growth by entrainment, aᵣ₁ λ r, in the radius tendency."
    },
    "zₜ": {
      "type": "unknown",
      "units": "m",
      "shape": [
        "zt"
      ],
      "description": "Heights of the scalar levels: 0 at level 1 (the surface), 50 m at level 2, then Δz spacing."
    },
    "z𝑤": {
      "type": "unknown",
      "units": "m",
      "shape": [
        "zm"
      ],
      "description": "Heights of the vertical-velocity levels (faces): (k − 1)Δz."
    },
    "Tₑ": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "zt"
      ],
      "description": "Ambient temperature on the scalar levels, interpolated from the sounding; also the initial plume temperature."
    },
    "pₑ": {
      "type": "unknown",
      "units": "kPa",
      "shape": [
        "zt"
      ],
      "description": "Ambient pressure on the scalar levels, interpolated from the sounding."
    },
    "RHₑ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Ambient relative humidity on the scalar levels, interpolated from the sounding."
    },
    "uₑˣ": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "zt"
      ],
      "description": "Eastward ambient wind on the scalar levels."
    },
    "uₑʸ": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "zt"
      ],
      "description": "Northward ambient wind on the scalar levels."
    },
    "qᵥₑ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Ambient water-vapor mixing ratio on the scalar levels: RH times the Tetens saturation mixing ratio, floored at 1e-8 (as in the Fortran); also the initial plume vapor."
    },
    "uₑ": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "zt"
      ],
      "description": "Ambient horizontal wind speed on the scalar levels."
    },
    "velocity_state": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "zm"
      ],
      "description": "Prognostic vertical velocity w. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed. The prognostic states are scaled to values of order 1–10 (temperature as the excess over the ambient profile, water in g/kg, radius in km, tracer as a fraction of c₀) so that the finite-difference Jacobian of an implicit integrator perturbs every component by a meaningful relative amount."
    },
    "temperature_state": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "zt"
      ],
      "description": "Prognostic temperature excess T − Tₑ. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed."
    },
    "vapor_state": {
      "type": "unknown",
      "units": "g/kg",
      "shape": [
        "zt"
      ],
      "description": "Prognostic water-vapor mixing ratio, in g/kg. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed."
    },
    "cloud_state": {
      "type": "unknown",
      "units": "g/kg",
      "shape": [
        "zt"
      ],
      "description": "Prognostic cloud-water mixing ratio, in g/kg. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed."
    },
    "rain_state": {
      "type": "unknown",
      "units": "g/kg",
      "shape": [
        "zt"
      ],
      "description": "Prognostic rainwater mixing ratio, in g/kg. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed."
    },
    "ice_state": {
      "type": "unknown",
      "units": "g/kg",
      "shape": [
        "zt"
      ],
      "description": "Prognostic cloud-ice mixing ratio, in g/kg. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed."
    },
    "horizontal_speed_state": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "zt"
      ],
      "description": "Prognostic horizontal plume velocity u. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed."
    },
    "radius_state": {
      "type": "unknown",
      "units": "km",
      "shape": [
        "zt"
      ],
      "description": "Prognostic plume radius, in km. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed."
    },
    "tracer_state": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Prognostic passive tracer as a fraction of its boundary value c₀. Tendencies apply at levels 2 to nₗ − 1; level 1 is the lower boundary (its physical value is prescribed separately) and the top level is held fixed."
    },
    "κkm": {
      "type": "parameter",
      "units": "m/km",
      "default": 1000.0,
      "description": "Unit conversion from km to m for the radius state."
    },
    "ℋ₀": {
      "type": "unknown",
      "units": "W/m^2",
      "description": "Convective surface heat flux at time t: ℋₘᵢₙ during the first minute, then a four-step one-minute ramp to Q𝒻κWη, held until t𝒻 and ℋₑₙd afterwards (the Fortran heating table indexed by the minute containing t)."
    },
    "r₀": {
      "type": "unknown",
      "units": "m",
      "description": "Radius of the circular burning area, sqrt(A𝒻/π₀)."
    },
    "f₀": {
      "type": "unknown",
      "units": "m^4/s^3",
      "description": "Buoyancy flux of the circular source from the convective heat flux and the surface state."
    },
    "a₀": {
      "type": "unknown",
      "units": "1",
      "description": "Similarity factor 5/(6α)."
    },
    "B₀": {
      "type": "unknown",
      "units": "m^4/s^3",
      "description": "Buoyancy-flux scale cᵦαf₀."
    },
    "b₀": {
      "type": "unknown",
      "units": "m^(4/3)/s",
      "description": "Cube root of B₀."
    },
    "ℓ₀": {
      "type": "unknown",
      "units": "m",
      "description": "Virtual-origin distance a₀r₀ below the surface."
    },
    "w₀": {
      "type": "unknown",
      "units": "m/s",
      "description": "Lower-boundary vertical velocity of the similarity solution, a₀b₀/ℓ₀^(1/3)."
    },
    "β₀": {
      "type": "unknown",
      "units": "1",
      "description": "Density (temperature) correction of the similarity solution; set to its limit 0 when ℋ₀ = 0, where the general expression is 0/0."
    },
    "T₀⁽⁰⁾": {
      "type": "unknown",
      "units": "K",
      "description": "Lower-boundary plume temperature before phase changes, Tₑ[1]/(1 − β₀)."
    },
    "φₘ": {
      "type": "unknown",
      "units": "1",
      "description": "Fuel-moisture factor 1/2 + floor(m𝒻)/100 of the fire water source."
    },
    "δq₀": {
      "type": "unknown",
      "units": "1",
      "description": "Water-vapor increment supplied by the fire (combustion water plus fuel moisture) spread over the boundary mass flux w₀ρ; zero when ℋ₀ = 0."
    },
    "qᵥ₀⁽⁰⁾": {
      "type": "unknown",
      "units": "1",
      "description": "Lower-boundary vapor before phase changes: ambient plus fire vapor, capped at saturation."
    },
    "qₗ₀⁽⁰⁾": {
      "type": "unknown",
      "units": "1",
      "description": "Lower-boundary cloud water before phase changes: the fire vapor in excess of saturation."
    },
    "T⁽⁰⁾": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "zt"
      ],
      "description": "Temperature before microphysical adjustment: T₀⁽⁰⁾ at level 1, Tₑ plus the state above."
    },
    "qᵥ⁽⁰⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Vapor before microphysical adjustment: qᵥ₀⁽⁰⁾ at level 1, the prognostic state above."
    },
    "qₗ⁽⁰⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Cloud water before microphysical adjustment: qₗ₀⁽⁰⁾ at level 1, the prognostic state above."
    },
    "qᵣ⁽⁰⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Rain before microphysical adjustment. At level 1 the boundary takes the rain of level 2 (the Fortran \"soaks up\" hydrometeors at the surface)."
    },
    "qᵢ⁽⁰⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Ice before microphysical adjustment; level 1 takes the ice of level 2."
    },
    "T": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "zt"
      ],
      "description": "Physical plume temperature: the adjusted boundary value T⁽⁶⁾[1] at level 1, Tₑ plus the state above."
    },
    "qᵥ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Physical water-vapor mixing ratio (adjusted boundary value at level 1)."
    },
    "qₗ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Physical cloud-water mixing ratio (adjusted boundary value at level 1)."
    },
    "qᵣ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Physical rainwater mixing ratio (adjusted boundary value at level 1)."
    },
    "qᵢ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Physical cloud-ice mixing ratio (adjusted boundary value at level 1)."
    },
    "u": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "zt"
      ],
      "description": "Physical horizontal plume velocity; zero at the lower boundary."
    },
    "r": {
      "type": "unknown",
      "units": "m",
      "shape": [
        "zt"
      ],
      "description": "Physical plume radius; the source radius r₀ at the lower boundary."
    },
    "c": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Passive tracer; c₀ at the lower boundary."
    },
    "w": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "zm"
      ],
      "description": "Physical vertical velocity; w₀ at the lower boundary."
    },
    "ρ": {
      "type": "unknown",
      "units": "g/m^3",
      "shape": [
        "zt"
      ],
      "description": "Air density κρpₑ/T⁽⁰⁾ (the Fortran RHO, which at level 1 is evaluated before the boundary phase changes)."
    },
    "eₛ": {
      "type": "unknown",
      "units": "kPa",
      "shape": [
        "zt"
      ],
      "description": "Saturation vapor pressure (Tetens) at T⁽⁰⁾."
    },
    "qₛ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Saturation water-vapor mixing ratio at T⁽⁰⁾ and pₑ."
    },
    "Gₛ": {
      "type": "unknown",
      "units": "1/m",
      "shape": [
        "zt"
      ],
      "description": "Centred vertical gradient of qₛ, zero at both boundaries."
    },
    "w̄": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "zt"
      ],
      "description": "Vertical velocity averaged to the scalar levels; w₀ at level 1 and zero at the top."
    },
    "τᵏ": {
      "type": "unknown",
      "units": "s",
      "shape": [
        "zt"
      ],
      "description": "Microphysical adjustment interval by level: 3τμ at the lower boundary (where the Fortran applies one full step instead of three substeps) and τμ above."
    },
    "cᵢ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Ice ventilation coefficient at each scalar level, from the vertical velocity of the face below (w₀ at level 1)."
    },
    "qₗᶜ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Nonnegative cloud-water mixing ratio retained above the threshold qε; smaller values are set to zero."
    },
    "qᵣᶜ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Nonnegative rainwater mixing ratio retained above the threshold qε; smaller values are set to zero."
    },
    "qᵢᶜ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Nonnegative ice mixing ratio retained above the threshold qε; smaller values are set to zero."
    },
    "δq⁽⁰⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Saturation mixing ratio minus water-vapor mixing ratio before phase changes; positive values indicate a vapor deficit."
    },
    "Eₘ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Transport-related capacity for cloud condensation or evaporation over the interval τᵏ, based on vertical motion and the saturation-mixing-ratio gradient."
    },
    "Eₗ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Cloud-water evaporation capacity, limited by the transport-related capacity and available cloud water."
    },
    "qᵥ⁽¹⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Water-vapor mixing ratio after stage 1: condensation of excess vapor to cloud water, or evaporation of cloud water into unsaturated air."
    },
    "qₗ⁽¹⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Cloud-water mixing ratio after stage 1 (condensation or evaporation). Cloud water loads the plume, reducing buoyancy, and is the source of rain."
    },
    "T⁽¹⁾": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "zt"
      ],
      "description": "Temperature after stage 1. Condensation releases latent heat that warms the plume and adds buoyancy; cloud evaporation cools it."
    },
    "δq⁽¹⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Remaining nonnegative vapor deficit after cloud condensation or evaporation."
    },
    "Qᵣ": {
      "type": "unknown",
      "units": "g/m^3",
      "shape": [
        "zt"
      ],
      "description": "Vapor deficit qₛ − qᵥ⁽¹⁾ after the cloud stage, as a mass concentration (times ρ); it drives rain evaporation."
    },
    "Eᵣ⁽⁰⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Potential rainwater evaporation over the interval τᵏ, before limitation by available rain and vapor deficit. Superscript (0) identifies the potential transfer."
    },
    "Eᵣ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Rainwater evaporation amount limited by available rain; the subsequent phase updates also limit transfer by the remaining vapor deficit."
    },
    "qᵥ⁽²⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Water-vapor mixing ratio after stage 2, evaporation of rain into unsaturated air."
    },
    "qᵣ⁽²⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Rainwater mixing ratio after stage 2 (rain evaporation)."
    },
    "T⁽²⁾": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "zt"
      ],
      "description": "Temperature after stage 2. Rain evaporation absorbs latent heat and cools the plume, reducing buoyancy."
    },
    "δq⁽²⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Remaining nonnegative vapor deficit after rain evaporation."
    },
    "Dᵢ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Normalized resistance to vapor transfer between air and ice, with saturation vapor pressure scaled by 1 kPa."
    },
    "𝒩ᵢ⁻": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Normalized ice-sublimation driving term (κρᵢ/ρ)^0.475 (qᵥ⁽²⁾/qₛ − 1) qᵢᶜ^0.525 cᵢₛ, negative in subsaturated air. Dimensionless."
    },
    "Eᵢ⁽⁰⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Potential ice sublimation over the interval τᵏ, before limitation by available ice and vapor deficit. Superscript (0) identifies the potential transfer."
    },
    "Eᵢ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Ice-sublimation amount limited by available ice; the subsequent phase updates also limit transfer by the remaining vapor deficit."
    },
    "qᵥ⁽³⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Water-vapor mixing ratio after stage 3, sublimation of ice into unsaturated air."
    },
    "qᵢ⁽³⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Ice mixing ratio after stage 3 (sublimation)."
    },
    "T⁽³⁾": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "zt"
      ],
      "description": "Temperature after stage 3. Ice sublimation absorbs latent heat and cools the plume."
    },
    "𝒩ᵢ⁺": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Normalized driving term for vapor deposition onto ice, combining supersaturation, ice content and air density scaled by 1 g/m³."
    },
    "Δqₛ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Potential vapor deposition onto ice over the interval τᵏ; available vapor limits the subsequent phase updates."
    },
    "qᵥ⁽⁴⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Water-vapor mixing ratio after stage 4, deposition of excess vapor onto ice at or below T𝒻."
    },
    "qᵢ⁽⁴⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Ice mixing ratio after stage 4 (vapor deposition onto ice)."
    },
    "T⁽⁴⁾": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "zt"
      ],
      "description": "Temperature after stage 4. Deposition onto ice releases latent heat of sublimation, warming the plume and adding buoyancy."
    },
    "Δq𝒻": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Potential rain-to-ice transfer by glaciation over the interval τᵏ; available rain limits the subsequent phase updates."
    },
    "qᵢ⁽⁵⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Ice mixing ratio after stage 5, freezing of rain to ice (glaciation) at or below T𝒻 in saturated air."
    },
    "qᵣ⁽⁵⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Rainwater mixing ratio after stage 5, in which part of the rain freezes to ice (glaciation) at or below T𝒻. Freezing matters for plume rise because it releases latent heat (see T⁽⁵⁾) that adds buoyancy to high, cold plumes."
    },
    "T⁽⁵⁾": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "zt"
      ],
      "description": "Temperature after stage 5. Freezing of rain releases latent heat of fusion, warming the plume and adding buoyancy."
    },
    "Δqₘ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Potential ice-to-rain transfer by melting over the interval τᵏ; available ice limits the subsequent phase updates."
    },
    "qᵣ⁽⁶⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Rainwater mixing ratio after stage 6, melting of ice to rain at or above Tₘ."
    },
    "qᵢ⁽⁶⁾": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Ice mixing ratio after stage 6 (melting)."
    },
    "T⁽⁶⁾": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "zt"
      ],
      "description": "Temperature after stage 6. Melting absorbs latent heat of fusion and cools the plume."
    },
    "mₗ": {
      "type": "unknown",
      "units": "g/m^3",
      "shape": [
        "zt"
      ],
      "description": "Cloud-water mass concentration after condensation or evaporation, before warm-rain conversion."
    },
    "mᵣ": {
      "type": "unknown",
      "units": "g/m^3",
      "shape": [
        "zt"
      ],
      "description": "Rainwater mass concentration after the phase-change sequence through ice melting, before warm-rain conversion."
    },
    "𝒞ₐ": {
      "type": "unknown",
      "units": "g/m^3/s",
      "shape": [
        "zt"
      ],
      "description": "Rate of rainwater mass production by accretion of cloud water."
    },
    "𝒞ᵤ": {
      "type": "unknown",
      "units": "g/m^3/s",
      "shape": [
        "zt"
      ],
      "description": "Rate of rainwater mass production by autoconversion of cloud water."
    },
    "Δqᵣ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Potential cloud-to-rain transfer by autoconversion and accretion over the interval τᵏ; available cloud water limits the subsequent updates."
    },
    "qₗμ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Cloud-water mixing ratio after phase changes and warm-rain conversion by autoconversion and accretion."
    },
    "qᵣμ": {
      "type": "unknown",
      "units": "1",
      "shape": [
        "zt"
      ],
      "description": "Rainwater mixing ratio after phase changes and warm-rain conversion by autoconversion and accretion."
    },
    "Mₜ": {
      "type": "unknown",
      "units": "K/s",
      "shape": [
        "zt"
      ],
      "description": "Microphysical tendency of temperature (latent heating): the change of the staged adjustment over τᵏ divided by τᵏ, scaled by χμ."
    },
    "Mᵥ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Microphysical tendency of water vapor: the change of the staged adjustment over τᵏ divided by τᵏ, scaled by χμ."
    },
    "Mₗ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Microphysical tendency of cloud water: the change of the staged adjustment over τᵏ divided by τᵏ, scaled by χμ."
    },
    "Mᵣ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Microphysical tendency of rain: the change of the staged adjustment over τᵏ divided by τᵏ, scaled by χμ."
    },
    "Mᵢ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Microphysical tendency of ice: the change of the staged adjustment over τᵏ divided by τᵏ, scaled by χμ."
    },
    "Λᵥ": {
      "type": "unknown",
      "units": "K",
      "description": "Latent heat of condensation divided by the phase-change heat capacity."
    },
    "Λₛ": {
      "type": "unknown",
      "units": "K",
      "description": "Latent heat of sublimation divided by the phase-change heat capacity."
    },
    "Λ𝒻": {
      "type": "unknown",
      "units": "K",
      "description": "Latent heat of fusion divided by the phase-change heat capacity."
    },
    "uₐ": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "zt"
      ],
      "description": "Ambient wind acting on the plume, χ𝑤uₑ."
    },
    "λ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Entrainment rate 2α|w̄|/max(r, rₘᵢₙ)."
    },
    "λ𝑤": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Wind-driven (dynamic) entrainment rate (2/π)|uₐ − u|/max(r, rₘᵢₙ)."
    },
    "ℬₜ": {
      "type": "unknown",
      "units": "m/s^2",
      "shape": [
        "zt"
      ],
      "description": "Buoyancy on the scalar levels: gᵦ times the relative virtual-temperature excess minus the condensate loading."
    },
    "ℬ": {
      "type": "unknown",
      "units": "m/s^2",
      "shape": [
        "zm"
      ],
      "description": "Buoyancy averaged to the velocity levels; zero at the boundary levels."
    },
    "E𝑤": {
      "type": "unknown",
      "units": "m/s^2",
      "shape": [
        "zm"
      ],
      "description": "Vertical-momentum loss by radial entrainment (with the virtual-mass factor 1/1.5) and by the wind-driven exchange, at the velocity levels."
    },
    "fρ": {
      "type": "unknown",
      "units": "kg/m^2/s",
      "shape": [
        "zm"
      ],
      "description": "Air mass flux through the velocity faces, w times the mean density of the adjacent scalar levels; w₀ρ[1] at the surface face and zero at the top."
    },
    "A𝑤": {
      "type": "unknown",
      "units": "m/s^2",
      "shape": [
        "zm"
      ],
      "description": "Momentum advection in flux form on the velocity levels (the Fortran vel_advectc stencil)."
    },
    "ν": {
      "type": "unknown",
      "units": "m^2/s",
      "shape": [
        "zt"
      ],
      "description": "Eddy diffusivity, decreasing linearly with level index from ν₀ to the floor νₘᵢₙ, scaled by χᵥ."
    },
    "nₗ": {
      "type": "unknown",
      "units": "1",
      "description": "Number of levels on each grid (the length of the index sets zt and zm)."
    },
    "ℓν": {
      "type": "parameter",
      "units": "m",
      "default": 20000.0,
      "description": "Height over which the eddy diffusivity would decrease linearly from ν₀ to zero (the Fortran reduces it by ν₀/200 per 100 m level, i.e. over its 200-level, 20 km grid); fixed in metres so that the profile does not depend on the number of levels."
    },
    "𝒱𝑤": {
      "type": "unknown",
      "units": "m/s^2",
      "shape": [
        "zm"
      ],
      "description": "Eddy diffusion of vertical velocity."
    },
    "ℱₜ": {
      "type": "unknown",
      "units": "kg/m^2/s*(K)",
      "shape": [
        "zm"
      ],
      "description": "Upward advective flux of temperature through the velocity faces."
    },
    "Aₜ": {
      "type": "unknown",
      "units": "K/s",
      "shape": [
        "zt"
      ],
      "description": "Vertical-advection tendency of temperature: (−∂ℱ/∂z + T ∂fρ/∂z)/ρ."
    },
    "𝒱ₜ": {
      "type": "unknown",
      "units": "K/s",
      "shape": [
        "zt"
      ],
      "description": "Eddy-diffusion tendency of temperature."
    },
    "ℱᵥ": {
      "type": "unknown",
      "units": "kg/m^2/s",
      "shape": [
        "zm"
      ],
      "description": "Upward advective flux of water vapor through the velocity faces."
    },
    "Aᵥ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Vertical-advection tendency of water vapor: (−∂ℱ/∂z + qᵥ ∂fρ/∂z)/ρ."
    },
    "𝒱ᵥ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Eddy-diffusion tendency of water vapor."
    },
    "ℱₗ": {
      "type": "unknown",
      "units": "kg/m^2/s",
      "shape": [
        "zm"
      ],
      "description": "Upward advective flux of cloud water through the velocity faces."
    },
    "Aₗ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Vertical-advection tendency of cloud water: (−∂ℱ/∂z + qₗ ∂fρ/∂z)/ρ."
    },
    "𝒱ₗ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Eddy-diffusion tendency of cloud water."
    },
    "ℱᵣ": {
      "type": "unknown",
      "units": "kg/m^2/s",
      "shape": [
        "zm"
      ],
      "description": "Upward advective flux of rain through the velocity faces."
    },
    "Aᵣ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Vertical-advection tendency of rain: (−∂ℱ/∂z + qᵣ ∂fρ/∂z)/ρ."
    },
    "𝒱ᵣ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Eddy-diffusion tendency of rain."
    },
    "ℱᵢ": {
      "type": "unknown",
      "units": "kg/m^2/s",
      "shape": [
        "zm"
      ],
      "description": "Upward advective flux of cloud ice through the velocity faces."
    },
    "Aᵢ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Vertical-advection tendency of cloud ice: (−∂ℱ/∂z + qᵢ ∂fρ/∂z)/ρ."
    },
    "𝒱ᵢ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Eddy-diffusion tendency of cloud ice."
    },
    "ℱᵤ": {
      "type": "unknown",
      "units": "kg/m^2/s*(m/s)",
      "shape": [
        "zm"
      ],
      "description": "Upward advective flux of horizontal velocity through the velocity faces."
    },
    "Aᵤ": {
      "type": "unknown",
      "units": "m/s/s",
      "shape": [
        "zt"
      ],
      "description": "Vertical-advection tendency of horizontal velocity: (−∂ℱ/∂z + u ∂fρ/∂z)/ρ."
    },
    "𝒱ᵤ": {
      "type": "unknown",
      "units": "m/s/s",
      "shape": [
        "zt"
      ],
      "description": "Eddy-diffusion tendency of horizontal velocity."
    },
    "ℱᵣₐ": {
      "type": "unknown",
      "units": "kg/m^2/s*(m)",
      "shape": [
        "zm"
      ],
      "description": "Upward advective flux of plume radius through the velocity faces."
    },
    "Aᵣₐ": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "zt"
      ],
      "description": "Vertical-advection tendency of plume radius: (−∂ℱ/∂z + r ∂fρ/∂z)/ρ."
    },
    "𝒱ᵣₐ": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "zt"
      ],
      "description": "Eddy-diffusion tendency of plume radius."
    },
    "ℱ𝒸": {
      "type": "unknown",
      "units": "kg/m^2/s",
      "shape": [
        "zm"
      ],
      "description": "Upward advective flux of passive tracer through the velocity faces."
    },
    "A𝒸": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Vertical-advection tendency of passive tracer: (−∂ℱ/∂z + c ∂fρ/∂z)/ρ."
    },
    "𝒱𝒸": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Eddy-diffusion tendency of passive tracer."
    },
    "𝒮ᵣ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Rain sedimentation tendency (fall speed vᵣ)."
    },
    "𝒮ᵢ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Ice sedimentation tendency (fall speed vᵢ)."
    },
    "σᴅ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Rayleigh sponge rate above the highest plume top reached so far: zero below height (kₜ − 1)Δz, rising linearly over the depth ℋᴅ to 1/τᴅ and constant above (the Fortran sponge occupies the 20 levels above kkmax, the top of its active column, and leaves the levels above that unchanged)."
    },
    "R𝑤": {
      "type": "unknown",
      "units": "m/s^2",
      "shape": [
        "zm"
      ],
      "description": "Vertical-velocity tendency: advection, buoyancy, entrainment drag, diffusion and sponge damping."
    },
    "Rₜ": {
      "type": "unknown",
      "units": "K/s",
      "shape": [
        "zt"
      ],
      "description": "Temperature tendency: advection, diffusion, entrainment, dry-adiabatic cooling of rising air, sponge relaxation and latent heating."
    },
    "Rᵥ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Water-vapor tendency."
    },
    "Rₗ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Cloud-water tendency."
    },
    "Rᵣ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Rain tendency, including sedimentation."
    },
    "Rᵢ": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Ice tendency, including sedimentation."
    },
    "Rᵤ": {
      "type": "unknown",
      "units": "m/s^2",
      "shape": [
        "zt"
      ],
      "description": "Horizontal-velocity tendency: advection, diffusion and exchange with the ambient wind."
    },
    "Rᵣₐ": {
      "type": "unknown",
      "units": "m/s",
      "shape": [
        "zt"
      ],
      "description": "Radius tendency: advection, diffusion, entrainment growth and wind-shear growth."
    },
    "R𝒸": {
      "type": "unknown",
      "units": "1/s",
      "shape": [
        "zt"
      ],
      "description": "Tracer tendency: advection, diffusion and dilution by entrained tracer-free air."
    },
    "j⋆": {
      "type": "unknown",
      "units": "1",
      "description": "First velocity level with w ≤ wₘᵢₙ (nₗ if none)."
    },
    "hₚ": {
      "type": "unknown",
      "units": "m",
      "description": "Plume-top height (j⋆ − 1)Δz: the height of the first velocity level with w ≤ wₘᵢₙ (the Fortran ztop)."
    },
    "jᶜ": {
      "type": "unknown",
      "units": "1",
      "description": "Plume-top level as a continuous number: the position between velocity levels j⋆ − 1 and j⋆ at which w, interpolated linearly, falls to wₘᵢₙ (1 when the lower boundary is already below wₘᵢₙ). Unlike j⋆ it does not jump when the plume top passes a level."
    },
    "kₜ": {
      "type": "unknown",
      "units": "1",
      "description": "Highest plume-top level reached so far (the Fortran kkmax, here continuous): a running maximum of jᶜ that starts at level 10 and never decreases. It follows increases of jᶜ with the tracking time τⱼ. The Rayleigh sponge starts at this level."
    },
    "τⱼ": {
      "type": "parameter",
      "units": "s",
      "default": 0.5,
      "description": "Tracking time of the running maximum kₜ of the plume-top level; small compared with the time the plume top takes to rise one level (about 10 s), so kₜ is the running maximum to within a fraction of a second."
    },
    "𝒲": {
      "type": "unknown",
      "units": "m/s",
      "description": "Maximum absolute vertical velocity."
    }
  },
  "expression_templates": {
    "eₛ": {
      "params": [
        "X"
      ],
      "body": {
        "op": "*",
        "args": [
          "e₀",
          {
            "op": "exp",
            "args": [
              {
                "op": "/",
                "args": [
                  {
                    "op": "*",
                    "args": [
                      "aₑₛ",
                      {
                        "op": "apply_expression_template",
                        "args": [],
                        "name": "ΔTᵣ",
                        "bindings": {
                          "X": "X"
                        }
                      }
                    ]
                  },
                  {
                    "op": "-",
                    "args": [
                      "X",
                      "Tₑₛ"
                    ]
                  }
                ]
              }
            ]
          }
        ]
      },
      "description": "Tetens saturation vapor pressure in kPa for temperature X in K, using reference temperature Tᵣ and denominator offset Tₑₛ."
    },
    "qₛ": {
      "params": [
        "X",
        "P"
      ],
      "body": {
        "op": "/",
        "args": [
          {
            "op": "*",
            "args": [
              "εᵥ",
              {
                "op": "apply_expression_template",
                "args": [],
                "name": "eₛ",
                "bindings": {
                  "X": "X"
                }
              }
            ]
          },
          {
            "op": "-",
            "args": [
              "P",
              {
                "op": "apply_expression_template",
                "args": [],
                "name": "eₛ",
                "bindings": {
                  "X": "X"
                }
              }
            ]
          }
        ]
      },
      "description": "Saturation water-vapor mixing ratio εᵥ eₛ/(P − eₛ), in kg/kg; temperature X is in K and pressure P in kPa."
    },
    "Tᵥ": {
      "params": [
        "X",
        "q"
      ],
      "body": {
        "op": "/",
        "args": [
          {
            "op": "*",
            "args": [
              "X",
              {
                "op": "apply_expression_template",
                "args": [],
                "name": "φᵥ",
                "bindings": {
                  "q": "q"
                }
              }
            ]
          },
          {
            "op": "+",
            "args": [
              1,
              "q"
            ]
          }
        ]
      },
      "description": "Moist virtual temperature X(1 + q/εᵥ)/(1 + q), in K, for water-vapor mass mixing ratio q in kg/kg."
    },
    "φᵥ": {
      "params": [
        "q"
      ],
      "body": {
        "op": "+",
        "args": [
          1,
          {
            "op": "/",
            "args": [
              "q",
              "εᵥ"
            ]
          }
        ]
      },
      "description": "Water-vapor molecular-mass correction 1 + q/εᵥ for virtual temperature. Dimensionless."
    },
    "ΔTᵣ": {
      "params": [
        "X"
      ],
      "body": {
        "op": "-",
        "args": [
          "X",
          "Tᵣ"
        ]
      },
      "description": "Temperature relative to the Tetens reference Tᵣ. Units: K."
    },
    "fᵥᵢ": {
      "params": [
        "w"
      ],
      "body": {
        "op": "+",
        "args": [
          "cᵢ₀",
          {
            "op": "/",
            "args": [
              {
                "op": "*",
                "args": [
                  "cᵢ₁",
                  {
                    "op": "^",
                    "args": [
                      {
                        "op": "abs",
                        "args": [
                          {
                            "op": "+",
                            "args": [
                              "w",
                              "vᵢ"
                            ]
                          }
                        ]
                      },
                      1.5
                    ]
                  }
                ]
              },
              "cₘ"
            ]
          }
        ]
      },
      "description": "Ice ventilation coefficient cᵢ₀ + cᵢ₁|w + vᵢ|^1.5/cₘ for vertical velocity w: falling ice ventilated by the air flowing past it sublimates and melts faster. Dimensionless."
    },
    "E": {
      "params": [
        "q",
        "qₑ"
      ],
      "body": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "*",
          "args": [
            {
              "op": "-",
              "args": [
                {
                  "op": "+",
                  "args": [
                    {
                      "op": "index",
                      "args": [
                        "λ",
                        "k"
                      ]
                    },
                    {
                      "op": "index",
                      "args": [
                        "λ𝑤",
                        "k"
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "op": "-",
              "args": [
                {
                  "op": "index",
                  "args": [
                    "q",
                    "k"
                  ]
                },
                {
                  "op": "index",
                  "args": [
                    "qₑ",
                    "k"
                  ]
                }
              ]
            }
          ]
        }
      },
      "description": "Ambient exchange tendency −(λ + λ𝑤)(q − qₑ) on scalar levels. Output units equal the units of q per second."
    },
    "V": {
      "params": [
        "q",
        "ζ"
      ],
      "body": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              {
                "op": "-",
                "args": [
                  "NLEV",
                  1
                ]
              }
            ]
          ],
          [
            [
              "NLEV",
              "NLEV"
            ]
          ]
        ],
        "values": [
          0,
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                {
                  "op": "-",
                  "args": [
                    "NLEV",
                    1
                  ]
                }
              ]
            },
            "expr": {
              "op": "/",
              "args": [
                {
                  "op": "*",
                  "args": [
                    {
                      "op": "index",
                      "args": [
                        "ν",
                        "k"
                      ]
                    },
                    {
                      "op": "+",
                      "args": [
                        {
                          "op": "-",
                          "args": [
                            {
                              "op": "index",
                              "args": [
                                "q",
                                {
                                  "op": "+",
                                  "args": [
                                    "k",
                                    1
                                  ]
                                }
                              ]
                            },
                            {
                              "op": "*",
                              "args": [
                                2,
                                {
                                  "op": "index",
                                  "args": [
                                    "q",
                                    "k"
                                  ]
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "index",
                          "args": [
                            "q",
                            {
                              "op": "-",
                              "args": [
                                "k",
                                1
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "op": "^",
                  "args": [
                    {
                      "op": "/",
                      "args": [
                        {
                          "op": "-",
                          "args": [
                            {
                              "op": "index",
                              "args": [
                                "ζ",
                                {
                                  "op": "+",
                                  "args": [
                                    "k",
                                    1
                                  ]
                                }
                              ]
                            },
                            {
                              "op": "index",
                              "args": [
                                "ζ",
                                {
                                  "op": "-",
                                  "args": [
                                    "k",
                                    1
                                  ]
                                }
                              ]
                            }
                          ]
                        },
                        2
                      ]
                    },
                    2
                  ]
                }
              ]
            }
          },
          0
        ]
      },
      "description": "Eddy diffusion ν times a centered second difference divided by squared half-span. Both boundary tendencies are zero. Output units equal the units of q per second."
    },
    "∇ₜ": {
      "params": [
        "f"
      ],
      "body": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              {
                "op": "-",
                "args": [
                  "NLEV",
                  1
                ]
              }
            ]
          ],
          [
            [
              "NLEV",
              "NLEV"
            ]
          ]
        ],
        "values": [
          0,
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                {
                  "op": "-",
                  "args": [
                    "NLEV",
                    1
                  ]
                }
              ]
            },
            "expr": {
              "op": "/",
              "args": [
                {
                  "op": "-",
                  "args": [
                    {
                      "op": "index",
                      "args": [
                        "f",
                        {
                          "op": "+",
                          "args": [
                            "k",
                            1
                          ]
                        }
                      ]
                    },
                    {
                      "op": "index",
                      "args": [
                        "f",
                        {
                          "op": "-",
                          "args": [
                            "k",
                            1
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "op": "-",
                  "args": [
                    {
                      "op": "index",
                      "args": [
                        "zₜ",
                        {
                          "op": "+",
                          "args": [
                            "k",
                            1
                          ]
                        }
                      ]
                    },
                    {
                      "op": "index",
                      "args": [
                        "zₜ",
                        {
                          "op": "-",
                          "args": [
                            "k",
                            1
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          },
          0
        ]
      },
      "description": "Centered vertical gradient on scalar levels; boundary gradients are set to zero. Output units equal the input units per metre. Rewrite rule: applied automatically, through its match pattern, to every vertical derivative D(f, z) in the equations whose operand lies on the scalar levels (shape zt); it is never called by name and must not be removed.",
      "match": {
        "op": "D",
        "args": [
          "f"
        ],
        "wrt": "z"
      },
      "where": {
        "f": {
          "shape": [
            "zt"
          ]
        }
      }
    },
    "∇𝒻": {
      "params": [
        "F"
      ],
      "body": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              {
                "op": "-",
                "args": [
                  "NLEV",
                  1
                ]
              }
            ]
          ],
          [
            [
              "NLEV",
              "NLEV"
            ]
          ]
        ],
        "values": [
          0,
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                {
                  "op": "-",
                  "args": [
                    "NLEV",
                    1
                  ]
                }
              ]
            },
            "expr": {
              "op": "/",
              "args": [
                {
                  "op": "-",
                  "args": [
                    {
                      "op": "index",
                      "args": [
                        "F",
                        "k"
                      ]
                    },
                    {
                      "op": "index",
                      "args": [
                        "F",
                        {
                          "op": "-",
                          "args": [
                            "k",
                            1
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "op": "-",
                  "args": [
                    {
                      "op": "index",
                      "args": [
                        "z𝑤",
                        "k"
                      ]
                    },
                    {
                      "op": "index",
                      "args": [
                        "z𝑤",
                        {
                          "op": "-",
                          "args": [
                            "k",
                            1
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          },
          0
        ]
      },
      "description": "Vertical divergence of face flux over the staggered layer thickness; zero at the lower and upper boundary levels. Output units equal flux units per metre. Rewrite rule: applied automatically, through its match pattern, to every vertical derivative D(f, z) in the equations whose operand lies on the velocity faces (shape zm); it is never called by name and must not be removed.",
      "match": {
        "op": "D",
        "args": [
          "F"
        ],
        "wrt": "z"
      },
      "where": {
        "F": {
          "shape": [
            "zm"
          ]
        }
      }
    },
    "Ω": {
      "params": [
        "f",
        "o"
      ],
      "body": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              {
                "op": "-",
                "args": [
                  "NLEV",
                  1
                ]
              }
            ]
          ],
          [
            [
              "NLEV",
              "NLEV"
            ]
          ]
        ],
        "values": [
          "o",
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                {
                  "op": "-",
                  "args": [
                    "NLEV",
                    1
                  ]
                }
              ]
            },
            "expr": {
              "op": "index",
              "args": [
                "f",
                "k"
              ]
            }
          },
          "o"
        ]
      },
      "description": "Column tendency: f at levels 2 to nₗ − 1 and the dimensioned zero o at the lower-boundary and top levels."
    },
    "ℋ𝒻": {
      "params": [
        "s"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "<",
            "args": [
              "s",
              "tₘ"
            ]
          },
          "ℋₘᵢₙ",
          {
            "op": "ifelse",
            "args": [
              {
                "op": "<",
                "args": [
                  "s",
                  "tᵣ"
                ]
              },
              {
                "op": "apply_expression_template",
                "args": [],
                "name": "ℋᵣ",
                "bindings": {
                  "s": "s"
                }
              },
              {
                "op": "ifelse",
                "args": [
                  {
                    "op": "<=",
                    "args": [
                      "s",
                      "t𝒻"
                    ]
                  },
                  {
                    "op": "*",
                    "args": [
                      {
                        "op": "*",
                        "args": [
                          "Q𝒻",
                          "κW"
                        ]
                      },
                      "η"
                    ]
                  },
                  "ℋₑₙd"
                ]
              }
            ]
          }
        ]
      },
      "description": "Surface convective heat flux at time s: the floor ℋₘᵢₙ for s < tₘ, the stepped ramp ℋᵣ for tₘ ≤ s < tᵣ, the full flux Q𝒻κWη for tᵣ ≤ s ≤ t𝒻, and the post-fire floor ℋₑₙd thereafter. Units: W/m²."
    },
    "ℋᵣ": {
      "params": [
        "s"
      ],
      "body": {
        "op": "/",
        "args": [
          {
            "op": "*",
            "args": [
              {
                "op": "*",
                "args": [
                  {
                    "op": "*",
                    "args": [
                      {
                        "op": "floor",
                        "args": [
                          {
                            "op": "/",
                            "args": [
                              "s",
                              "tₘ"
                            ]
                          }
                        ]
                      },
                      "Q𝒻"
                    ]
                  },
                  "κW"
                ]
              },
              "η"
            ]
          },
          {
            "op": "/",
            "args": [
              "tᵣ",
              "tₘ"
            ]
          }
        ]
      },
      "description": "Stepped heat-flux ramp at time s: the full convective flux Q𝒻κWη times the fraction floor(s/tₘ)/(tᵣ/tₘ), which rises in equal steps every tₘ and reaches the full flux at tᵣ. Q𝒻 is in kW/m²; output is in W/m²."
    },
    "zᴵ": {
      "params": [
        "k"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "==",
            "args": [
              "k",
              1
            ]
          },
          {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "m"
          },
          {
            "op": "*",
            "args": [
              {
                "op": "apply_expression_template",
                "args": [],
                "name": "ζₖ",
                "bindings": {
                  "k": "k"
                }
              },
              "Δz"
            ]
          }
        ]
      },
      "description": "Initial scalar height: zero at level 1 and (k − 1.5)Δz elsewhere. Units: m."
    },
    "ζₖ": {
      "params": [
        "k"
      ],
      "body": {
        "op": "-",
        "args": [
          "k",
          1.5
        ]
      },
      "description": "Scalar-level offset k − 1.5 used to calculate the initial height. Dimensionless."
    },
    "qᵥ⁽¹⁾": {
      "params": [
        "δq⁽⁰⁾",
        "v⁽⁰⁾",
        "Eₘ",
        "qₛ",
        "Eₗ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "==",
            "args": [
              "δq⁽⁰⁾",
              0.0
            ]
          },
          "v⁽⁰⁾",
          {
            "op": "ifelse",
            "args": [
              {
                "op": "<=",
                "args": [
                  "δq⁽⁰⁾",
                  0.0
                ]
              },
              {
                "op": "ifelse",
                "args": [
                  {
                    "op": ">=",
                    "args": [
                      "Eₘ",
                      {
                        "op": "abs",
                        "args": [
                          "δq⁽⁰⁾"
                        ]
                      }
                    ]
                  },
                  "qₛ",
                  {
                    "op": "-",
                    "args": [
                      "v⁽⁰⁾",
                      "Eₘ"
                    ]
                  }
                ]
              },
              {
                "op": "ifelse",
                "args": [
                  {
                    "op": "<=",
                    "args": [
                      "δq⁽⁰⁾",
                      "Eₗ"
                    ]
                  },
                  "qₛ",
                  {
                    "op": "+",
                    "args": [
                      "v⁽⁰⁾",
                      "Eₗ"
                    ]
                  }
                ]
              }
            ]
          }
        ]
      },
      "description": "Water-vapor mixing ratio after stage 1: condensation of excess vapor to cloud water, or evaporation of cloud water into unsaturated air. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "qₗ⁽¹⁾": {
      "params": [
        "δq⁽⁰⁾",
        "qₗᶜ",
        "Eₘ",
        "Eₗ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "==",
            "args": [
              "δq⁽⁰⁾",
              0.0
            ]
          },
          "qₗᶜ",
          {
            "op": "ifelse",
            "args": [
              {
                "op": "<=",
                "args": [
                  "δq⁽⁰⁾",
                  0.0
                ]
              },
              {
                "op": "ifelse",
                "args": [
                  {
                    "op": ">=",
                    "args": [
                      "Eₘ",
                      {
                        "op": "abs",
                        "args": [
                          "δq⁽⁰⁾"
                        ]
                      }
                    ]
                  },
                  {
                    "op": "-",
                    "args": [
                      "qₗᶜ",
                      "δq⁽⁰⁾"
                    ]
                  },
                  {
                    "op": "+",
                    "args": [
                      "qₗᶜ",
                      "Eₘ"
                    ]
                  }
                ]
              },
              {
                "op": "ifelse",
                "args": [
                  {
                    "op": "<=",
                    "args": [
                      "δq⁽⁰⁾",
                      "Eₗ"
                    ]
                  },
                  {
                    "op": "-",
                    "args": [
                      "qₗᶜ",
                      "δq⁽⁰⁾"
                    ]
                  },
                  {
                    "op": "ifelse",
                    "args": [
                      {
                        "op": "<=",
                        "args": [
                          "Eₘ",
                          "qₗᶜ"
                        ]
                      },
                      {
                        "op": "-",
                        "args": [
                          "qₗᶜ",
                          "Eₘ"
                        ]
                      },
                      0.0
                    ]
                  }
                ]
              }
            ]
          }
        ]
      },
      "description": "Cloud-water mixing ratio after stage 1 (condensation or evaporation). Cloud water loads the plume, reducing buoyancy, and is the source of rain. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "T⁽¹⁾": {
      "params": [
        "δq⁽⁰⁾",
        "T⁽⁰⁾",
        "Eₘ",
        "Eₗ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "==",
            "args": [
              "δq⁽⁰⁾",
              0.0
            ]
          },
          "T⁽⁰⁾",
          {
            "op": "ifelse",
            "args": [
              {
                "op": "<=",
                "args": [
                  "δq⁽⁰⁾",
                  0.0
                ]
              },
              {
                "op": "ifelse",
                "args": [
                  {
                    "op": ">=",
                    "args": [
                      "Eₘ",
                      {
                        "op": "abs",
                        "args": [
                          "δq⁽⁰⁾"
                        ]
                      }
                    ]
                  },
                  {
                    "op": "-",
                    "args": [
                      "T⁽⁰⁾",
                      {
                        "op": "*",
                        "args": [
                          "δq⁽⁰⁾",
                          "Λᵥ"
                        ]
                      }
                    ]
                  },
                  {
                    "op": "+",
                    "args": [
                      "T⁽⁰⁾",
                      {
                        "op": "*",
                        "args": [
                          "Eₘ",
                          "Λᵥ"
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "op": "-",
                "args": [
                  "T⁽⁰⁾",
                  {
                    "op": "*",
                    "args": [
                      {
                        "op": "ifelse",
                        "args": [
                          {
                            "op": "<=",
                            "args": [
                              "δq⁽⁰⁾",
                              "Eₗ"
                            ]
                          },
                          "δq⁽⁰⁾",
                          "Eₗ"
                        ]
                      },
                      "Λᵥ"
                    ]
                  }
                ]
              }
            ]
          }
        ]
      },
      "description": "Temperature after stage 1. Condensation releases latent heat that warms the plume and adds buoyancy; cloud evaporation cools it. Units: K."
    },
    "δq⁽¹⁾": {
      "params": [
        "δq⁽⁰⁾",
        "Eₗ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": ">",
            "args": [
              "δq⁽⁰⁾",
              0.0
            ]
          },
          {
            "op": "ifelse",
            "args": [
              {
                "op": "<=",
                "args": [
                  "δq⁽⁰⁾",
                  "Eₗ"
                ]
              },
              0.0,
              {
                "op": "-",
                "args": [
                  "δq⁽⁰⁾",
                  "Eₗ"
                ]
              }
            ]
          },
          0.0
        ]
      },
      "description": "Remaining nonnegative vapor deficit after cloud condensation or evaporation. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "Eᵣ⁽⁰⁾": {
      "params": [
        "δq⁽⁰⁾",
        "Eₗ",
        "qᵣᶜ",
        "τ",
        "Qᵣ",
        "ρ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χᵣ",
            "bindings": {
              "δq⁽⁰⁾": "δq⁽⁰⁾",
              "Eₗ": "Eₗ",
              "qᵣᶜ": "qᵣᶜ"
            }
          },
          {
            "op": "/",
            "args": [
              {
                "op": "*",
                "args": [
                  {
                    "op": "*",
                    "args": [
                      {
                        "op": "*",
                        "args": [
                          "τ",
                          "aᵣ"
                        ]
                      },
                      "Qᵣ"
                    ]
                  },
                  {
                    "op": "^",
                    "args": [
                      {
                        "op": "apply_expression_template",
                        "args": [],
                        "name": "mᵣᶜ",
                        "bindings": {
                          "qᵣᶜ": "qᵣᶜ",
                          "ρ": "ρ"
                        }
                      },
                      0.65
                    ]
                  }
                ]
              },
              "ρ"
            ]
          },
          0.0
        ]
      },
      "description": "Potential rainwater evaporation over the supplied interval τ (s), before limitation by available rain and vapor deficit. Superscript (0) identifies the potential transfer. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "qᵥ⁽²⁾": {
      "params": [
        "δq⁽⁰⁾",
        "Eₗ",
        "qᵣᶜ",
        "δq⁽¹⁾",
        "Eᵣ",
        "qₛ",
        "qᵥ⁽¹⁾"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χᵣ",
            "bindings": {
              "δq⁽⁰⁾": "δq⁽⁰⁾",
              "Eₗ": "Eₗ",
              "qᵣᶜ": "qᵣᶜ"
            }
          },
          {
            "op": "ifelse",
            "args": [
              {
                "op": "<=",
                "args": [
                  "δq⁽¹⁾",
                  "Eᵣ"
                ]
              },
              "qₛ",
              {
                "op": "+",
                "args": [
                  "qᵥ⁽¹⁾",
                  "Eᵣ"
                ]
              }
            ]
          },
          "qᵥ⁽¹⁾"
        ]
      },
      "description": "Water-vapor mixing ratio after stage 2, evaporation of rain into unsaturated air. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "qᵣ⁽²⁾": {
      "params": [
        "δq⁽⁰⁾",
        "Eₗ",
        "qᵣᶜ",
        "δq⁽¹⁾",
        "Eᵣ",
        "Eᵣ⁽⁰⁾"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χᵣ",
            "bindings": {
              "δq⁽⁰⁾": "δq⁽⁰⁾",
              "Eₗ": "Eₗ",
              "qᵣᶜ": "qᵣᶜ"
            }
          },
          {
            "op": "ifelse",
            "args": [
              {
                "op": "<=",
                "args": [
                  "δq⁽¹⁾",
                  "Eᵣ"
                ]
              },
              {
                "op": "-",
                "args": [
                  "qᵣᶜ",
                  "δq⁽¹⁾"
                ]
              },
              {
                "op": "ifelse",
                "args": [
                  {
                    "op": "<=",
                    "args": [
                      "Eᵣ⁽⁰⁾",
                      "qᵣᶜ"
                    ]
                  },
                  {
                    "op": "-",
                    "args": [
                      "qᵣᶜ",
                      "Eᵣ⁽⁰⁾"
                    ]
                  },
                  0.0
                ]
              }
            ]
          },
          "qᵣᶜ"
        ]
      },
      "description": "Rainwater mixing ratio after stage 2 (rain evaporation). Mass basis: kg water per kg dry air. Dimensionless."
    },
    "T⁽²⁾": {
      "params": [
        "δq⁽⁰⁾",
        "Eₗ",
        "qᵣᶜ",
        "T⁽¹⁾",
        "δq⁽¹⁾",
        "Eᵣ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χᵣ",
            "bindings": {
              "δq⁽⁰⁾": "δq⁽⁰⁾",
              "Eₗ": "Eₗ",
              "qᵣᶜ": "qᵣᶜ"
            }
          },
          {
            "op": "-",
            "args": [
              "T⁽¹⁾",
              {
                "op": "*",
                "args": [
                  {
                    "op": "ifelse",
                    "args": [
                      {
                        "op": "<=",
                        "args": [
                          "δq⁽¹⁾",
                          "Eᵣ"
                        ]
                      },
                      "δq⁽¹⁾",
                      "Eᵣ"
                    ]
                  },
                  "Λᵥ"
                ]
              }
            ]
          },
          "T⁽¹⁾"
        ]
      },
      "description": "Temperature after stage 2. Rain evaporation absorbs latent heat and cools the plume, reducing buoyancy. Units: K."
    },
    "δq⁽²⁾": {
      "params": [
        "δq⁽⁰⁾",
        "Eₗ",
        "qᵣᶜ",
        "δq⁽¹⁾",
        "Eᵣ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χᵣ",
            "bindings": {
              "δq⁽⁰⁾": "δq⁽⁰⁾",
              "Eₗ": "Eₗ",
              "qᵣᶜ": "qᵣᶜ"
            }
          },
          {
            "op": "ifelse",
            "args": [
              {
                "op": "<=",
                "args": [
                  "δq⁽¹⁾",
                  "Eᵣ"
                ]
              },
              0.0,
              {
                "op": "-",
                "args": [
                  "δq⁽¹⁾",
                  "Eᵣ"
                ]
              }
            ]
          },
          "δq⁽¹⁾"
        ]
      },
      "description": "Remaining nonnegative vapor deficit after rain evaporation. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "Dᵢ": {
      "params": [
        "eₛ"
      ],
      "body": {
        "op": "+",
        "args": [
          "aᵢ",
          {
            "op": "/",
            "args": [
              "bᵢ",
              {
                "op": "*",
                "args": [
                  "κₑ",
                  {
                    "op": "/",
                    "args": [
                      "eₛ",
                      {
                        "op": "const",
                        "args": [],
                        "value": 1,
                        "units": "kPa"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      },
      "description": "Normalized resistance to vapor transfer between air and ice, with saturation vapor pressure scaled by 1 kPa. Dimensionless."
    },
    "𝒩ᵢ⁻": {
      "params": [
        "δq⁽⁰⁾",
        "Eₗ",
        "qᵣᶜ",
        "δq⁽¹⁾",
        "Eᵣ",
        "qᵢᶜ",
        "ρ",
        "δq⁽²⁾",
        "qₛ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χᵢ",
            "bindings": {
              "δq⁽⁰⁾": "δq⁽⁰⁾",
              "Eₗ": "Eₗ",
              "qᵣᶜ": "qᵣᶜ",
              "δq⁽¹⁾": "δq⁽¹⁾",
              "Eᵣ": "Eᵣ",
              "qᵢᶜ": "qᵢᶜ"
            }
          },
          {
            "op": "*",
            "args": [
              {
                "op": "*",
                "args": [
                  {
                    "op": "*",
                    "args": [
                      {
                        "op": "^",
                        "args": [
                          {
                            "op": "/",
                            "args": [
                              "κρᵢ",
                              {
                                "op": "/",
                                "args": [
                                  "ρ",
                                  {
                                    "op": "const",
                                    "args": [],
                                    "value": 1,
                                    "units": "g/m^3"
                                  }
                                ]
                              }
                            ]
                          },
                          0.475
                        ]
                      },
                      {
                        "op": "apply_expression_template",
                        "args": [],
                        "name": "sᵢ⁻",
                        "bindings": {
                          "δq⁽²⁾": "δq⁽²⁾",
                          "qₛ": "qₛ"
                        }
                      }
                    ]
                  },
                  {
                    "op": "^",
                    "args": [
                      "qᵢᶜ",
                      0.525
                    ]
                  }
                ]
              },
              "cᵢₛ"
            ]
          },
          0.0
        ]
      },
      "description": "Normalized driving term for ice sublimation, combining vapor deficit, ice content and air density scaled by 1 g/m³. Dimensionless."
    },
    "Eᵢ⁽⁰⁾": {
      "params": [
        "δq⁽⁰⁾",
        "Eₗ",
        "qᵣᶜ",
        "δq⁽¹⁾",
        "Eᵣ",
        "qᵢᶜ",
        "cᵢ",
        "𝒩ᵢ⁻",
        "Dᵢ",
        "τ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χᵢ",
            "bindings": {
              "δq⁽⁰⁾": "δq⁽⁰⁾",
              "Eₗ": "Eₗ",
              "qᵣᶜ": "qᵣᶜ",
              "δq⁽¹⁾": "δq⁽¹⁾",
              "Eᵣ": "Eᵣ",
              "qᵢᶜ": "qᵢᶜ"
            }
          },
          {
            "op": "*",
            "args": [
              {
                "op": "/",
                "args": [
                  {
                    "op": "*",
                    "args": [
                      {
                        "op": "-",
                        "args": [
                          "cᵢ"
                        ]
                      },
                      "𝒩ᵢ⁻"
                    ]
                  },
                  "Dᵢ"
                ]
              },
              {
                "op": "/",
                "args": [
                  "τ",
                  {
                    "op": "const",
                    "args": [],
                    "value": 1,
                    "units": "s"
                  }
                ]
              }
            ]
          },
          0.0
        ]
      },
      "description": "Potential ice sublimation over the supplied interval τ (s), before limitation by available ice and vapor deficit. Superscript (0) identifies the potential transfer. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "qᵥ⁽³⁾": {
      "params": [
        "δq⁽⁰⁾",
        "Eₗ",
        "qᵣᶜ",
        "δq⁽¹⁾",
        "Eᵣ",
        "qᵢᶜ",
        "δq⁽²⁾",
        "Eᵢ",
        "qₛ",
        "qᵥ⁽²⁾"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χᵢ",
            "bindings": {
              "δq⁽⁰⁾": "δq⁽⁰⁾",
              "Eₗ": "Eₗ",
              "qᵣᶜ": "qᵣᶜ",
              "δq⁽¹⁾": "δq⁽¹⁾",
              "Eᵣ": "Eᵣ",
              "qᵢᶜ": "qᵢᶜ"
            }
          },
          {
            "op": "ifelse",
            "args": [
              {
                "op": "<=",
                "args": [
                  "δq⁽²⁾",
                  "Eᵢ"
                ]
              },
              "qₛ",
              {
                "op": "+",
                "args": [
                  "qᵥ⁽²⁾",
                  "Eᵢ"
                ]
              }
            ]
          },
          "qᵥ⁽²⁾"
        ]
      },
      "description": "Water-vapor mixing ratio after stage 3, sublimation of ice into unsaturated air. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "qᵢ⁽³⁾": {
      "params": [
        "δq⁽⁰⁾",
        "Eₗ",
        "qᵣᶜ",
        "δq⁽¹⁾",
        "Eᵣ",
        "qᵢᶜ",
        "δq⁽²⁾",
        "Eᵢ",
        "Eᵢ⁽⁰⁾"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χᵢ",
            "bindings": {
              "δq⁽⁰⁾": "δq⁽⁰⁾",
              "Eₗ": "Eₗ",
              "qᵣᶜ": "qᵣᶜ",
              "δq⁽¹⁾": "δq⁽¹⁾",
              "Eᵣ": "Eᵣ",
              "qᵢᶜ": "qᵢᶜ"
            }
          },
          {
            "op": "ifelse",
            "args": [
              {
                "op": "<=",
                "args": [
                  "δq⁽²⁾",
                  "Eᵢ"
                ]
              },
              {
                "op": "-",
                "args": [
                  "qᵢᶜ",
                  "δq⁽²⁾"
                ]
              },
              {
                "op": "ifelse",
                "args": [
                  {
                    "op": "<=",
                    "args": [
                      "Eᵢ⁽⁰⁾",
                      "qᵢᶜ"
                    ]
                  },
                  {
                    "op": "-",
                    "args": [
                      "qᵢᶜ",
                      "Eᵢ⁽⁰⁾"
                    ]
                  },
                  0.0
                ]
              }
            ]
          },
          "qᵢᶜ"
        ]
      },
      "description": "Ice mixing ratio after stage 3 (sublimation). Mass basis: kg water per kg dry air. Dimensionless."
    },
    "T⁽³⁾": {
      "params": [
        "δq⁽⁰⁾",
        "Eₗ",
        "qᵣᶜ",
        "δq⁽¹⁾",
        "Eᵣ",
        "qᵢᶜ",
        "T⁽²⁾",
        "δq⁽²⁾",
        "Eᵢ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χᵢ",
            "bindings": {
              "δq⁽⁰⁾": "δq⁽⁰⁾",
              "Eₗ": "Eₗ",
              "qᵣᶜ": "qᵣᶜ",
              "δq⁽¹⁾": "δq⁽¹⁾",
              "Eᵣ": "Eᵣ",
              "qᵢᶜ": "qᵢᶜ"
            }
          },
          {
            "op": "-",
            "args": [
              "T⁽²⁾",
              {
                "op": "*",
                "args": [
                  {
                    "op": "ifelse",
                    "args": [
                      {
                        "op": "<=",
                        "args": [
                          "δq⁽²⁾",
                          "Eᵢ"
                        ]
                      },
                      "δq⁽²⁾",
                      "Eᵢ"
                    ]
                  },
                  "Λₛ"
                ]
              }
            ]
          },
          "T⁽²⁾"
        ]
      },
      "description": "Temperature after stage 3. Ice sublimation absorbs latent heat and cools the plume. Units: K."
    },
    "𝒩ᵢ⁺": {
      "params": [
        "T⁽³⁾",
        "qᵥ⁽³⁾",
        "qₛ",
        "ρ",
        "qᵢ⁽³⁾"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χₛ",
            "bindings": {
              "T⁽³⁾": "T⁽³⁾",
              "qᵥ⁽³⁾": "qᵥ⁽³⁾",
              "qₛ": "qₛ"
            }
          },
          {
            "op": "*",
            "args": [
              {
                "op": "*",
                "args": [
                  {
                    "op": "*",
                    "args": [
                      {
                        "op": "^",
                        "args": [
                          {
                            "op": "/",
                            "args": [
                              "κρᵢ",
                              {
                                "op": "/",
                                "args": [
                                  "ρ",
                                  {
                                    "op": "const",
                                    "args": [],
                                    "value": 1,
                                    "units": "g/m^3"
                                  }
                                ]
                              }
                            ]
                          },
                          0.475
                        ]
                      },
                      {
                        "op": "apply_expression_template",
                        "args": [],
                        "name": "sᵢ⁺",
                        "bindings": {
                          "qᵥ⁽³⁾": "qᵥ⁽³⁾",
                          "qₛ": "qₛ"
                        }
                      }
                    ]
                  },
                  {
                    "op": "^",
                    "args": [
                      "qᵢ⁽³⁾",
                      0.525
                    ]
                  }
                ]
              },
              "cᵢₛ"
            ]
          },
          0.0
        ]
      },
      "description": "Normalized driving term for vapor deposition onto ice, combining supersaturation, ice content and air density scaled by 1 g/m³. Dimensionless."
    },
    "Δqₛ": {
      "params": [
        "T⁽³⁾",
        "qᵥ⁽³⁾",
        "qₛ",
        "𝒩ᵢ⁺",
        "Dᵢ",
        "τ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χₛ",
            "bindings": {
              "T⁽³⁾": "T⁽³⁾",
              "qᵥ⁽³⁾": "qᵥ⁽³⁾",
              "qₛ": "qₛ"
            }
          },
          {
            "op": "*",
            "args": [
              {
                "op": "abs",
                "args": [
                  {
                    "op": "/",
                    "args": [
                      "𝒩ᵢ⁺",
                      "Dᵢ"
                    ]
                  }
                ]
              },
              {
                "op": "/",
                "args": [
                  "τ",
                  {
                    "op": "const",
                    "args": [],
                    "value": 1,
                    "units": "s"
                  }
                ]
              }
            ]
          },
          0.0
        ]
      },
      "description": "Potential vapor deposition onto ice over the supplied interval τ (s); available vapor limits the subsequent phase updates. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "qᵥ⁽⁴⁾": {
      "params": [
        "T⁽³⁾",
        "qᵥ⁽³⁾",
        "qₛ",
        "Δqₛ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χₛ",
            "bindings": {
              "T⁽³⁾": "T⁽³⁾",
              "qᵥ⁽³⁾": "qᵥ⁽³⁾",
              "qₛ": "qₛ"
            }
          },
          {
            "op": "ifelse",
            "args": [
              {
                "op": "<",
                "args": [
                  "Δqₛ",
                  "qᵥ⁽³⁾"
                ]
              },
              {
                "op": "-",
                "args": [
                  "qᵥ⁽³⁾",
                  "Δqₛ"
                ]
              },
              0.0
            ]
          },
          "qᵥ⁽³⁾"
        ]
      },
      "description": "Water-vapor mixing ratio after stage 4, deposition of excess vapor onto ice at or below T𝒻. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "qᵢ⁽⁴⁾": {
      "params": [
        "T⁽³⁾",
        "qᵥ⁽³⁾",
        "qₛ",
        "Δqₛ",
        "qᵢ⁽³⁾"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χₛ",
            "bindings": {
              "T⁽³⁾": "T⁽³⁾",
              "qᵥ⁽³⁾": "qᵥ⁽³⁾",
              "qₛ": "qₛ"
            }
          },
          {
            "op": "ifelse",
            "args": [
              {
                "op": "<",
                "args": [
                  "Δqₛ",
                  "qᵥ⁽³⁾"
                ]
              },
              {
                "op": "+",
                "args": [
                  "qᵢ⁽³⁾",
                  "Δqₛ"
                ]
              },
              {
                "op": "+",
                "args": [
                  "qᵢ⁽³⁾",
                  "qᵥ⁽³⁾"
                ]
              }
            ]
          },
          "qᵢ⁽³⁾"
        ]
      },
      "description": "Ice mixing ratio after stage 4 (vapor deposition onto ice). When the potential deposition exceeds the available vapor, all of the vapor is added to the existing ice."
    },
    "T⁽⁴⁾": {
      "params": [
        "T⁽³⁾",
        "qᵥ⁽³⁾",
        "qₛ",
        "Δqₛ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χₛ",
            "bindings": {
              "T⁽³⁾": "T⁽³⁾",
              "qᵥ⁽³⁾": "qᵥ⁽³⁾",
              "qₛ": "qₛ"
            }
          },
          {
            "op": "+",
            "args": [
              "T⁽³⁾",
              {
                "op": "*",
                "args": [
                  {
                    "op": "ifelse",
                    "args": [
                      {
                        "op": "<",
                        "args": [
                          "Δqₛ",
                          "qᵥ⁽³⁾"
                        ]
                      },
                      "Δqₛ",
                      "qᵥ⁽³⁾"
                    ]
                  },
                  "Λₛ"
                ]
              }
            ]
          },
          "T⁽³⁾"
        ]
      },
      "description": "Temperature after stage 4. Deposition onto ice releases latent heat of sublimation, warming the plume and adding buoyancy. Units: K."
    },
    "Δq𝒻": {
      "params": [
        "qᵣ⁽²⁾",
        "qᵥ⁽⁴⁾",
        "qₛ",
        "T⁽⁴⁾",
        "τ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χ𝒻",
            "bindings": {
              "qᵣ⁽²⁾": "qᵣ⁽²⁾",
              "qᵥ⁽⁴⁾": "qᵥ⁽⁴⁾",
              "qₛ": "qₛ",
              "T⁽⁴⁾": "T⁽⁴⁾"
            }
          },
          {
            "op": "*",
            "args": [
              {
                "op": "*",
                "args": [
                  "τ",
                  "a𝒻"
                ]
              },
              "qᵣ⁽²⁾"
            ]
          },
          0.0
        ]
      },
      "description": "Potential rain-to-ice transfer by glaciation over the supplied interval τ (s); available rain limits the subsequent phase updates. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "qᵢ⁽⁵⁾": {
      "params": [
        "qᵣ⁽²⁾",
        "qᵥ⁽⁴⁾",
        "qₛ",
        "T⁽⁴⁾",
        "qᵢ⁽⁴⁾",
        "Δq𝒻"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χ𝒻",
            "bindings": {
              "qᵣ⁽²⁾": "qᵣ⁽²⁾",
              "qᵥ⁽⁴⁾": "qᵥ⁽⁴⁾",
              "qₛ": "qₛ",
              "T⁽⁴⁾": "T⁽⁴⁾"
            }
          },
          {
            "op": "+",
            "args": [
              "qᵢ⁽⁴⁾",
              {
                "op": "ifelse",
                "args": [
                  {
                    "op": "<",
                    "args": [
                      "Δq𝒻",
                      "qᵣ⁽²⁾"
                    ]
                  },
                  "Δq𝒻",
                  "qᵣ⁽²⁾"
                ]
              }
            ]
          },
          "qᵢ⁽⁴⁾"
        ]
      },
      "description": "Ice mixing ratio after stage 5, freezing of rain to ice (glaciation) at or below T𝒻 in saturated air. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "qᵣ⁽⁵⁾": {
      "params": [
        "qᵣ⁽²⁾",
        "qᵥ⁽⁴⁾",
        "qₛ",
        "T⁽⁴⁾",
        "Δq𝒻"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χ𝒻",
            "bindings": {
              "qᵣ⁽²⁾": "qᵣ⁽²⁾",
              "qᵥ⁽⁴⁾": "qᵥ⁽⁴⁾",
              "qₛ": "qₛ",
              "T⁽⁴⁾": "T⁽⁴⁾"
            }
          },
          {
            "op": "ifelse",
            "args": [
              {
                "op": "<",
                "args": [
                  "Δq𝒻",
                  "qᵣ⁽²⁾"
                ]
              },
              {
                "op": "-",
                "args": [
                  "qᵣ⁽²⁾",
                  "Δq𝒻"
                ]
              },
              0.0
            ]
          },
          "qᵣ⁽²⁾"
        ]
      },
      "description": "Rainwater mixing ratio after stage 5, in which part of the rain freezes to ice (glaciation) at or below T𝒻. Freezing matters for plume rise because it releases latent heat (see T⁽⁵⁾) that adds buoyancy to high, cold plumes. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "T⁽⁵⁾": {
      "params": [
        "qᵣ⁽²⁾",
        "qᵥ⁽⁴⁾",
        "qₛ",
        "T⁽⁴⁾",
        "Δq𝒻"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χ𝒻",
            "bindings": {
              "qᵣ⁽²⁾": "qᵣ⁽²⁾",
              "qᵥ⁽⁴⁾": "qᵥ⁽⁴⁾",
              "qₛ": "qₛ",
              "T⁽⁴⁾": "T⁽⁴⁾"
            }
          },
          {
            "op": "+",
            "args": [
              "T⁽⁴⁾",
              {
                "op": "*",
                "args": [
                  "Λ𝒻",
                  {
                    "op": "ifelse",
                    "args": [
                      {
                        "op": "<",
                        "args": [
                          "Δq𝒻",
                          "qᵣ⁽²⁾"
                        ]
                      },
                      "Δq𝒻",
                      "qᵣ⁽²⁾"
                    ]
                  }
                ]
              }
            ]
          },
          "T⁽⁴⁾"
        ]
      },
      "description": "Temperature after stage 5. Freezing of rain releases latent heat of fusion, warming the plume and adding buoyancy. Units: K."
    },
    "Δqₘ": {
      "params": [
        "qᵢ⁽⁵⁾",
        "T⁽⁵⁾",
        "τ",
        "ρ",
        "cᵢ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χₘ",
            "bindings": {
              "qᵢ⁽⁵⁾": "qᵢ⁽⁵⁾",
              "T⁽⁵⁾": "T⁽⁵⁾"
            }
          },
          {
            "op": "*",
            "args": [
              {
                "op": "*",
                "args": [
                  {
                    "op": "*",
                    "args": [
                      {
                        "op": "*",
                        "args": [
                          {
                            "op": "*",
                            "args": [
                              "τ",
                              {
                                "op": "/",
                                "args": [
                                  "aₘ",
                                  "ρ"
                                ]
                              }
                            ]
                          },
                          "cᵢ"
                        ]
                      },
                      {
                        "op": "apply_expression_template",
                        "args": [],
                        "name": "ΔTₘ",
                        "bindings": {
                          "T⁽⁵⁾": "T⁽⁵⁾"
                        }
                      }
                    ]
                  },
                  {
                    "op": "^",
                    "args": [
                      {
                        "op": "apply_expression_template",
                        "args": [],
                        "name": "mᵢᶜ",
                        "bindings": {
                          "qᵢ⁽⁵⁾": "qᵢ⁽⁵⁾",
                          "ρ": "ρ"
                        }
                      },
                      0.525
                    ]
                  }
                ]
              },
              {
                "op": "^",
                "args": [
                  "cₘ",
                  -0.42
                ]
              }
            ]
          },
          0.0
        ]
      },
      "description": "Potential ice-to-rain transfer by melting over the supplied interval τ (s); available ice limits the subsequent phase updates. Mass basis: kg water per kg dry air. Dimensionless. Density is supplied in g/m³; κₘ converts it to g/cm³ for the empirical melting relation, with temperature in K."
    },
    "qᵣ⁽⁶⁾": {
      "params": [
        "qᵢ⁽⁵⁾",
        "T⁽⁵⁾",
        "qᵣ⁽⁵⁾",
        "Δqₘ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χₘ",
            "bindings": {
              "qᵢ⁽⁵⁾": "qᵢ⁽⁵⁾",
              "T⁽⁵⁾": "T⁽⁵⁾"
            }
          },
          {
            "op": "+",
            "args": [
              "qᵣ⁽⁵⁾",
              {
                "op": "ifelse",
                "args": [
                  {
                    "op": "<",
                    "args": [
                      "Δqₘ",
                      "qᵢ⁽⁵⁾"
                    ]
                  },
                  "Δqₘ",
                  "qᵢ⁽⁵⁾"
                ]
              }
            ]
          },
          "qᵣ⁽⁵⁾"
        ]
      },
      "description": "Rainwater mixing ratio after stage 6, melting of ice to rain at or above Tₘ. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "qᵢ⁽⁶⁾": {
      "params": [
        "qᵢ⁽⁵⁾",
        "T⁽⁵⁾",
        "Δqₘ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χₘ",
            "bindings": {
              "qᵢ⁽⁵⁾": "qᵢ⁽⁵⁾",
              "T⁽⁵⁾": "T⁽⁵⁾"
            }
          },
          {
            "op": "ifelse",
            "args": [
              {
                "op": "<",
                "args": [
                  "Δqₘ",
                  "qᵢ⁽⁵⁾"
                ]
              },
              {
                "op": "-",
                "args": [
                  "qᵢ⁽⁵⁾",
                  "Δqₘ"
                ]
              },
              0.0
            ]
          },
          "qᵢ⁽⁵⁾"
        ]
      },
      "description": "Ice mixing ratio after stage 6 (melting). Mass basis: kg water per kg dry air. Dimensionless."
    },
    "T⁽⁶⁾": {
      "params": [
        "qᵢ⁽⁵⁾",
        "T⁽⁵⁾",
        "Δqₘ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χₘ",
            "bindings": {
              "qᵢ⁽⁵⁾": "qᵢ⁽⁵⁾",
              "T⁽⁵⁾": "T⁽⁵⁾"
            }
          },
          {
            "op": "-",
            "args": [
              "T⁽⁵⁾",
              {
                "op": "*",
                "args": [
                  "Λ𝒻",
                  {
                    "op": "ifelse",
                    "args": [
                      {
                        "op": "<",
                        "args": [
                          "Δqₘ",
                          "qᵢ⁽⁵⁾"
                        ]
                      },
                      "Δqₘ",
                      "qᵢ⁽⁵⁾"
                    ]
                  }
                ]
              }
            ]
          },
          "T⁽⁵⁾"
        ]
      },
      "description": "Temperature after stage 6. Melting absorbs latent heat of fusion, Λ𝒻 per unit ice melted (the same coefficient as freezing), and cools the plume."
    },
    "𝒞ₐ": {
      "params": [
        "T⁽⁶⁾",
        "qₗ⁽¹⁾",
        "qᵣ⁽⁶⁾",
        "mₗ",
        "mᵣ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χₐ",
            "bindings": {
              "T⁽⁶⁾": "T⁽⁶⁾",
              "qₗ⁽¹⁾": "qₗ⁽¹⁾",
              "qᵣ⁽⁶⁾": "qᵣ⁽⁶⁾"
            }
          },
          {
            "op": "*",
            "args": [
              {
                "op": "*",
                "args": [
                  "aₐ",
                  "mₗ"
                ]
              },
              {
                "op": "^",
                "args": [
                  "mᵣ",
                  0.875
                ]
              }
            ]
          },
          0.0
        ]
      },
      "description": "Rate of rainwater mass production by accretion of cloud water. Units: g/m^3/s."
    },
    "𝒞ᵤ": {
      "params": [
        "T⁽⁶⁾",
        "qₗ⁽¹⁾",
        "mₗ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χᵤ",
            "bindings": {
              "T⁽⁶⁾": "T⁽⁶⁾",
              "qₗ⁽¹⁾": "qₗ⁽¹⁾"
            }
          },
          {
            "op": "/",
            "args": [
              {
                "op": "*",
                "args": [
                  {
                    "op": "*",
                    "args": [
                      {
                        "op": "*",
                        "args": [
                          "mₗ",
                          "mₗ"
                        ]
                      },
                      "mₗ"
                    ]
                  },
                  "cᵤ"
                ]
              },
              {
                "op": "*",
                "args": [
                  "tᵤ",
                  {
                    "op": "apply_expression_template",
                    "args": [],
                    "name": "dᵤ",
                    "bindings": {
                      "mₗ": "mₗ"
                    }
                  }
                ]
              }
            ]
          },
          0.0
        ]
      },
      "description": "Rate of rainwater mass production by autoconversion of cloud water. Units: g/m^3/s."
    },
    "Δqᵣ": {
      "params": [
        "T⁽⁶⁾",
        "qₗ⁽¹⁾",
        "𝒞ᵤ",
        "𝒞ₐ",
        "τ",
        "ρ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χᵤ",
            "bindings": {
              "T⁽⁶⁾": "T⁽⁶⁾",
              "qₗ⁽¹⁾": "qₗ⁽¹⁾"
            }
          },
          {
            "op": "/",
            "args": [
              {
                "op": "*",
                "args": [
                  {
                    "op": "apply_expression_template",
                    "args": [],
                    "name": "𝒞ᵣ",
                    "bindings": {
                      "𝒞ᵤ": "𝒞ᵤ",
                      "𝒞ₐ": "𝒞ₐ"
                    }
                  },
                  "τ"
                ]
              },
              "ρ"
            ]
          },
          0.0
        ]
      },
      "description": "Potential cloud-to-rain transfer by autoconversion and accretion over the supplied interval τ (s); available cloud water limits the subsequent updates. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "qₗμ": {
      "params": [
        "T⁽⁶⁾",
        "qₗ⁽¹⁾",
        "Δqᵣ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χᵤ",
            "bindings": {
              "T⁽⁶⁾": "T⁽⁶⁾",
              "qₗ⁽¹⁾": "qₗ⁽¹⁾"
            }
          },
          {
            "op": "ifelse",
            "args": [
              {
                "op": "<",
                "args": [
                  "Δqᵣ",
                  "qₗ⁽¹⁾"
                ]
              },
              {
                "op": "-",
                "args": [
                  "qₗ⁽¹⁾",
                  "Δqᵣ"
                ]
              },
              0.0
            ]
          },
          "qₗ⁽¹⁾"
        ]
      },
      "description": "Cloud-water mixing ratio after phase changes and warm-rain conversion by autoconversion and accretion. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "qᵣμ": {
      "params": [
        "T⁽⁶⁾",
        "qₗ⁽¹⁾",
        "qᵣ⁽⁶⁾",
        "Δqᵣ"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χᵤ",
            "bindings": {
              "T⁽⁶⁾": "T⁽⁶⁾",
              "qₗ⁽¹⁾": "qₗ⁽¹⁾"
            }
          },
          {
            "op": "+",
            "args": [
              "qᵣ⁽⁶⁾",
              {
                "op": "ifelse",
                "args": [
                  {
                    "op": "<",
                    "args": [
                      "Δqᵣ",
                      "qₗ⁽¹⁾"
                    ]
                  },
                  "Δqᵣ",
                  "qₗ⁽¹⁾"
                ]
              }
            ]
          },
          "qᵣ⁽⁶⁾"
        ]
      },
      "description": "Rainwater mixing ratio after phase changes and warm-rain conversion by autoconversion and accretion. Mass basis: kg water per kg dry air. Dimensionless."
    },
    "χᵣ": {
      "params": [
        "δq⁽⁰⁾",
        "Eₗ",
        "qᵣᶜ"
      ],
      "body": {
        "op": "and",
        "args": [
          {
            "op": "and",
            "args": [
              {
                "op": ">",
                "args": [
                  "δq⁽⁰⁾",
                  0.0
                ]
              },
              {
                "op": "not",
                "args": [
                  {
                    "op": "apply_expression_template",
                    "args": [],
                    "name": "χₑ",
                    "bindings": {
                      "δq⁽⁰⁾": "δq⁽⁰⁾",
                      "Eₗ": "Eₗ"
                    }
                  }
                ]
              }
            ]
          },
          {
            "op": ">",
            "args": [
              "qᵣᶜ",
              "qε"
            ]
          }
        ]
      },
      "description": "Rain-evaporation eligibility: positive rain content and remaining vapor deficit after cloud exchange. Logical predicate."
    },
    "χᵢ": {
      "params": [
        "δq⁽⁰⁾",
        "Eₗ",
        "qᵣᶜ",
        "δq⁽¹⁾",
        "Eᵣ",
        "qᵢᶜ"
      ],
      "body": {
        "op": "and",
        "args": [
          {
            "op": "and",
            "args": [
              {
                "op": "and",
                "args": [
                  {
                    "op": ">",
                    "args": [
                      "δq⁽⁰⁾",
                      0.0
                    ]
                  },
                  {
                    "op": "not",
                    "args": [
                      {
                        "op": "apply_expression_template",
                        "args": [],
                        "name": "χₑ",
                        "bindings": {
                          "δq⁽⁰⁾": "δq⁽⁰⁾",
                          "Eₗ": "Eₗ"
                        }
                      }
                    ]
                  }
                ]
              },
              {
                "op": "not",
                "args": [
                  {
                    "op": "apply_expression_template",
                    "args": [],
                    "name": "χᵣₑ",
                    "bindings": {
                      "δq⁽⁰⁾": "δq⁽⁰⁾",
                      "Eₗ": "Eₗ",
                      "qᵣᶜ": "qᵣᶜ",
                      "δq⁽¹⁾": "δq⁽¹⁾",
                      "Eᵣ": "Eᵣ"
                    }
                  }
                ]
              }
            ]
          },
          {
            "op": ">",
            "args": [
              "qᵢᶜ",
              "qε"
            ]
          }
        ]
      },
      "description": "Ice-sublimation eligibility after cloud and rain evaporation, requiring available ice and an unsatisfied vapor deficit. Logical predicate."
    },
    "χₛ": {
      "params": [
        "T⁽³⁾",
        "qᵥ⁽³⁾",
        "qₛ"
      ],
      "body": {
        "op": "and",
        "args": [
          {
            "op": "<=",
            "args": [
              "T⁽³⁾",
              "T𝒻"
            ]
          },
          {
            "op": ">",
            "args": [
              "qᵥ⁽³⁾",
              "qₛ"
            ]
          }
        ]
      },
      "description": "Ice-deposition eligibility: temperature at or below T𝒻 and vapor above saturation. Logical predicate."
    },
    "χ𝒻": {
      "params": [
        "qᵣ⁽²⁾",
        "qᵥ⁽⁴⁾",
        "qₛ",
        "T⁽⁴⁾"
      ],
      "body": {
        "op": "and",
        "args": [
          {
            "op": "and",
            "args": [
              {
                "op": ">",
                "args": [
                  "qᵣ⁽²⁾",
                  0.0
                ]
              },
              {
                "op": ">=",
                "args": [
                  "qᵥ⁽⁴⁾",
                  "qₛ"
                ]
              }
            ]
          },
          {
            "op": "<=",
            "args": [
              "T⁽⁴⁾",
              "T𝒻"
            ]
          }
        ]
      },
      "description": "Rain-freezing eligibility: positive rain, vapor at or above saturation, and temperature at or below T𝒻. Logical predicate."
    },
    "χₘ": {
      "params": [
        "qᵢ⁽⁵⁾",
        "T⁽⁵⁾"
      ],
      "body": {
        "op": "and",
        "args": [
          {
            "op": ">",
            "args": [
              "qᵢ⁽⁵⁾",
              0.0
            ]
          },
          {
            "op": ">=",
            "args": [
              "T⁽⁵⁾",
              "Tₘ"
            ]
          }
        ]
      },
      "description": "Ice-melting eligibility: positive ice content and temperature at or above Tₘ. Logical predicate."
    },
    "χₐ": {
      "params": [
        "T⁽⁶⁾",
        "qₗ⁽¹⁾",
        "qᵣ⁽⁶⁾"
      ],
      "body": {
        "op": "and",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χᵤ",
            "bindings": {
              "T⁽⁶⁾": "T⁽⁶⁾",
              "qₗ⁽¹⁾": "qₗ⁽¹⁾"
            }
          },
          {
            "op": ">",
            "args": [
              "qᵣ⁽⁶⁾",
              0.0
            ]
          }
        ]
      },
      "description": "Accretion eligibility for warm-cloud conversion with cloud water and rain available. Logical predicate."
    },
    "χᵤ": {
      "params": [
        "T⁽⁶⁾",
        "qₗ⁽¹⁾"
      ],
      "body": {
        "op": "and",
        "args": [
          {
            "op": ">",
            "args": [
              "T⁽⁶⁾",
              "T𝒻"
            ]
          },
          {
            "op": "!=",
            "args": [
              "qₗ⁽¹⁾",
              0.0
            ]
          }
        ]
      },
      "description": "Autoconversion eligibility: temperature above T𝒻 and nonzero cloud-water content. Logical predicate."
    },
    "mᵣᶜ": {
      "params": [
        "qᵣᶜ",
        "ρ"
      ],
      "body": {
        "op": "*",
        "args": [
          "qᵣᶜ",
          "ρ"
        ]
      },
      "description": "Rainwater mass concentration before rain evaporation, from the retained rainwater mixing ratio and air density. Units: g/m³."
    },
    "sᵢ⁻": {
      "params": [
        "δq⁽²⁾",
        "qₛ"
      ],
      "body": {
        "op": "/",
        "args": [
          {
            "op": "-",
            "args": [
              "δq⁽²⁾"
            ]
          },
          "qₛ"
        ]
      },
      "description": "Ice-sublimation driving term qᵥ⁽²⁾/qₛ − 1 = −δq⁽²⁾/qₛ (the remaining relative subsaturation; negative). The Fortran uses δq⁽²⁾/qₛ − 1 = −qᵥ⁽²⁾/qₛ, which sublimates fastest when the air is closest to saturation; this is corrected here. Dimensionless."
    },
    "sᵢ⁺": {
      "params": [
        "qᵥ⁽³⁾",
        "qₛ"
      ],
      "body": {
        "op": "-",
        "args": [
          {
            "op": "/",
            "args": [
              "qᵥ⁽³⁾",
              "qₛ"
            ]
          },
          1.0
        ]
      },
      "description": "Ice supersaturation qᵥ⁽³⁾/qₛ − 1. Dimensionless."
    },
    "ΔTₘ": {
      "params": [
        "T⁽⁵⁾"
      ],
      "body": {
        "op": "-",
        "args": [
          "T⁽⁵⁾",
          "Tₘ"
        ]
      },
      "description": "Temperature excess above the melting threshold Tₘ. Units: K."
    },
    "mᵢᶜ": {
      "params": [
        "qᵢ⁽⁵⁾",
        "ρ"
      ],
      "body": {
        "op": "*",
        "args": [
          {
            "op": "*",
            "args": [
              "ρ",
              "qᵢ⁽⁵⁾"
            ]
          },
          "κₘ"
        ]
      },
      "description": "Ice mass concentration after glaciation, scaled to g/cm³ for the empirical melting relation."
    },
    "dᵤ": {
      "params": [
        "mₗ"
      ],
      "body": {
        "op": "+",
        "args": [
          {
            "op": "*",
            "args": [
              {
                "op": "*",
                "args": [
                  "aᵤ",
                  "mₗ"
                ]
              },
              "cᵤ"
            ]
          },
          {
            "op": "*",
            "args": [
              "bᵤ",
              "nᵤ"
            ]
          }
        ]
      },
      "description": "Concentration-dependent denominator in the warm-cloud autoconversion relation. Units: (g/m³)²."
    },
    "𝒞ᵣ": {
      "params": [
        "𝒞ᵤ",
        "𝒞ₐ"
      ],
      "body": {
        "op": "+",
        "args": [
          "𝒞ᵤ",
          "𝒞ₐ"
        ]
      },
      "description": "Total rainwater mass-production rate from cloud-water autoconversion and accretion. Units: g m⁻³ s⁻¹."
    },
    "χₑ": {
      "params": [
        "δq⁽⁰⁾",
        "Eₗ"
      ],
      "body": {
        "op": "<=",
        "args": [
          "δq⁽⁰⁾",
          "Eₗ"
        ]
      },
      "description": "Cloud-exchange comparison δq⁽⁰⁾ ≤ Eₗ. Logical predicate."
    },
    "χᵣₑ": {
      "params": [
        "δq⁽⁰⁾",
        "Eₗ",
        "qᵣᶜ",
        "δq⁽¹⁾",
        "Eᵣ"
      ],
      "body": {
        "op": "and",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "χᵣ",
            "bindings": {
              "δq⁽⁰⁾": "δq⁽⁰⁾",
              "Eₗ": "Eₗ",
              "qᵣᶜ": "qᵣᶜ"
            }
          },
          {
            "op": "<=",
            "args": [
              "δq⁽¹⁾",
              "Eᵣ"
            ]
          }
        ]
      },
      "description": "Combined rain-evaporation eligibility and residual-deficit comparison. Logical predicate."
    },
    "F": {
      "params": [
        "q"
      ],
      "body": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              {
                "op": "-",
                "args": [
                  "NLEV",
                  1
                ]
              }
            ]
          ],
          [
            [
              "NLEV",
              "NLEV"
            ]
          ]
        ],
        "values": [
          {
            "op": "*",
            "args": [
              {
                "op": "index",
                "args": [
                  "fρ",
                  1
                ]
              },
              {
                "op": "index",
                "args": [
                  "q",
                  1
                ]
              }
            ]
          },
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                {
                  "op": "-",
                  "args": [
                    "NLEV",
                    1
                  ]
                }
              ]
            },
            "expr": {
              "op": "/",
              "args": [
                {
                  "op": "*",
                  "args": [
                    {
                      "op": "index",
                      "args": [
                        "fρ",
                        "k"
                      ]
                    },
                    {
                      "op": "+",
                      "args": [
                        {
                          "op": "*",
                          "args": [
                            {
                              "op": "-",
                              "args": [
                                {
                                  "op": "index",
                                  "args": [
                                    "zₜ",
                                    {
                                      "op": "+",
                                      "args": [
                                        "k",
                                        1
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "op": "index",
                                  "args": [
                                    "z𝑤",
                                    "k"
                                  ]
                                }
                              ]
                            },
                            {
                              "op": "index",
                              "args": [
                                "q",
                                "k"
                              ]
                            }
                          ]
                        },
                        {
                          "op": "*",
                          "args": [
                            {
                              "op": "-",
                              "args": [
                                {
                                  "op": "index",
                                  "args": [
                                    "z𝑤",
                                    "k"
                                  ]
                                },
                                {
                                  "op": "index",
                                  "args": [
                                    "zₜ",
                                    "k"
                                  ]
                                }
                              ]
                            },
                            {
                              "op": "index",
                              "args": [
                                "q",
                                {
                                  "op": "+",
                                  "args": [
                                    "k",
                                    1
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "op": "-",
                  "args": [
                    {
                      "op": "index",
                      "args": [
                        "zₜ",
                        {
                          "op": "+",
                          "args": [
                            "k",
                            1
                          ]
                        }
                      ]
                    },
                    {
                      "op": "index",
                      "args": [
                        "zₜ",
                        "k"
                      ]
                    }
                  ]
                }
              ]
            }
          },
          {
            "op": "*",
            "args": [
              0,
              {
                "op": "index",
                "args": [
                  "fρ",
                  1
                ]
              },
              {
                "op": "index",
                "args": [
                  "q",
                  1
                ]
              }
            ]
          }
        ]
      },
      "description": "Upward advective flux of the scalar q through the velocity faces z𝑤: the air mass flux fρ times q interpolated linearly to the face (centred). This is the Fortran scalar flux (fa_zc_plumerise) in the limit of vanishing time step, in which its Lax-Wendroff-type correction (proportional to Δt) vanishes and its positivity limiter (which acts only when a face would remove half of a cell in one step) never acts. The lowest face coincides with the lower-boundary level, so its value is q[1]; the top face carries no flux. Flux units: kg m⁻² s⁻¹ times the units of q."
    },
    "S": {
      "params": [
        "q",
        "v"
      ],
      "body": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              {
                "op": "-",
                "args": [
                  "NLEV",
                  1
                ]
              }
            ]
          ],
          [
            [
              "NLEV",
              "NLEV"
            ]
          ]
        ],
        "values": [
          {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "1/s"
          },
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                {
                  "op": "-",
                  "args": [
                    "NLEV",
                    1
                  ]
                }
              ]
            },
            "expr": {
              "op": "/",
              "args": [
                {
                  "op": "*",
                  "args": [
                    {
                      "op": "-",
                      "args": [
                        "v"
                      ]
                    },
                    {
                      "op": "-",
                      "args": [
                        {
                          "op": "*",
                          "args": [
                            {
                              "op": "index",
                              "args": [
                                "ρ",
                                {
                                  "op": "+",
                                  "args": [
                                    "k",
                                    1
                                  ]
                                }
                              ]
                            },
                            {
                              "op": "index",
                              "args": [
                                "q",
                                {
                                  "op": "+",
                                  "args": [
                                    "k",
                                    1
                                  ]
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "*",
                          "args": [
                            {
                              "op": "index",
                              "args": [
                                "ρ",
                                "k"
                              ]
                            },
                            {
                              "op": "index",
                              "args": [
                                "q",
                                "k"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "op": "*",
                  "args": [
                    {
                      "op": "index",
                      "args": [
                        "ρ",
                        "k"
                      ]
                    },
                    {
                      "op": "-",
                      "args": [
                        {
                          "op": "index",
                          "args": [
                            "z𝑤",
                            "k"
                          ]
                        },
                        {
                          "op": "index",
                          "args": [
                            "z𝑤",
                            {
                              "op": "-",
                              "args": [
                                "k",
                                1
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          },
          {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "1/s"
          }
        ]
      },
      "description": "Sedimentation tendency of the mixing ratio q for the (negative, downward) fall speed v: minus the divergence of the fall flux ρqv over the layer, divided by ρ, with the flux through each face taken from the level above it (upwind for downward fall). Applied once per unit time. Units: s⁻¹."
    },
    "𝓘": {
      "params": [
        "f",
        "z"
      ],
      "body": {
        "op": "ifelse",
        "args": [
          {
            "op": ">=",
            "args": [
              "z",
              {
                "op": "index",
                "args": [
                  "zₛ",
                  "NSND"
                ]
              }
            ]
          },
          {
            "op": "index",
            "args": [
              "f",
              "NSND"
            ]
          },
          {
            "op": "faq",
            "args": [],
            "output_idx": [],
            "ranges": {
              "j": [
                1,
                {
                  "op": "-",
                  "args": [
                    "NSND",
                    1
                  ]
                }
              ]
            },
            "reduce": "+",
            "expr": {
              "op": "ifelse",
              "args": [
                {
                  "op": "and",
                  "args": [
                    {
                      "op": "<=",
                      "args": [
                        {
                          "op": "index",
                          "args": [
                            "zₛ",
                            "j"
                          ]
                        },
                        "z"
                      ]
                    },
                    {
                      "op": "<",
                      "args": [
                        "z",
                        {
                          "op": "index",
                          "args": [
                            "zₛ",
                            {
                              "op": "+",
                              "args": [
                                "j",
                                1
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "op": "+",
                  "args": [
                    {
                      "op": "index",
                      "args": [
                        "f",
                        "j"
                      ]
                    },
                    {
                      "op": "/",
                      "args": [
                        {
                          "op": "*",
                          "args": [
                            {
                              "op": "-",
                              "args": [
                                {
                                  "op": "index",
                                  "args": [
                                    "f",
                                    {
                                      "op": "+",
                                      "args": [
                                        "j",
                                        1
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "op": "index",
                                  "args": [
                                    "f",
                                    "j"
                                  ]
                                }
                              ]
                            },
                            {
                              "op": "-",
                              "args": [
                                "z",
                                {
                                  "op": "index",
                                  "args": [
                                    "zₛ",
                                    "j"
                                  ]
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "-",
                          "args": [
                            {
                              "op": "index",
                              "args": [
                                "zₛ",
                                {
                                  "op": "+",
                                  "args": [
                                    "j",
                                    1
                                  ]
                                }
                              ]
                            },
                            {
                              "op": "index",
                              "args": [
                                "zₛ",
                                "j"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "op": "*",
                  "args": [
                    0,
                    {
                      "op": "index",
                      "args": [
                        "f",
                        "j"
                      ]
                    }
                  ]
                }
              ]
            }
          }
        ]
      },
      "description": "Linear interpolation of the sounding profile f (on the levels zₛ) to the height z, constant above the top sounding level (the Fortran htint inside the sounding). Units of f."
    }
  },
  "equations": [
    {
      "lhs": "zₜ",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "apply_expression_template",
          "args": [],
          "name": "zᴵ",
          "bindings": {
            "k": "k"
          }
        }
      }
    },
    {
      "lhs": "z𝑤",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "*",
          "args": [
            {
              "op": "-",
              "args": [
                "k",
                1
              ]
            },
            "Δz"
          ]
        }
      }
    },
    {
      "lhs": "Tₑ",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "apply_expression_template",
          "args": [],
          "name": "𝓘",
          "bindings": {
            "f": "Tₛ",
            "z": {
              "op": "index",
              "args": [
                "zₜ",
                "k"
              ]
            }
          }
        }
      }
    },
    {
      "lhs": "pₑ",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "apply_expression_template",
          "args": [],
          "name": "𝓘",
          "bindings": {
            "f": "pₛ",
            "z": {
              "op": "index",
              "args": [
                "zₜ",
                "k"
              ]
            }
          }
        }
      }
    },
    {
      "lhs": "RHₑ",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "apply_expression_template",
          "args": [],
          "name": "𝓘",
          "bindings": {
            "f": "RHₛ",
            "z": {
              "op": "index",
              "args": [
                "zₜ",
                "k"
              ]
            }
          }
        }
      }
    },
    {
      "lhs": "uₑˣ",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "apply_expression_template",
          "args": [],
          "name": "𝓘",
          "bindings": {
            "f": "uₛ",
            "z": {
              "op": "index",
              "args": [
                "zₜ",
                "k"
              ]
            }
          }
        }
      }
    },
    {
      "lhs": "uₑʸ",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "apply_expression_template",
          "args": [],
          "name": "𝓘",
          "bindings": {
            "f": "vₛ",
            "z": {
              "op": "index",
              "args": [
                "zₜ",
                "k"
              ]
            }
          }
        }
      }
    },
    {
      "lhs": "qᵥₑ",
      "rhs": {
        "op": "max",
        "args": [
          {
            "op": "*",
            "args": [
              "RHₑ",
              {
                "op": "apply_expression_template",
                "args": [],
                "name": "qₛ",
                "bindings": {
                  "X": "Tₑ",
                  "P": "pₑ"
                }
              }
            ]
          },
          1e-08
        ]
      }
    },
    {
      "lhs": "uₑ",
      "rhs": {
        "op": "sqrt",
        "args": [
          {
            "op": "+",
            "args": [
              {
                "op": "^",
                "args": [
                  "uₑˣ",
                  2
                ]
              },
              {
                "op": "^",
                "args": [
                  "uₑʸ",
                  2
                ]
              }
            ]
          }
        ]
      }
    },
    {
      "lhs": {
        "op": "D",
        "args": [
          "velocity_state"
        ],
        "wrt": "t"
      },
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "Ω",
        "bindings": {
          "f": "R𝑤",
          "o": {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "m/s^2"
          }
        }
      }
    },
    {
      "lhs": {
        "op": "D",
        "args": [
          "temperature_state"
        ],
        "wrt": "t"
      },
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "Ω",
        "bindings": {
          "f": "Rₜ",
          "o": {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "K/s"
          }
        }
      }
    },
    {
      "lhs": {
        "op": "D",
        "args": [
          "vapor_state"
        ],
        "wrt": "t"
      },
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "Ω",
        "bindings": {
          "f": {
            "op": "*",
            "args": [
              "κg",
              "Rᵥ"
            ]
          },
          "o": {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "g/kg/s"
          }
        }
      }
    },
    {
      "lhs": {
        "op": "D",
        "args": [
          "cloud_state"
        ],
        "wrt": "t"
      },
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "Ω",
        "bindings": {
          "f": {
            "op": "*",
            "args": [
              "κg",
              "Rₗ"
            ]
          },
          "o": {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "g/kg/s"
          }
        }
      }
    },
    {
      "lhs": {
        "op": "D",
        "args": [
          "rain_state"
        ],
        "wrt": "t"
      },
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "Ω",
        "bindings": {
          "f": {
            "op": "*",
            "args": [
              "κg",
              "Rᵣ"
            ]
          },
          "o": {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "g/kg/s"
          }
        }
      }
    },
    {
      "lhs": {
        "op": "D",
        "args": [
          "ice_state"
        ],
        "wrt": "t"
      },
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "Ω",
        "bindings": {
          "f": {
            "op": "*",
            "args": [
              "κg",
              "Rᵢ"
            ]
          },
          "o": {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "g/kg/s"
          }
        }
      }
    },
    {
      "lhs": {
        "op": "D",
        "args": [
          "horizontal_speed_state"
        ],
        "wrt": "t"
      },
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "Ω",
        "bindings": {
          "f": "Rᵤ",
          "o": {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "m/s^2"
          }
        }
      }
    },
    {
      "lhs": {
        "op": "D",
        "args": [
          "radius_state"
        ],
        "wrt": "t"
      },
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "Ω",
        "bindings": {
          "f": {
            "op": "/",
            "args": [
              "Rᵣₐ",
              "κkm"
            ]
          },
          "o": {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "km/s"
          }
        }
      }
    },
    {
      "lhs": {
        "op": "D",
        "args": [
          "tracer_state"
        ],
        "wrt": "t"
      },
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "Ω",
        "bindings": {
          "f": {
            "op": "/",
            "args": [
              "R𝒸",
              "c₀"
            ]
          },
          "o": {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "1/s"
          }
        }
      }
    },
    {
      "lhs": {
        "op": "ic",
        "args": [
          "velocity_state"
        ]
      },
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "const",
          "args": [],
          "value": 0,
          "units": "m/s"
        }
      }
    },
    {
      "lhs": {
        "op": "ic",
        "args": [
          "temperature_state"
        ]
      },
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "const",
          "args": [],
          "value": 0,
          "units": "K"
        }
      }
    },
    {
      "lhs": {
        "op": "ic",
        "args": [
          "vapor_state"
        ]
      },
      "rhs": {
        "op": "*",
        "args": [
          "κg",
          "qᵥₑ"
        ]
      }
    },
    {
      "lhs": {
        "op": "ic",
        "args": [
          "cloud_state"
        ]
      },
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "const",
          "args": [],
          "value": 0,
          "units": "g/kg"
        }
      }
    },
    {
      "lhs": {
        "op": "ic",
        "args": [
          "rain_state"
        ]
      },
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "const",
          "args": [],
          "value": 0,
          "units": "g/kg"
        }
      }
    },
    {
      "lhs": {
        "op": "ic",
        "args": [
          "ice_state"
        ]
      },
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "const",
          "args": [],
          "value": 0,
          "units": "g/kg"
        }
      }
    },
    {
      "lhs": {
        "op": "ic",
        "args": [
          "horizontal_speed_state"
        ]
      },
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "const",
          "args": [],
          "value": 0,
          "units": "m/s"
        }
      }
    },
    {
      "lhs": {
        "op": "ic",
        "args": [
          "radius_state"
        ]
      },
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "/",
          "args": [
            {
              "op": "+",
              "args": [
                {
                  "op": "sqrt",
                  "args": [
                    {
                      "op": "/",
                      "args": [
                        "A𝒻",
                        "π₀"
                      ]
                    }
                  ]
                },
                {
                  "op": "*",
                  "args": [
                    "aᵣ₀",
                    "α",
                    {
                      "op": "apply_expression_template",
                      "args": [],
                      "name": "zᴵ",
                      "bindings": {
                        "k": "k"
                      }
                    }
                  ]
                }
              ]
            },
            "κkm"
          ]
        }
      }
    },
    {
      "lhs": {
        "op": "ic",
        "args": [
          "tracer_state"
        ]
      },
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": 0
      }
    },
    {
      "lhs": "ℋ₀",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "ℋ𝒻",
        "bindings": {
          "s": "t"
        }
      }
    },
    {
      "lhs": "r₀",
      "rhs": {
        "op": "sqrt",
        "args": [
          {
            "op": "/",
            "args": [
              "A𝒻",
              "π₀"
            ]
          }
        ]
      }
    },
    {
      "lhs": "f₀",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "*",
            "args": [
              "g",
              "Rᴅ",
              "ℋ₀",
              "A𝒻"
            ]
          },
          {
            "op": "*",
            "args": [
              {
                "op": "index",
                "args": [
                  "pₑ",
                  1
                ]
              },
              "κp",
              "cₚᴅ",
              "π₀"
            ]
          }
        ]
      }
    },
    {
      "lhs": "a₀",
      "rhs": {
        "op": "/",
        "args": [
          5,
          {
            "op": "*",
            "args": [
              6,
              "α"
            ]
          }
        ]
      }
    },
    {
      "lhs": "B₀",
      "rhs": {
        "op": "*",
        "args": [
          "cᵦ",
          "α",
          "f₀"
        ]
      }
    },
    {
      "lhs": "b₀",
      "rhs": {
        "op": "^",
        "args": [
          "B₀",
          {
            "op": "/",
            "args": [
              1,
              3
            ]
          }
        ]
      }
    },
    {
      "lhs": "ℓ₀",
      "rhs": {
        "op": "*",
        "args": [
          "a₀",
          "r₀"
        ]
      }
    },
    {
      "lhs": "w₀",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "*",
            "args": [
              "a₀",
              "b₀"
            ]
          },
          {
            "op": "^",
            "args": [
              "ℓ₀",
              {
                "op": "/",
                "args": [
                  1,
                  3
                ]
              }
            ]
          }
        ]
      }
    },
    {
      "lhs": "β₀",
      "rhs": {
        "op": "ifelse",
        "args": [
          {
            "op": "==",
            "args": [
              "ℋ₀",
              0
            ]
          },
          0,
          {
            "op": "/",
            "args": [
              {
                "op": "*",
                "args": [
                  "a₀",
                  "f₀"
                ]
              },
              {
                "op": "*",
                "args": [
                  "g",
                  "b₀",
                  {
                    "op": "^",
                    "args": [
                      "ℓ₀",
                      {
                        "op": "/",
                        "args": [
                          5,
                          3
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    {
      "lhs": "T₀⁽⁰⁾",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "index",
            "args": [
              "Tₑ",
              1
            ]
          },
          {
            "op": "-",
            "args": [
              1,
              "β₀"
            ]
          }
        ]
      }
    },
    {
      "lhs": "φₘ",
      "rhs": {
        "op": "+",
        "args": [
          0.5,
          {
            "op": "/",
            "args": [
              {
                "op": "floor",
                "args": [
                  "m𝒻"
                ]
              },
              100
            ]
          }
        ]
      }
    },
    {
      "lhs": "δq₀",
      "rhs": {
        "op": "ifelse",
        "args": [
          {
            "op": "==",
            "args": [
              "ℋ₀",
              0
            ]
          },
          0,
          {
            "op": "/",
            "args": [
              {
                "op": "*",
                "args": [
                  "κg",
                  "ℋ₀",
                  "φₘ"
                ]
              },
              {
                "op": "*",
                "args": [
                  "h𝒻",
                  "η",
                  "w₀",
                  {
                    "op": "/",
                    "args": [
                      {
                        "op": "*",
                        "args": [
                          "κρ",
                          {
                            "op": "index",
                            "args": [
                              "pₑ",
                              1
                            ]
                          }
                        ]
                      },
                      "T₀⁽⁰⁾"
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    {
      "lhs": "qᵥ₀⁽⁰⁾",
      "rhs": {
        "op": "min",
        "args": [
          {
            "op": "+",
            "args": [
              {
                "op": "index",
                "args": [
                  "qᵥₑ",
                  1
                ]
              },
              "δq₀"
            ]
          },
          {
            "op": "index",
            "args": [
              "qₛ",
              1
            ]
          }
        ]
      }
    },
    {
      "lhs": "qₗ₀⁽⁰⁾",
      "rhs": {
        "op": "max",
        "args": [
          {
            "op": "-",
            "args": [
              {
                "op": "+",
                "args": [
                  {
                    "op": "index",
                    "args": [
                      "qᵥₑ",
                      1
                    ]
                  },
                  "δq₀"
                ]
              },
              {
                "op": "index",
                "args": [
                  "qₛ",
                  1
                ]
              }
            ]
          },
          0
        ]
      }
    },
    {
      "lhs": "T⁽⁰⁾",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              "NLEV"
            ]
          ]
        ],
        "values": [
          "T₀⁽⁰⁾",
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                "NLEV"
              ]
            },
            "expr": {
              "op": "+",
              "args": [
                {
                  "op": "index",
                  "args": [
                    "Tₑ",
                    "k"
                  ]
                },
                {
                  "op": "index",
                  "args": [
                    "temperature_state",
                    "k"
                  ]
                }
              ]
            }
          }
        ]
      }
    },
    {
      "lhs": "qᵥ⁽⁰⁾",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              "NLEV"
            ]
          ]
        ],
        "values": [
          "qᵥ₀⁽⁰⁾",
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                "NLEV"
              ]
            },
            "expr": {
              "op": "/",
              "args": [
                {
                  "op": "index",
                  "args": [
                    "vapor_state",
                    "k"
                  ]
                },
                "κg"
              ]
            }
          }
        ]
      }
    },
    {
      "lhs": "qₗ⁽⁰⁾",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              "NLEV"
            ]
          ]
        ],
        "values": [
          "qₗ₀⁽⁰⁾",
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                "NLEV"
              ]
            },
            "expr": {
              "op": "/",
              "args": [
                {
                  "op": "index",
                  "args": [
                    "cloud_state",
                    "k"
                  ]
                },
                "κg"
              ]
            }
          }
        ]
      }
    },
    {
      "lhs": "qᵣ⁽⁰⁾",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              "NLEV"
            ]
          ]
        ],
        "values": [
          {
            "op": "/",
            "args": [
              {
                "op": "index",
                "args": [
                  "rain_state",
                  2
                ]
              },
              "κg"
            ]
          },
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                "NLEV"
              ]
            },
            "expr": {
              "op": "/",
              "args": [
                {
                  "op": "index",
                  "args": [
                    "rain_state",
                    "k"
                  ]
                },
                "κg"
              ]
            }
          }
        ]
      }
    },
    {
      "lhs": "qᵢ⁽⁰⁾",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              "NLEV"
            ]
          ]
        ],
        "values": [
          {
            "op": "/",
            "args": [
              {
                "op": "index",
                "args": [
                  "ice_state",
                  2
                ]
              },
              "κg"
            ]
          },
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                "NLEV"
              ]
            },
            "expr": {
              "op": "/",
              "args": [
                {
                  "op": "index",
                  "args": [
                    "ice_state",
                    "k"
                  ]
                },
                "κg"
              ]
            }
          }
        ]
      }
    },
    {
      "lhs": "T",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              "NLEV"
            ]
          ]
        ],
        "values": [
          {
            "op": "index",
            "args": [
              "T⁽⁶⁾",
              1
            ]
          },
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                "NLEV"
              ]
            },
            "expr": {
              "op": "+",
              "args": [
                {
                  "op": "index",
                  "args": [
                    "Tₑ",
                    "k"
                  ]
                },
                {
                  "op": "index",
                  "args": [
                    "temperature_state",
                    "k"
                  ]
                }
              ]
            }
          }
        ]
      }
    },
    {
      "lhs": "qᵥ",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              "NLEV"
            ]
          ]
        ],
        "values": [
          {
            "op": "index",
            "args": [
              "qᵥ⁽⁴⁾",
              1
            ]
          },
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                "NLEV"
              ]
            },
            "expr": {
              "op": "/",
              "args": [
                {
                  "op": "index",
                  "args": [
                    "vapor_state",
                    "k"
                  ]
                },
                "κg"
              ]
            }
          }
        ]
      }
    },
    {
      "lhs": "qₗ",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              "NLEV"
            ]
          ]
        ],
        "values": [
          {
            "op": "index",
            "args": [
              "qₗμ",
              1
            ]
          },
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                "NLEV"
              ]
            },
            "expr": {
              "op": "/",
              "args": [
                {
                  "op": "index",
                  "args": [
                    "cloud_state",
                    "k"
                  ]
                },
                "κg"
              ]
            }
          }
        ]
      }
    },
    {
      "lhs": "qᵣ",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              "NLEV"
            ]
          ]
        ],
        "values": [
          {
            "op": "index",
            "args": [
              "qᵣμ",
              1
            ]
          },
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                "NLEV"
              ]
            },
            "expr": {
              "op": "/",
              "args": [
                {
                  "op": "index",
                  "args": [
                    "rain_state",
                    "k"
                  ]
                },
                "κg"
              ]
            }
          }
        ]
      }
    },
    {
      "lhs": "qᵢ",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              "NLEV"
            ]
          ]
        ],
        "values": [
          {
            "op": "index",
            "args": [
              "qᵢ⁽⁶⁾",
              1
            ]
          },
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                "NLEV"
              ]
            },
            "expr": {
              "op": "/",
              "args": [
                {
                  "op": "index",
                  "args": [
                    "ice_state",
                    "k"
                  ]
                },
                "κg"
              ]
            }
          }
        ]
      }
    },
    {
      "lhs": "u",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              "NLEV"
            ]
          ]
        ],
        "values": [
          {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "m/s"
          },
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                "NLEV"
              ]
            },
            "expr": {
              "op": "index",
              "args": [
                "horizontal_speed_state",
                "k"
              ]
            }
          }
        ]
      }
    },
    {
      "lhs": "r",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              "NLEV"
            ]
          ]
        ],
        "values": [
          "r₀",
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                "NLEV"
              ]
            },
            "expr": {
              "op": "*",
              "args": [
                "κkm",
                {
                  "op": "index",
                  "args": [
                    "radius_state",
                    "k"
                  ]
                }
              ]
            }
          }
        ]
      }
    },
    {
      "lhs": "c",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              "NLEV"
            ]
          ]
        ],
        "values": [
          "c₀",
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                "NLEV"
              ]
            },
            "expr": {
              "op": "*",
              "args": [
                "c₀",
                {
                  "op": "index",
                  "args": [
                    "tracer_state",
                    "k"
                  ]
                }
              ]
            }
          }
        ]
      }
    },
    {
      "lhs": "w",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              "NLEV"
            ]
          ]
        ],
        "values": [
          "w₀",
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                "NLEV"
              ]
            },
            "expr": {
              "op": "index",
              "args": [
                "velocity_state",
                "k"
              ]
            }
          }
        ]
      }
    },
    {
      "lhs": "ρ",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "*",
            "args": [
              "κρ",
              "pₑ"
            ]
          },
          "T⁽⁰⁾"
        ]
      }
    },
    {
      "lhs": "eₛ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "eₛ",
        "bindings": {
          "X": "T⁽⁰⁾"
        }
      }
    },
    {
      "lhs": "qₛ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "qₛ",
        "bindings": {
          "X": "T⁽⁰⁾",
          "P": "pₑ"
        }
      }
    },
    {
      "lhs": "Gₛ",
      "rhs": {
        "op": "D",
        "args": [
          "qₛ"
        ],
        "wrt": "z"
      }
    },
    {
      "lhs": "w̄",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              {
                "op": "-",
                "args": [
                  "NLEV",
                  1
                ]
              }
            ]
          ],
          [
            [
              "NLEV",
              "NLEV"
            ]
          ]
        ],
        "values": [
          "w₀",
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                {
                  "op": "-",
                  "args": [
                    "NLEV",
                    1
                  ]
                }
              ]
            },
            "expr": {
              "op": "/",
              "args": [
                {
                  "op": "+",
                  "args": [
                    {
                      "op": "index",
                      "args": [
                        "w",
                        "k"
                      ]
                    },
                    {
                      "op": "index",
                      "args": [
                        "w",
                        {
                          "op": "-",
                          "args": [
                            "k",
                            1
                          ]
                        }
                      ]
                    }
                  ]
                },
                2
              ]
            }
          },
          {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "m/s"
          }
        ]
      }
    },
    {
      "lhs": "τᵏ",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              "NLEV"
            ]
          ]
        ],
        "values": [
          {
            "op": "*",
            "args": [
              3,
              "τμ"
            ]
          },
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                "NLEV"
              ]
            },
            "expr": "τμ"
          }
        ]
      }
    },
    {
      "lhs": "cᵢ",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "apply_expression_template",
          "args": [],
          "name": "fᵥᵢ",
          "bindings": {
            "w": {
              "op": "index",
              "args": [
                "w",
                "k"
              ]
            }
          }
        }
      }
    },
    {
      "lhs": "qₗᶜ",
      "rhs": {
        "op": "ifelse",
        "args": [
          {
            "op": "<=",
            "args": [
              {
                "op": "max",
                "args": [
                  "qₗ⁽⁰⁾",
                  0
                ]
              },
              "qε"
            ]
          },
          0.0,
          {
            "op": "max",
            "args": [
              "qₗ⁽⁰⁾",
              0
            ]
          }
        ]
      },
      "_comment": "Nonnegative cloud-water mixing ratio retained above the threshold qε; smaller values are set to zero."
    },
    {
      "lhs": "qᵣᶜ",
      "rhs": {
        "op": "ifelse",
        "args": [
          {
            "op": "<=",
            "args": [
              {
                "op": "max",
                "args": [
                  "qᵣ⁽⁰⁾",
                  0
                ]
              },
              "qε"
            ]
          },
          0.0,
          {
            "op": "max",
            "args": [
              "qᵣ⁽⁰⁾",
              0
            ]
          }
        ]
      },
      "_comment": "Nonnegative rainwater mixing ratio retained above the threshold qε; smaller values are set to zero."
    },
    {
      "lhs": "qᵢᶜ",
      "rhs": {
        "op": "ifelse",
        "args": [
          {
            "op": "<=",
            "args": [
              {
                "op": "max",
                "args": [
                  "qᵢ⁽⁰⁾",
                  0
                ]
              },
              "qε"
            ]
          },
          0.0,
          {
            "op": "max",
            "args": [
              "qᵢ⁽⁰⁾",
              0
            ]
          }
        ]
      },
      "_comment": "Nonnegative ice mixing ratio retained above the threshold qε; smaller values are set to zero."
    },
    {
      "lhs": "δq⁽⁰⁾",
      "rhs": {
        "op": "-",
        "args": [
          "qₛ",
          {
            "op": "max",
            "args": [
              "qᵥ⁽⁰⁾",
              0
            ]
          }
        ]
      },
      "_comment": "Saturation mixing ratio minus water-vapor mixing ratio before phase changes; positive values indicate a vapor deficit."
    },
    {
      "lhs": "Eₘ",
      "rhs": {
        "op": "*",
        "args": [
          {
            "op": "abs",
            "args": [
              {
                "op": "*",
                "args": [
                  "w̄",
                  "Gₛ"
                ]
              }
            ]
          },
          "τᵏ"
        ]
      },
      "_comment": "Transport-related capacity for cloud condensation or evaporation over the interval τᵏ, based on vertical motion and the saturation-mixing-ratio gradient."
    },
    {
      "lhs": "Eₗ",
      "rhs": {
        "op": "min",
        "args": [
          "Eₘ",
          "qₗᶜ"
        ]
      },
      "_comment": "Cloud-water evaporation capacity, limited by the transport-related capacity and available cloud water."
    },
    {
      "lhs": "qᵥ⁽¹⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "qᵥ⁽¹⁾",
        "bindings": {
          "δq⁽⁰⁾": "δq⁽⁰⁾",
          "v⁽⁰⁾": {
            "op": "max",
            "args": [
              "qᵥ⁽⁰⁾",
              0
            ]
          },
          "Eₘ": "Eₘ",
          "qₛ": "qₛ",
          "Eₗ": "Eₗ"
        }
      },
      "_comment": "Water-vapor mixing ratio after stage 1: condensation of excess vapor to cloud water, or evaporation of cloud water into unsaturated air."
    },
    {
      "lhs": "qₗ⁽¹⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "qₗ⁽¹⁾",
        "bindings": {
          "δq⁽⁰⁾": "δq⁽⁰⁾",
          "qₗᶜ": "qₗᶜ",
          "Eₘ": "Eₘ",
          "Eₗ": "Eₗ"
        }
      },
      "_comment": "Cloud-water mixing ratio after stage 1 (condensation or evaporation). Cloud water loads the plume, reducing buoyancy, and is the source of rain."
    },
    {
      "lhs": "T⁽¹⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "T⁽¹⁾",
        "bindings": {
          "δq⁽⁰⁾": "δq⁽⁰⁾",
          "T⁽⁰⁾": "T⁽⁰⁾",
          "Eₘ": "Eₘ",
          "Eₗ": "Eₗ"
        }
      },
      "_comment": "Temperature after stage 1. Condensation releases latent heat that warms the plume and adds buoyancy; cloud evaporation cools it."
    },
    {
      "lhs": "δq⁽¹⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "δq⁽¹⁾",
        "bindings": {
          "δq⁽⁰⁾": "δq⁽⁰⁾",
          "Eₗ": "Eₗ"
        }
      },
      "_comment": "Remaining nonnegative vapor deficit after cloud condensation or evaporation."
    },
    {
      "lhs": "Qᵣ",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "*",
          "args": [
            {
              "op": "-",
              "args": [
                {
                  "op": "index",
                  "args": [
                    "qₛ",
                    "k"
                  ]
                },
                {
                  "op": "index",
                  "args": [
                    "qᵥ⁽¹⁾",
                    "k"
                  ]
                }
              ]
            },
            {
              "op": "index",
              "args": [
                "ρ",
                "k"
              ]
            }
          ]
        }
      },
      "_comment": "Vapor deficit qₛ − qᵥ⁽¹⁾ after the cloud stage, as a mass concentration (times ρ); it drives rain evaporation."
    },
    {
      "lhs": "Eᵣ⁽⁰⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "Eᵣ⁽⁰⁾",
        "bindings": {
          "δq⁽⁰⁾": "δq⁽⁰⁾",
          "Eₗ": "Eₗ",
          "qᵣᶜ": "qᵣᶜ",
          "τ": "τᵏ",
          "Qᵣ": "Qᵣ",
          "ρ": "ρ"
        }
      },
      "_comment": "Potential rainwater evaporation over the interval τᵏ, before limitation by available rain and vapor deficit. Superscript (0) identifies the potential transfer."
    },
    {
      "lhs": "Eᵣ",
      "rhs": {
        "op": "min",
        "args": [
          "Eᵣ⁽⁰⁾",
          "qᵣᶜ"
        ]
      },
      "_comment": "Rainwater evaporation amount limited by available rain; the subsequent phase updates also limit transfer by the remaining vapor deficit."
    },
    {
      "lhs": "qᵥ⁽²⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "qᵥ⁽²⁾",
        "bindings": {
          "δq⁽⁰⁾": "δq⁽⁰⁾",
          "Eₗ": "Eₗ",
          "qᵣᶜ": "qᵣᶜ",
          "δq⁽¹⁾": "δq⁽¹⁾",
          "Eᵣ": "Eᵣ",
          "qₛ": "qₛ",
          "qᵥ⁽¹⁾": "qᵥ⁽¹⁾"
        }
      },
      "_comment": "Water-vapor mixing ratio after stage 2, evaporation of rain into unsaturated air."
    },
    {
      "lhs": "qᵣ⁽²⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "qᵣ⁽²⁾",
        "bindings": {
          "δq⁽⁰⁾": "δq⁽⁰⁾",
          "Eₗ": "Eₗ",
          "qᵣᶜ": "qᵣᶜ",
          "δq⁽¹⁾": "δq⁽¹⁾",
          "Eᵣ": "Eᵣ",
          "Eᵣ⁽⁰⁾": "Eᵣ⁽⁰⁾"
        }
      },
      "_comment": "Rainwater mixing ratio after stage 2 (rain evaporation)."
    },
    {
      "lhs": "T⁽²⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "T⁽²⁾",
        "bindings": {
          "δq⁽⁰⁾": "δq⁽⁰⁾",
          "Eₗ": "Eₗ",
          "qᵣᶜ": "qᵣᶜ",
          "T⁽¹⁾": "T⁽¹⁾",
          "δq⁽¹⁾": "δq⁽¹⁾",
          "Eᵣ": "Eᵣ"
        }
      },
      "_comment": "Temperature after stage 2. Rain evaporation absorbs latent heat and cools the plume, reducing buoyancy."
    },
    {
      "lhs": "δq⁽²⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "δq⁽²⁾",
        "bindings": {
          "δq⁽⁰⁾": "δq⁽⁰⁾",
          "Eₗ": "Eₗ",
          "qᵣᶜ": "qᵣᶜ",
          "δq⁽¹⁾": "δq⁽¹⁾",
          "Eᵣ": "Eᵣ"
        }
      },
      "_comment": "Remaining nonnegative vapor deficit after rain evaporation."
    },
    {
      "lhs": "Dᵢ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "Dᵢ",
        "bindings": {
          "eₛ": "eₛ"
        }
      },
      "_comment": "Normalized resistance to vapor transfer between air and ice, with saturation vapor pressure scaled by 1 kPa."
    },
    {
      "lhs": "𝒩ᵢ⁻",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "𝒩ᵢ⁻",
        "bindings": {
          "δq⁽⁰⁾": "δq⁽⁰⁾",
          "Eₗ": "Eₗ",
          "qᵣᶜ": "qᵣᶜ",
          "δq⁽¹⁾": "δq⁽¹⁾",
          "Eᵣ": "Eᵣ",
          "qᵢᶜ": "qᵢᶜ",
          "ρ": "ρ",
          "δq⁽²⁾": "δq⁽²⁾",
          "qₛ": "qₛ"
        }
      },
      "_comment": "Normalized driving term for ice sublimation, combining vapor deficit, ice content and air density scaled by 1 g/m³."
    },
    {
      "lhs": "Eᵢ⁽⁰⁾",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "apply_expression_template",
          "args": [],
          "name": "Eᵢ⁽⁰⁾",
          "bindings": {
            "δq⁽⁰⁾": {
              "op": "index",
              "args": [
                "δq⁽⁰⁾",
                "k"
              ]
            },
            "Eₗ": {
              "op": "index",
              "args": [
                "Eₗ",
                "k"
              ]
            },
            "qᵣᶜ": {
              "op": "index",
              "args": [
                "qᵣᶜ",
                "k"
              ]
            },
            "δq⁽¹⁾": {
              "op": "index",
              "args": [
                "δq⁽¹⁾",
                "k"
              ]
            },
            "Eᵣ": {
              "op": "index",
              "args": [
                "Eᵣ",
                "k"
              ]
            },
            "qᵢᶜ": {
              "op": "index",
              "args": [
                "qᵢᶜ",
                "k"
              ]
            },
            "cᵢ": {
              "op": "index",
              "args": [
                "cᵢ",
                "k"
              ]
            },
            "𝒩ᵢ⁻": {
              "op": "index",
              "args": [
                "𝒩ᵢ⁻",
                "k"
              ]
            },
            "Dᵢ": {
              "op": "index",
              "args": [
                "Dᵢ",
                "k"
              ]
            },
            "τ": {
              "op": "index",
              "args": [
                "τᵏ",
                "k"
              ]
            }
          }
        }
      },
      "_comment": "Potential ice sublimation over the interval τᵏ, before limitation by available ice and vapor deficit. Superscript (0) identifies the potential transfer."
    },
    {
      "lhs": "Eᵢ",
      "rhs": {
        "op": "min",
        "args": [
          "Eᵢ⁽⁰⁾",
          "qᵢᶜ"
        ]
      },
      "_comment": "Ice-sublimation amount limited by available ice; the subsequent phase updates also limit transfer by the remaining vapor deficit."
    },
    {
      "lhs": "qᵥ⁽³⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "qᵥ⁽³⁾",
        "bindings": {
          "δq⁽⁰⁾": "δq⁽⁰⁾",
          "Eₗ": "Eₗ",
          "qᵣᶜ": "qᵣᶜ",
          "δq⁽¹⁾": "δq⁽¹⁾",
          "Eᵣ": "Eᵣ",
          "qᵢᶜ": "qᵢᶜ",
          "δq⁽²⁾": "δq⁽²⁾",
          "Eᵢ": "Eᵢ",
          "qₛ": "qₛ",
          "qᵥ⁽²⁾": "qᵥ⁽²⁾"
        }
      },
      "_comment": "Water-vapor mixing ratio after stage 3, sublimation of ice into unsaturated air."
    },
    {
      "lhs": "qᵢ⁽³⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "qᵢ⁽³⁾",
        "bindings": {
          "δq⁽⁰⁾": "δq⁽⁰⁾",
          "Eₗ": "Eₗ",
          "qᵣᶜ": "qᵣᶜ",
          "δq⁽¹⁾": "δq⁽¹⁾",
          "Eᵣ": "Eᵣ",
          "qᵢᶜ": "qᵢᶜ",
          "δq⁽²⁾": "δq⁽²⁾",
          "Eᵢ": "Eᵢ",
          "Eᵢ⁽⁰⁾": "Eᵢ⁽⁰⁾"
        }
      },
      "_comment": "Ice mixing ratio after stage 3 (sublimation)."
    },
    {
      "lhs": "T⁽³⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "T⁽³⁾",
        "bindings": {
          "δq⁽⁰⁾": "δq⁽⁰⁾",
          "Eₗ": "Eₗ",
          "qᵣᶜ": "qᵣᶜ",
          "δq⁽¹⁾": "δq⁽¹⁾",
          "Eᵣ": "Eᵣ",
          "qᵢᶜ": "qᵢᶜ",
          "T⁽²⁾": "T⁽²⁾",
          "δq⁽²⁾": "δq⁽²⁾",
          "Eᵢ": "Eᵢ"
        }
      },
      "_comment": "Temperature after stage 3. Ice sublimation absorbs latent heat and cools the plume."
    },
    {
      "lhs": "𝒩ᵢ⁺",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "𝒩ᵢ⁺",
        "bindings": {
          "T⁽³⁾": "T⁽³⁾",
          "qᵥ⁽³⁾": "qᵥ⁽³⁾",
          "qₛ": "qₛ",
          "ρ": "ρ",
          "qᵢ⁽³⁾": "qᵢ⁽³⁾"
        }
      },
      "_comment": "Normalized driving term for vapor deposition onto ice, combining supersaturation, ice content and air density scaled by 1 g/m³."
    },
    {
      "lhs": "Δqₛ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "Δqₛ",
        "bindings": {
          "T⁽³⁾": "T⁽³⁾",
          "qᵥ⁽³⁾": "qᵥ⁽³⁾",
          "qₛ": "qₛ",
          "𝒩ᵢ⁺": "𝒩ᵢ⁺",
          "Dᵢ": "Dᵢ",
          "τ": "τᵏ"
        }
      },
      "_comment": "Potential vapor deposition onto ice over the interval τᵏ; available vapor limits the subsequent phase updates."
    },
    {
      "lhs": "qᵥ⁽⁴⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "qᵥ⁽⁴⁾",
        "bindings": {
          "T⁽³⁾": "T⁽³⁾",
          "qᵥ⁽³⁾": "qᵥ⁽³⁾",
          "qₛ": "qₛ",
          "Δqₛ": "Δqₛ"
        }
      },
      "_comment": "Water-vapor mixing ratio after stage 4, deposition of excess vapor onto ice at or below T𝒻."
    },
    {
      "lhs": "qᵢ⁽⁴⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "qᵢ⁽⁴⁾",
        "bindings": {
          "T⁽³⁾": "T⁽³⁾",
          "qᵥ⁽³⁾": "qᵥ⁽³⁾",
          "qₛ": "qₛ",
          "Δqₛ": "Δqₛ",
          "qᵢ⁽³⁾": "qᵢ⁽³⁾"
        }
      },
      "_comment": "Ice mixing ratio after stage 4 (vapor deposition onto ice)."
    },
    {
      "lhs": "T⁽⁴⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "T⁽⁴⁾",
        "bindings": {
          "T⁽³⁾": "T⁽³⁾",
          "qᵥ⁽³⁾": "qᵥ⁽³⁾",
          "qₛ": "qₛ",
          "Δqₛ": "Δqₛ"
        }
      },
      "_comment": "Temperature after stage 4. Deposition onto ice releases latent heat of sublimation, warming the plume and adding buoyancy."
    },
    {
      "lhs": "Δq𝒻",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "Δq𝒻",
        "bindings": {
          "qᵣ⁽²⁾": "qᵣ⁽²⁾",
          "qᵥ⁽⁴⁾": "qᵥ⁽⁴⁾",
          "qₛ": "qₛ",
          "T⁽⁴⁾": "T⁽⁴⁾",
          "τ": "τᵏ"
        }
      },
      "_comment": "Potential rain-to-ice transfer by glaciation over the interval τᵏ; available rain limits the subsequent phase updates."
    },
    {
      "lhs": "qᵢ⁽⁵⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "qᵢ⁽⁵⁾",
        "bindings": {
          "qᵣ⁽²⁾": "qᵣ⁽²⁾",
          "qᵥ⁽⁴⁾": "qᵥ⁽⁴⁾",
          "qₛ": "qₛ",
          "T⁽⁴⁾": "T⁽⁴⁾",
          "qᵢ⁽⁴⁾": "qᵢ⁽⁴⁾",
          "Δq𝒻": "Δq𝒻"
        }
      },
      "_comment": "Ice mixing ratio after stage 5, freezing of rain to ice (glaciation) at or below T𝒻 in saturated air."
    },
    {
      "lhs": "qᵣ⁽⁵⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "qᵣ⁽⁵⁾",
        "bindings": {
          "qᵣ⁽²⁾": "qᵣ⁽²⁾",
          "qᵥ⁽⁴⁾": "qᵥ⁽⁴⁾",
          "qₛ": "qₛ",
          "T⁽⁴⁾": "T⁽⁴⁾",
          "Δq𝒻": "Δq𝒻"
        }
      },
      "_comment": "Rainwater mixing ratio after stage 5, in which part of the rain freezes to ice (glaciation) at or below T𝒻. Freezing matters for plume rise because it releases latent heat (see T⁽⁵⁾) that adds buoyancy to high, cold plumes."
    },
    {
      "lhs": "T⁽⁵⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "T⁽⁵⁾",
        "bindings": {
          "qᵣ⁽²⁾": "qᵣ⁽²⁾",
          "qᵥ⁽⁴⁾": "qᵥ⁽⁴⁾",
          "qₛ": "qₛ",
          "T⁽⁴⁾": "T⁽⁴⁾",
          "Δq𝒻": "Δq𝒻"
        }
      },
      "_comment": "Temperature after stage 5. Freezing of rain releases latent heat of fusion, warming the plume and adding buoyancy."
    },
    {
      "lhs": "Δqₘ",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "apply_expression_template",
          "args": [],
          "name": "Δqₘ",
          "bindings": {
            "qᵢ⁽⁵⁾": {
              "op": "index",
              "args": [
                "qᵢ⁽⁵⁾",
                "k"
              ]
            },
            "T⁽⁵⁾": {
              "op": "index",
              "args": [
                "T⁽⁵⁾",
                "k"
              ]
            },
            "τ": {
              "op": "index",
              "args": [
                "τᵏ",
                "k"
              ]
            },
            "ρ": {
              "op": "index",
              "args": [
                "ρ",
                "k"
              ]
            },
            "cᵢ": {
              "op": "index",
              "args": [
                "cᵢ",
                "k"
              ]
            }
          }
        }
      },
      "_comment": "Potential ice-to-rain transfer by melting over the interval τᵏ; available ice limits the subsequent phase updates."
    },
    {
      "lhs": "qᵣ⁽⁶⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "qᵣ⁽⁶⁾",
        "bindings": {
          "qᵢ⁽⁵⁾": "qᵢ⁽⁵⁾",
          "T⁽⁵⁾": "T⁽⁵⁾",
          "qᵣ⁽⁵⁾": "qᵣ⁽⁵⁾",
          "Δqₘ": "Δqₘ"
        }
      },
      "_comment": "Rainwater mixing ratio after stage 6, melting of ice to rain at or above Tₘ."
    },
    {
      "lhs": "qᵢ⁽⁶⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "qᵢ⁽⁶⁾",
        "bindings": {
          "qᵢ⁽⁵⁾": "qᵢ⁽⁵⁾",
          "T⁽⁵⁾": "T⁽⁵⁾",
          "Δqₘ": "Δqₘ"
        }
      },
      "_comment": "Ice mixing ratio after stage 6 (melting)."
    },
    {
      "lhs": "T⁽⁶⁾",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "T⁽⁶⁾",
        "bindings": {
          "qᵢ⁽⁵⁾": "qᵢ⁽⁵⁾",
          "T⁽⁵⁾": "T⁽⁵⁾",
          "Δqₘ": "Δqₘ"
        }
      },
      "_comment": "Temperature after stage 6. Melting absorbs latent heat of fusion and cools the plume."
    },
    {
      "lhs": "mₗ",
      "rhs": {
        "op": "*",
        "args": [
          "ρ",
          "qₗ⁽¹⁾"
        ]
      },
      "_comment": "Cloud-water mass concentration after condensation or evaporation, before warm-rain conversion."
    },
    {
      "lhs": "mᵣ",
      "rhs": {
        "op": "*",
        "args": [
          "ρ",
          "qᵣ⁽⁶⁾"
        ]
      },
      "_comment": "Rainwater mass concentration after the phase-change sequence through ice melting, before warm-rain conversion."
    },
    {
      "lhs": "𝒞ₐ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "𝒞ₐ",
        "bindings": {
          "T⁽⁶⁾": "T⁽⁶⁾",
          "qₗ⁽¹⁾": "qₗ⁽¹⁾",
          "qᵣ⁽⁶⁾": "qᵣ⁽⁶⁾",
          "mₗ": "mₗ",
          "mᵣ": "mᵣ"
        }
      },
      "_comment": "Rate of rainwater mass production by accretion of cloud water."
    },
    {
      "lhs": "𝒞ᵤ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "𝒞ᵤ",
        "bindings": {
          "T⁽⁶⁾": "T⁽⁶⁾",
          "qₗ⁽¹⁾": "qₗ⁽¹⁾",
          "mₗ": "mₗ"
        }
      },
      "_comment": "Rate of rainwater mass production by autoconversion of cloud water."
    },
    {
      "lhs": "Δqᵣ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "Δqᵣ",
        "bindings": {
          "T⁽⁶⁾": "T⁽⁶⁾",
          "qₗ⁽¹⁾": "qₗ⁽¹⁾",
          "𝒞ᵤ": "𝒞ᵤ",
          "𝒞ₐ": "𝒞ₐ",
          "τ": "τᵏ",
          "ρ": "ρ"
        }
      },
      "_comment": "Potential cloud-to-rain transfer by autoconversion and accretion over the interval τᵏ; available cloud water limits the subsequent updates."
    },
    {
      "lhs": "qₗμ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "qₗμ",
        "bindings": {
          "T⁽⁶⁾": "T⁽⁶⁾",
          "qₗ⁽¹⁾": "qₗ⁽¹⁾",
          "Δqᵣ": "Δqᵣ"
        }
      },
      "_comment": "Cloud-water mixing ratio after phase changes and warm-rain conversion by autoconversion and accretion."
    },
    {
      "lhs": "qᵣμ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "qᵣμ",
        "bindings": {
          "T⁽⁶⁾": "T⁽⁶⁾",
          "qₗ⁽¹⁾": "qₗ⁽¹⁾",
          "qᵣ⁽⁶⁾": "qᵣ⁽⁶⁾",
          "Δqᵣ": "Δqᵣ"
        }
      },
      "_comment": "Rainwater mixing ratio after phase changes and warm-rain conversion by autoconversion and accretion."
    },
    {
      "lhs": "Mₜ",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "*",
            "args": [
              "χμ",
              {
                "op": "-",
                "args": [
                  "T⁽⁶⁾",
                  "T⁽⁰⁾"
                ]
              }
            ]
          },
          "τᵏ"
        ]
      }
    },
    {
      "lhs": "Mᵥ",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "*",
            "args": [
              "χμ",
              {
                "op": "-",
                "args": [
                  "qᵥ⁽⁴⁾",
                  "qᵥ⁽⁰⁾"
                ]
              }
            ]
          },
          "τᵏ"
        ]
      }
    },
    {
      "lhs": "Mₗ",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "*",
            "args": [
              "χμ",
              {
                "op": "-",
                "args": [
                  "qₗμ",
                  "qₗ⁽⁰⁾"
                ]
              }
            ]
          },
          "τᵏ"
        ]
      }
    },
    {
      "lhs": "Mᵣ",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "*",
            "args": [
              "χμ",
              {
                "op": "-",
                "args": [
                  "qᵣμ",
                  "qᵣ⁽⁰⁾"
                ]
              }
            ]
          },
          "τᵏ"
        ]
      }
    },
    {
      "lhs": "Mᵢ",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "*",
            "args": [
              "χμ",
              {
                "op": "-",
                "args": [
                  "qᵢ⁽⁶⁾",
                  "qᵢ⁽⁰⁾"
                ]
              }
            ]
          },
          "τᵏ"
        ]
      }
    },
    {
      "lhs": "Λᵥ",
      "rhs": {
        "op": "/",
        "args": [
          "Lᵥ",
          "cₚφ"
        ]
      }
    },
    {
      "lhs": "Λₛ",
      "rhs": {
        "op": "/",
        "args": [
          "Lₛ",
          "cₚφ"
        ]
      }
    },
    {
      "lhs": "Λ𝒻",
      "rhs": {
        "op": "/",
        "args": [
          "L𝒻",
          "cₚφ"
        ]
      }
    },
    {
      "lhs": "uₐ",
      "rhs": {
        "op": "*",
        "args": [
          "χ𝑤",
          "uₑ"
        ]
      }
    },
    {
      "lhs": "λ",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "*",
            "args": [
              2,
              "α",
              {
                "op": "abs",
                "args": [
                  "w̄"
                ]
              }
            ]
          },
          {
            "op": "max",
            "args": [
              "r",
              "rₘᵢₙ"
            ]
          }
        ]
      }
    },
    {
      "lhs": "λ𝑤",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "*",
            "args": [
              "κλ",
              {
                "op": "abs",
                "args": [
                  {
                    "op": "-",
                    "args": [
                      "uₐ",
                      "u"
                    ]
                  }
                ]
              }
            ]
          },
          {
            "op": "max",
            "args": [
              "r",
              "rₘᵢₙ"
            ]
          }
        ]
      }
    },
    {
      "lhs": "ℬₜ",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "*",
          "args": [
            "gᵦ",
            {
              "op": "-",
              "args": [
                {
                  "op": "-",
                  "args": [
                    {
                      "op": "-",
                      "args": [
                        {
                          "op": "/",
                          "args": [
                            {
                              "op": "-",
                              "args": [
                                {
                                  "op": "apply_expression_template",
                                  "args": [],
                                  "name": "Tᵥ",
                                  "bindings": {
                                    "X": {
                                      "op": "index",
                                      "args": [
                                        "T",
                                        "k"
                                      ]
                                    },
                                    "q": {
                                      "op": "index",
                                      "args": [
                                        "qᵥ",
                                        "k"
                                      ]
                                    }
                                  }
                                },
                                {
                                  "op": "apply_expression_template",
                                  "args": [],
                                  "name": "Tᵥ",
                                  "bindings": {
                                    "X": {
                                      "op": "index",
                                      "args": [
                                        "Tₑ",
                                        "k"
                                      ]
                                    },
                                    "q": {
                                      "op": "index",
                                      "args": [
                                        "qᵥₑ",
                                        "k"
                                      ]
                                    }
                                  }
                                }
                              ]
                            },
                            {
                              "op": "apply_expression_template",
                              "args": [],
                              "name": "Tᵥ",
                              "bindings": {
                                "X": {
                                  "op": "index",
                                  "args": [
                                    "Tₑ",
                                    "k"
                                  ]
                                },
                                "q": {
                                  "op": "index",
                                  "args": [
                                    "qᵥₑ",
                                    "k"
                                  ]
                                }
                              }
                            }
                          ]
                        },
                        {
                          "op": "index",
                          "args": [
                            "qₗ",
                            "k"
                          ]
                        }
                      ]
                    },
                    {
                      "op": "index",
                      "args": [
                        "qᵣ",
                        "k"
                      ]
                    }
                  ]
                },
                {
                  "op": "index",
                  "args": [
                    "qᵢ",
                    "k"
                  ]
                }
              ]
            }
          ]
        }
      }
    },
    {
      "lhs": "ℬ",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              {
                "op": "-",
                "args": [
                  "NLEV",
                  1
                ]
              }
            ]
          ],
          [
            [
              "NLEV",
              "NLEV"
            ]
          ]
        ],
        "values": [
          {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "m/s^2"
          },
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                {
                  "op": "-",
                  "args": [
                    "NLEV",
                    1
                  ]
                }
              ]
            },
            "expr": {
              "op": "ifelse",
              "args": [
                {
                  "op": "<",
                  "args": [
                    "k",
                    {
                      "op": "-",
                      "args": [
                        "nₗ",
                        1
                      ]
                    }
                  ]
                },
                {
                  "op": "/",
                  "args": [
                    {
                      "op": "+",
                      "args": [
                        {
                          "op": "index",
                          "args": [
                            "ℬₜ",
                            "k"
                          ]
                        },
                        {
                          "op": "index",
                          "args": [
                            "ℬₜ",
                            {
                              "op": "+",
                              "args": [
                                "k",
                                1
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    2
                  ]
                },
                {
                  "op": "const",
                  "args": [],
                  "value": 0,
                  "units": "m/s^2"
                }
              ]
            }
          },
          {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "m/s^2"
          }
        ]
      }
    },
    {
      "lhs": "E𝑤",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              {
                "op": "-",
                "args": [
                  "NLEV",
                  1
                ]
              }
            ]
          ],
          [
            [
              "NLEV",
              "NLEV"
            ]
          ]
        ],
        "values": [
          {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "m/s^2"
          },
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                {
                  "op": "-",
                  "args": [
                    "NLEV",
                    1
                  ]
                }
              ]
            },
            "expr": {
              "op": "*",
              "args": [
                {
                  "op": "-",
                  "args": [
                    {
                      "op": "+",
                      "args": [
                        {
                          "op": "/",
                          "args": [
                            {
                              "op": "*",
                              "args": [
                                {
                                  "op": "/",
                                  "args": [
                                    {
                                      "op": "*",
                                      "args": [
                                        2,
                                        "α"
                                      ]
                                    },
                                    1.5
                                  ]
                                },
                                {
                                  "op": "abs",
                                  "args": [
                                    {
                                      "op": "index",
                                      "args": [
                                        "w",
                                        "k"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "op": "/",
                              "args": [
                                {
                                  "op": "+",
                                  "args": [
                                    {
                                      "op": "index",
                                      "args": [
                                        "r",
                                        "k"
                                      ]
                                    },
                                    {
                                      "op": "index",
                                      "args": [
                                        "r",
                                        {
                                          "op": "-",
                                          "args": [
                                            "k",
                                            1
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                2
                              ]
                            }
                          ]
                        },
                        {
                          "op": "/",
                          "args": [
                            {
                              "op": "*",
                              "args": [
                                "κE",
                                {
                                  "op": "abs",
                                  "args": [
                                    {
                                      "op": "-",
                                      "args": [
                                        {
                                          "op": "+",
                                          "args": [
                                            {
                                              "op": "-",
                                              "args": [
                                                {
                                                  "op": "index",
                                                  "args": [
                                                    "u",
                                                    "k"
                                                  ]
                                                },
                                                {
                                                  "op": "index",
                                                  "args": [
                                                    "uₐ",
                                                    "k"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "op": "index",
                                              "args": [
                                                "u",
                                                {
                                                  "op": "-",
                                                  "args": [
                                                    "k",
                                                    1
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "op": "index",
                                          "args": [
                                            "uₐ",
                                            {
                                              "op": "-",
                                              "args": [
                                                "k",
                                                1
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "op": "/",
                              "args": [
                                {
                                  "op": "+",
                                  "args": [
                                    {
                                      "op": "index",
                                      "args": [
                                        "r",
                                        "k"
                                      ]
                                    },
                                    {
                                      "op": "index",
                                      "args": [
                                        "r",
                                        {
                                          "op": "-",
                                          "args": [
                                            "k",
                                            1
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                2
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "op": "abs",
                  "args": [
                    {
                      "op": "index",
                      "args": [
                        "w",
                        "k"
                      ]
                    }
                  ]
                }
              ]
            }
          },
          {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "m/s^2"
          }
        ]
      }
    },
    {
      "lhs": "fρ",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              {
                "op": "-",
                "args": [
                  "NLEV",
                  1
                ]
              }
            ]
          ],
          [
            [
              "NLEV",
              "NLEV"
            ]
          ]
        ],
        "values": [
          {
            "op": "*",
            "args": [
              "w₀",
              {
                "op": "index",
                "args": [
                  "ρ",
                  1
                ]
              },
              "κkg"
            ]
          },
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                {
                  "op": "-",
                  "args": [
                    "NLEV",
                    1
                  ]
                }
              ]
            },
            "expr": {
              "op": "*",
              "args": [
                {
                  "op": "index",
                  "args": [
                    "w",
                    "k"
                  ]
                },
                0.5,
                {
                  "op": "+",
                  "args": [
                    {
                      "op": "index",
                      "args": [
                        "ρ",
                        "k"
                      ]
                    },
                    {
                      "op": "index",
                      "args": [
                        "ρ",
                        {
                          "op": "+",
                          "args": [
                            "k",
                            1
                          ]
                        }
                      ]
                    }
                  ]
                },
                "κkg"
              ]
            }
          },
          {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "kg/m^2/s"
          }
        ]
      }
    },
    {
      "lhs": "A𝑤",
      "rhs": {
        "op": "makearray",
        "args": [],
        "regions": [
          [
            [
              1,
              1
            ]
          ],
          [
            [
              2,
              {
                "op": "-",
                "args": [
                  "NLEV",
                  1
                ]
              }
            ]
          ],
          [
            [
              "NLEV",
              "NLEV"
            ]
          ]
        ],
        "values": [
          {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "m/s^2"
          },
          {
            "op": "faq",
            "args": [],
            "output_idx": [
              "k"
            ],
            "ranges": {
              "k": [
                2,
                {
                  "op": "-",
                  "args": [
                    "NLEV",
                    1
                  ]
                }
              ]
            },
            "expr": {
              "op": "ifelse",
              "args": [
                {
                  "op": "<",
                  "args": [
                    "k",
                    {
                      "op": "-",
                      "args": [
                        "nₗ",
                        1
                      ]
                    }
                  ]
                },
                {
                  "op": "*",
                  "args": [
                    {
                      "op": "/",
                      "args": [
                        {
                          "op": "/",
                          "args": [
                            0.5,
                            {
                              "op": "-",
                              "args": [
                                {
                                  "op": "index",
                                  "args": [
                                    "zₜ",
                                    {
                                      "op": "+",
                                      "args": [
                                        "k",
                                        1
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "op": "index",
                                  "args": [
                                    "zₜ",
                                    "k"
                                  ]
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "*",
                          "args": [
                            {
                              "op": "+",
                              "args": [
                                {
                                  "op": "index",
                                  "args": [
                                    "ρ",
                                    "k"
                                  ]
                                },
                                {
                                  "op": "index",
                                  "args": [
                                    "ρ",
                                    {
                                      "op": "+",
                                      "args": [
                                        "k",
                                        1
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            "κkg"
                          ]
                        }
                      ]
                    },
                    {
                      "op": "+",
                      "args": [
                        {
                          "op": "-",
                          "args": [
                            {
                              "op": "*",
                              "args": [
                                {
                                  "op": "+",
                                  "args": [
                                    {
                                      "op": "index",
                                      "args": [
                                        "fρ",
                                        "k"
                                      ]
                                    },
                                    {
                                      "op": "index",
                                      "args": [
                                        "fρ",
                                        {
                                          "op": "-",
                                          "args": [
                                            "k",
                                            1
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "op": "+",
                                  "args": [
                                    {
                                      "op": "index",
                                      "args": [
                                        "w",
                                        "k"
                                      ]
                                    },
                                    {
                                      "op": "index",
                                      "args": [
                                        "w",
                                        {
                                          "op": "-",
                                          "args": [
                                            "k",
                                            1
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "op": "*",
                              "args": [
                                {
                                  "op": "+",
                                  "args": [
                                    {
                                      "op": "index",
                                      "args": [
                                        "fρ",
                                        "k"
                                      ]
                                    },
                                    {
                                      "op": "index",
                                      "args": [
                                        "fρ",
                                        {
                                          "op": "+",
                                          "args": [
                                            "k",
                                            1
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "op": "+",
                                  "args": [
                                    {
                                      "op": "index",
                                      "args": [
                                        "w",
                                        "k"
                                      ]
                                    },
                                    {
                                      "op": "index",
                                      "args": [
                                        "w",
                                        {
                                          "op": "+",
                                          "args": [
                                            "k",
                                            1
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "*",
                          "args": [
                            2,
                            {
                              "op": "index",
                              "args": [
                                "w",
                                "k"
                              ]
                            },
                            {
                              "op": "-",
                              "args": [
                                {
                                  "op": "index",
                                  "args": [
                                    "fρ",
                                    {
                                      "op": "+",
                                      "args": [
                                        "k",
                                        1
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "op": "index",
                                  "args": [
                                    "fρ",
                                    {
                                      "op": "-",
                                      "args": [
                                        "k",
                                        1
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "op": "const",
                  "args": [],
                  "value": 0,
                  "units": "m/s^2"
                }
              ]
            }
          },
          {
            "op": "const",
            "args": [],
            "value": 0,
            "units": "m/s^2"
          }
        ]
      }
    },
    {
      "lhs": "nₗ",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "reduce": "+",
        "expr": 1
      }
    },
    {
      "lhs": "ν",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "*",
          "args": [
            "χᵥ",
            {
              "op": "max",
              "args": [
                "νₘᵢₙ",
                {
                  "op": "*",
                  "args": [
                    "ν₀",
                    {
                      "op": "-",
                      "args": [
                        1,
                        {
                          "op": "/",
                          "args": [
                            {
                              "op": "*",
                              "args": [
                                {
                                  "op": "-",
                                  "args": [
                                    "k",
                                    1
                                  ]
                                },
                                "Δz"
                              ]
                            },
                            "ℓν"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      }
    },
    {
      "lhs": "𝒱𝑤",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "V",
        "bindings": {
          "q": "w",
          "ζ": "z𝑤"
        }
      }
    },
    {
      "lhs": "ℱₜ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "F",
        "bindings": {
          "q": "T"
        }
      }
    },
    {
      "lhs": "Aₜ",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "+",
            "args": [
              {
                "op": "-",
                "args": [
                  {
                    "op": "D",
                    "args": [
                      "ℱₜ"
                    ],
                    "wrt": "z"
                  }
                ]
              },
              {
                "op": "*",
                "args": [
                  "T",
                  {
                    "op": "D",
                    "args": [
                      "fρ"
                    ],
                    "wrt": "z"
                  }
                ]
              }
            ]
          },
          {
            "op": "*",
            "args": [
              "ρ",
              "κkg"
            ]
          }
        ]
      }
    },
    {
      "lhs": "𝒱ₜ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "V",
        "bindings": {
          "q": "T",
          "ζ": "zₜ"
        }
      }
    },
    {
      "lhs": "ℱᵥ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "F",
        "bindings": {
          "q": "qᵥ"
        }
      }
    },
    {
      "lhs": "Aᵥ",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "+",
            "args": [
              {
                "op": "-",
                "args": [
                  {
                    "op": "D",
                    "args": [
                      "ℱᵥ"
                    ],
                    "wrt": "z"
                  }
                ]
              },
              {
                "op": "*",
                "args": [
                  "qᵥ",
                  {
                    "op": "D",
                    "args": [
                      "fρ"
                    ],
                    "wrt": "z"
                  }
                ]
              }
            ]
          },
          {
            "op": "*",
            "args": [
              "ρ",
              "κkg"
            ]
          }
        ]
      }
    },
    {
      "lhs": "𝒱ᵥ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "V",
        "bindings": {
          "q": "qᵥ",
          "ζ": "zₜ"
        }
      }
    },
    {
      "lhs": "ℱₗ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "F",
        "bindings": {
          "q": "qₗ"
        }
      }
    },
    {
      "lhs": "Aₗ",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "+",
            "args": [
              {
                "op": "-",
                "args": [
                  {
                    "op": "D",
                    "args": [
                      "ℱₗ"
                    ],
                    "wrt": "z"
                  }
                ]
              },
              {
                "op": "*",
                "args": [
                  "qₗ",
                  {
                    "op": "D",
                    "args": [
                      "fρ"
                    ],
                    "wrt": "z"
                  }
                ]
              }
            ]
          },
          {
            "op": "*",
            "args": [
              "ρ",
              "κkg"
            ]
          }
        ]
      }
    },
    {
      "lhs": "𝒱ₗ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "V",
        "bindings": {
          "q": "qₗ",
          "ζ": "zₜ"
        }
      }
    },
    {
      "lhs": "ℱᵣ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "F",
        "bindings": {
          "q": "qᵣ"
        }
      }
    },
    {
      "lhs": "Aᵣ",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "+",
            "args": [
              {
                "op": "-",
                "args": [
                  {
                    "op": "D",
                    "args": [
                      "ℱᵣ"
                    ],
                    "wrt": "z"
                  }
                ]
              },
              {
                "op": "*",
                "args": [
                  "qᵣ",
                  {
                    "op": "D",
                    "args": [
                      "fρ"
                    ],
                    "wrt": "z"
                  }
                ]
              }
            ]
          },
          {
            "op": "*",
            "args": [
              "ρ",
              "κkg"
            ]
          }
        ]
      }
    },
    {
      "lhs": "𝒱ᵣ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "V",
        "bindings": {
          "q": "qᵣ",
          "ζ": "zₜ"
        }
      }
    },
    {
      "lhs": "ℱᵢ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "F",
        "bindings": {
          "q": "qᵢ"
        }
      }
    },
    {
      "lhs": "Aᵢ",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "+",
            "args": [
              {
                "op": "-",
                "args": [
                  {
                    "op": "D",
                    "args": [
                      "ℱᵢ"
                    ],
                    "wrt": "z"
                  }
                ]
              },
              {
                "op": "*",
                "args": [
                  "qᵢ",
                  {
                    "op": "D",
                    "args": [
                      "fρ"
                    ],
                    "wrt": "z"
                  }
                ]
              }
            ]
          },
          {
            "op": "*",
            "args": [
              "ρ",
              "κkg"
            ]
          }
        ]
      }
    },
    {
      "lhs": "𝒱ᵢ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "V",
        "bindings": {
          "q": "qᵢ",
          "ζ": "zₜ"
        }
      }
    },
    {
      "lhs": "ℱᵤ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "F",
        "bindings": {
          "q": "u"
        }
      }
    },
    {
      "lhs": "Aᵤ",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "+",
            "args": [
              {
                "op": "-",
                "args": [
                  {
                    "op": "D",
                    "args": [
                      "ℱᵤ"
                    ],
                    "wrt": "z"
                  }
                ]
              },
              {
                "op": "*",
                "args": [
                  "u",
                  {
                    "op": "D",
                    "args": [
                      "fρ"
                    ],
                    "wrt": "z"
                  }
                ]
              }
            ]
          },
          {
            "op": "*",
            "args": [
              "ρ",
              "κkg"
            ]
          }
        ]
      }
    },
    {
      "lhs": "𝒱ᵤ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "V",
        "bindings": {
          "q": "u",
          "ζ": "zₜ"
        }
      }
    },
    {
      "lhs": "ℱᵣₐ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "F",
        "bindings": {
          "q": "r"
        }
      }
    },
    {
      "lhs": "Aᵣₐ",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "+",
            "args": [
              {
                "op": "-",
                "args": [
                  {
                    "op": "D",
                    "args": [
                      "ℱᵣₐ"
                    ],
                    "wrt": "z"
                  }
                ]
              },
              {
                "op": "*",
                "args": [
                  "r",
                  {
                    "op": "D",
                    "args": [
                      "fρ"
                    ],
                    "wrt": "z"
                  }
                ]
              }
            ]
          },
          {
            "op": "*",
            "args": [
              "ρ",
              "κkg"
            ]
          }
        ]
      }
    },
    {
      "lhs": "𝒱ᵣₐ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "V",
        "bindings": {
          "q": "r",
          "ζ": "zₜ"
        }
      }
    },
    {
      "lhs": "ℱ𝒸",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "F",
        "bindings": {
          "q": "c"
        }
      }
    },
    {
      "lhs": "A𝒸",
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "+",
            "args": [
              {
                "op": "-",
                "args": [
                  {
                    "op": "D",
                    "args": [
                      "ℱ𝒸"
                    ],
                    "wrt": "z"
                  }
                ]
              },
              {
                "op": "*",
                "args": [
                  "c",
                  {
                    "op": "D",
                    "args": [
                      "fρ"
                    ],
                    "wrt": "z"
                  }
                ]
              }
            ]
          },
          {
            "op": "*",
            "args": [
              "ρ",
              "κkg"
            ]
          }
        ]
      }
    },
    {
      "lhs": "𝒱𝒸",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "V",
        "bindings": {
          "q": "c",
          "ζ": "zₜ"
        }
      }
    },
    {
      "lhs": "𝒮ᵣ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "S",
        "bindings": {
          "q": "qᵣ",
          "v": "vᵣ"
        }
      }
    },
    {
      "lhs": "𝒮ᵢ",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "S",
        "bindings": {
          "q": "qᵢ",
          "v": "vᵢ"
        }
      }
    },
    {
      "lhs": "σᴅ",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "/",
          "args": [
            {
              "op": "min",
              "args": [
                "ℋᴅ",
                {
                  "op": "max",
                  "args": [
                    {
                      "op": "const",
                      "args": [],
                      "value": 0,
                      "units": "m"
                    },
                    {
                      "op": "-",
                      "args": [
                        {
                          "op": "index",
                          "args": [
                            "zₜ",
                            "k"
                          ]
                        },
                        {
                          "op": "*",
                          "args": [
                            {
                              "op": "-",
                              "args": [
                                "kₜ",
                                1
                              ]
                            },
                            "Δz"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "op": "*",
              "args": [
                "τᴅ",
                "ℋᴅ"
              ]
            }
          ]
        }
      }
    },
    {
      "lhs": "R𝑤",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [
          "k"
        ],
        "ranges": {
          "k": [
            1,
            "NLEV"
          ]
        },
        "expr": {
          "op": "-",
          "args": [
            {
              "op": "+",
              "args": [
                {
                  "op": "index",
                  "args": [
                    "A𝑤",
                    "k"
                  ]
                },
                {
                  "op": "index",
                  "args": [
                    "ℬ",
                    "k"
                  ]
                },
                {
                  "op": "index",
                  "args": [
                    "E𝑤",
                    "k"
                  ]
                },
                {
                  "op": "index",
                  "args": [
                    "𝒱𝑤",
                    "k"
                  ]
                }
              ]
            },
            {
              "op": "*",
              "args": [
                {
                  "op": "index",
                  "args": [
                    "σᴅ",
                    "k"
                  ]
                },
                {
                  "op": "index",
                  "args": [
                    "w",
                    "k"
                  ]
                }
              ]
            }
          ]
        }
      }
    },
    {
      "lhs": "Rₜ",
      "rhs": {
        "op": "+",
        "args": [
          {
            "op": "-",
            "args": [
              {
                "op": "+",
                "args": [
                  "Aₜ",
                  "𝒱ₜ",
                  {
                    "op": "apply_expression_template",
                    "args": [],
                    "name": "E",
                    "bindings": {
                      "q": "T",
                      "qₑ": "Tₑ"
                    }
                  }
                ]
              },
              {
                "op": "*",
                "args": [
                  "w̄",
                  "Γᴅ"
                ]
              }
            ]
          },
          {
            "op": "*",
            "args": [
              "σᴅ",
              {
                "op": "-",
                "args": [
                  "Tₑ",
                  "T"
                ]
              }
            ]
          },
          "Mₜ"
        ]
      }
    },
    {
      "lhs": "Rᵥ",
      "rhs": {
        "op": "+",
        "args": [
          "Aᵥ",
          "𝒱ᵥ",
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "E",
            "bindings": {
              "q": "qᵥ",
              "qₑ": "qᵥₑ"
            }
          },
          "Mᵥ"
        ]
      }
    },
    {
      "lhs": "Rₗ",
      "rhs": {
        "op": "+",
        "args": [
          "Aₗ",
          "𝒱ₗ",
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "E",
            "bindings": {
              "q": "qₗ",
              "qₑ": "q∅"
            }
          },
          "Mₗ"
        ]
      }
    },
    {
      "lhs": "Rᵣ",
      "rhs": {
        "op": "+",
        "args": [
          "Aᵣ",
          "𝒱ᵣ",
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "E",
            "bindings": {
              "q": "qᵣ",
              "qₑ": "q∅"
            }
          },
          "Mᵣ",
          "𝒮ᵣ"
        ]
      }
    },
    {
      "lhs": "Rᵢ",
      "rhs": {
        "op": "+",
        "args": [
          "Aᵢ",
          "𝒱ᵢ",
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "E",
            "bindings": {
              "q": "qᵢ",
              "qₑ": "q∅"
            }
          },
          "Mᵢ",
          "𝒮ᵢ"
        ]
      }
    },
    {
      "lhs": "Rᵤ",
      "rhs": {
        "op": "+",
        "args": [
          "Aᵤ",
          "𝒱ᵤ",
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "E",
            "bindings": {
              "q": "u",
              "qₑ": "uₐ"
            }
          }
        ]
      }
    },
    {
      "lhs": "Rᵣₐ",
      "rhs": {
        "op": "+",
        "args": [
          "Aᵣₐ",
          "𝒱ᵣₐ",
          {
            "op": "*",
            "args": [
              "aᵣ₁",
              "λ",
              "r"
            ]
          },
          {
            "op": "/",
            "args": [
              {
                "op": "abs",
                "args": [
                  {
                    "op": "-",
                    "args": [
                      "uₐ",
                      "u"
                    ]
                  }
                ]
              },
              "πᵣ"
            ]
          }
        ]
      }
    },
    {
      "lhs": "R𝒸",
      "rhs": {
        "op": "+",
        "args": [
          "A𝒸",
          "𝒱𝒸",
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "E",
            "bindings": {
              "q": "c",
              "qₑ": "q∅"
            }
          }
        ]
      }
    },
    {
      "lhs": "j⋆",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [],
        "ranges": {
          "j": [
            1,
            "NLEV"
          ]
        },
        "reduce": "min",
        "expr": {
          "op": "ifelse",
          "args": [
            {
              "op": "<=",
              "args": [
                {
                  "op": "index",
                  "args": [
                    "w",
                    "j"
                  ]
                },
                "wₘᵢₙ"
              ]
            },
            "j",
            "nₗ"
          ]
        }
      }
    },
    {
      "lhs": "hₚ",
      "rhs": {
        "op": "*",
        "args": [
          {
            "op": "-",
            "args": [
              "j⋆",
              1
            ]
          },
          "Δz"
        ]
      }
    },
    {
      "lhs": "jᶜ",
      "rhs": {
        "op": "ifelse",
        "args": [
          {
            "op": "<=",
            "args": [
              "j⋆",
              1
            ]
          },
          1,
          {
            "op": "+",
            "args": [
              {
                "op": "-",
                "args": [
                  "j⋆",
                  1
                ]
              },
              {
                "op": "/",
                "args": [
                  {
                    "op": "-",
                    "args": [
                      {
                        "op": "index",
                        "args": [
                          "w",
                          {
                            "op": "-",
                            "args": [
                              {
                                "op": "max",
                                "args": [
                                  "j⋆",
                                  2
                                ]
                              },
                              1
                            ]
                          }
                        ]
                      },
                      "wₘᵢₙ"
                    ]
                  },
                  {
                    "op": "-",
                    "args": [
                      {
                        "op": "index",
                        "args": [
                          "w",
                          {
                            "op": "-",
                            "args": [
                              {
                                "op": "max",
                                "args": [
                                  "j⋆",
                                  2
                                ]
                              },
                              1
                            ]
                          }
                        ]
                      },
                      {
                        "op": "index",
                        "args": [
                          "w",
                          {
                            "op": "max",
                            "args": [
                              "j⋆",
                              2
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    {
      "lhs": {
        "op": "D",
        "args": [
          "kₜ"
        ],
        "wrt": "t"
      },
      "rhs": {
        "op": "/",
        "args": [
          {
            "op": "max",
            "args": [
              0,
              {
                "op": "-",
                "args": [
                  "jᶜ",
                  "kₜ"
                ]
              }
            ]
          },
          "τⱼ"
        ]
      }
    },
    {
      "lhs": {
        "op": "ic",
        "args": [
          "kₜ"
        ]
      },
      "rhs": 10
    },
    {
      "lhs": "𝒲",
      "rhs": {
        "op": "faq",
        "args": [],
        "output_idx": [],
        "ranges": {
          "j": [
            1,
            "NLEV"
          ]
        },
        "reduce": "max",
        "expr": {
          "op": "abs",
          "args": [
            {
              "op": "index",
              "args": [
                "w",
                "j"
              ]
            }
          ]
        }
      }
    }
  ],
  "analyses": [
    {
      "id": "williams_flats_rise",
      "description": "Rise of the Williams Flats plume over the first 30 minutes of the fire: plume-top height and maximum vertical velocity. The plume reaches a quasi-steady height of about 8.5 km with a pyrocumulus cloud above about 4 km.",
      "time_span": {
        "start": 0,
        "end": 1800
      },
      "plots": [
        {
          "id": "plume_height",
          "type": "line",
          "x": {
            "variable": "t",
            "label": "Time (s)"
          },
          "y": {
            "variable": "hₚ",
            "label": "Plume top (m)"
          }
        },
        {
          "id": "maximum_speed",
          "type": "line",
          "x": {
            "variable": "t",
            "label": "Time (s)"
          },
          "y": {
            "variable": "𝒲",
            "label": "Maximum vertical velocity (m/s)"
          }
        }
      ]
    }
  ],
  "tests": [
    {
      "id": "williams_flats_lower_boundary_and_sounding",
      "description": "Default 200-level configuration, evaluated at t = 0 with the first-minute heat-flux floor ℋₘᵢₙ set to the full convective flux of the Williams Flats fire (ηQ𝒻 = 1408 W/m²): the lower-boundary similarity solution (w₀, the plume temperature T₀⁽⁰⁾ and the vapor qᵥ₀⁽⁰⁾ including the fire water) and the ambient sounding interpolated to the plume grid at levels 50 (4.85 km) and 120 (11.85 km). Expected values are the reference Fortran's W(1), T(1), QV(1) under full heating and its interpolated TE, PE, QVENV and VEL_E (single precision; tolerance 1e-5 relative). The time-dependent behavior is tested on a shorter, coarser column in freitas_2007_tests.esm, which mounts this model, because the implicit integration of the full 200-level column takes minutes.",
      "time_span": {
        "start": 0,
        "end": 1
      },
      "parameter_overrides": {
        "ℋₘᵢₙ": 1408.0
      },
      "assertions": [
        {
          "variable": "w₀",
          "time": 0,
          "expected": 9.3712,
          "tolerance": {
            "rel": 1e-05
          }
        },
        {
          "variable": "T₀⁽⁰⁾",
          "time": 0,
          "expected": 307.49255,
          "tolerance": {
            "rel": 1e-05
          }
        },
        {
          "variable": "qᵥ₀⁽⁰⁾",
          "time": 0,
          "expected": 0.00767874,
          "tolerance": {
            "rel": 1e-05
          }
        },
        {
          "variable": "Tₑ[50]",
          "time": 0,
          "expected": 263.7049,
          "tolerance": {
            "rel": 1e-05
          }
        },
        {
          "variable": "pₑ[50]",
          "time": 0,
          "expected": 51.675632,
          "tolerance": {
            "rel": 1e-05
          }
        },
        {
          "variable": "qᵥₑ[50]",
          "time": 0,
          "expected": 0.000882394,
          "tolerance": {
            "rel": 1e-05
          }
        },
        {
          "variable": "uₑ[50]",
          "time": 0,
          "expected": 4.9707088,
          "tolerance": {
            "rel": 1e-05
          }
        },
        {
          "variable": "Tₑ[120]",
          "time": 0,
          "expected": 218.36597,
          "tolerance": {
            "rel": 1e-05
          }
        },
        {
          "variable": "qᵥₑ[120]",
          "time": 0,
          "expected": 3.7684672e-06,
          "tolerance": {
            "rel": 1e-05
          }
        }
      ]
    }
  ]
}