![]() |
OpenSWMM Engine
6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
|
Enumerations | |
| enum class | FrictionModel : int { HAZEN_WILLIAMS = 0 , DARCY_WEISBACH = 1 } |
Functions | |
| double | getFricSlope_HW (double velocity, double hyd_rad, double c_hw) |
| Compute friction slope for Hazen-Williams. | |
| double | getFricSlope_DW (double velocity, double hyd_rad, double roughness) |
| Compute friction slope for Darcy-Weisbach. | |
| void | batchFricSlope (const double *velocity, const double *hyd_rad, const double *param, double *fric_slope, FrictionModel model, int count) |
| Batch compute friction slopes for all force mains — VECTORISABLE. | |
Variables | |
| constexpr double | VISCOS = 1.1e-5 |
| Kinematic viscosity @ 20C (ft2/sec) | |
|
strong |
| void openswmm::forcemain::batchFricSlope | ( | const double * | velocity, |
| const double * | hyd_rad, | ||
| const double * | param, | ||
| double * | fric_slope, | ||
| FrictionModel | model, | ||
| int | count | ||
| ) |
Batch compute friction slopes for all force mains — VECTORISABLE.
| velocity | [in] Velocity array (indexed by force-main group). |
| hyd_rad | [in] Hydraulic radius array. |
| param | [in] C_HW or roughness height, depending on model. |
| fric_slope | [out] Friction slope array. |
| model | Hazen-Williams or Darcy-Weisbach. |
| count | Number of force mains. |
| double openswmm::forcemain::getFricSlope_DW | ( | double | velocity, |
| double | hyd_rad, | ||
| double | roughness | ||
| ) |
Compute friction slope for Darcy-Weisbach.
| velocity | Flow velocity (ft/sec). |
| hyd_rad | Hydraulic radius (ft). |
| roughness | Pipe roughness height (ft). |
| double openswmm::forcemain::getFricSlope_HW | ( | double | velocity, |
| double | hyd_rad, | ||
| double | c_hw | ||
| ) |
Compute friction slope for Hazen-Williams.
| velocity | Flow velocity (ft/sec). |
| hyd_rad | Hydraulic radius (ft). |
| c_hw | Hazen-Williams C coefficient. |
|
constexpr |
Kinematic viscosity @ 20C (ft2/sec)