OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
forcmain.c File Reference

Force-main friction and hydraulic calculations. More...

#include <math.h>
#include "headers.h"
Include dependency graph for forcmain.c:

Macros

#define _CRT_SECURE_NO_DEPRECATE
 

Functions

double forcemain_getEquivN (int j, int k)
 Computes a Mannng's n that results in the same normal flow value for a force main flowing full under fully turbulent conditions using either the Hazen-Williams or Dary-Weisbach flow equations.
 
double forcemain_getRoughFactor (int j, double lengthFactor)
 Computes an adjustment factor for a force main that compensates for any artificial lengthening the pipe may have received.
 
double forcemain_getFricSlope (int j, double v, double hrad)
 Computes the headloss per unit length used in dynamic wave flow routing for a pressurized force main using either the Hazen-Williams or Darcy-Weisbach flow equations.
 

Detailed Description

Force-main friction and hydraulic calculations.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com (OpenSWMM maintenance and extensions)
License
Apache-2.0 for OpenSWMM contributions; original EPA SWMM provenance is retained.

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

Function Documentation

◆ forcemain_getEquivN()

double forcemain_getEquivN ( int j,
int k )

Computes a Mannng's n that results in the same normal flow value for a force main flowing full under fully turbulent conditions using either the Hazen-Williams or Dary-Weisbach flow equations.

Parameters
[in]jLink index.
[in]kConduit index.
Returns
An equivalent Manning's n for a force main.

◆ forcemain_getFricSlope()

double forcemain_getFricSlope ( int j,
double v,
double hrad )

Computes the headloss per unit length used in dynamic wave flow routing for a pressurized force main using either the Hazen-Williams or Darcy-Weisbach flow equations.

Parameters
[in]jLink index.
[in]vFlow velocity (ft/sec).
[in]hradHydraulic radius (ft).
Returns
A force main pipe's friction slope.
Note
The pipe's roughness factor was saved in xsect.sBot in conduit_validate() in LINK.C.
Here is the caller graph for this function:

◆ forcemain_getRoughFactor()

double forcemain_getRoughFactor ( int j,
double lengthFactor )

Computes an adjustment factor for a force main that compensates for any artificial lengthening the pipe may have received.

Parameters
[in]jLink index.
[in]lengthFactorFactor by which a pipe will be artifically lengthened.
Returns
A roughness adjustment factor for a force main.