OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
ForceMain.cpp File Reference

Force main friction — numerically identical to legacy forcmain.c. More...

#include "ForceMain.hpp"
#include <cmath>
#include <algorithm>
Include dependency graph for ForceMain.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::forcemain
 

Functions

double openswmm::forcemain::getFricSlope_HW (double velocity, double hyd_rad, double c_hw)
 Compute friction slope for Hazen-Williams.
 
double openswmm::forcemain::getFricSlope_DW (double velocity, double hyd_rad, double roughness)
 Compute friction slope for Darcy-Weisbach.
 
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.
 

Detailed Description

Force main friction — numerically identical to legacy forcmain.c.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License