42#ifndef OPENSWMM_ENGINE_DATA_WATER_AGE_DATA_HPP
43#define OPENSWMM_ENGINE_DATA_WATER_AGE_DATA_HPP
200 void resize(
int n_nodes,
int n_links,
int n_subcatch) {
202 node_age.assign(
static_cast<std::size_t
>(n_nodes), 0.0);
203 link_age.assign(
static_cast<std::size_t
>(n_links), 0.0);
215 std::numeric_limits<double>::quiet_NaN());
217 static_cast<std::size_t
>(n_subcatch) *
static_cast<std::size_t
>(
SubArea::COUNT_);
Definition ExchangeLaw.hpp:60
SubArea
Runtime age state shared by the engines (phase A1a).
Definition WaterAgeData.hpp:111
@ COUNT_
Definition WaterAgeData.hpp:115
@ IMPERV0
Definition HeatData.hpp:88
@ IMPERV1
Definition HeatData.hpp:88
@ PERV
Definition HeatData.hpp:88
WaterAgeSource
Definition WaterAgeData.hpp:52
@ COUNT_
Definition WaterAgeData.hpp:60
@ RAINFALL
Definition HeatData.hpp:71
@ RDII
Definition HeatData.hpp:76
@ COUNT_
Definition HeatData.hpp:80
@ DWF
Definition HeatData.hpp:74
@ EXTERNAL_INFLOW
Definition HeatData.hpp:77
@ INITIAL_STATE
water in the network at t = 0
Definition HeatData.hpp:79
@ GW
Definition HeatData.hpp:75
@ IFACE
Definition HeatData.hpp:78
Parsed model.age state (waterage component, phase A1a).
Definition WaterAgeData.hpp:72
std::vector< double > node_over_age
seconds
Definition WaterAgeData.hpp:81
std::vector< int > node_over_node
node index
Definition WaterAgeData.hpp:80
double source_age(WaterAgeSource s, int node) const noexcept
Read the first matching node/source age override or global fallback.
Definition WaterAgeData.hpp:92
bool configured
Definition WaterAgeData.hpp:73
double global_age[static_cast< int >(WaterAgeSource::COUNT_)]
GLOBAL initial age per source, SECONDS (default 0 = fresh water).
Definition WaterAgeData.hpp:76
std::vector< int > node_over_source
WaterAgeSource as int.
Definition WaterAgeData.hpp:79
Definition WaterAgeData.hpp:118
void clear()
Release all water-age arrays and reset seeding/hotstart flags.
Definition WaterAgeData.hpp:233
std::vector< double > node_ext_inflow_age
Definition WaterAgeData.hpp:180
std::vector< double > subarea_vol_prev
Definition WaterAgeData.hpp:137
std::vector< double > subarea_age
Definition WaterAgeData.hpp:132
std::vector< double > node_age_vol_in
[node], age·ft³/s
Definition WaterAgeData.hpp:119
std::vector< double > subcatch_outfall_age_vol
Definition WaterAgeData.hpp:172
std::vector< double > node_age
[node], seconds
Definition WaterAgeData.hpp:120
std::vector< double > subcatch_runon_age_vol_in
Definition WaterAgeData.hpp:149
std::vector< double > subcatch_runoff_age
Definition WaterAgeData.hpp:143
bool hotstart_loaded
Definition WaterAgeData.hpp:185
void resize(int n_nodes, int n_links, int n_subcatch)
Replace network and watershed age state while preserving shaped inflow prescriptions.
Definition WaterAgeData.hpp:200
std::vector< double > node_lid_drain_age_vol_in
Definition WaterAgeData.hpp:157
std::vector< double > link_age
[link], seconds
Definition WaterAgeData.hpp:121
bool legacy_seeded
Definition WaterAgeData.hpp:125
std::vector< double > subcatch_lid_drain_age_cfs
Definition WaterAgeData.hpp:171