OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmm::SimulationContext::VJDiag Struct Reference

Per-virtual-junction momentum-residual accumulators. More...

#include <SimulationContext.hpp>

Collaboration diagram for openswmm::SimulationContext::VJDiag:

Public Member Functions

void clear ()
 

Public Attributes

std::vector< int > node_idx
 virtual junction node index
 
std::vector< int > up_link
 upstream conduit (through orientation, -1 sag/peak)
 
std::vector< int > dn_link
 downstream conduit (-1 sag/peak)
 
std::vector< double > resid_max
 max |R_j| over the run (cfs·ft/s)
 
std::vector< double > resid_sum
 Σ|R_j| for mean reporting.
 
std::vector< long long > resid_n
 number of accumulated steps
 

Detailed Description

Per-virtual-junction momentum-residual accumulators.

Populated by DWSolver after each converged routing step; the residual is the discrete momentum-flux imbalance across the pair interface (see VIRTUAL_JUNCTION_IMPLEMENTATION_PLAN.md §3.2). Reported in the .rpt Virtual Junction Summary.

Member Function Documentation

◆ clear()

void openswmm::SimulationContext::VJDiag::clear ( )
inline

Member Data Documentation

◆ dn_link

std::vector<int> openswmm::SimulationContext::VJDiag::dn_link

downstream conduit (-1 sag/peak)

◆ node_idx

std::vector<int> openswmm::SimulationContext::VJDiag::node_idx

virtual junction node index

◆ resid_max

std::vector<double> openswmm::SimulationContext::VJDiag::resid_max

max |R_j| over the run (cfs·ft/s)

◆ resid_n

std::vector<long long> openswmm::SimulationContext::VJDiag::resid_n

number of accumulated steps

◆ resid_sum

std::vector<double> openswmm::SimulationContext::VJDiag::resid_sum

Σ|R_j| for mean reporting.

◆ up_link

std::vector<int> openswmm::SimulationContext::VJDiag::up_link

upstream conduit (through orientation, -1 sag/peak)


The documentation for this struct was generated from the following file: