AMO-Tools-Suite  v.0.9.0
Set of tools for calculating energy efficiency in industrial equipment
All Classes Namespaces Files Functions Variables Enumerations Friends Macros Pages
PumpShaftPower.h
1 
12 #ifndef AMO_LIBRARY_PUMPSHAFTPOWER_H
13 #define AMO_LIBRARY_PUMPSHAFTPOWER_H
14 
15 #include <results/InputData.h>
16 
17 class PumpShaftPower {
18 public:
24  struct Output {
25  Output(const double pumpShaftPower, const double driveEfficiency)
26  : pumpShaftPower(pumpShaftPower), driveEfficiency(driveEfficiency)
27  {}
28 
29  const double pumpShaftPower, driveEfficiency;
30  };
31 
38  double motorShaftPower,
39  Motor::Drive drive,
40  double specifiedEfficiency
41  ) :
42  motorShaftPower(motorShaftPower),
43  drive(drive),
44  specifiedEfficiency(specifiedEfficiency)
45  {}
46 
51  Output calculate();
52 
57  double getMotorShaftPower() const {
58  return motorShaftPower;
59  }
60 
65  void setMotorShaftPower(double motorShaftPower) {
66  this->motorShaftPower = motorShaftPower;
67  }
68 
73  Motor::Drive getDrive() const {
74  return drive;
75  }
76 
81  void setDrive(Motor::Drive drive) {
82  this->drive = drive;
83  }
84 
89  double getSpecifiedEfficiency() const {
90  return specifiedEfficiency;
91  }
92 
97  void setSpecifiedEfficiency(double specifiedEfficiency) {
98  this->specifiedEfficiency = specifiedEfficiency;
99  }
100 
101 private:
102  double motorShaftPower;
103  Motor::Drive drive;
104  double specifiedEfficiency;
105 };
106 
107 #endif //AMO_LIBRARY_PUMPSHAFTPOWER_H
void setMotorShaftPower(double motorShaftPower)
void setSpecifiedEfficiency(double specifiedEfficiency)
PumpShaftPower(double motorShaftPower, Motor::Drive drive, double specifiedEfficiency)
Output calculate()
double getMotorShaftPower() const
Header file for PumpShaftPower class.
void setDrive(Motor::Drive drive)
double getSpecifiedEfficiency() const
Motor::Drive getDrive() const