![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Low-impact development controls, usage, and state. More...
Classes | |
| struct | LidList |
| struct | LidGroup |
Macros | |
| #define | _CRT_SECURE_NO_DEPRECATE |
| #define | ERR_PAVE_LAYER " - check pavement layer parameters" |
| #define | ERR_SOIL_LAYER " - check soil layer parameters" |
| #define | ERR_STOR_LAYER " - check storage layer parameters" |
| #define | ERR_SWALE_SURF " - check swale surface parameters" |
| #define | ERR_GREEN_AMPT " - check subcatchment Green-Ampt parameters" |
| #define | ERR_DRAIN_OFFSET " - drain offset exceeds storage height" |
| #define | ERR_DRAIN_HEADS " - invalid drain open/closed heads" |
| #define | ERR_SWALE_WIDTH " - invalid swale width" |
Typedefs | |
| typedef struct LidList | TLidList |
| typedef struct LidGroup * | TLidGroup |
Enumerations | |
| enum | LidLayerTypes { SURF , SOIL , STOR , PAVE , DRAINMAT , DRAIN , REMOVALS } |
Functions | |
| void | lid_create (int lidCount, int subcatchCount) |
| Allocate LID process definitions and per-subcatchment LID group storage. | |
| void | lid_delete () |
| Deletes all LID objects. | |
| int | lid_readProcParams (char *toks[], int ntoks) |
| Reads LID process information from line of input data file. | |
| int | lid_readGroupParams (char *toks[], int ntoks) |
| Reads input data for a LID unit placed in a subcatchment. | |
| int | lid_setDrainParams (int lidIndex, double coeff, double expon, double offset) |
| Updates the underdrain flow parameters of a LID process at runtime (API support). The drain parameters are read live each step (lidproc.c), so an edit takes effect on the next step. | |
| void | lid_writeSummary () |
| Writes summary of LID processes used to report file. | |
| void | lid_validate () |
| Validates LID process and group parameters. | |
| void | lid_initState () |
| Initializes the internal state of each LID in a subcatchment. | |
| void | lid_setOldGroupState (int j) |
| Saves the current drain flow rate for the LIDs in a subcatchment. | |
| double | lid_getPervArea (int j) |
| Retrieves amount of pervious LID area in a subcatchment. | |
| double | lid_getFlowToPerv (int j) |
| Retrieves flow returned from LID treatment to pervious area of a subcatchment. | |
| double | lid_getStoredVolume (int j) |
| Computes stored volume of water for all LIDs grouped within a subcatchment. | |
| double | lid_getDrainFlow (int j, int timePeriod) |
| Select the previous or current total LID drain flow of a subcatchment. | |
| void | lid_addDrainLoads (int j, double c[], double tStep) |
| Add LID drain pollutant export and BMP removal to mass-balance totals. | |
| void | lid_addDrainRunon (int j) |
| Route previous-period LID drain flow and pollutant loads to receiving subcatchments. | |
| void | lid_addDrainInflow (int j, double f) |
| Add temporally interpolated LID drain inflows to conveyance nodes. | |
| void | lid_getRunoff (int j, double tStep) |
| Advance LID units and compute runoff, drain and return flows. | |
| void | lid_writeWaterBalance () |
| Writes a LID performance summary table to the project's report file. | |
Variables | |
| char * | LidLayerWords [] |
| char * | LidTypeWords [] |
| double | Vevap |
| double | Vpevap |
| double | Vinfil |
| double | VlidInfil |
| double | VlidIn |
| double | VlidOut |
| double | VlidDrain |
| double | VlidReturn |
| char | HasWetLids |
Low-impact development controls, usage, and state.
| #define _CRT_SECURE_NO_DEPRECATE |
| #define ERR_DRAIN_HEADS " - invalid drain open/closed heads" |
| #define ERR_DRAIN_OFFSET " - drain offset exceeds storage height" |
| #define ERR_GREEN_AMPT " - check subcatchment Green-Ampt parameters" |
| #define ERR_PAVE_LAYER " - check pavement layer parameters" |
| #define ERR_SOIL_LAYER " - check soil layer parameters" |
| #define ERR_STOR_LAYER " - check storage layer parameters" |
| #define ERR_SWALE_SURF " - check swale surface parameters" |
| #define ERR_SWALE_WIDTH " - invalid swale width" |
| enum LidLayerTypes |
| void lid_addDrainInflow | ( | int | j, |
| double | f ) |
Add temporally interpolated LID drain inflows to conveyance nodes.
| [in] | j | Valid contributing subcatchment index. |
| [in] | f | Current-period interpolation weight, normally in [0, 1]; old values use weight 1 - f and the function does not clamp extrapolation. |
| void lid_addDrainLoads | ( | int | j, |
| double | c[], | ||
| double | tStep ) |
Add LID drain pollutant export and BMP removal to mass-balance totals.
| [in] | j | Valid contributing subcatchment index. |
| [in] | c | Borrowed Nobjects[POLLUT] concentration array, in pollutant mass per liter. |
| [in] | tStep | Runoff interval in seconds. |
| void lid_addDrainRunon | ( | int | j | ) |
Route previous-period LID drain flow and pollutant loads to receiving subcatchments.
| [in] | j | Valid contributing subcatchment index. |
| void lid_create | ( | int | lidCount, |
| int | subcatchCount ) |
Allocate LID process definitions and per-subcatchment LID group storage.
| [in] | lidCount | Nonnegative number of LID process definitions. |
| [in] | subcatchCount | Nonnegative number of subcatchment group slots. |
| void lid_delete | ( | void | ) |
Deletes all LID objects.
| double lid_getDrainFlow | ( | int | j, |
| int | timePeriod ) |
Select the previous or current total LID drain flow of a subcatchment.
| [in] | j | Valid subcatchment/LidGroups index. |
| [in] | timePeriod | PREVIOUS selects oldDrainFlow; any other value selects newDrainFlow. |
| double lid_getFlowToPerv | ( | int | j | ) |
Retrieves flow returned from LID treatment to pervious area of a subcatchment.
| [in] | j | Subcatchment index. |
| double lid_getPervArea | ( | int | j | ) |
Retrieves amount of pervious LID area in a subcatchment.
| [in] | j | Subcatchment index. |
| void lid_getRunoff | ( | int | j, |
| double | tStep ) |
Advance LID units and compute runoff, drain and return flows.
| [in] | j | Valid subcatchment index with initialized runoff state. |
| [in] | tStep | Positive runoff interval in seconds. |
| double lid_getStoredVolume | ( | int | j | ) |
Computes stored volume of water for all LIDs grouped within a subcatchment.
| [in] | j | Subcatchment index. |
| void lid_initState | ( | void | ) |
Initializes the internal state of each LID in a subcatchment.
| int lid_readGroupParams | ( | char * | toks[], |
| int | ntoks ) |
Reads input data for a LID unit placed in a subcatchment.
| toks | Array of string tokens. | |
| [in] | ntoks | Number of tokens. |
| int lid_readProcParams | ( | char * | toks[], |
| int | ntoks ) |
Reads LID process information from line of input data file.
| toks | Array of string tokens. | |
| [in] | ntoks | Number of tokens. |
parameters LID_ID PAVEMENT parameters LID_ID SOIL parameters LID_ID STORAGE parameters LID_ID DRAIN parameters LID_ID DRAINMAT parameters LID_ID REMOVALS parameters. | int lid_setDrainParams | ( | int | lidIndex, |
| double | coeff, | ||
| double | expon, | ||
| double | offset ) |
Updates the underdrain flow parameters of a LID process at runtime (API support). The drain parameters are read live each step (lidproc.c), so an edit takes effect on the next step.
| [in] | lidIndex | LID process index. |
| [in] | coeff | Underdrain flow coeff. (in/hr or mm/hr). |
| [in] | expon | Underdrain head exponent. |
| [in] | offset | Offset height of underdrain (in or mm). |
| void lid_setOldGroupState | ( | int | j | ) |
Saves the current drain flow rate for the LIDs in a subcatchment.
| [in] | j | Subcatchment index. |
| void lid_validate | ( | void | ) |
Validates LID process and group parameters.
| void lid_writeSummary | ( | void | ) |
Writes summary of LID processes used to report file.
| void lid_writeWaterBalance | ( | void | ) |
Writes a LID performance summary table to the project's report file.
|
extern |
| char* LidLayerWords[] |
Note: DRAINMAT must be placed before DRAIN so the two keywords can be distinguished from one another when parsing a line of input.
| char* LidTypeWords[] |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |