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

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

#include <vector>
Include dependency graph for MsxLidReactions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  openswmm
 
namespace  openswmm::lid
 
namespace  openswmm::msxlid
 

Functions

void openswmm::msxlid::initialize (SimulationContext &c)
 Ensure opted-in native LID-node layer species stores exist at current seed phase.
 
void openswmm::msxlid::initializeUnits (SimulationContext &c, const lid::LIDSolver &solver)
 Initialize conventional reactive LID native species pools and full-coverage ownership mask.
 
void openswmm::msxlid::routeUnits (SimulationContext &c, const lid::LIDSolver &solver, double dt)
 Route/react native species through one accepted conventional LID hydraulic interval.
 
void openswmm::msxlid::publishUnits (SimulationContext &c, double dt)
 Publish conventional reactive LID surface export as accepted subcatchment runoff concentration.
 
const double * openswmm::msxlid::drainValues (const SimulationContext &c, int type, int unit, int control)
 Borrow the prepared conventional reactive LID drain concentration tuple.
 
void openswmm::msxlid::prepareNodes (SimulationContext &c, double dt)
 Replay accepted native LID water transfers into layer/mobile species inventories before routing.
 
void openswmm::msxlid::reactNodes (SimulationContext &c, double dt)
 React native LID-node held layer pools and weighted mobile water portions once per interval.
 
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.
 
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.
 
bool openswmm::msxlid::reactedSubcatchment (const SimulationContext &c, int sc)
 Test the prepared conventional-LID reactive subcatchment mask.
 
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.
 

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