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

A Link that raises the head of water flowing through it. More...

#include <pump.h>

Inheritance diagram for Pump:
Link Element

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 Element
 Element (std::string name_)
 

Public Attributes

PumpCurve pumpCurve
 pump's head v. flow relation
 
double speed
 relative pump speed
 
PatternspeedPattern
 speed time pattern
 
PumpEnergy pumpEnergy
 pump's energy usage
 
CurveefficCurve
 efficiency. v. flow curve
 
PatterncostPattern
 energy cost pattern
 
double costPerKwh
 unit energy cost (cost/kwh)
 
- 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 Link that raises the head of water flowing through it.


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