|
| double | massbal_getBuildup (int p) |
| | Computes current total buildup of a pollutant over study area.
|
| |
| double | massbal_getStorage (char isFinalStorage) |
| | Computes total system storage (nodes + links) filled.
|
| |
| double | massbal_getStoredMass (int p) |
| | Computes mass of pollutant stored in conveyance network.
|
| |
| double | massbal_getLoadingError () |
| | Finalize surface pollutant loading totals and their continuity errors.
|
| |
| double | massbal_getGwaterError () |
| | Compute the signed groundwater continuity error from accumulated totals.
|
| |
| double | massbal_getQualError () |
| | Finalize routed pollutant mass totals and select the largest absolute error.
|
| |
| int | massbal_open () |
| | Opens and initializes mass balance continuity checking.
|
| |
| void | massbal_close () |
| | Frees memory used by mass balance system.
|
| |
| void | massbal_report () |
| | Reports mass balance results.
|
| |
| void | massbal_updateRunoffTotals (int flowType, double v) |
| | Updates runoff totals after 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_initTimeStepTotals () |
| | 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_updateLoadingTotals (int type, int p, double w) |
| | Adds inflow mass loading to loading 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 p, double w, int isFlooded) |
| | Adds pollutant outflow over current time step to routing totals.
|
| |
| void | massbal_addReactedMass (int pollutIndex, double w) |
| | Adds mass reacted during current time step to routing totals.
|
| |
| void | massbal_addSeepageLoss (int pollutIndex, double w) |
| | Adds mass lost to seepage during current time step to routing totals.
|
| |
| void | massbal_addToFinalStorage (int pollutIndex, double w) |
| | Adds mass remaining on dry surface to routing totals.
|
| |
| void | massbal_addNodeLosses (double evapLoss, double seepLoss) |
| | Adds node losses over current time step to routing totals.
|
| |
| void | massbal_addLinkLosses (double evapLoss, double seepLoss) |
| | Adds link losses over current time step to routing totals.
|
| |
| void | massbal_updateRoutingTotals (double tStep) |
| | Updates overall routing totals with totals from current time step.
|
| |
| void | massbal_getSysFlows (double f, double sysFlows[]) |
| | Retrieves time-weighted average of old and new system flows.
|
| |
| double | massbal_getRunoffError () |
| | Compute the signed surface runoff continuity error from accumulated totals.
|
| |
| double | massbal_getFlowError () |
| | Compute the signed flow routing continuity error from accumulated totals.
|
| |
| double | massbal_getStepFlowError () |
| | Computes flow routing mass balance error at current time step.
|
| |
Runoff, routing, and pollutant continuity accounting.
- Author
- Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com (OpenSWMM maintenance and extensions)
- Copyright
- Copyright (c) 2026 Caleb Buahin. OpenSWMM contributions only; original EPA SWMM credits are retained.
- License
- Apache-2.0 for OpenSWMM contributions; original EPA SWMM provenance is retained.