OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
openswmm::rdii::RDIISolver Class Reference

#include <RDII.hpp>

Collaboration diagram for openswmm::rdii::RDIISolver:

Public Member Functions

void init (SimulationContext &ctx)
 
int addUnitHydParams (const std::string &name, const UnitHydParams &params)
 Register a unit hydrograph parameter set by name.
 
int findUnitHyd (const std::string &name) const
 Look up unit hydrograph index by name.
 
void computeAll (SimulationContext &ctx, double rainfall, int month, double dt)
 Compute RDII inflows for all groups and add to node lat_flow.
 

Public Attributes

std::vector< UnitHydParamsuh_params
 

Member Function Documentation

◆ addUnitHydParams()

int openswmm::rdii::RDIISolver::addUnitHydParams ( const std::string &  name,
const UnitHydParams params 
)

Register a unit hydrograph parameter set by name.

Parameters
nameUnit hydrograph name (e.g. from [HYDROGRAPHS] section).
paramsComplete UH parameters for all 12 months x 3 responses.
Returns
Index of the registered UH parameter set.

◆ computeAll()

void openswmm::rdii::RDIISolver::computeAll ( SimulationContext ctx,
double  rainfall,
int  month,
double  dt 
)

Compute RDII inflows for all groups and add to node lat_flow.

Convolution: RDII = sum(pastRain[i] * r[m][k] * u(t)) The inner product is vectorisable over past periods.

◆ findUnitHyd()

int openswmm::rdii::RDIISolver::findUnitHyd ( const std::string &  name) const

Look up unit hydrograph index by name.

Returns
Index, or -1 if not found.
Here is the caller graph for this function:

◆ init()

void openswmm::rdii::RDIISolver::init ( SimulationContext ctx)
Here is the call graph for this function:

Member Data Documentation

◆ uh_params

std::vector<UnitHydParams> openswmm::rdii::RDIISolver::uh_params

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