In-memory hot start file data.
More...
#include <HotStartManager.hpp>
|
| bool | set_node_depth (const std::string &id, double v) |
| | Set depth for a stored node. Returns false if id not found.
|
| |
| bool | set_node_head (const std::string &id, double v) |
| | Set head for a stored node. Returns false if id not found.
|
| |
| bool | set_link_flow (const std::string &id, double v) |
| | Set flow for a stored link. Returns false if id not found.
|
| |
| bool | set_link_depth (const std::string &id, double v) |
| | Set depth for a stored link. Returns false if id not found.
|
| |
| bool | set_subcatch_runoff (const std::string &id, double v) |
| | Set runoff for a stored subcatchment. Returns false if id not found.
|
| |
In-memory hot start file data.
Created by HotStartManager::save() or HotStartManager::open(). The C API casts HotStartFile* to/from void* SWMM_HotStart.
◆ set_link_depth()
| bool openswmm::HotStartFile::set_link_depth |
( |
const std::string & | id, |
|
|
double | v ) |
Set depth for a stored link. Returns false if id not found.
◆ set_link_flow()
| bool openswmm::HotStartFile::set_link_flow |
( |
const std::string & | id, |
|
|
double | v ) |
Set flow for a stored link. Returns false if id not found.
◆ set_node_depth()
| bool openswmm::HotStartFile::set_node_depth |
( |
const std::string & | id, |
|
|
double | v ) |
Set depth for a stored node. Returns false if id not found.
◆ set_node_head()
| bool openswmm::HotStartFile::set_node_head |
( |
const std::string & | id, |
|
|
double | v ) |
Set head for a stored node. Returns false if id not found.
◆ set_subcatch_runoff()
| bool openswmm::HotStartFile::set_subcatch_runoff |
( |
const std::string & | id, |
|
|
double | v ) |
Set runoff for a stored subcatchment. Returns false if id not found.
◆ dirty
| bool openswmm::HotStartFile::dirty = false |
True if set_*() was called.
◆ gw_hg
| std::vector<double> openswmm::HotStartFile::gw_hg |
◆ gw_hu
| std::vector<double> openswmm::HotStartFile::gw_hu |
unsaturated storage (m of water)
◆ gw_ledger
| std::vector<double> openswmm::HotStartFile::gw_ledger |
the 9 cumulative terms (m3)
◆ gw_m_layers
| uint32_t openswmm::HotStartFile::gw_m_layers = 0 |
◆ gw_n_cells
| uint32_t openswmm::HotStartFile::gw_n_cells = 0 |
G1 (2026-09-07) — V5 block: the two-zone groundwater state.
A run restarted without this reruns the entire wetting history from a dry table, which for an aquifer is not an approximation — the whole point of the kernel is that it has memory measured in seasons. Cells are carried by INDEX, not name, because a mesh has no cell ids; a file whose gw_n_cells does not match the model is reported and skipped rather than applied to the wrong cells.
gw_theta_sigma is layer-major [layer * n_cells + cell], the SoA's own order, and is empty when no cell uses closure B. The ledger terms ride along so a restarted run's continuity check continues the original's instead of starting from zero against a non-zero storage.
◆ gw_theta_sigma
| std::vector<double> openswmm::HotStartFile::gw_theta_sigma |
closure-B layers, layer-major
◆ header
◆ link_species
| std::vector<double> openswmm::HotStartFile::link_species |
◆ links
◆ node_species
| std::vector<double> openswmm::HotStartFile::node_species |
◆ nodes
◆ path
| std::string openswmm::HotStartFile::path |
File path (for flush-on-close)
◆ species
| std::vector<std::string> openswmm::HotStartFile::species |
U2 (2026-09-07, D-IQ5) — V4 species block: per-element concentrations for every [POLLUTANTS] entry and every reactions-component species, keyed by NAME so a file applies to a model whose species order differs. node_species / link_species are [element * n + s] with the same element order as nodes / links. Age keeps its per-record field (V3); temperature is not carried (its seed paths are per engine — a follow-up).
◆ subcatches
◆ warnings
| std::vector<std::string> openswmm::HotStartFile::warnings |
The documentation for this struct was generated from the following files: