MEASUR-Tools-Suite v1.0.11
The MEASUR Tools Suite is a collection of industrial efficiency calculations written in C++ and with bindings for compilation to WebAssembly.
Loading...
Searching...
No Matches
MotorPerformance.h
1
9#ifndef TOOLS_SUITE_MOTORPERFORMANCE_H
10#define TOOLS_SUITE_MOTORPERFORMANCE_H
11
12#include <array>
13#include <exception>
14#include <stdexcept>
15
16#include "MotorData.h"
17
19 public:
20 struct Output {
26 Output(const double current, const double efficiency, const double powerFactor)
27 : current(current), efficiency(efficiency), powerFactor(powerFactor) {}
28
29 const double current, efficiency, powerFactor;
30 };
42 MotorPerformance(Motor::LineFrequency lineFrequency, double motorRpm, Motor::EfficiencyClass efficiencyClass,
43 double motorRatedPower, double specifiedEfficiency, double loadFactor, double ratedVoltage,
44 double fullLoadAmps)
45 : lineFrequency(lineFrequency), motorRpm(motorRpm), efficiencyClass(efficiencyClass),
46 motorRatedPower(motorRatedPower), specifiedEfficiency(specifiedEfficiency), loadFactor(loadFactor),
47 ratedVoltage(ratedVoltage), fullLoadAmps(fullLoadAmps) {};
48
53
54 private:
55 Motor::LineFrequency lineFrequency;
56 double motorRpm;
57 Motor::EfficiencyClass efficiencyClass;
58 double motorRatedPower;
59 double specifiedEfficiency;
60 double loadFactor;
61 double ratedVoltage;
62 double fullLoadAmps;
63};
64
65#endif // TOOLS_SUITE_MOTORPERFORMANCE_H
MotorPerformance(Motor::LineFrequency lineFrequency, double motorRpm, Motor::EfficiencyClass efficiencyClass, double motorRatedPower, double specifiedEfficiency, double loadFactor, double ratedVoltage, double fullLoadAmps)
Output calculate()
Output(const double current, const double efficiency, const double powerFactor)