38#ifndef OPENSWMM_ENGINE_DATA_REACTION_DATA_HPP
39#define OPENSWMM_ENGINE_DATA_REACTION_DATA_HPP
170 for (std::size_t i = 0; i <
coef_name.size(); ++i)
171 if (
coef_name[i] == n)
return static_cast<int>(i);
175 for (std::size_t i = 0; i <
term_name.size(); ++i)
176 if (
term_name[i] == n)
return static_cast<int>(i);
POD reaction-VM instruction + span types (phase R2, D-L3 flat pool). Data-layer header: no dependenci...
@ NONE
Definition SimulationContext.hpp:180
Definition NodeCoupling.cpp:16
ReactionSolverKind
Definition ReactionData.hpp:50
@ ROS2
Definition ReactionData.hpp:50
@ EUL
Definition ReactionData.hpp:50
@ BDF2
Definition ReactionData.hpp:50
@ RK5
Definition ReactionData.hpp:50
ReactionRateUnits
Definition ReactionData.hpp:52
@ DAY
Definition ReactionData.hpp:52
@ SEC
Definition ReactionData.hpp:52
@ MIN
Definition ReactionData.hpp:52
@ HR
Definition ReactionData.hpp:52
ReactionCoupling
Definition ReactionData.hpp:51
@ NONE
Definition ReactionData.hpp:51
@ FULL
Definition ReactionData.hpp:51
ReactionExprForm
Definition ReactionData.hpp:54
@ EQUIL
Definition ReactionData.hpp:54
@ RATE
Definition ReactionData.hpp:54
@ FORMULA
Definition ReactionData.hpp:54
ReactionAreaUnits
Definition ReactionData.hpp:53
@ CM2
Definition ReactionData.hpp:53
@ M2
Definition ReactionData.hpp:53
@ FT2
Definition ReactionData.hpp:53
Definition ReactionData.hpp:56
int find_species(std::string_view n) const
Definition ReactionData.hpp:164
std::vector< uint8_t > coef_is_param
1 = PARAMETER (overridable), 0 = CONSTANT
Definition ReactionData.hpp:108
std::vector< ReactionExprForm > pipe_form
size n_species
Definition ReactionData.hpp:117
void clear()
Definition ReactionData.hpp:180
std::vector< RxExprSpan > tank_expr
per species
Definition ReactionData.hpp:137
bool compiled
R2 compile pass succeeded.
Definition ReactionData.hpp:138
double default_temp_c
Definition ReactionData.hpp:95
double rtol
Definition ReactionData.hpp:91
std::vector< std::string > pipe_expr_src
size n_species (cold)
Definition ReactionData.hpp:118
std::vector< RxExprSpan > pipe_expr
per species (len 0 ⇒ none)
Definition ReactionData.hpp:136
std::vector< int > init_elem_species
0..n_species()-1
Definition ReactionData.hpp:130
bool warned_react_failure
Definition ReactionData.hpp:139
double atol
Definition ReactionData.hpp:90
std::vector< double > species_rtol
hot (0 ⇒ global)
Definition ReactionData.hpp:104
std::vector< std::string > species_name
cold
Definition ReactionData.hpp:100
std::vector< double > msx_ext_mass_in
Definition ReactionData.hpp:157
ReactionAreaUnits area_units
Definition ReactionData.hpp:88
int registry_base
first MSX index in the registry
Definition ReactionData.hpp:99
std::vector< double > msx_node_conc
Definition ReactionData.hpp:146
int find_term(std::string_view n) const
Definition ReactionData.hpp:174
std::vector< uint8_t > init_elem_is_link
0 = NODE row, 1 = LINK row
Definition ReactionData.hpp:128
std::vector< RxToken > token_pool
hot: one contiguous pool
Definition ReactionData.hpp:134
std::vector< int > init_elem_idx
resolved node/link index
Definition ReactionData.hpp:129
std::vector< ReactionExprForm > tank_form
Definition ReactionData.hpp:119
int find_coef(std::string_view n) const
Definition ReactionData.hpp:169
double timestep
0 ⇒ follow QUALITY_STEP
Definition ReactionData.hpp:89
int n_species() const noexcept
Definition ReactionData.hpp:161
std::vector< std::string > species_units
cold
Definition ReactionData.hpp:102
std::vector< std::string > coef_name
cold
Definition ReactionData.hpp:107
std::vector< double > coef_value
Definition ReactionData.hpp:109
std::vector< std::string > term_name
cold
Definition ReactionData.hpp:113
std::vector< double > msx_link_conc
Definition ReactionData.hpp:147
ReactionSolverKind solver
Default integrator.
Definition ReactionData.hpp:85
std::vector< double > species_atol
hot (0 ⇒ global)
Definition ReactionData.hpp:103
std::vector< std::string > term_expr_src
cold (compiled in R2)
Definition ReactionData.hpp:114
bool configured
a reactions component applied
Definition ReactionData.hpp:159
ReactionRateUnits rate_units
Definition ReactionData.hpp:87
std::vector< double > init_elem_value
Definition ReactionData.hpp:131
std::vector< RxExprSpan > term_expr
per term, in-order evaluation
Definition ReactionData.hpp:135
std::vector< std::string > tank_expr_src
Definition ReactionData.hpp:120
ReactionCoupling coupling
Definition ReactionData.hpp:86
std::vector< uint8_t > species_is_wall
0 = BULK, 1 = WALL
Definition ReactionData.hpp:101
std::vector< double > init_global
size n_species
Definition ReactionData.hpp:123