Spectral-Bin Microphysics (SBM)

Spectral-bin microphysics represents condensed water explicitly over a set of particle-size or particle-mass bins. This differs from a bulk microphysics scheme, which predicts a small number of bulk quantities such as cloud-water and rain-water mixing ratio and generally represents the underlying particle size distribution through an assumed functional form.

ERF’s spectral-bin state is Eulerian: each atmospheric grid cell carries a bin-resolved distribution. This is also different from the Super-Droplets method, where the condensed phase is represented by Lagrangian computational particles that move through the Eulerian model grid.

A complete spectral-bin microphysics model can explicitly represent the particle-size distributions of aerosols and hydrometeors and their evolution through physical processes. ERF’s currently exposed SBM option is narrower: it predicts a bin-resolved liquid-water distribution and advances it by resolved atmospheric advection on a single grid level or on a two-level adaptive mesh (see Multilevel SBM simulations), between periodic, wall, outflow and prescribed-inflow boundaries (see Physical boundaries), and can mix it with ERF’s LES eddy diffusivity (see Particle mixing). Aerosol evolution and cloud microphysical processes are not yet included. See Auxiliary Prognostic-State Transport for the reusable mapped-transport interface.

Warning

The current SBM option provides resolved advection of a liquid-water size distribution on one or two grid levels, and turbulent mixing of it. It is not yet a complete warm-cloud or warm-rain microphysics scheme.

The liquid spectrum is the authoritative condensed-water state. It is advected using ERF’s dry-air mass carrier, high-order reconstruction, coupled flux-corrected transport, and fixed projections to conventional cloud- and rain-water fields.

The runtime does not yet provide particle mixing on terrain-following meshes, except for qualification (Particle mixing on terrain-fitted grids (qualification only)), or through ho_outflow faces, condensation/evaporation, aerosol activation or evolution, collision-coalescence, sedimentation, precipitation, spectral transport on more than two levels or on refined stretched or terrain-following meshes, or symmetry, open or real-data boundaries. Moving terrain and embedded boundaries remain unsupported.

Unsupported configurations are rejected rather than silently reverting to bulk-water transport.

Current spectral state

The current user-facing SBM configuration contains one liquid-water population. Aerosol and ice populations are not currently exposed through the runtime SBM option.

Water vapor remains part of ERF’s normal prognostic moisture state. The condensed liquid-water distribution is stored separately as the authoritative spectral state.

For liquid bin \(i\), let \(q_i\) denote the liquid-water mass in that bin per unit mass of dry air, and let \(\rho_d\) be the dry-air density. The quantity stored by the current spectral state is the density-weighted bin mass

\[M_i = \rho_d q_i,\]

with units of \(\mathrm{kg\,m^{-3}}\).

In the two-moment representation, ERF additionally stores the droplet-number density in each bin,

\[C_i = \rho_d N_i,\]

where \(N_i\) is the bin number per unit mass of dry air. The stored quantity \(C_i\) therefore has units of \(\mathrm{m^{-3}}\).

The spectral coordinate used by the current ERF SBM runtime configuration is the liquid-water mass of an individual particle, in kg. Bin edges and pivots therefore describe particle water mass, not atmospheric liquid-water content. The reference fixed-pivot and interval remapping policies require individual-particle liquid-water mass as their spectral coordinate. A spectrum expressed in another coordinate, such as particle radius, is a different representation because its number measure and moments transform with the coordinate change. The current reference policies therefore reject non-mass coordinates rather than interpreting radius numerically as though it were particle mass.

Bulk cloud and rain fields

ERF’s normal atmospheric state still contains the familiar cloud-water and rain-water fields so that the rest of the model can interact with a conventional moisture-state layout.

For SBM these fields are not independent prognostic reservoirs. They are fixed projections of the authoritative spectral liquid-water distribution.

Let erf.sbm_cloud_rain_split = s. Bins with indices smaller than s are classified as cloud water, and bins with indices greater than or equal to s are classified as rain water. ERF therefore computes

\[\rho_d q_c = \sum_{i < s} M_i\]

and

\[\rho_d q_r = \sum_{i \ge s} M_i.\]

The cloud/rain boundary is consequently the spectral bin edge at index s.

In ERF’s compact moisture state, water vapor occupies Q1, projected cloud water occupies Q2, and projected rain water occupies Q3. The spectral distribution, rather than Q2 or Q3, is the source of truth for condensed liquid water.

ERF protects the projected cloud- and rain-water components from the normal native liquid-water update paths while SBM is active. They are regenerated from the spectrum at the required model handoffs.

One- and two-moment bins

ERF currently supports one- and two-moment spectral bins.

Here one moment and two moments refer to the moments stored within each spectral bin. They should not be confused with conventional one- or two-moment bulk cloud and precipitation parameterizations.

One-moment representation

With

erf.sbm_moment_mode = 1

ERF stores one quantity per bin: the density-weighted liquid-water mass \(M_i\).

For \(N\) bins, the spectral state therefore contains

\[M_0,\ M_1,\ \ldots,\ M_{N-1}.\]

Each spectral bin also has a representative pivot particle mass. The pivot is part of the spectral-grid definition and restart identity, but droplet number is not independently stored in the one-moment representation.

Two-moment representation

With

erf.sbm_moment_mode = 2

ERF stores both liquid-water mass and droplet number in every bin.

For \(N\) bins the runtime component order is

\[M_0,\ M_1,\ldots,M_{N-1}, C_0,\ C_1,\ldots,C_{N-1}.\]

Consider a bin whose lower and upper particle-mass edges are \(a_i\) and \(b_i\), with \(a_i < b_i\). A physically admissible two-moment state must satisfy

\[C_i \ge 0,\]

and

\[a_i C_i \le M_i \le b_i C_i.\]

When \(C_i > 0\), this is equivalent to requiring the mean particle mass

\[\frac{M_i}{C_i}\]

to lie inside the bin. If \(C_i = 0\), the same constraint requires \(M_i = 0\).

ERF checks these relationships during fixture initialization and again when reading the authoritative spectral state from a checkpoint. A materially unrealizable two-moment state is rejected rather than clipped or silently repaired.

Reference spectral reconstruction and remapping

This section concerns redistribution in the spectral coordinate—that is, how a particle population is represented after a local process changes particle liquid-water mass. It is distinct from advection between atmospheric grid cells, AMR transfer between spatial resolutions, and conversion of a checkpoint from one spectral schema to another.

The current runtime does not yet execute cloud microphysical processes that use these remappers. The present implementation establishes the reference representation and remapping contracts that future process implementations must obey.

Moment normalization

The prognostic spectral state stored by ERF is density weighted. Within one atmospheric grid cell it is convenient to state the remapping algebra using the corresponding quantities per unit mass of dry air,

\[N_i = \frac{C_i}{\rho_d}, \qquad q_i = \frac{M_i}{\rho_d},\]

where \(N_i\) is particle number per unit mass of dry air and \(q_i\) is liquid-water mass per unit mass of dry air. The stored quantities are \(C_i=\rho_d N_i\) and \(M_i=\rho_d q_i\).

Because \(\rho_d\) is a common factor within the cell, the same linear remapping formulas apply to the density-weighted state. For example, if a packet number \(N_p\) is expressed per unit mass of dry air, the corresponding number-density packet is \(C_p=\rho_d N_p\).

One-moment fixed-pivot remapping

In the one-moment representation, bin \(i\) stores its water moment \(q_i\) but not an independent number moment. Particle number is diagnosed at the fixed positive pivot mass \(p_i\),

\[N_i = \frac{q_i}{p_i}.\]

Consider a packet with number \(N_p\) and actual liquid-water mass \(m\) per particle. If \(m\) lies between adjacent pivots \(p_-\) and \(p_+\), the packet is divided between them using the number weights

\[w_- = \frac{p_+-m}{p_+-p_-}, \qquad w_+ = \frac{m-p_-}{p_+-p_-}.\]

The corresponding increments are

\[\Delta N_\pm = N_p w_\pm, \qquad \Delta q_\pm = p_\pm N_p w_\pm.\]

Any attached extensive inventory follows the same number weights. The mapping therefore conserves the implied packet number, liquid water, and each attached inventory to floating-point roundoff, even though only the water moment and attached inventories are persisted in one-moment mode.

Fixed-pivot remapping necessarily introduces spectral spreading for an off-pivot packet. If

\[Q_2 = \int m^2\,d\mu\]

denotes the second particle-mass moment of the number measure, the increment relative to retaining the packet at its actual mass is

\[\Delta Q_2 = N_p(m-p_-)(p_+-m) \ge 0.\]

This is numerical broadening introduced by the representation; it is not physical cloud-spectrum broadening produced by a microphysical process.

For a packet below the first pivot, \(0<m<p_0\), define

\[f_{\mathrm{wet}} = \frac{m}{p_0}.\]

The reference closure places the fraction \(f_{\mathrm{wet}}\) of the packet number at the first pivot and returns the remaining number through the zero-water residual path,

\[\Delta N_0 = N_p f_{\mathrm{wet}}, \qquad \Delta q_0 = N_p m, \qquad N_{\mathrm{res}} = N_p(1-f_{\mathrm{wet}}).\]

Attached inventories are partitioned by the same \(f_{\mathrm{wet}}\) and \(1-f_{\mathrm{wet}}\) fractions. This is a numerical sub-pivot evaporation closure. It should not be interpreted as a statement that the unresolved physical particles represented by the residual have necessarily undergone complete physical evaporation.

A zero-water packet is returned entirely through the residual path. A packet above the largest fixed pivot reports overflow and is not clipped into the largest bin.

Two-moment interval representation

In the two-moment representation, number and liquid-water mass are stored independently. For a populated bin with edges \(a_i\) and \(b_i\),

\[\bar m_i = \frac{q_i}{N_i} = \frac{M_i}{C_i}\]

may occupy the full admissible interval.

The reference mean-delta reconstruction is a temporary monodisperse representation that places all of the bin number at \(\bar m_i\). It reproduces the persisted number and water moments to floating-point roundoff; it is not an additional prognostic description of within-bin shape.

Canonical persisted two-moment state requires a populated bin to have positive number and positive water mass, with its mean inside that bin’s routing-owned interval. Interior bins own \([a_i,b_i)\); the final bin owns \([a_i,b_i]\). A bin with zero number is empty only when its water mass and every attached extensive inventory are also exactly zero. A positive-number, zero-water liquid-bin state is invalid; a zero-water packet is handled by the explicit residual path.

The endpoint transform uses a small floating-point tolerance when testing moment realizability. That tolerance is a numerical aid for the transform; it does not authorize silent normalization of authoritative persisted state. A persisted bin must already satisfy its canonical routing-owned interval and must be numerically reconstructable in the active amrex::Real precision. In particular, a mathematically positive stored quantity whose required per-particle quotient underflows to zero is rejected rather than interpreted as an empty particle population.

The first two moments do not uniquely determine that shape. For any nonnegative number distribution supported on \([a_i,b_i]\) with \(N_i>0\), the second mass moment satisfies

\[\frac{q_i^2}{N_i} \le Q_{2,i} \le (a_i+b_i)q_i-a_i b_i N_i.\]

A delta distribution at \(\bar m_i\) attains the lower bound. On the closed mathematical support \([a_i,b_i]\), an appropriate mixture at the two endpoints attains the upper bound. For the canonical routing ownership used here, an interior bin owns \([a_i,b_i)\), so the same expression is the upper bound (and limiting supremum) for that bin while a particle exactly at \(b_i\) belongs to the next bin. The final bin includes its global upper endpoint. The mean-delta reference reconstruction therefore selects the minimum-variance distribution consistent with the two stored moments. Quantities that depend on unresolved within-bin structure—for example nonlinear collision rates, size-dependent sedimentation, or optical properties—are not uniquely determined by \(N_i\) and \(q_i\) alone.

For an attached extensive property, the mean-delta reference closure assigns the bin-mean amount per particle to the reconstructed node. This reproduces the stored attached-property inventory to floating-point roundoff, but it likewise does not resolve covariance between particle composition and liquid-water mass.

If several physically distinct packets are accumulated in the same interval, their total number and first water-mass moment are retained, but their within-bin spread is not an additional persisted degree of freedom. Subsequent mean-delta reconstruction therefore cannot recover that spread. This is representation loss, not physical coalescence: particle number has not been reduced by the representation itself.

Two-moment packet deposition

A two-moment process packet is deposited using its actual particle mass, rather than being replaced by neighboring pivot masses. If a packet with number \(N_p\) and particle mass \(m\) lies in interval \(i\),

\[\Delta N_i = N_p, \qquad \Delta q_i = N_p m.\]

Any attached extensive inventory is deposited into the same interval.

Interior intervals are half-open: a packet exactly on an edge shared by two bins belongs to the upper bin. The global upper edge is included in the final bin. Materially out-of-range packets return an underflow or overflow status rather than being silently clipped.

An unchanged mean-delta reconstruction redeposits into its original interval. A state concentrated exactly on an interior shared edge belongs to the upper bin; the same state stored in the lower bin is noncanonical and is rejected rather than silently migrated by a no-process reconstruction/remapping cycle.

At a positive global lower edge or at the global upper edge, the implementation permits only a very small, explicitly bounded floating-point exception: a nonnegative particle mass up to four representable floating-point steps outside the boundary may be classified as roundoff. Such a packet is deposited at the exact boundary mass \(m_b\), not at its slightly out-of-support input mass \(m_{\mathrm{in}}\). Negative particle masses are invalid; in particular, a spectrum whose lower edge is exactly zero does not admit negative roundoff excursions below that edge.

The corresponding signed numerical water correction is

\[\delta q_{\mathrm{round}} = N_p\left(m_b-m_{\mathrm{in}}\right),\]

with the analogous density-weighted correction obtained by multiplication by \(\rho_d\). A positive correction means boundary normalization increased the persisted water amount relative to the incoming floating-point packet; a negative correction means it decreased it. This quantity is explicit numerical roundoff accounting, not a physical condensation, evaporation, or precipitation source.

Storing the exact boundary mass keeps the accepted state inside its declared spectral support and lets reconstruction followed immediately by projection preserve the accepted moments to floating-point roundoff.

A positive-number packet with exactly zero liquid-water mass is returned through the zero-water residual path rather than retained as a populated liquid bin. Residual number and attached inventory are returned to the caller for process-level handling; the reference remapper itself does not create or modify an aerosol population.

A mathematically positive required quantity that underflows to exactly zero in the active floating-point precision is rejected fail-closed rather than reinterpreted as physical evaporation, residual material, or an empty population. Packet routing and application report this case as NumericalUnderflow; reconstruction and projection reject it through their existing invalid/failure returns. Packet application remains atomic.

Restart and scientific identity

The representation, temporary reconstruction, and packet-remapping policies are versioned parts of the SBM scientific identity. The current one-moment identities are fixed-pivot-1m-v1, fixed-pivot-delta-v1, and fixed-pivot-two-center-v1. The current two-moment identities are interval-2m-v1, mean-delta-2m-v1, and actual-mass-interval-v1.

These strings are restart and provenance metadata; they are not user-selectable microphysics options. Restart comparison is exact, and ERF does not automatically convert a checkpoint to a different representation or remapping policy.

The representation, transport, and projection policies are versioned parts of the exact restart identity. Older zero-transport schemas are rejected rather than silently interpreted as the currently supported advection scheme. The multilevel lifecycle, restriction, prolongation, reflux, synchronization, regrid and boundary policies are also part of the identity, so a checkpoint written before they were (schema version 1) is rejected rather than restarted under policies it did not record. A domain with a physical face records each face’s kind and every inflow spectrum in that identity, so a restart with different boundary data is rejected, and its checkpoint carries the boundary ledger of Physical boundaries. A triply periodic domain keeps the identity it had before physical faces existed. Particle mixing other than None adds its policy, with any reference diffusivities, and its diffusion method to the identity, so a restart under another policy or other coefficients is rejected; without mixing the identity is unchanged. With mixing, a domain with an inflow or outflow face also records how each such face mixes the spectrum, which separates ERF’s Inflow from its inflow_outflow; with periodic and wall faces alone that line is absent.

Auxiliary prognostic-state transport

The SBM liquid spectrum is the authoritative liquid-water state. ERF advances this spectrum in physical space using the mapped auxiliary-state transport infrastructure and the atmospheric dynamical core’s dry-air mass flux.

The low-order candidate is conservative donor transport. The high-order candidate uses ERF’s native WENO-Z3 reconstruction. Two-moment liquid bins are reconstructed in endpoint-number coordinates before their face rates are transformed back to physical mass and number. A shared atomic-group FCT limiter constrains mass, number, and attached extensive properties together.

Projected qc and qr remain fixed diagnostics of the accepted liquid spectrum. They are refreshed from the spectrum and do not receive an independent liquid advection, diffusion, clipping, or microphysical update.

Available end-to-end simulation evidence is deliberately bounded. It covers single-level advection on constant- and stretched-z grids and on a static Cos4Hill terrain-fitted grid, triply periodic or with the walls, outflow and prescribed inflow of Physical boundaries, and the two-level hierarchies described in Multilevel SBM simulations. Direct transport tests also exercise nontrivial fluxes with a synthetic static mapped measure. Particle mixing is covered on single-level constant- and stretched-z grids between periodic and wall faces, with Smagorinsky and Deardorff LES and with constant reference diffusivities (see Particle mixing). Condensation/evaporation, activation, collision-coalescence, sedimentation, and precipitation are not available in the runtime. Moving terrain and embedded boundaries remain unsupported.

Conservative spectral transfer between grid resolutions

Atmospheric simulations may use locally refined meshes around clouds, convective updrafts, or sharp moisture gradients. For spectral-bin microphysics, a change in atmospheric grid resolution must transfer the liquid-water and droplet-number inventories represented by each spectral bin. Transferring only bulk cloud-water and rain-water amounts would not preserve the underlying particle-size distribution: many different spectra can have the same bulk mixing ratios.

The following state and transfer operations carry the spectrum across atmospheric grid resolutions:

  • Time-matched spectral states. The bin-resolved distribution has explicit previous and updated time views that follow ERF’s atmospheric time advance. A quantity expressed per unit dry-air mass is formed using dry-air density from the matching time view, not from a different model stage.

  • Conservative coarse-grid averaging. For spectral component \(a\), let \(U_a\) be the stored density-weighted amount. Depending on the component, this represents liquid-water mass per unit volume, droplet number per unit volume, or an attached extensive inventory. ERF’s mapped conservative amount is

    \[H_a = \omega U_a, \qquad \omega = \frac{\det J}{m_x m_y},\]

    where \(\det J\) is the terrain-coordinate Jacobian and \(m_x\) and \(m_y\) are the horizontal map factors. For a coarse cell \(c\) completely covered by fine cells \(j\), restriction uses

    \[H_{a,c} = \frac{1}{N_c}\sum_{j\in\mathcal{C}(c)} H_{a,j}, \qquad U_{a,c} = \frac{H_{a,c}}{\omega_c},\]

    where \(\mathcal{C}(c)\) contains the \(N_c\) fine children of cell \(c\). This preserves the represented mapped inventory to floating-point accuracy. Coarse cells outside the fine-covered region retain their previous spectral values exactly.

  • Carrier-relative fine-grid transfer. The operator forms the amount of each component per unit mass of dry air,

    \[z_a = \frac{U_a}{\rho_d},\]

    where \(\rho_d\) is dry-air density. The fine-grid value is obtained through piecewise-constant interpolation of \(z_a\) followed by reconstruction with the fine-grid density at the same semantic time:

    \[U_{a,\mathrm{fine}} = \rho_{d,\mathrm{fine}}\, z_{a,\mathrm{parent\ coarse}}.\]

    Refining the atmospheric mesh thereby transfers a bin’s dry-air-relative abundance without treating the change in spatial resolution as a physical droplet-growth, evaporation, or collision process.

  • Accepted spectral face-transfer foundation. The mapped transport operator forms accepted spectral face rates for every prognostic mass, number and attached-property component after its coupled limiter. An AMR-oriented implementation can accumulate those chunk-local accepted rates directly in an AMReX coarse/fine flux register, using the actual host-stage time coefficient and preserving the component layout:

    \[\mathcal{I}_{a,f} = \sum_{q}\sum_{k} w_{q,k} \widetilde F^{\mathrm{accepted}}_{a,f,q,k}.\]

    Here \(q\) indexes physical substeps and \(k\) the host stages, with \(w_{q,k}\) equal to the accepted completed-ledger coefficient: for compressible RK3 it is the physical substep length only at stage 2, for anelastic Heun it is one-half the physical substep length at stages 0 and 1, and for anelastic MidPoint it is the full substep length at stage 1 only. The complete all-component face-integral ledger remains available as a test/reference path; the normal production transport allocation does not require that additional full-spectrum face record.

  • Physical and numerical admissibility. A transferred candidate spectrum must still satisfy the declared mass, number, attached-property, and spectral-bin ownership constraints. Invalid or numerically unrepresentable candidates are rejected rather than repaired by clipping or silent redistribution.

Multilevel SBM simulations

SBM advects the liquid-water spectrum on a two-level adaptive mesh within the following qualified configuration, which ERF checks when it reads the inputs:

  • at most two levels, amr.max_level <= 1;

  • amr.ref_ratio = 2 in every direction;

  • erf.coupling_type = TwoWay;

  • a ConstantDz mesh without terrain;

  • the same compressibility and erf.timestepping_type on both levels: compressible RK3_NoSubstepping, or anelastic RK2 (Heun) or MidPoint;

  • with anelastic levels, a constant base density (erf.init_type = Uniform, ConstantDensity, or ConstantDensityLinearTheta): each anelastic level computes its own hydrostatic density and ERF does not average it down, so a stratified base state would give the coarse and fine levels different dry-air carriers;

  • a double-precision build; and

  • the single-level restrictions of Current execution restrictions, including the boundary types of Physical boundaries.

Regridding (erf.regrid_int), clearing and recreating the fine level, any number of fine steps per coarse step (erf.dt_ref_ratio), and multilevel checkpoint/restart are supported. Other multilevel configurations are rejected.

AMR qualification evidence

The authoritative spectral state is not the projected qc or qr field on any level.

A separately built internal qualification executable exercises a periodic, two-level, 3-D, double-precision AMR hierarchy with two-way coupling and fine-level subcycling, on fixed fine grids or with the fine level regridded, cleared and recreated, under the compressible RK3 host integrator and the anelastic Heun and MidPoint integrators. Its supported test fixtures cover one-moment spectral mass and two-moment spectral mass, droplet number and an attached number-carried property. Its additional checks only read the state: the production and qualification executables give bitwise-identical two-level checkpoints for the same regridded run.

At fine-level physical stages, accepted coarse spectral and dry-air density endpoints are interpolated at the same requested time. If \(U_a\) is an authoritative density-weighted spectral component and \(\rho_d\) is the dry-air density, the coarse parent donor intensive is

\[z_a(t) = \frac{(1-\theta)U_a(t_0) + \theta U_a(t_1)} {(1-\theta)\rho_d(t_0) + \theta\rho_d(t_1)}, \qquad \theta = \frac{t-t_0}{t_1-t_0}.\]

For a two-moment bin, the mass and number intensives are converted to endpoint-number coordinates before WENO-Z3 reconstruction. All spectral components, including any attached number-carried quantity, share their complete-group flux-corrected acceptance. AMR interface accounting consumes the accepted spectral face-rate integrals, not the unlimited high-order proposal or the projected cloud/rain transfer. Coarse synchronization first forms a private mapped-conservative candidate, requires canonical-state admission, and only then publishes the spectrum and regenerates qc/qr.

The periodic two-level qualification checks composite spectral inventories, coarse/fine interface signs, time integration weights, two-layer coarse-only ghost completion, and distributed rank ownership. Remote coarse-parent ghost values are compared with an independent reconstruction both at the start of the coarse step and at the first stage time inside it, which for the MidPoint corrector is the half step. Evidence is specific to the executed CPU/MPI fixtures and does not establish GPU performance. The qualification decks are triply periodic; two-level runs with physical faces are checked by the boundary budget of Physical boundaries.

A uniform dry-air-relative spectrum, \(U_a = z_a\rho_d\) with constant \(z_a\), stays uniform only as far as the spectral fluxes and the dry-air fluxes agree on every level and across the coarse/fine interface. The qualification carries such a spectrum and a uniform host scalar through a divergence-free roll with shear. Under the anelastic integrators the host scalar stays uniform to roundoff, and so must the spectrum: both spreads in \(U_a/\rho_d\) stay near \(10^{-12}\). Under the compressible RK3 host without acoustic substeps, ERF does not reflux dry-air density across the coarse/fine interface, so at uncovered cells next to it the dry-air density and every refluxed conserved quantity, the spectrum included, change by different amounts. Both spreads then grow to about \(10^{-7}\) per step in this fixture, with the spectral inventory still conserved to roundoff; the spectrum’s spread must stay within one percent of the host scalar’s, the two nonuniform ratios being carried by different advection schemes.

A checkpoint is written only after the hierarchy has been synchronized, with no interface correction pending, so each level’s accepted spectrum at the checkpoint time is the complete multilevel spectral state. A restart reads and admits that spectrum on every level and requires the saved qc and qr of each level to match its projection. The qualification restarts fixed, regridded and coarse-only (cleared) hierarchies and requires the restored composite inventory to equal the continuous run’s at the checkpoint step, and the final checkpoint to be bitwise identical to the continuous run’s on every level. A checkpoint with a missing or inadmissible fine-level spectrum, inconsistent fine-level qc/qr, or a schema of the same size but a different policy is rejected before any step.

Regridding happens at the start of a coarse step, after the previous step has synchronized the hierarchy, so no interface correction is pending and every covered coarse cell already holds the mapped average of its fine cells. Each coarse parent \(P\) of the new fine grids is one of three kinds:

  • retained – its fine cells were also on the old grids, and their accepted spectrum is copied unchanged;

  • newly refined – each child \(c\) takes the parent’s dry-air-relative state, \(U_{a,c} = \rho_{d,c}\,U_{a,P}/\rho_{d,P}\), with the child’s dry-air density from the host’s conservative interpolation;

  • released – the parent is no longer covered, and it already holds the synchronized average of its former children, so nothing is transferred.

With \(\omega\) the mapped cell measure and \(r^3\) children per parent, the host density satisfies \(\sum_c \omega_c\rho_{d,c} = r^3\,\omega_P\rho_{d,P}\) for every parent, so a newly refined parent keeps its mapped inventory \(\omega_P U_{a,P}\) and the composite leaf inventory is unchanged to roundoff. The complete candidate must pass the same admission as any other spectral state before it replaces the level; otherwise the run aborts before any spectral state or qc/qr projection changes. Clearing a fine level needs no transfer for the same reason as releasing a parent.

A conservation budget for a refined simulation must count each atmospheric region only once, using fine-grid values where refinement is present and excluding the underlying coarse-grid cells. More than two levels, and refined stretched or terrain-following meshes remain to be qualified.

Physical boundaries

Each face of the domain takes one of four spectral boundary kinds, from its ERF boundary type:

  • Periodic: the face is shared with the opposite face;

  • wall (SlipWall, NoSlipWall, surface_layer): no spectrum crosses the face. The dry-air carrier must be exactly zero there; a nonzero carrier aborts the stage;

  • outflow (Outflow, ho_outflow): the spectrum leaves with the interior donor state. An inward carrier contradicts the declared outflow and aborts the stage rather than turning the face into an inflow;

  • prescribed inflow (Inflow, inflow_outflow): an inward carrier brings the spectrum given by <face>.sbm_inflow_z; an outward one takes the interior donor state.

Symmetry faces are rejected because ERF does not hold their normal dry-air carrier at zero, and Open because it advects with a characteristic scheme the spectrum does not share. A surface_layer face is a wall for the spectrum: the surface fluxes it gives ERF’s own scalars do not apply, so particles neither deposit on the surface nor leave it. ERF accepts a surface layer only with a diffusive closure, so with SBM it needs an LES closure and erf.sbm_particle_mixing = HostPassiveScalar. Real-data lateral boundaries remain rejected: their files carry compact moisture, not a spectrum. So does erf.input_bndry_planes, whose files would set the density and compact moisture of an inflow face.

The ghost cells outside a wall or outflow face repeat the edge cell, and those outside an inflow face hold the inflow spectrum. They are filled at every stage on every level, after the coarse/fine ghosts of a refined level, and are never stored. Every face whose WENO-Z3 stencil can reach such a ghost – the physical face itself and the next face inside – takes the donor rate as its high-order advective candidate, so advection there is the donor rate; particle mixing adds its own candidates (see Particle mixing).

The inflow spectrum gives every layout component per kilogram of dry air, in the component order of erf.sbm_fixture_initial_state: liquid-water mass (kg/kg), and in two-moment mode droplet number (1/kg). It must be complete, canonical for its representation, and admissible for every bin group. In a compressible run <face>.density must be given; in an anelastic or pseudo-incompressible run it must be omitted, and the inflow density is taken from the interior. ERF sets the compact qc and qr boundary values from the projection of the inflow spectrum; <face>.qc is rejected, since a compact value can neither define nor override a spectrum. Inflow data on any other kind of face is rejected.

The accepted transfer through each physical face is accumulated in a boundary ledger, per face and component, with the completed-step weights of the host integrator. A coarse face under the finer level does not count: the fine faces there carry the transfer. With erf.sbm_budget_check = true, after each coarse step ERF checks that the composite leaf inventory changed by exactly the outward transfer of that step,

\[\left|I_n - I_{n-1} + (B_n - B_{n-1})\right| \le \epsilon_{\rm ops}\,\left(|I_{n-1}| + |I_n| + G_n - G_{n-1}\right),\]

where \(I_n\) is the composite inventory of a component after step \(n\) (\(I_{n-1}\) at the start or restart of the run before the first check), \(B\) its cumulative outward boundary transfer, \(G\) the cumulative magnitude of that transfer, and \(\epsilon_{\rm ops}\) an operation-count roundoff bound for one step, which does not grow with the length of the run. Each check prints an SBM_BUDGET line, and a failure aborts. A grid so large that the bound reaches one at the working precision (possible in single precision) is rejected.

ERF’s own dry-air mass is not conserved through periodic z faces when a lateral face is not periodic and the flow has a vertical component, and the spectrum, carried by the same mass flux, follows it. Use walls in z with nonperiodic lateral faces.

Particle mixing

erf.sbm_particle_mixing selects how subgrid turbulence mixes the spectrum. A policy gives one gradient-mixing coefficient to every member of every bin group:

  • None (default): no mixing;

  • ConstantReference: the kinematic horizontal and vertical diffusivities erf.sbm_particle_mixing_kh and erf.sbm_particle_mixing_kv, multiplied by the face-averaged dry-air density;

  • HostPassiveScalar: ERF’s Scalar_h and Scalar_v eddy coefficients on horizontal and vertical faces, used as they are: they are already density weighted and already include the turbulent Schmidt factor. Under ERF’s LES closures they equal the Q_h and Q_v coefficients that diffuse moisture. ERF computes them once per step from the state at the start of the step, and every stage of the spectrum uses that field, as ERF’s own scalars do.

HostPassiveScalar requires erf.les_type = Smagorinsky or Deardorff, the same on every level. Smagorinsky2D is rejected: it leaves vertical mixing to a PBL scheme. None and ConstantReference reject any LES closure, which would mix the vapor but not the spectrum, or the spectrum by unrelated coefficients. Every policy rejects PBL and RANS closures, since the PBL schemes other than SHOC set Q_v but not Scalar_v and several add nonlocal transport, and rejects molecular diffusion. Mixing also requires a constant- or stretched-z mesh; terrain-fitted meshes are rejected until their operator (Particle mixing on terrain-fitted grids (qualification only)) passes its release gates. It runs on one level or on the two levels of SBM’s AMR envelope.

Particle molecular (Brownian) diffusion is zero under every policy; a vapor or scalar molecular diffusivity is never inherited. A nonfinite or negative coefficient in any cell the operator reads is rejected, not clipped.

The low-order operator exchanges the intensive state \(z=U/\rho_d\) between the two cells of each face, \(F_f=-T_f\,(z_R-z_L)\) with \(T_f\ge0\). On constant- and stretched-z grids this is ERF’s own scalar diffusion stencil. At each host stage it is evaluated on the same base state as the donor advection, with \(T_f\) from that state’s dry-air density, and added to the low-order advective candidate. ERF’s own scalar-diffusion flux of the stage input state is added to the high-order candidate, and the grouped FCT limiter of Auxiliary Prognostic-State Transport bounds the combined correction. Where the limiter is inactive the spectrum is therefore mixed exactly as an ERF scalar would be, with the host integrator’s order of accuracy, and a uniform ratio \(U/\rho_d\) stays uniform under varying density and coefficients. Two-moment pairs are mixed in physical mass and number: the operator is linear, so no endpoint transformation is needed.

Each domain face mixes the spectrum as ERF diffuses its scalars there:

  • periodic faces are interior faces;

  • walls (including surface_layer), Outflow and ho_outflow faces carry no particle mixing. ERF diffuses its scalars through an ho_outflow face against an extrapolated ghost cell, which has no positive low-order form, so the spectrum keeps that face closed;

  • an Inflow face exchanges with its sbm_inflow_z spectrum on every cell of the face, as ERF’s ext_dir scalars do;

  • an inflow_outflow face does so only where the dry-air carrier enters, as ERF’s ext_dir_upwind scalars do. ERF accepts inflow_outflow on x and y faces only.

Where an inflow face mixes, its low-order exchange spans half the edge cell, from the cell’s center to the face that holds the inflow value, with the host face coefficient of the ghost and edge cells, and it joins the combined bound below. The high-order candidate is ERF’s own boundary stencil: one-sided on a constant-z mesh, and two-point against the face value on the side faces of a stretched one. The ghost cell beyond the face holds no budget, so the edge cell’s budget alone limits the face, and where it is inactive the boundary mixes as an ERF scalar would. The boundary ledger records the accepted transfer through the face, advective and diffusive together; with the flow at rest, mixing alone crosses it.

On two levels a fine stage reads its coarse/fine ghost spectrum from the coarse parent, its density from ERF’s fill of the stage state, and the eddy diffusivity as ERF extrapolates it from the fine interior. The interface registers take the accepted rate, mixing included, so reflux closes the leaf-domain inventory, which the budget check verifies each coarse step. As with advection, a fine level’s coarse/fine faces keep their low-order rates.

Low-order advection and diffusion evaluated from the same anchor keep every cell nonnegative only under their combined bound

\[\frac{\tau}{C_{d,i}}\left[\sum_{f\in\partial i}\max(\sigma_{if}\dot M_{d,f},0) +\sum_j g_{ij}\right]\le1,\]

where \(C_{d,i}\) is the cell’s dry-air inventory, \(\dot M_{d,f}\) the dry-air face rate and \(g_{ij}\) the face exchange coefficient. Separate advective and diffusive fractions of 0.6 each pass their own bounds but leave \(-0.2\) of the cell. Because every member of a bin group shares one coefficient, the update preserves the group’s linear admissibility constraints. Each stage checks the combined bound and aborts if it fails. Adaptive timesteps respect it and a fixed timestep that exceeds it is rejected. ConstantReference coefficients are known in advance, but ERF prepares the HostPassiveScalar eddy coefficients inside the step, so their estimate uses the previous step’s coefficients. The first step of a run sees none, and the first step after a restart, whose eddy coefficients are not checkpointed, keeps the checkpointed timestep, even with the flow at rest, where no rate is known yet; the stage check guards both, and aborts rather than shrinking the step. Where the eddy diffusivity can approach the advective limit, for example an LES started from a strong perturbation, leave margin with a smaller erf.cfl or shrink the first step with erf.init_shrink. The estimate fills the density ghost cells it reads with the same ERF steps that fill the stage state at the start of the step: the interpolated coarse density at a coarse/fine boundary, and beyond an inflow face that mixes, the density ERF gives that ghost (<face>.density, boundary planes, or the interior density in an anelastic run). It is made before the step regrids, on the previous step’s grids, and later stages see their own density; the stage check guards both.

The limiter keeps a roundoff margin of \(128\,\epsilon\) times each cell’s gross budget, so a cell it drains exactly to a bound cannot round below it. The margin applies with or without mixing. A nearly empty cell whose margin to a bound is within that roundoff of the material passing through it takes the low-order update on its faces.

Particle mixing on terrain-fitted grids (qualification only)

On terrain-fitted grids ERF’s centered cross-diffusion stencil is not positive: a single diagonal neighbor gives an empty cell a negative tendency. The terrain operator below is implemented but has not passed its release gates, so ERF rejects it unless erf.sbm_particle_mixing_terrain_qualification = true, which is for qualification runs only and prints a warning.

The high-order rate is ERF’s native terrain diffusion of the stage input. The horizontal raw fluxes carry the horizontal coefficient and the vertical raw flux the vertical one, and ERF’s terrain mapping combines them once, so horizontal diffusion along a slope crosses the \(k\) faces even with \(K_v = 0\). The bottom and top walls suppress their complete mapped transfer, metric terms included; for the horizontal stencil beside a wall only, the stage input is extended quadratically in physical height past the wall. A lateral inflow face takes the face-trace flux, the one-sided gradient against the inflow spectrum; a face that does not exchange contributes no side flux to the adjoining \(k\) faces.

The low-order rate is the diagonal of the mapped diffusion tensor, \(T_z = (\mu_v + \mu_h[(m_x h_\xi)^2 + (m_y h_\eta)^2])/(m_x m_y J\,\Delta\zeta)\) on a \(k\) face, scaled on every face by one fraction \(\theta\in[0,1]\) per bin group: the largest that keeps each of the group’s matched coordinates (a 1M mass, a 2M bin’s two endpoint numbers, an attached property) between zero and its native rate. The group limiter then bounds the combined advection-diffusion correction as on other meshes. The timestep estimate and the stage check use the unscaled \(T\), whose slope term accounts for the stiffness of the native stencil’s cross diffusion.

Qualification admits fully compressible, single-level, static terrain with walls at the bottom and top, three or more cells per column, and a cell drop \(\sqrt{\delta_x^2+\delta_y^2}\) of at most one cell thickness (ERF’s unclamped terrain cell drops); a run outside it fails at setup, naming the worst cell. The restart schema adds a line naming the terrain operator.

Numerical reconstruction for resolved spectral advection

The current high-order spectral advection method is EndpointNumberWENOZ3. This numerical-method identity is fixed by the implementation and is not a user-selectable SBM option. See Auxiliary Prognostic-State Transport for the mapped conservation and host-stage transport conventions.

For the current implementation, EndpointNumberWENOZ3 has a specific numerical meaning:

  • every transported component first uses the intensive dry-air coordinate \(z_a=U_a/\rho_d\) formed with the density from the same host stage;

  • each two-moment mass/number pair is transformed to endpoint-number coordinates before high-order reconstruction and converted back to physical mass and number face rates before grouped FCT;

  • one-moment components and attached extensive properties remain in their physical intensive coordinates;

  • no per-component rescaling or normalization is applied before WENO-Z3;

  • reconstruction uses ERF’s native AdvType::Weno_3Z / WENO_Z3 stencil. At this revision its linear weights are \(1/3\) and \(2/3\), with a fixed epsilon of 1.e-12 in AMREX_USE_FLOAT builds and 1.e-40 otherwise; and

  • on a nonperiodic physical face and the next face inside, the donor rate is the high-order candidate (see Physical boundaries).

Changing the reconstruction basis, component normalization, WENO epsilon or stencil, or physical-boundary fallback is a numerical-method change requiring new qualification; it is not a formatting-only cleanup.

SBM runtime inputs

The following inputs use the erf. prefix.

erf.moisture_model

Select the current advection-only SBM capability with

erf.moisture_model = SBM

New SBM input files should omit the obsolete no-transport switch described below.

erf.sbm_zero_transport_fixture

Type: Boolean

Default: false

This obsolete switch belonged to an earlier infrastructure-only test mode. It is not a supported option for current simulations. Omit it from new SBM input files. An explicitly true value is rejected rather than silently disabling spectral transport.

erf.sbm_nbins

Type: Integer

Default: 4

Requirement: at least 2

Sets the number of liquid-water bins when erf.sbm_edges is not supplied.

If explicit edges are supplied, their length determines the effective number of bins:

\[N_{\mathrm{bins}} = N_{\mathrm{edges}} - 1.\]

In that case the explicit edge array, rather than the separately specified erf.sbm_nbins, determines the spectral-grid size.

erf.sbm_moment_mode

Type: Integer

Default: 1

Allowed values: 1 or 2

1 stores one liquid-mass moment per bin.

2 stores liquid mass and droplet number per bin, with all mass components followed by all number components.

erf.sbm_cloud_rain_split

Type: Integer bin index

Default: sbm_nbins / 2 using integer division

The value must lie strictly inside the liquid-bin range:

\[0 < s < N_{\mathrm{bins}}.\]

Bins 0 through s-1 contribute to projected cloud water. Bins s through N-1 contribute to projected rain water.

The split is an index into the spectral grid. The corresponding physical cloud/rain boundary is the particle-mass edge sbm_edges[s].

erf.sbm_edges

Type: List of real values

Units: kg of liquid water per particle

Defines the spectral-bin edges.

For \(N\) bins, supply \(N+1\) values. The edges must be finite, nonnegative, strictly increasing, and sufficiently separated to form a numerically well-conditioned grid.

If erf.sbm_edges is omitted, ERF currently generates a logarithmically spaced test grid from

\[10^{-18}\ {\rm kg}\]

to

\[10^{-12}\ {\rm kg}\]

using erf.sbm_nbins bins.

This automatically generated grid is an infrastructure-test default. It is not a recommended atmospheric spectral discretization.

erf.sbm_pivots

Type: List of real values

Units: kg of liquid water per particle

Defines one representative particle mass for each spectral bin.

Each pivot must be finite, positive, and lie inside its corresponding bin.

For erf.sbm_moment_mode = 1, the pivots must also increase strictly from one bin to the next. Coincident pivots at a shared bin edge are therefore not valid for the fixed-pivot one-moment representation.

In two-moment mode the pivots remain part of the spectral-grid and restart identity, but the reference packet remapper uses the packet’s actual mass and its containing interval rather than replacing the packet by pivot masses.

When explicit erf.sbm_edges are supplied and erf.sbm_pivots are omitted, ERF uses the geometric mean of each pair of adjacent bin edges.

If erf.sbm_edges is omitted, ERF generates both the default edges and their geometric-mean pivots. A separately supplied erf.sbm_pivots array is therefore not used unless an explicit edge array is also supplied.

A special case occurs when the first explicit bin begins at exactly zero. The geometric mean of zero and a positive upper edge is zero, but SBM requires a strictly positive pivot. Such a grid therefore requires an explicit positive pivot inside the first bin.

erf.sbm_fixture_initial_state

Type: List of real values

Default: all spectral components are zero

Provides a spatially uniform initial spectral state. Each supplied component is assigned the same value in every grid cell.

For one-moment SBM with \(N\) bins, supply exactly \(N\) values:

\[M_0,\ M_1,\ldots,M_{N-1},\]

with units of \(\mathrm{kg\,m^{-3}}\).

For two-moment SBM, supply exactly \(2N\) values in the order

\[M_0,\ldots,M_{N-1},C_0,\ldots,C_{N-1},\]

where the mass components have units of \(\mathrm{kg\,m^{-3}}\) and the number components have units of \(\mathrm{m^{-3}}\).

All supplied values must be finite and nonnegative. Two-moment states must also satisfy the per-bin realizability condition described above.

erf.sbm_fixture_initial_state_xhi

Type: List of real values

Default: none (the state above everywhere)

A second test state, in the order, units and constraints of erf.sbm_fixture_initial_state, for the cells in the upper half of the domain in x. The step between the two states gives advection and mixing something to move.

erf.sbm_particle_mixing

Type: None, ConstantReference or HostPassiveScalar

Default: None

The particle mixing policy of Particle mixing.

erf.sbm_particle_mixing_kh, erf.sbm_particle_mixing_kv

Type: Real, \(\mathrm{m^2\,s^{-1}}\)

Default: 0

The horizontal and vertical kinematic diffusivities of ConstantReference. They must be finite and nonnegative, and any other policy rejects a nonzero value.

erf.sbm_particle_mixing_terrain_qualification

Type: Boolean

Default: false

For qualification only: enable particle mixing on a static terrain-fitted mesh (Particle mixing on terrain-fitted grids (qualification only)), which has not passed its release gates.

erf.sbm_budget_check

Type: Boolean

Default: false

After every coarse step, check that the composite spectral inventory changed only by that step’s accepted transfer through the physical faces, print one SBM_BUDGET line per component, and abort if the difference exceeds its roundoff bound (see Physical boundaries). Requires erf.moisture_model = SBM.

<face>.sbm_inflow_z

Type: List of real values, one per spectral component

Units: per kilogram of dry air

The constant spectrum entering through an Inflow or inflow_outflow face, where <face> is xlo, xhi, ylo, yhi, zlo or zhi (with or without the erf. prefix, as for the face’s type). It is required on every such face and rejected on any other. In a compressible run the face must also give <face>.density; in an anelastic or pseudo-incompressible run it must not.

Current execution restrictions

The following runtime restrictions apply. A two-level run must also stay within the configuration of Multilevel SBM simulations.

The current configuration requires:

  • a three-dimensional ERF build;

  • at most two AMR levels, amr.max_level <= 1;

  • periodic, wall, outflow or prescribed-inflow faces, as in Physical boundaries;

  • static non-EB geometry; end-to-end evidence covers ConstantDz, StretchedDz, and the static Cos4Hill fitted-mesh profile;

  • no moving terrain, embedded boundaries, or immersed buildings;

  • no acoustic substepping: erf.timestepping_type is RK3_NoSubstepping at compressible levels and RK2 or MidPoint at anelastic levels;

  • no PseudoIncompressible levels;

  • no molecular diffusion;

  • no PBL or RANS closure, and an LES closure (Smagorinsky or Deardorff) only with erf.sbm_particle_mixing = HostPassiveScalar;

  • particle mixing only on a constant- or stretched-z mesh;

  • no ERF numerical diffusion;

  • no sponge source;

  • no configured perturbation forcing;

  • no custom subsidence;

  • no large-scale forcing;

  • no sounding nudging;

  • no custom moisture forcing;

  • no real-data lateral boundary forcing; and

  • only the supported problem setups: the default/undefined setup, Scalar Advection/Diffusion, and ERF’s dedicated periodic SBM test setup; other problem-specific initialization or forcing is rejected.

Anelastic SBM advection is supported only for the currently qualified non-fitted-terrain cases, including constant- and stretched-z grids, with either anelastic integrator: RK2 (Heun) or MidPoint, ERF’s default. StaticFittedMesh with VariableDz is explicitly rejected for anelastic SBM: the fitted-terrain anelastic projection with spectral transport has not been qualified. This is a support-envelope restriction, not a different spectral carrier convention.

The resolved host dry-air carrier may be nonzero. SBM transport uses that carrier directly and checks the donor outgoing-demand condition at each host stage. For example, the native scalar-advection velocity initializer can be used in a periodic SBM advection case with:

erf.prob_name = "Scalar Advection/Diffusion"
prob.U_0 = 0.8
prob.V_0 = 0.6
prob.W_0 = 0.4

Adaptive ERF timestep selection also applies the SBM donor-outflow restriction using the current mapped dry-air carrier, and with particle mixing the combined advection-diffusion bound of Particle mixing. A user-specified fixed timestep that exceeds the current hard donor-positivity limit is rejected rather than silently subcycling the spectrum. The exact stage-time outgoing-demand check remains active as a fail-closed guard because the carrier used by a later host stage may differ from the pre-step estimate.

The currently enabled SBM capability implements resolved advection and turbulent particle mixing only; cloud microphysical source processes are not yet coupled to the spectrum.

One-moment example

The following configuration is based on the ERF one-moment SBM integration test:

erf.prob_name = "Scalar Advection/Diffusion"
erf.init_type = Uniform

erf.moisture_model = SBM
erf.sbm_nbins = 4
erf.sbm_cloud_rain_split = 2
erf.sbm_fixture_initial_state = 1.e-6 2.e-6 3.e-6 4.e-6

erf.use_gravity = false
erf.timestepping_type = RK3_NoSubstepping
erf.molec_diff_type = None
erf.les_type = None
erf.pbl_type = None
erf.sponge_type = None

amr.max_level = 0
geometry.is_periodic = 1 1 1

prob.U_0 = 0.8
prob.V_0 = 0.6
prob.W_0 = 0.4

The four initial-state values are the density-weighted liquid-water masses in the four bins, in \(\mathrm{kg\,m^{-3}}\).

With erf.sbm_cloud_rain_split = 2, the first two bins contribute to cloud water and the last two bins contribute to rain water.

The spatially uniform initial spectrum exercises the host carrier path but is not a recommended atmospheric size distribution.

Two-moment example

The two-moment integration fixture uses:

erf.prob_name = "Scalar Advection/Diffusion"
erf.init_type = Uniform

erf.moisture_model = SBM
erf.sbm_nbins = 4
erf.sbm_moment_mode = 2
erf.sbm_cloud_rain_split = 2

erf.sbm_edges = 1.0e-18 2.0e-18 4.0e-18 8.0e-18 1.6e-17

erf.sbm_fixture_initial_state = \
    1.5e-6 6.0e-6 1.8e-5 4.8e-5 \
    1.0e12 2.0e12 3.0e12 4.0e12

prob.U_0 = 0.8
prob.V_0 = 0.6
prob.W_0 = 0.4

The first four initial-state values are the bin liquid-water mass densities \(M_i\) in \(\mathrm{kg\,m^{-3}}\). The final four are the bin droplet-number densities \(C_i\) in \(\mathrm{m^{-3}}\).

The values have been chosen to satisfy the two-moment realizability condition for the specified particle-mass edges. They are test values rather than a recommended atmospheric distribution.

Checkpoint and restart

SBM adds authoritative spectral information to the normal ERF checkpoint. See also Checkpoint / Restart.

An SBM checkpoint contains:

  • the ordinary ERF atmospheric state;

  • an SBM_Schema record describing the exact spectral layout and current representation contract; and

  • an SBMSpectrum containing the authoritative bin-resolved liquid state, for every level in the checkpoint.

The schema comparison is exact. A restart must use the same spectral definition, including quantities such as the bin edges, pivots, moment mode, and cloud/rain split.

ERF then validates the saved authoritative spectrum before allowing the projected bulk state to be regenerated. Every spectral value must be finite, and the runtime spectral constraints, including the two-moment realizability conditions, must be satisfied.

The cloud- and rain-water fields saved in the ordinary ERF state are also compared with the values obtained by projecting the saved spectrum. The comparison uses a tight floating-point consistency tolerance.

Only after the saved spectrum and the saved bulk projection have both passed these checks does ERF regenerate the compact cloud- and rain-water fields from the authoritative spectrum.

A missing SBM_Schema, a missing SBMSpectrum on any level, an incompatible spectral schema, or an inadmissible spectrum or inconsistent cloud/rain projection on any level causes the restart to fail. A corrupted checkpoint is not silently repaired by projection.

Output and diagnostics

The normal ERF moisture-output interface currently exposes the compatibility fields

  • qv for water vapor;

  • qc for projected cloud water; and

  • qrain for projected rain water.

For SBM, qc and qrain are obtained by summing the appropriate liquid-mass bins. They are not independent condensed-water reservoirs.

The standard aggregate moisture diagnostics consequently have the usual warm liquid interpretation:

\[q_t = q_v + q_c + q_r,\]
\[q_n = q_v + q_c,\]

and

\[q_p = q_r.\]

The current SBM implementation does not register individual spectral-bin mass or number components as ordinary three-dimensional plotfile variables. Two-moment droplet-number information therefore exists in the authoritative spectral state but is not exposed as conventional nc or nr core-state output.

The bin-resolved state is currently preserved in checkpoint SBMSpectrum data.

There are no SBM surface-precipitation accumulators or SBM-specific microphysical tendency diagnostics in the current fixture because sedimentation and cloud microphysical processes are not yet implemented.

See 3D plotfile variable reference for the general ERF plotfile-variable interface.