Global simulation statistics methods.
More...
|
| 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 j, double depth) |
| | Updates a node's maximum depth recorded at reporting times.
|
| |
| void | stats_updateConvergenceStats (int node, int converged) |
| | Updates convergence statistics node.
|
| |
Global simulation statistics methods.
◆ stats_close()
| void stats_close |
( |
void | | ) |
|
Closes the simulation statistics system.
◆ stats_open()
Opens the simulation statistics system.
- Returns
- Error code
◆ stats_report()
| void stats_report |
( |
void | | ) |
|
Reports simulation statistics.
◆ stats_updateConvergenceStats()
| void stats_updateConvergenceStats |
( |
int | node, |
|
|
int | converged ) |
Updates convergence statistics node.
- Parameters
-
| [in] | node | Node index |
| [in] | converged | TRUE if node has converged |
- Implementation arguments
-
- converged (in): TRUE 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] | nodeIndex | Node index |
| [in] | linkIndex | Link index |
- Implementation arguments
- nodeIndex (in): Node index
- linkIndex (in): Link index
◆ stats_updateFlowStats()
| void stats_updateFlowStats |
( |
double | tStep, |
|
|
DateTime | aDate ) |
Updates various flow routing statistics at current time period.
- Parameters
-
| [in] | tStep | Routing time step (sec) |
| [in] | aDate | Current date/time |
- Implementation arguments
- tStep (in): Routing time step (sec)
- aDate (in): Current date/time
◆ 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] | subcatchIndex | Subcatchment index |
| [in] | infil | Infiltration volume (ft3) |
| [in] | evap | Evaporation volume (ft3) |
| [in] | latFlow | Lateral flow volume (ft3) |
| [in] | deepFlow | Deep flow volume (ft3) |
| [in] | theta | Soil moisture content |
| [in] | waterTable | Depth to water table (ft) |
| [in] | tStep | Time step (sec) |
- Implementation arguments
- subcatchIndex (in): Subcatchment index
- infil (in): Infiltration volume (ft3)
- evap (in): Evaporation volume (ft3)
- latFlow (in): Lateral flow volume (ft3)
- deepFlow (in): Deep flow volume (ft3)
- theta (in): Soil moisture content
- waterTable (in): Depth to water table (ft)
- tStep (in): Time step (sec)
◆ stats_updateMaxNodeDepth()
| void stats_updateMaxNodeDepth |
( |
int | j, |
|
|
double | depth ) |
Updates a node's maximum depth recorded at reporting times.
- Parameters
-
| [in] | j | Node index |
| [in] | depth | Water depth at node at current reporting time (ft) |
- Implementation arguments
-
- depth (in): Water 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
◆ 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] | subcatchIndex | Subcatchment index |
| [in] | rainVol | Rainfall + snowfall volume (ft3) |
| [in] | runonVol | Runon volume from other subcatchments (ft3) |
| [in] | evapVol | Evaporation volume (ft3) |
| [in] | infilVol | Infiltration volume (ft3) |
| [in] | impervVol | Impervious runoff volume (ft3) |
| [in] | pervVol | Pervious runoff volume (ft3) |
| [in] | runoffVol | Total runoff volume (ft3) |
| [in] | runoff | Runoff rate (cfs) |
- Implementation arguments
- subcatchIndex (in): Subcatchment index
- rainVol (in): Rainfall + snowfall volume (ft3)
- runonVol (in): Runon volume from other subcatchments (ft3)
- evapVol (in): Evaporation volume (ft3)
- infilVol (in): Infiltration volume (ft3)
- impervVol (in): Impervious runoff volume (ft3)
- pervVol (in): Pervious runoff volume (ft3)
- runoffVol (in): Total runoff volume (ft3)
- runoff (in): Runoff rate (cfs)
◆ stats_updateTimeStepStats()
| void stats_updateTimeStepStats |
( |
double | tStep, |
|
|
int | trialsCount, |
|
|
int | steadyState ) |
Updates flow routing time step statistics.
- Parameters
-
| [in] | tStep | Current flow routing time step (sec) |
| [in] | trialsCount | Number of trials used to solve routing |
| [in] | steadyState | TRUE if steady flow conditions exist |
- Implementation arguments
- tStep (in): Current flow routing time step (sec)
- trialsCount (in): Number of trials used to solve routing
- steadyState (in): TRUE if steady flow conditions exist