![]() |
OpenSWMM Engine
6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
|
OpenSWMM Engine — Inflows (External, DWF, RDII) C API. More...
#include "openswmm_engine.h"Go to the source code of this file.
Functions | |
| SWMM_ENGINE_API int | swmm_ext_inflow_add (SWMM_Engine engine, int node_idx, const char *constituent, const char *ts_name, const char *type, double m_factor, double s_factor, double baseline, const char *pattern) |
| Add an external inflow to a node. | |
| SWMM_ENGINE_API int | swmm_dwf_add (SWMM_Engine engine, int node_idx, const char *constituent, double avg_value, const char *pat1, const char *pat2, const char *pat3, const char *pat4) |
| Add a dry weather flow component to a node. | |
| SWMM_ENGINE_API int | swmm_rdii_add (SWMM_Engine engine, int node_idx, const char *uh_name, double area) |
| Add RDII inflow to a node using a unit hydrograph. | |
| SWMM_ENGINE_API int | swmm_ext_inflow_count (SWMM_Engine engine) |
| Get the total number of external inflows defined. | |
| SWMM_ENGINE_API int | swmm_dwf_count (SWMM_Engine engine) |
| Get the total number of dry weather flow entries defined. | |
| SWMM_ENGINE_API int | swmm_rdii_count (SWMM_Engine engine) |
| Get the total number of RDII entries defined. | |
OpenSWMM Engine — Inflows (External, DWF, RDII) C API.
External inflow addition, dry weather flow, RDII assignment, and count queries.
| SWMM_ENGINE_API int swmm_dwf_add | ( | SWMM_Engine | engine, |
| int | node_idx, | ||
| const char * | constituent, | ||
| double | avg_value, | ||
| const char * | pat1, | ||
| const char * | pat2, | ||
| const char * | pat3, | ||
| const char * | pat4 | ||
| ) |
Add a dry weather flow component to a node.
Dry weather flow represents the base sanitary flow entering the system at a node, modulated by up to four time patterns.
| engine | Engine handle. |
| node_idx | Zero-based index of the receiving node. |
| constituent | Constituent name ("FLOW" or a pollutant name). |
| avg_value | Average DWF value. |
| pat1 | Monthly time pattern name (NULL for none). |
| pat2 | Daily time pattern name (NULL for none). |
| pat3 | Hourly time pattern name (NULL for none). |
| pat4 | Weekend time pattern name (NULL for none). |
| SWMM_ENGINE_API int swmm_dwf_count | ( | SWMM_Engine | engine | ) |
Get the total number of dry weather flow entries defined.
| engine | Engine handle. |
| SWMM_ENGINE_API int swmm_ext_inflow_add | ( | SWMM_Engine | engine, |
| int | node_idx, | ||
| const char * | constituent, | ||
| const char * | ts_name, | ||
| const char * | type, | ||
| double | m_factor, | ||
| double | s_factor, | ||
| double | baseline, | ||
| const char * | pattern | ||
| ) |
Add an external inflow to a node.
External inflows define time-varying flows or pollutant loads applied at a node, optionally driven by a time series, with scaling, baseline, and pattern modifiers.
| engine | Engine handle. |
| node_idx | Zero-based index of the receiving node. |
| constituent | Constituent name ("FLOW" for flow, or a pollutant name). |
| ts_name | Time series name (NULL or "" for constant baseline only). |
| type | Inflow type: "FLOW", "CONCEN", or "MASS". |
| m_factor | Multiplier applied to the time series values. |
| s_factor | Scale factor (unit conversion). |
| baseline | Constant baseline value added to the time series. |
| pattern | Time pattern name (NULL or "" for none). |
| SWMM_ENGINE_API int swmm_ext_inflow_count | ( | SWMM_Engine | engine | ) |
Get the total number of external inflows defined.
| engine | Engine handle. |
| SWMM_ENGINE_API int swmm_rdii_add | ( | SWMM_Engine | engine, |
| int | node_idx, | ||
| const char * | uh_name, | ||
| double | area | ||
| ) |
Add RDII inflow to a node using a unit hydrograph.
Associates a node with a unit hydrograph group and its sewershed area to compute rainfall-dependent infiltration/inflow.
| engine | Engine handle. |
| node_idx | Zero-based index of the receiving node. |
| uh_name | Unit hydrograph group name. |
| area | Sewershed area in project area units. |
| SWMM_ENGINE_API int swmm_rdii_count | ( | SWMM_Engine | engine | ) |
Get the total number of RDII entries defined.
| engine | Engine handle. |