OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
MsxLidReactions.cpp File Reference

Multispecies reactions in LID storage and treatment layers. More...

Include dependency graph for MsxLidReactions.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::msxlid
 

Functions

bool openswmm::msxlid::reactPool (SimulationContext &c, int control, int layer, double volume, double *mass, double dt, double temp, std::vector< double > &reacted, std::vector< double > &clamped)
 React one finite native LID water pool through scoped compiled species laws.
 
void openswmm::msxlid::initialize (SimulationContext &c)
 Ensure opted-in native LID-node layer species stores exist at current seed phase.
 
double openswmm::msxlid::heldMass (const SimulationContext &c, int node, int species)
 Sum one node's held layer inventory for a reaction species.
 
double openswmm::msxlid::mobileWater (const SimulationContext &c, int node, double fallback)
 Read the retained native LID-node mobile water history with caller fallback.
 
void openswmm::msxlid::prepareNodes (SimulationContext &c, double dt)
 Replay accepted native LID water transfers into layer/mobile species inventories before routing.
 
double openswmm::msxlid::outlet (const SimulationContext &c, int node, int link, int species, double fallback)
 Read a prepared node-layer outlet concentration for one link/species.
 
double openswmm::msxlid::receive (SimulationContext &c, int node, int link, double water, int species, double rate, double dt)
 Capture an accepted incoming link native mass-rate share into the first matching LID port.
 
void openswmm::msxlid::reactNodes (SimulationContext &c, double dt)
 React native LID-node held layer pools and weighted mobile water portions once per interval.
 
bool openswmm::msxlid::reactedSubcatchment (const SimulationContext &c, int sc)
 Test the prepared conventional-LID reactive subcatchment mask.
 

Detailed Description

Multispecies reactions in LID storage and treatment layers.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License
Apache-2.0