![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Street inlet configuration, capture, and bypass calculations. More...
Classes | |
| struct | TGrateInlet |
| struct | TSlottedInlet |
| struct | TCurbInlet |
| struct | TCustomInlet |
| struct | TInletDesign |
| struct | TInletStats |
| struct | TInlet |
Macros | |
| #define | _CRT_SECURE_NO_DEPRECATE |
Enumerations | |
| enum | InletType { GRATE_INLET , CURB_INLET , COMBO_INLET , SLOTTED_INLET , DROP_GRATE_INLET , DROP_CURB_INLET , CUSTOM_INLET } |
| enum | GrateType { P50 , P50x100 , P30 , CURVED_VANE , TILT_BAR_45 , TILT_BAR_30 , RETICULINE , GENERIC } |
| enum | InletPlacementType { AUTOMATIC , ON_GRADE , ON_SAG } |
| enum | ThroatAngleType { HORIZONTAL_THROAT , INCLINED_THROAT , VERTICAL_THROAT } |
Functions | |
| int | inlet_create (int numInlets) |
| Allocate and initialize inlet designs and per-node inlet-flow storage. | |
| void | inlet_delete () |
| Frees all memory allocated for inlet analysis. | |
| int | inlet_readDesignParams (char *tok[], int ntoks) |
| Extracts a set of inlet design parameters from a tokenized line of the [INLETS] section of a SWMM input file. Format of input line is: ID GRATE Length Width GrateType (OpenArea) (SplashVeloc) ID CURB Length Height (ThroatType) ID SLOTTED Length Width ID DROP_GRATE Length Width GrateType (OpenArea) (SplashVeloc) ID DROP_CURB Length Height ID CUSTOM CurveID. | |
| int | inlet_readUsageParams (char *tok[], int ntoks) |
| Extracts inlet usage parameters from a tokenized line of the [INLET_USAGE] section of a SWMM input file. Format of input line is: linkID inletID nodeID (numberOfInlets Clog Qmax aLocal wLocal placement) where linkID = ID name of link containing the inlet inletID = ID name of inlet design being used nodeID = ID name of node receiving captured flow numberOfInlets = number of identical inlets used (default = 1) Clog = percent that inlet is clogged Qmax = maximum flow that inlet can capture (default = 0 (no limit)) aLocal = local gutter depression (ft or m) (default = 0) wLocal = width of local gutter depression (ft or m) (default = 0) placement = ON_GRADE, ON_SAG, or AUTO (the default). | |
| void | inlet_validate () |
| Checks that inlets have been assigned to conduits with proper cross section shapes and counts the number of inlets that each node receives either bypased or captured flow from. | |
| void | inlet_findCapturedFlows (double tStep) |
| Computes flow captured by each inlet and adjusts the lateral flows of the inlet's bypass and capture nodes accordingly. This function is called after regular lateral flows to all nodes have been set but before a flow routing step has been taken. | |
| void | inlet_adjustQualInflows () |
| Adjusts accumulated flow rates and pollutant mass inflows at each inlet's bypass and capture nodes after a flow routing step has been taken prior to a quality routing step. | |
| void | inlet_adjustQualOutflows () |
| Adjusts mass balance totals after a complete routing step has been taken so as not to treat inlet transfer flows as system outflows. | |
| void | inlet_writeStatsReport () |
| Writes table of street & inlet flow statistics to SWMM's report file. | |
| double | inlet_capturedFlow (int i) |
| Gets the current flow captured by an inlet. | |
Variables | |
| TInletDesign * | InletDesigns |
| int | InletDesignCount |
| int | UsesInlets |
| TLinkStats * | LinkStats |
| TNodeStats * | NodeStats |
Street inlet configuration, capture, and bypass calculations.
| #define _CRT_SECURE_NO_DEPRECATE |
| enum GrateType |
| enum InletPlacementType |
| enum InletType |
| enum ThroatAngleType |
| void inlet_adjustQualInflows | ( | ) |
Adjusts accumulated flow rates and pollutant mass inflows at each inlet's bypass and capture nodes after a flow routing step has been taken prior to a quality routing step.
| void inlet_adjustQualOutflows | ( | ) |
Adjusts mass balance totals after a complete routing step has been taken so as not to treat inlet transfer flows as system outflows.
| double inlet_capturedFlow | ( | int | i | ) |
Gets the current flow captured by an inlet.
| [in] | i | A link index. |
| int inlet_create | ( | int | numInlets | ) |
Allocate and initialize inlet designs and per-node inlet-flow storage.
| [in] | numInlets | Nonnegative number of inlet designs; controls array size. |
| void inlet_delete | ( | ) |
Frees all memory allocated for inlet analysis.
| void inlet_findCapturedFlows | ( | double | tStep | ) |
Computes flow captured by each inlet and adjusts the lateral flows of the inlet's bypass and capture nodes accordingly. This function is called after regular lateral flows to all nodes have been set but before a flow routing step has been taken.
| [in] | tStep | Current flow routing time step (sec). |
| int inlet_readDesignParams | ( | char * | tok[], |
| int | ntoks ) |
Extracts a set of inlet design parameters from a tokenized line of the [INLETS] section of a SWMM input file. Format of input line is: ID GRATE Length Width GrateType (OpenArea) (SplashVeloc) ID CURB Length Height (ThroatType) ID SLOTTED Length Width ID DROP_GRATE Length Width GrateType (OpenArea) (SplashVeloc) ID DROP_CURB Length Height ID CUSTOM CurveID.
| tok | Array of string tokens. | |
| [in] | ntoks | Number of tokens. |
| int inlet_readUsageParams | ( | char * | tok[], |
| int | ntoks ) |
Extracts inlet usage parameters from a tokenized line of the [INLET_USAGE] section of a SWMM input file. Format of input line is: linkID inletID nodeID (numberOfInlets Clog Qmax aLocal wLocal placement) where linkID = ID name of link containing the inlet inletID = ID name of inlet design being used nodeID = ID name of node receiving captured flow numberOfInlets = number of identical inlets used (default = 1) Clog = percent that inlet is clogged Qmax = maximum flow that inlet can capture (default = 0 (no limit)) aLocal = local gutter depression (ft or m) (default = 0) wLocal = width of local gutter depression (ft or m) (default = 0) placement = ON_GRADE, ON_SAG, or AUTO (the default).
| tok | Array of string tokens. | |
| [in] | ntoks | Number of tokens. |
| void inlet_validate | ( | ) |
Checks that inlets have been assigned to conduits with proper cross section shapes and counts the number of inlets that each node receives either bypased or captured flow from.
| void inlet_writeStatsReport | ( | ) |
Writes table of street & inlet flow statistics to SWMM's report file.
| int InletDesignCount |
| TInletDesign* InletDesigns |
|
extern |
|
extern |
| int UsesInlets |