|
EPANET
3.0
EPANET Development Project
|
A circular conduit Link through which water flows. More...
#include <pipe.h>
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 Link | |
| Link (std::string name_) | |
| Constructor. | |
| virtual | ~Link () |
| Destructor. | |
| virtual double | convertSetting (Network *nw, double s) |
| virtual void | validate (Network *nw) |
| virtual void | initialize (bool initFlow) |
| virtual void | setFlowThreshold (const double viscos) |
| virtual bool | reduceFlowThreshold () |
| virtual double | updateEnergyUsage (Network *nw, int dt) |
| virtual bool | isPRV () |
| virtual bool | isPSV () |
| virtual bool | isHpPump () |
| virtual void | updateStatus (double q, double h1, double h2) |
| virtual bool | changeStatus (int newStatus, bool makeChange, const std::string reason, std::ostream &msgLog) |
| virtual bool | changeSetting (double newSetting, bool makeChange, const std::string reason, std::ostream &msgLog) |
| virtual void | applyControlPattern (std::ostream &msgLog) |
| std::string | writeStatusChange (int oldStatus) |
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 Link | |
| bool | rptFlag |
| true if results are reported | |
| Node * | fromNode |
| pointer to the link's start node | |
| Node * | toNode |
| pointer to the link's end node | |
| int | initStatus |
| initial Open/Closed status | |
| double | diameter |
| link diameter (ft) | |
| double | lossCoeff |
| minor head loss coefficient | |
| double | initSetting |
| initial pump speed or valve setting | |
| int | status |
| current status | |
| double | flowThresh0 |
| initial flow threshold (cfs) | |
| double | flowThresh |
| current flow threshold (cfs) | |
| double | flow |
| flow rate (cfs) | |
| double | leakage |
| leakage rate (cfs) | |
| double | hLoss |
| head loss (ft) | |
| double | hGrad |
| head loss gradient (ft/cfs) | |
| double | setting |
| current setting | |
| double | quality |
| avg. quality concen. (mass/ft3) | |
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 Link | |
| enum | LinkType { PIPE, PUMP, VALVE } |
| enum | LinkStatus { LINK_CLOSED, LINK_OPEN, VALVE_ACTIVE, TEMP_CLOSED } |
| enum | LinkReaction { BULK, WALL } |
Public Types inherited from Element | |
| enum | ElementType { NODE, LINK, PATTERN, CURVE, CONTROL } |
Static Public Member Functions inherited from Link | |
| static Link * | factory (int type_, std::string name_, MemPool *memPool) |
| Factory Method. | |
A circular conduit Link through which water flows.
1.8.11