EPANET  3.0
EPANET Development Project
pumpenergy.h
Go to the documentation of this file.
1 /* EPANET 3
2  *
3  * Copyright (c) 2016 Open Water Analytics
4  * Licensed under the terms of the MIT License (see the LICENSE file for details).
5  *
6  */
7 
10 
11 #ifndef PUMPENERGY_H_
12 #define PUMPENERGY_H_
13 
14 class Pump;
15 class Network;
16 
19 
21 {
22  public:
23 
24  // Constructor
25  PumpEnergy();
26 
27  // Methods
28  void init();
29  double updateEnergyUsage(Pump* pump, Network* network, int dt);
30 
31  // Computed Properties
32  double hrsOnLine;
33  double efficiency;
34  double kwHrsPerCFS;
35  double kwHrs;
36  double maxKwatts;
37  double totalCost;
38 
39  private:
40 
41  double findCostFactor(Pump* pump, Network* network);
42  double findEfficiency(Pump* pump, Network* network);
43 };
44 
45 #endif
A Link that raises the head of water flowing through it.
Definition: pump.h:27
double efficiency
total time wtd. efficiency
Definition: pumpenergy.h:33
double totalCost
total pumping cost
Definition: pumpenergy.h:37
double kwHrsPerCFS
total kw-hrs per cfs of flow
Definition: pumpenergy.h:34
double kwHrs
total kw-hrs consumed
Definition: pumpenergy.h:35
double maxKwatts
max. kw consumed
Definition: pumpenergy.h:36
Accumulates energy usage metrics for a pump.
Definition: pumpenergy.h:20
Contains the data elements that describe a pipe network.
Definition: network.h:41
double hrsOnLine
hours pump is online
Definition: pumpenergy.h:32