|
| 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_getEvapRate (int subcatchIndex) |
| | Returns the potential evaporation rate for a subcatchment.
|
| |
| 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.
| double subcatch_getEvapRate |
( |
int | subcatchIndex | ) |
|
Returns the potential evaporation rate for a subcatchment.
- Parameters
-
| [in] | subcatchIndex | Subcatchment index |
- Returns
- Returns the externally prescribed PET rate (apiEvapRate) when set, otherwise the climate-derived Evap.rate subject to the DRY_ONLY option (ft/sec)
Returns the potential evaporation rate for a subcatchment.
- Parameters
-
| [in] | subcatchIndex | Subcatchment index |
Returns the externally prescribed PET rate (apiEvapRate) when one has been set through the API; the prescribed rate is used as-is and bypasses the DRY_ONLY suppression and monthly adjustments already folded into Evap.rate. Otherwise returns the climate-derived Evap.rate subject to the DRY_ONLY option.
| double subcatch_getRunoff |
( |
int | subcatchIndex, |
|
|
double | tStep ) |
Computes runoff & new storage depth for subcatchment.
- Parameters
-
| [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.
| int subcatch_readParams |
( |
int | subcatchIndex, |
|
|
char * | tok[], |
|
|
int | ntoks ) |
Reads subcatchment parameters from a tokenized line of input data.
- Parameters
-
| [in] | subcatchIndex | Subcatchment index |
| [in] | tok | Array of string tokens |
| [in] | ntoks | Number of tokens |
- Returns
- Error code
Data has format: Name RainGage Outlet Area Imperv Width Slope CurbLength Snowpack
- Parameters
-
| [in] | subcatchIndex | Subcatchment index |
| [in] | tok | Array of string tokens |
| [in] | ntoks | Number of tokens |
- Returns
- Error code
Data has format: Name RainGage Outlet Area Imperv Width Slope CurbLength [Snowpack] [RainScaleFactor] [SnowScaleFactor]
Snowpack (tok 8) may be given as "*" to hold the position when no snow pack is assigned but a scale factor follows (same convention the [RAINGAGES] FILE format uses for an omitted start date). RainScaleFactor (tok 9) and SnowScaleFactor (tok 10) default to 1.0.