OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
ForceMain.hpp
Go to the documentation of this file.
1
19#ifndef OPENSWMM_FORCEMAIN_HPP
20#define OPENSWMM_FORCEMAIN_HPP
21
22namespace openswmm {
23
24namespace forcemain {
25
26constexpr double VISCOS = 1.1e-5;
27
28enum class FrictionModel : int {
31};
32
41double getFricSlope_HW(double velocity, double hyd_rad, double c_hw);
42
51double getFricSlope_DW(double velocity, double hyd_rad, double roughness);
52
63void batchFricSlope(const double* velocity, const double* hyd_rad,
64 const double* param, double* fric_slope,
65 FrictionModel model, int count);
66
67} // namespace forcemain
68} // namespace openswmm
69
70#endif // OPENSWMM_FORCEMAIN_HPP
double getFricSlope_DW(double velocity, double hyd_rad, double roughness)
Compute friction slope for Darcy-Weisbach.
Definition ForceMain.cpp:27
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.
Definition ForceMain.cpp:57
FrictionModel
Definition ForceMain.hpp:28
constexpr double VISCOS
Kinematic viscosity @ 20C (ft2/sec)
Definition ForceMain.hpp:26
double getFricSlope_HW(double velocity, double hyd_rad, double c_hw)
Compute friction slope for Hazen-Williams.
Definition ForceMain.cpp:18
Definition Controls.cpp:24