|
EPANET
3.0
EPANET Development Project
|
A Link that raises the head of water flowing through it. More...
#include <pump.h>
Public Member Functions | |
| Pump (std::string name_) | |
| int | type () |
| std::string | typeStr () |
| void | convertUnits (Network *nw) |
| void | validate (Network *nw) |
| void | setInitFlow () |
| void | setInitStatus (int s) |
| void | setInitSetting (double s) |
| double | getSetting (Network *nw) |
| bool | isHpPump () |
| void | findHeadLoss (Network *nw, double q) |
| double | updateEnergyUsage (Network *nw, int dt) |
| bool | changeStatus (int s, bool makeChange, const std::string reason, std::ostream &msgLog) |
| bool | changeSetting (double s, bool makeChange, const std::string reason, std::ostream &msgLog) |
| void | validateStatus (Network *nw, double qTol) |
| void | applyControlPattern (std::ostream &msgLog) |
Public Member Functions inherited from Link | |
| Link (std::string name_) | |
| Constructor. | |
| virtual | ~Link () |
| Destructor. | |
| virtual double | convertSetting (Network *nw, double s) |
| virtual bool | isReactive () |
| virtual void | initialize (bool initFlow) |
| virtual void | setResistance (Network *nw) |
| virtual void | setFlowThreshold (const double viscos) |
| virtual bool | reduceFlowThreshold () |
| virtual double | getVelocity () |
| virtual double | getRe (const double q, const double viscos) |
| virtual double | getResistance () |
| virtual double | getUnitHeadLoss () |
| virtual bool | canLeak () |
| virtual double | findLeakage (Network *nw, double h, double &dqdh) |
| virtual bool | isPRV () |
| virtual bool | isPSV () |
| virtual void | updateStatus (double q, double h1, double h2) |
| std::string | writeStatusChange (int oldStatus) |
| virtual double | getVolume () |
Public Member Functions inherited from Element | |
| Element (std::string name_) | |
Public Attributes | |
| PumpCurve | pumpCurve |
| pump's head v. flow relation | |
| double | speed |
| relative pump speed | |
| Pattern * | speedPattern |
| speed time pattern | |
| PumpEnergy | pumpEnergy |
| pump's energy usage | |
| Curve * | efficCurve |
| efficiency. v. flow curve | |
| Pattern * | costPattern |
| energy cost pattern | |
| double | costPerKwh |
| unit energy cost (cost/kwh) | |
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 Link that raises the head of water flowing through it.
1.8.11