15#ifndef OPENSWMM_ENGINE_INFLOW_DATA_HPP
16#define OPENSWMM_ENGINE_INFLOW_DATA_HPP
40 void add(
int ni,
const std::string& cons,
const std::string& ts,
41 const std::string& type,
double mf,
double sf,
double base,
42 const std::string& pat,
const std::string& name = {}) {
53 if (idx < 0 || idx >=
count())
return;
54 const auto u =
static_cast<std::size_t
>(idx);
78 std::vector<std::string>
pat1;
79 std::vector<std::string>
pat2;
80 std::vector<std::string>
pat3;
81 std::vector<std::string>
pat4;
83 void add(
int ni,
const std::string& cons,
double avg,
84 const std::string& p1,
const std::string& p2,
85 const std::string& p3,
const std::string& p4,
86 const std::string& name = {}) {
90 pat1.push_back(p1);
pat2.push_back(p2);
91 pat3.push_back(p3);
pat4.push_back(p4);
95 if (idx < 0 || idx >=
count())
return;
96 const auto u =
static_cast<std::size_t
>(idx);
120 void add(
int ni,
const std::string& uh,
double area,
121 const std::string& name = {}) {
128 if (idx < 0 || idx >=
count())
return;
129 const auto u =
static_cast<std::size_t
>(idx);
215 void add(
const std::string& name,
int type,
const std::vector<double>& facs) {
Definition NodeCoupling.cpp:15
Definition InflowData.hpp:71
std::vector< std::string > constituent
"FLOW" or pollutant name
Definition InflowData.hpp:76
std::vector< int > node_idx
Target node.
Definition InflowData.hpp:74
std::vector< std::string > pat1
Monthly pattern name.
Definition InflowData.hpp:78
std::vector< std::string > pat2
Daily pattern name.
Definition InflowData.hpp:79
std::vector< double > avg_value
Average value.
Definition InflowData.hpp:77
void add(int ni, const std::string &cons, double avg, const std::string &p1, const std::string &p2, const std::string &p3, const std::string &p4, const std::string &name={})
Definition InflowData.hpp:83
void erase(int idx)
Definition InflowData.hpp:94
std::vector< std::string > pat4
Weekend pattern name.
Definition InflowData.hpp:81
int count() const
Definition InflowData.hpp:72
std::vector< std::string > node_name
Raw node name from input (for post-parse re-resolution)
Definition InflowData.hpp:75
std::vector< std::string > pat3
Hourly pattern name.
Definition InflowData.hpp:80
Definition InflowData.hpp:27
std::vector< std::string > pattern_name
Baseline pattern name.
Definition InflowData.hpp:38
std::vector< std::string > constituent
"FLOW" or pollutant name
Definition InflowData.hpp:32
std::vector< int > node_idx
Target node index.
Definition InflowData.hpp:30
std::vector< double > baseline
Baseline value.
Definition InflowData.hpp:37
int count() const
Definition InflowData.hpp:28
std::vector< std::string > inflow_type
"FLOW","CONCEN","MASS"
Definition InflowData.hpp:34
std::vector< double > s_factor
Scaling factor.
Definition InflowData.hpp:36
std::vector< double > m_factor
Multiplier factor.
Definition InflowData.hpp:35
std::vector< std::string > node_name
Raw node name from input (for post-parse re-resolution)
Definition InflowData.hpp:31
std::vector< std::string > ts_name
Timeseries name ("" if none)
Definition InflowData.hpp:33
void add(int ni, const std::string &cons, const std::string &ts, const std::string &type, double mf, double sf, double base, const std::string &pat, const std::string &name={})
Definition InflowData.hpp:40
void erase(int idx)
Definition InflowData.hpp:52
Definition InflowData.hpp:208
std::vector< std::vector< double > > factors
Up to 24 multiplier values.
Definition InflowData.hpp:213
void add(const std::string &name, int type, const std::vector< double > &facs)
Definition InflowData.hpp:215
std::vector< std::string > names
Pattern name.
Definition InflowData.hpp:211
int count() const
Definition InflowData.hpp:209
std::vector< int > types
0=MONTHLY,1=DAILY,2=HOURLY,3=WEEKEND
Definition InflowData.hpp:212
Definition InflowData.hpp:112
std::vector< std::string > uh_name
Unit hydrograph name.
Definition InflowData.hpp:117
std::vector< double > sewer_area
Tributary sewer area.
Definition InflowData.hpp:118
std::vector< std::string > node_name
Raw node name from input (for post-parse re-resolution)
Definition InflowData.hpp:116
std::vector< int > node_idx
Target node.
Definition InflowData.hpp:115
int count() const
Definition InflowData.hpp:113
void erase(int idx)
Definition InflowData.hpp:127
void add(int ni, const std::string &uh, double area, const std::string &name={})
Definition InflowData.hpp:120
Definition InflowData.hpp:196
int count() const
Definition InflowData.hpp:197
void add(const RDIIDecayEntry &e)
Definition InflowData.hpp:201
std::vector< RDIIDecayEntry > entries
Definition InflowData.hpp:199
Definition InflowData.hpp:185
double k_T
Thermal recovery rate at T_ref (1/hr)
Definition InflowData.hpp:190
double k_0
Base recovery rate (1/hr)
Definition InflowData.hpp:189
double k_dep
Depletion rate (1/project rain-depth unit: 1/in or 1/mm) — temperature-independent.
Definition InflowData.hpp:188
double theta_rec
Temperature sensitivity (1/deg C)
Definition InflowData.hpp:192
int response
0=SHORT, 1=MEDIUM, 2=LONG
Definition InflowData.hpp:187
std::string uh_name
Matches UnitHydEntry::name.
Definition InflowData.hpp:186
double T_freeze
Recovery suppressed when T < T_freeze (deg C)
Definition InflowData.hpp:193
double T_ref
Reference temperature (deg C)
Definition InflowData.hpp:191
Definition InflowData.hpp:154
std::vector< std::string > gage_assignments
Rain gage names associated with each UH group (name → gage name)
Definition InflowData.hpp:160
std::vector< std::string > gage_names
Assigned rain gage names.
Definition InflowData.hpp:161
void add(const UnitHydEntry &e)
Definition InflowData.hpp:168
std::vector< UnitHydEntry > entries
Definition InflowData.hpp:157
void add_gage(const std::string &uh_name, const std::string &gage)
Definition InflowData.hpp:163
int count() const
Definition InflowData.hpp:155
Definition InflowData.hpp:141
double drecov
IA recovery rate.
Definition InflowData.hpp:150
std::string name
UH group name.
Definition InflowData.hpp:142
double t
Time to peak (hours)
Definition InflowData.hpp:147
int response
0=SHORT, 1=MEDIUM, 2=LONG
Definition InflowData.hpp:145
double dmax
Max initial abstraction depth.
Definition InflowData.hpp:149
double r
Fraction of rainfall volume.
Definition InflowData.hpp:146
int month
Month index (0-11, or -1 for ALL)
Definition InflowData.hpp:144
std::string gage_name
Associated rain gage name.
Definition InflowData.hpp:143
double dinit
Initial IA used.
Definition InflowData.hpp:151
double k
Recession-limb-to-peak-time ratio (tBase = t*(1+k); k >= 0)
Definition InflowData.hpp:148