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
OptimalMotorShaftPower.h
1
13#ifndef TOOLS_SUITE_OPTIMALMOTORSHAFTPOWER_H
14#define TOOLS_SUITE_OPTIMALMOTORSHAFTPOWER_H
15
16#include "MotorData.h"
17
19 public:
20 struct Output {
21 Output(const double motorShaftPower, const double driveEfficiency)
22 : motorShaftPower(motorShaftPower), driveEfficiency(driveEfficiency) {}
23
24 const double motorShaftPower, driveEfficiency;
25 };
26
32 OptimalMotorShaftPower(double pumpShaftPower, Motor::Drive drive, double specifiedEfficiency)
33 : pumpShaftPower(pumpShaftPower), drive(drive), specifiedEfficiency(specifiedEfficiency) {}
34
40
45 double getPumpShaftPower() const { return pumpShaftPower; }
46
51 void setPumpShaftPower(double pumpShaftPower) { this->pumpShaftPower = pumpShaftPower; }
52
57 Motor::Drive getDrive() const { return drive; }
58
63 void setDrive(Motor::Drive drive) { this->drive = drive; }
64
69 double getSpecifiedEfficiency() const { return specifiedEfficiency; }
70
75 void setSpecifiedEfficiency(double specifiedEfficiency) { this->specifiedEfficiency = specifiedEfficiency; }
76
77 private:
78 double pumpShaftPower;
79 Motor::Drive drive;
80 // double motorShaftPower;
81 // double driveEfficiency;
82 double specifiedEfficiency;
83};
84
85#endif // TOOLS_SUITE_OPTIMALMOTORSHAFTPOWER_H
Header file for OptimalMotorShaftPower class.
Motor::Drive getDrive() const
void setDrive(Motor::Drive drive)
void setSpecifiedEfficiency(double specifiedEfficiency)
void setPumpShaftPower(double pumpShaftPower)
OptimalMotorShaftPower(double pumpShaftPower, Motor::Drive drive, double specifiedEfficiency)