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
AuxiliaryPower.h
Go to the documentation of this file.
1 
12 #ifndef AMO_TOOLS_SUITE_AUXILIARYPOWER_H
13 #define AMO_TOOLS_SUITE_AUXILIARYPOWER_H
14 
15 #include <cmath>
16 
21 class AuxiliaryPower {
22 public:
33  AuxiliaryPower(const double motorPhase, const double supplyVoltage, const double avgCurrent,
34  const double powerFactor, const double operatingTime) :
35  motorPhase(motorPhase),
36  supplyVoltage(supplyVoltage),
37  avgCurrent(avgCurrent),
38  powerFactor(powerFactor),
39  operatingTime(operatingTime / 100.0)
40  {}
41 
47  double getPowerUsed() const;
48 
49 
50 private:
51  const double motorPhase, supplyVoltage, avgCurrent, powerFactor, operatingTime;
52 };
53 
54 #endif //AMO_TOOLS_SUITE_AUXILIARYPOWER_H
double getPowerUsed() const
AuxiliaryPower(const double motorPhase, const double supplyVoltage, const double avgCurrent, const double powerFactor, const double operatingTime)