OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
Global Simulation Statistics Methods

Global simulation statistics methods. More...

Collaboration diagram for Global Simulation Statistics Methods:

Functions

int stats_open (void)
 Opens the simulation statistics system.
 
void stats_close (void)
 Closes the simulation statistics system.
 
void stats_report (void)
 Reports simulation statistics.
 
void stats_updateCriticalTimeCount (int nodeIndex, int linkIndex)
 Updates count of times a node or link was time step-critical.
 
void stats_updateFlowStats (double tStep, DateTime aDate)
 Updates various flow routing statistics at current time period.
 
void stats_updateTimeStepStats (double tStep, int trialsCount, int steadyState)
 Updates flow routing time step statistics.
 
void stats_updateSubcatchStats (int subcatchIndex, double rainVol, double runonVol, double evapVol, double infilVol, double impervVol, double pervVol, double runoffVol, double runoff)
 Updates totals of runoff components for a specific subcatchment.
 
void stats_updateGwaterStats (int subcatchIndex, double infil, double evap, double latFlow, double deepFlow, double theta, double waterTable, double tStep)
 Updates groundwater statistics for a specific subcatchment.
 
void stats_updateMaxRunoff (void)
 Updates value of maximum system runoff rate.
 
void stats_updateMaxNodeDepth (int nodeIndex, double depth)
 Updates a node's maximum depth recorded at reporting times.
 
void stats_updateConvergenceStats (int nodeIndex, int converged)
 Updates convergence statistics node.
 

Detailed Description

Global simulation statistics methods.

Function Documentation

◆ stats_close()

void stats_close ( void  )

Closes the simulation statistics system.

◆ stats_open()

int stats_open ( void  )

Opens the simulation statistics system.

Returns
Error code
Here is the call graph for this function:

◆ stats_report()

void stats_report ( void  )

Reports simulation statistics.

Here is the call graph for this function:

◆ stats_updateConvergenceStats()

void stats_updateConvergenceStats ( int  node,
int  converged 
)

Updates convergence statistics node.

Parameters
[in]nodeIndexNode index
[in]convergedTRUE if node has converged

◆ stats_updateCriticalTimeCount()

void stats_updateCriticalTimeCount ( int  nodeIndex,
int  linkIndex 
)

Updates count of times a node or link was time step-critical.

Parameters
[in]nodeIndexNode index
[in]linkIndexLink index

◆ stats_updateFlowStats()

void stats_updateFlowStats ( double  tStep,
DateTime  aDate 
)

Updates various flow routing statistics at current time period.

Parameters
[in]tStepRouting time step (sec)
[in]aDateCurrent date/time
Here is the caller graph for this function:

◆ stats_updateGwaterStats()

void stats_updateGwaterStats ( int  subcatchIndex,
double  infil,
double  evap,
double  latFlow,
double  deepFlow,
double  theta,
double  waterTable,
double  tStep 
)

Updates groundwater statistics for a specific subcatchment.

Parameters
[in]subcatchIndexSubcatchment index
[in]infilInfiltration volume (ft3)
[in]evapEvaporation volume (ft3)
[in]latFlowLateral flow volume (ft3)
[in]deepFlowDeep flow volume (ft3)
[in]thetaSoil moisture content
[in]waterTableDepth to water table (ft)
[in]tStepTime step (sec)
Here is the caller graph for this function:

◆ stats_updateMaxNodeDepth()

void stats_updateMaxNodeDepth ( int  j,
double  depth 
)

Updates a node's maximum depth recorded at reporting times.

Parameters
[in]nodeIndexNode index
[in]depthWater depth at node at current reporting time (ft)

◆ stats_updateMaxRunoff()

void stats_updateMaxRunoff ( void  )

Updates value of maximum system runoff rate.

Note
Updates global variable MaxRunoffFlow
Here is the caller graph for this function:

◆ stats_updateSubcatchStats()

void stats_updateSubcatchStats ( int  subcatchIndex,
double  rainVol,
double  runonVol,
double  evapVol,
double  infilVol,
double  impervVol,
double  pervVol,
double  runoffVol,
double  runoff 
)

Updates totals of runoff components for a specific subcatchment.

Parameters
[in]subcatchIndexSubcatchment index
[in]rainVolRainfall + snowfall volume (ft3)
[in]runonVolRunon volume from other subcatchments (ft3)
[in]evapVolEvaporation volume (ft3)
[in]infilVolInfiltration volume (ft3)
[in]impervVolImpervious runoff volume (ft3)
[in]pervVolPervious runoff volume (ft3)
[in]runoffVolTotal runoff volume (ft3)
[in]runoffRunoff rate (cfs)
Here is the caller graph for this function:

◆ stats_updateTimeStepStats()

void stats_updateTimeStepStats ( double  tStep,
int  trialsCount,
int  steadyState 
)

Updates flow routing time step statistics.

Parameters
[in]tStepCurrent flow routing time step (sec)
[in]trialsCountNumber of trials used to solve routing
[in]steadyStateTRUE if steady flow conditions exist
Here is the caller graph for this function: