OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmm::inlet::InletSolver Class Reference

#include <Inlet.hpp>

Collaboration diagram for openswmm::inlet::InletSolver:

Public Member Functions

void init (SimulationContext &ctx)
 Resolve designs, street geometry, host topology and placement.
 
void computeAll (SimulationContext &ctx, double dt)
 Compute capture + backflow and fold them into nodes.lat_flow.
 
void adjustQualInflows (SimulationContext &ctx, double dt)
 Adjust quality inflows at the bypass and capture nodes.
 
void gatherStats (SimulationContext &ctx) const
 
const InletSoAsoa () const noexcept
 
bool hasInlets () const noexcept
 

Member Function Documentation

◆ adjustQualInflows()

void openswmm::inlet::InletSolver::adjustQualInflows ( SimulationContext & ctx,
double dt )

Adjust quality inflows at the bypass and capture nodes.

Called after hydraulic routing, before quality routing; moves pollutant mass by the net flow direction. Matches legacy inlet_adjustQualInflows(). Covers both host kinds.

Here is the call graph for this function:

◆ computeAll()

void openswmm::inlet::InletSolver::computeAll ( SimulationContext & ctx,
double dt )

Compute capture + backflow and fold them into nodes.lat_flow.

Runs at the END of SWMMEngine::assembleLateralInflows, i.e. BEFORE the router sees lat_flow — matching legacy inlet_findCapturedFlows at routing.c:244 (plan G6).

Parameters
ctxSimulation context.
dtRouting timestep (seconds).
Here is the call graph for this function:

◆ gatherStats()

void openswmm::inlet::InletSolver::gatherStats ( SimulationContext & ctx) const

Copy accumulated statistics into ctx.inlet_usages (volumes, Gap #68) and ctx.inlet_diag (the legacy per-inlet performance block the report needs). Called by SWMMEngine::report() before the summary tables.

Here is the call graph for this function:

◆ hasInlets()

bool openswmm::inlet::InletSolver::hasInlets ( ) const
inlinenoexcept

◆ init()

void openswmm::inlet::InletSolver::init ( SimulationContext & ctx)

Resolve designs, street geometry, host topology and placement.

Here is the call graph for this function:

◆ soa()

const InletSoA & openswmm::inlet::InletSolver::soa ( ) const
inlinenoexcept

The documentation for this class was generated from the following files: