![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Typedefs | |
| using | Archive = detail::CompletedSourceArchive |
Functions | |
| void | meshState (detail::CompletedSourceArchive &, SurfaceStateData &) |
| Archive and validate accepted mesh hydraulic, species and optional snow/thermal runtime. | |
| void | material (Archive &a, ThermalMaterial &m) |
| Archive a ground-column material's explicitly stored thermal properties. | |
| void | radiative (Archive &a, RadiativeConfig &r) |
| Archive the explicit radiative forcing configuration. | |
| void | sediment (Archive &a, SedimentConfig &s) |
| Archive the explicit sediment and ground-exchange configuration fields. | |
| void | heatConfig (Archive &a, HeatConfigData &h) |
| Archive heat configuration fields used to construct model identity. | |
| void | groundHeat (Archive &a, GroundHeatState &h, bool model) |
| Archive model-identity fields or runtime receipts of a prepared ground-heat state. | |
| std::string | groundHeatModelIdentity (const GroundHeatState &state) |
| Encode an owned byte identity of the ground thermal model and initial state. | |
| std::string | meshHeatModelIdentity (const MeshHeatState &state) |
| Encode mesh thermal ownership, options and initial inventories as a model identity. | |
| void | meshHeat (Archive &a, MeshHeatState &h) |
| Archive accepted mesh heat runtime state against a separately prepared model. | |
|
inline |
Archive model-identity fields or runtime receipts of a prepared ground-heat state.
| [in,out] | a | Sequential writer or reader. Fields are visited in order; read failures may leave a partially decoded state, so callers restore into a private candidate before publication. |
| [in,out] | h | Ground state to encode or decode. An active archived state requires a nonnull borrowed configuration. Runtime decoding requires matching prepared layer/material/species metadata and vector extents for fixed-size inventories; external context/configuration pointers are neither serialized nor transferred. |
| [in] | model | True selects model-identity properties, geometry and initial inventories; false selects runtime temperatures, water/heat/solute inventories, reservations and cumulative receipts. |
| std::runtime_error | On missing active configuration, invalid archive shape/profile, or runtime nonfinite/invalid inventories and thermodynamic/reservation values. |
|
inline |
Encode an owned byte identity of the ground thermal model and initial state.
| [in] | state | Stable prepared ground state whose borrowed configuration must remain alive for this call. Runtime receipts are excluded through groundHeat() model mode. |
| std::runtime_error | If an active state lacks its configuration or archive encoding fails. |
|
inline |
Archive heat configuration fields used to construct model identity.
| [in,out] | a | Sequential archive. Writer use is intended; read errors propagate after any already decoded fields have changed. |
| [in,out] | h | Configuration containing exchange flags, radiative/sediment settings, override rows, solar/cloud settings and global source temperatures. Temperatures retain degrees C, solar coordinates degrees, timezone hours and explicit atmospheric field units. |
|
inline |
Archive a ground-column material's explicitly stored thermal properties.
| [in,out] | a | Sequential writer or reader; archive errors and allocation failures propagate. |
| [in,out] | m | Material to encode, or progressively replace when reading. Stored values retain native SI units: density kg/m3, specific heat J/(kg K), conductivity W/(m K), volumetric water heat capacity J/(m3 K), and dimensionless porosity/mixing selector. |
|
inline |
Archive accepted mesh heat runtime state against a separately prepared model.
| [in,out] | a | Sequential writer or reader; caller supplies the matching model identity, archive framing and final trailing-byte check. |
| [in,out] | h | Prepared mesh heat state to encode or progressively decode. Disabled states consume no bytes. Enabled states include current ground temperature (degrees C), bed energy J, capacity J/K, thermal receipts J, evaporation m3, failure counts and species/age ledgers, followed by standalone ground runtime. Model options and borrowed context pointers are excluded. |
| std::runtime_error | On a ground/mesh cell-count mismatch, archive error or, when reading, invalid shapes, nonfinite values, nonpositive bed capacity, negative evaporation/failure counts or negative carried species inventories. |
|
inline |
Encode mesh thermal ownership, options and initial inventories as a model identity.
| [in] | state | Stable mesh heat state. Any borrowed simulation context and groundwater configuration must remain alive and unchanged during copying and encoding. |
| void openswmm::twoD::checkpoint::meshState | ( | detail::CompletedSourceArchive & | a, |
| SurfaceStateData & | s ) |
Archive and validate accepted mesh hydraulic, species and optional snow/thermal runtime.
Archive the accepted mesh runtime payload using the shared physical-state validator.
| std::runtime_error | On unsupported participant profiles, archive shape or invalid finite/water/species/age/bed runtime values. Allocation errors propagate. |
| [in,out] | a | Sequential archive with matching prepared model and fixed extents. |
| [in,out] | s | Surface runtime state, progressively decoded on read and validated in both modes. |
| std::runtime_error | On unsupported profiles, shape/value or participant errors. |
|
inline |
Archive the explicit radiative forcing configuration.
| [in,out] | a | Sequential writer or reader; errors propagate and may leave a partial decode. |
| [in,out] | r | Configuration to encode or overwrite, including shortwave W/m2, dimensionless optical factors, landcover temperature in degrees C, forcing mode and time-series index. |
|
inline |
Archive the explicit sediment and ground-exchange configuration fields.
| [in,out] | a | Sequential writer or reader; errors propagate with no field rollback. |
| [in,out] | s | Configuration encoded or progressively overwritten: flags and series indices, porosity, diffusivities in m2/s, depths in m, velocities in m/s, density in kg/m3, specific heat in J/(kg K), and temperatures in degrees C. |