OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
openswmm::forcemain Namespace Reference

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)
 

Enumeration Type Documentation

◆ FrictionModel

enum class openswmm::forcemain::FrictionModel : int
strong
Enumerator
HAZEN_WILLIAMS 
DARCY_WEISBACH 

Function Documentation

◆ batchFricSlope()

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.

Parameters
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.
modelHazen-Williams or Darcy-Weisbach.
countNumber of force mains.
Here is the call graph for this function:

◆ getFricSlope_DW()

double openswmm::forcemain::getFricSlope_DW ( double  velocity,
double  hyd_rad,
double  roughness 
)

Compute friction slope for Darcy-Weisbach.

Parameters
velocityFlow velocity (ft/sec).
hyd_radHydraulic radius (ft).
roughnessPipe roughness height (ft).
Returns
Friction slope Sf (dimensionless).
Here is the caller graph for this function:

◆ getFricSlope_HW()

double openswmm::forcemain::getFricSlope_HW ( double  velocity,
double  hyd_rad,
double  c_hw 
)

Compute friction slope for Hazen-Williams.

Parameters
velocityFlow velocity (ft/sec).
hyd_radHydraulic radius (ft).
c_hwHazen-Williams C coefficient.
Returns
Friction slope Sf (dimensionless).
Here is the caller graph for this function:

Variable Documentation

◆ VISCOS

constexpr double openswmm::forcemain::VISCOS = 1.1e-5
constexpr

Kinematic viscosity @ 20C (ft2/sec)