![]() |
OpenSWMM Engine
6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
|
Global mass balance methods. More...
Functions | |
| int | massbal_open (void) |
| Opens and initializes mass balance continuity checking. | |
| void | massbal_close (void) |
| Frees memory used by mass balance system. | |
| void | massbal_report (void) |
| Reports mass balance results. | |
| void | massbal_updateRunoffTotals (int flowType, double v) |
| Updates runoff totals after current time step. | |
| void | massbal_updateLoadingTotals (int type, int pollutIndex, double w) |
| Adds inflow mass loading to loading totals for current time step. | |
| void | massbal_updateGwaterTotals (double vInfil, double vUpperEvap, double vLowerEvap, double vLowerPerc, double vGwater) |
| Updates groundwater totals after current time step. | |
| void | massbal_updateRoutingTotals (double tStep) |
| Updates overall routing totals with totals from current time step. | |
| void | massbal_initTimeStepTotals (void) |
| Initializes routing totals for current time step. | |
| void | massbal_addInflowFlow (int type, double q) |
| Adds flow inflow to routing totals for current time step. | |
| void | massbal_addInflowQual (int type, int pollutIndex, double w) |
| Adds quality inflow to routing totals for current time step. | |
| void | massbal_addOutflowFlow (double q, int isFlooded) |
| Adds flow outflow over current time step to routing totals. | |
| void | massbal_addOutflowQual (int pollutIndex, double mass, int isFlooded) |
| Adds pollutant outflow over current time step to routing totals. | |
| void | massbal_addNodeLosses (double evapLoss, double infilLoss) |
| Adds node losses over current time step to routing totals. | |
| void | massbal_addLinkLosses (double evapLoss, double infilLoss) |
| Adds link losses over current time step to routing totals. | |
| void | massbal_addReactedMass (int pollutIndex, double mass) |
| Adds mass reacted during current time step to routing totals. | |
| void | massbal_addSeepageLoss (int pollutIndex, double seepLoss) |
| Adds mass lost to seepage during current time step to routing totals. | |
| void | massbal_addToFinalStorage (int pollutIndex, double mass) |
| Adds mass remaining on dry surface to routing totals. | |
| double | massbal_getStepFlowError (void) |
| Computes flow routing mass balance error at current time step. | |
| double | massbal_getRunoffError (void) |
| Computes runoff mass balance error. | |
| double | massbal_getFlowError (void) |
| Computes flow routing mass balance error. | |
Global mass balance methods.
| void massbal_addInflowFlow | ( | int | type, |
| double | q | ||
| ) |
Adds flow inflow to routing totals for current time step.
| [in] | type | Type of inflow |
| [in] | q | Inflow rate (cfs) |
| void massbal_addInflowQual | ( | int | type, |
| int | pollutIndex, | ||
| double | w | ||
| ) |
Adds quality inflow to routing totals for current time step.
| [in] | type | Type of inflow |
| [in] | pollutIndex | Pollutant index |
| [in] | w | Mass flow rate (mass/sec) |
| void massbal_addLinkLosses | ( | double | evapLoss, |
| double | seepLoss | ||
| ) |
Adds link losses over current time step to routing totals.
| [in] | evapLoss | Evaporation loss from all links (ft3/sec) |
| [in] | infilLoss | Infiltration loss from all links (ft3/sec) |
| void massbal_addNodeLosses | ( | double | evapLoss, |
| double | seepLoss | ||
| ) |
Adds node losses over current time step to routing totals.
| [in] | evapLoss | Evaporation loss from all nodes (ft3/sec) |
| [in] | infilLoss | Seepage loss from all nodes (ft3/sec) |
| void massbal_addOutflowFlow | ( | double | q, |
| int | isFlooded | ||
| ) |
Adds flow outflow over current time step to routing totals.
| [in] | q | Outflow rate (cfs) |
| [in] | isFlooded | TRUE if outflow represents internal flooding |
| void massbal_addOutflowQual | ( | int | p, |
| double | w, | ||
| int | isFlooded | ||
| ) |
Adds pollutant outflow over current time step to routing totals.
| [in] | pollutIndex | Pollutant index |
| [in] | mass | Mass outflow rate (mass/sec) |
| [in] | isFlooded | TRUE if outflow represents internal flooding |
| void massbal_addReactedMass | ( | int | pollutIndex, |
| double | w | ||
| ) |
Adds mass reacted during current time step to routing totals.
| [in] | pollutIndex | Pollutant index |
| [in] | mass | Rate of mass reacted (mass/sec) |
| void massbal_addSeepageLoss | ( | int | pollutIndex, |
| double | w | ||
| ) |
Adds mass lost to seepage during current time step to routing totals.
| [in] | pollutIndex | Pollutant index |
| [in] | seepLoss | Mass seepage rate (mass/sec) |
| void massbal_addToFinalStorage | ( | int | pollutIndex, |
| double | w | ||
| ) |
Adds mass remaining on dry surface to routing totals.
| [in] | pollutIndex | Pollutant index |
| [in] | mass | Pollutant mass |
| void massbal_close | ( | void | ) |
Frees memory used by mass balance system.
| double massbal_getFlowError | ( | void | ) |
Computes flow routing mass balance error.
| double massbal_getRunoffError | ( | void | ) |
Computes runoff mass balance error.
| double massbal_getStepFlowError | ( | void | ) |
Computes flow routing mass balance error at current time step.
| void massbal_initTimeStepTotals | ( | void | ) |
Initializes routing totals for current time step.
| int massbal_open | ( | void | ) |
Opens and initializes mass balance continuity checking.
| void massbal_report | ( | void | ) |
Reports mass balance results.
| void massbal_updateGwaterTotals | ( | double | vInfil, |
| double | vUpperEvap, | ||
| double | vLowerEvap, | ||
| double | vLowerPerc, | ||
| double | vGwater | ||
| ) |
Updates groundwater totals after current time step.
| [in] | vInfil | Volume depth of infiltration (ft) |
| [in] | vUpperEvap | Volume depth of upper zone evaporation (ft) |
| [in] | vLowerEvap | Volume depth of lower zone evaporation (ft) |
| [in] | vLowerPerc | Volume depth of percolation to deep GW (ft) |
| [in] | vGwater | Volume depth of groundwater outflow (ft) |
| void massbal_updateLoadingTotals | ( | int | type, |
| int | p, | ||
| double | w | ||
| ) |
Adds inflow mass loading to loading totals for current time step.
| [in] | type | Type of inflow |
| [in] | pollutIndex | Pollutant index |
| [in] | w | Mass loading |
| void massbal_updateRoutingTotals | ( | double | tStep | ) |
Updates overall routing totals with totals from current time step.
| [in] | tStep | Time step (sec) |
| void massbal_updateRunoffTotals | ( | int | flowType, |
| double | v | ||
| ) |
Updates runoff totals after current time step.
| [in] | flowType | Type of flow (RUNOFF_RAINFALL, RUNOFF_EVAP, RUNOFF_RUNOFF, etc.) |
| [in] | v | Volume of flow (ft3) |