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
MoverShaftPower.h
1
12#ifndef TOOLS_SUITE_MOVERSHAFTPOWER_H
13#define TOOLS_SUITE_MOVERSHAFTPOWER_H
14
15#include "motorDriven/motor/MotorData.h"
16
18 public:
24 struct Output {
25 Output(const double moverShaftPower, const double driveEfficiency)
26 : moverShaftPower(moverShaftPower), driveEfficiency(driveEfficiency) {}
27
28 const double moverShaftPower, driveEfficiency;
29 };
30
36 MoverShaftPower(double motorShaftPower, Motor::Drive drive, double specifiedEfficiency)
37 : motorShaftPower(motorShaftPower), drive(drive), specifiedEfficiency(specifiedEfficiency) {}
38
44
49 double getMotorShaftPower() const { return motorShaftPower; }
50
55 void setMotorShaftPower(double motorShaftPower) { this->motorShaftPower = motorShaftPower; }
56
61 Motor::Drive getDrive() const { return drive; }
62
67 void setDrive(Motor::Drive drive) { this->drive = drive; }
68
73 double getSpecifiedEfficiency() const { return specifiedEfficiency; }
74
79 void setSpecifiedEfficiency(double specifiedEfficiency) { this->specifiedEfficiency = specifiedEfficiency; }
80
81 private:
82 double motorShaftPower;
83 Motor::Drive drive;
84 double specifiedEfficiency;
85};
86
87#endif
Header file for MoverShaftPower class.
void setSpecifiedEfficiency(double specifiedEfficiency)
MoverShaftPower(double motorShaftPower, Motor::Drive drive, double specifiedEfficiency)
void setDrive(Motor::Drive drive)
Motor::Drive getDrive() const
double getSpecifiedEfficiency() const
Output calculate()
void setMotorShaftPower(double motorShaftPower)
double getMotorShaftPower() const