EPANET  3.0
EPANET Development Project
Public Member Functions | Public Attributes | List of all members
Pipe Class Reference

A circular conduit Link through which water flows. More...

#include <pipe.h>

Inheritance diagram for Pipe:
Link Element

Public Member Functions

 Pipe (std::string name)
 
int type ()
 
std::string typeStr ()
 
void convertUnits (Network *nw)
 
bool isReactive ()
 
void setInitFlow ()
 
void setInitStatus (int status)
 
void setInitSetting (double setting)
 
void setResistance (Network *nw)
 
double getRe (const double q, const double viscos)
 
double getResistance ()
 
double getVelocity ()
 
double getUnitHeadLoss ()
 
double getSetting (Network *nw)
 
double getVolume ()
 
void findHeadLoss (Network *nw, double q)
 
bool canLeak ()
 
double findLeakage (Network *nw, double h, double &dqdh)
 
bool changeStatus (int s, bool makeChange, const std::string reason, std::stringstream &msgLog)
 
void validateStatus (Network *nw, double qTol)
 
- Public Member Functions inherited from Element
 Element (std::string name_)
 

Public Attributes

bool hasCheckValve
 true if pipe has a check valve
 
double length
 pipe length (ft)
 
double roughness
 roughness parameter (units depend on head loss model)
 
double resistance
 resistance factor (units depend head loss model)
 
double lossFactor
 minor loss factor (ft/cfs^2)
 
double leakCoeff1
 leakage coefficient (user units)
 
double leakCoeff2
 leakage coefficient (user units)
 
double bulkCoeff
 bulk reaction coefficient (mass^n/sec)
 
double wallCoeff
 wall reaction coefficient (mass^n/sec)
 
double massTransCoeff
 mass transfer coefficient (mass^n/sec)
 
- Public Attributes inherited from Element
std::string name
 element's ID name
 
int index
 index in array of elements
 

Additional Inherited Members

- Public Types inherited from Element
enum  ElementType {
  NODE, LINK, PATTERN, CURVE,
  CONTROL
}
 

Detailed Description

A circular conduit Link through which water flows.


The documentation for this class was generated from the following files: