![]() |
OpenSWMM Engine
6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
|
Global subcatchment methods. More...
Functions | |
| int | subcatch_readParams (int subcatchIndex, char *tok[], int ntoks) |
| Reads subcatchment parameters from a tokenized line of input data. | |
| int | subcatch_readSubareaParams (char *tok[], int ntoks) |
| Rreads subcatchment's subarea parameters from a tokenized line of input data. | |
| int | subcatch_readLanduseParams (char *tok[], int ntoks) |
| Reads assignment of landuses to subcatchment from a tokenized line of input data. | |
| int | subcatch_readInitBuildup (char *tok[], int ntoks) |
| Reads initial pollutant buildup on subcatchment from tokenized line of input data. | |
| void | subcatch_validate (int subcatchIndex) |
| Checks for valid subcatchment input parameters. | |
| void | subcatch_initState (int subcatchIndex) |
| Initializes state of a subcatchment. | |
| void | subcatch_setOldState (int subcatchIndex) |
| Replaces old state of subcatchment with new state. | |
| double | subcatch_getFracPerv (int subcatchIndex) |
| Determines what fraction of subcatchment area, including any LID area, is pervious. | |
| double | subcatch_getStorage (int subcatchIndex) |
| Finds total volume of water stored on a subcatchment's surface and its LIDs at the current time. | |
| double | subcatch_getDepth (int subcatchIndex) |
| Finds average depth of water over the non-LID portion of a subcatchment. | |
| void | subcatch_getRunon (int subcatchIndex) |
| Routes runoff from a subcatchment to its outlet subcatchment or between its subareas. | |
| void | subcatch_addRunonFlow (int subcatchIndex, double flow) |
| Updates the total runon flow (ft/s) seen by a subcatchment that receives runon flow from an upstream subcatchment. | |
| double | subcatch_getRunoff (int subcatchIndex, double tStep) |
| Computes runoff & new storage depth for subcatchment. | |
| double | subcatch_getWtdOutflow (int subcatchIndex, double wt) |
| Computes weighted combination of old and new subcatchment runoff. | |
| void | subcatch_getResults (int subcatchIndex, double wt, float x[]) |
| Computes wtd. combination of old and new subcatchment results. | |
Global subcatchment methods.
| void subcatch_addRunonFlow | ( | int | subcatchIndex, |
| double | flow | ||
| ) |
Updates the total runon flow (ft/s) seen by a subcatchment that receives runon flow from an upstream subcatchment.
| [in] | subcatchIndex | Subcatchment index |
| [in] | flow | Runon flow rate (cfs) to subcatchment subcatchIndex |
| double subcatch_getDepth | ( | int | subcatchIndex | ) |
Finds average depth of water over the non-LID portion of a subcatchment.
| [in] | subcatchIndex | Subcatchment index |
| double subcatch_getFracPerv | ( | int | j | ) |
Determines what fraction of subcatchment area, including any LID area, is pervious.
| [in] | subcatchIndex | Subcatchment index |
| void subcatch_getResults | ( | int | subcatchIndex, |
| double | wt, | ||
| float | x[] | ||
| ) |
Computes wtd. combination of old and new subcatchment results.
| [in] | subcatchIndex | Subcatchment index |
| [in] | wt | Weighting factor |
| [out] | x | Array of subcatchment results |
| double subcatch_getRunoff | ( | int | subcatchIndex, |
| double | tStep | ||
| ) |
Computes runoff & new storage depth for subcatchment.
| [in] | subcatchIndex | Subcatchment index |
| [in] | tStep | Time step (sec) |
The 'runoff' value returned by this function is the total runoff generated (in ft/sec) by the subcatchment before any internal re-routing is applied. It is used to compute pollutant washoff.
The 'outflow' value computed here (in cfs) is the surface runoff that actually leaves the subcatchment after any LID controls are applied and is saved to Subcatch[j].newRunoff.
| void subcatch_getRunon | ( | int | subcatchIndex | ) |
Routes runoff from a subcatchment to its outlet subcatchment or between its subareas.
| [in] | subcatchIndex | Subcatchment index |
| double subcatch_getStorage | ( | int | subcatchIndex | ) |
Finds total volume of water stored on a subcatchment's surface and its LIDs at the current time.
| [in] | subcatchIndex | Subcatchment index |
| double subcatch_getWtdOutflow | ( | int | subcatchIndex, |
| double | f | ||
| ) |
Computes weighted combination of old and new subcatchment runoff.
| [in] | subcatchIndex | Subcatchment index |
| [in] | wt | Weighting factor |
| void subcatch_initState | ( | int | subcatchIndex | ) |
Initializes state of a subcatchment.
| [in] | subcatchIndex | Subcatchment index |
| int subcatch_readInitBuildup | ( | char * | tok[], |
| int | ntoks | ||
| ) |
Reads initial pollutant buildup on subcatchment from tokenized line of input data.
| [in] | tok | Array of string tokens |
| [in] | ntoks | Number of tokens |
Data has format: Subcatch pollut initLoad .... pollut initLoad
| int subcatch_readLanduseParams | ( | char * | tok[], |
| int | ntoks | ||
| ) |
Reads assignment of landuses to subcatchment from a tokenized line of input data.
| [in] | tok | Array of string tokens |
| [in] | ntoks | Number of tokens |
Data has format: Subcatch landuse percent .... landuse percent
| int subcatch_readParams | ( | int | subcatchIndex, |
| char * | tok[], | ||
| int | ntoks | ||
| ) |
Reads subcatchment parameters from a tokenized line of input data.
| [in] | subcatchIndex | Subcatchment index |
| [in] | tok | Array of string tokens |
| [in] | ntoks | Number of tokens |
Data has format: Name RainGage Outlet Area Imperv Width Slope CurbLength Snowpack
| int subcatch_readSubareaParams | ( | char * | tok[], |
| int | ntoks | ||
| ) |
Rreads subcatchment's subarea parameters from a tokenized line of input data.
| [in] | tok | Array of string tokens |
| [in] | ntoks | Number of tokens |
Data has format: Subcatch Imperv_N Perv_N Imperv_S Perv_S PctZero RouteTo (PctRouted)
| void subcatch_setOldState | ( | int | subcatchIndex | ) |
Replaces old state of subcatchment with new state.
| [in] | subcatchIndex | Subcatchment index |
| void subcatch_validate | ( | int | subcatchIndex | ) |
Checks for valid subcatchment input parameters.
| [in] | subcatchIndex | Subcatchment index |