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#pragma once
2
15#include "MotorData.h"
16
18 public:
19 struct Output {
20 Output(const double motorShaftPower, const double driveEfficiency)
21 : motorShaftPower(motorShaftPower), driveEfficiency(driveEfficiency) {}
22
23 const double motorShaftPower, driveEfficiency;
24 };
25
31 OptimalMotorShaftPower(double pumpShaftPower, Motor::Drive drive, double specifiedEfficiency)
32 : pumpShaftPower(pumpShaftPower), drive(drive), specifiedEfficiency(specifiedEfficiency) {}
33
39
44 double getPumpShaftPower() const { return pumpShaftPower; }
45
50 void setPumpShaftPower(double pumpShaftPower) { this->pumpShaftPower = pumpShaftPower; }
51
56 Motor::Drive getDrive() const { return drive; }
57
62 void setDrive(Motor::Drive drive) { this->drive = drive; }
63
68 double getSpecifiedEfficiency() const { return specifiedEfficiency; }
69
74 void setSpecifiedEfficiency(double specifiedEfficiency) { this->specifiedEfficiency = specifiedEfficiency; }
75
76 private:
77 double pumpShaftPower;
78 Motor::Drive drive;
79 // double motorShaftPower;
80 // double driveEfficiency;
81 double specifiedEfficiency;
82};
83
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)