OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
stats.c File Reference
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "headers.h"
Include dependency graph for stats.c:

Macros

#define _CRT_SECURE_NO_DEPRECATE
 
#define MAX_STATS   5
 

Functions

int stats_open ()
 Opens the simulation statistics system.
 
void stats_close ()
 Closes the simulation statistics system.
 
void stats_report ()
 Reports simulation 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 ()
 Updates value of maximum system runoff rate.
 
void stats_updateMaxNodeDepth (int j, double depth)
 Updates a node's maximum depth recorded at reporting times.
 
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_updateCriticalTimeCount (int nodeIndex, int linkIndex)
 Updates count of times a node or link was time step-critical.
 
void stats_updateConvergenceStats (int node, int converged)
 Updates convergence statistics node.
 

Variables

TSubcatchStatsSubcatchStats
 
TNodeStatsNodeStats
 
TLinkStatsLinkStats
 
TStorageStatsStorageStats
 
TOutfallStatsOutfallStats
 
TPumpStatsPumpStats
 
double MaxOutfallFlow
 
double MaxRunoffFlow
 
double RoutingTimeSpan
 
double * NodeInflow
 
double * NodeOutflow
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

◆ MAX_STATS

#define MAX_STATS   5

Variable Documentation

◆ LinkStats

TLinkStats* LinkStats

◆ MaxOutfallFlow

double MaxOutfallFlow

◆ MaxRunoffFlow

double MaxRunoffFlow

◆ NodeInflow

double* NodeInflow
extern

◆ NodeOutflow

double* NodeOutflow
extern

◆ NodeStats

TNodeStats* NodeStats

◆ OutfallStats

TOutfallStats* OutfallStats

◆ PumpStats

TPumpStats* PumpStats

◆ RoutingTimeSpan

double RoutingTimeSpan

◆ StorageStats

TStorageStats* StorageStats

◆ SubcatchStats

TSubcatchStats* SubcatchStats