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
Classes | Public Member Functions | Private Attributes | List of all members
OptimalMotorShaftPower Class Reference

Header file for OptimalMotorShaftPower class. More...

#include <OptimalMotorShaftPower.h>

Classes

struct  Output
 

Public Member Functions

 OptimalMotorShaftPower (double pumpShaftPower, Motor::Drive drive, double specifiedEfficiency)
 
Output calculate ()
 
double getPumpShaftPower () const
 
void setPumpShaftPower (double pumpShaftPower)
 
Motor::Drive getDrive () const
 
void setDrive (Motor::Drive drive)
 
double getSpecifiedEfficiency () const
 
void setSpecifiedEfficiency (double specifiedEfficiency)
 

Private Attributes

double pumpShaftPower
 
Motor::Drive drive
 
double specifiedEfficiency
 

Detailed Description

This contains the prototypes of OptimalMotorShaftPower calculator including getters and setters for the important fields.

Author
Subhankar Mishra (mishras)
Gina Accawi (accawigk)
Bug:
No known bugs.

Definition at line 18 of file OptimalMotorShaftPower.h.

Constructor & Destructor Documentation

◆ OptimalMotorShaftPower()

OptimalMotorShaftPower::OptimalMotorShaftPower ( double  pumpShaftPower,
Motor::Drive  drive,
double  specifiedEfficiency 
)
inline

Constructor

Parameters
pumpShaftPowerdouble, Pump shaft power as defined in hp
drivePump::Drive, Type of drive the pump uses from either direct or belt drive.

Definition at line 32 of file OptimalMotorShaftPower.h.

Member Function Documentation

◆ calculate()

Output OptimalMotorShaftPower::calculate ( )

Calculates the optimal motor shaft power

Returns
double, optimal motor shaft power in hp

◆ getDrive()

Motor::Drive OptimalMotorShaftPower::getDrive ( ) const
inline

Gets the type of drive the pump uses from either direct or belt drive

Returns
Motor::Drive, type of drive

Definition at line 57 of file OptimalMotorShaftPower.h.

◆ getPumpShaftPower()

double OptimalMotorShaftPower::getPumpShaftPower ( ) const
inline

Gets the pump shaft power

Returns
double, pump shaft power in hp

Definition at line 45 of file OptimalMotorShaftPower.h.

◆ getSpecifiedEfficiency()

double OptimalMotorShaftPower::getSpecifiedEfficiency ( ) const
inline

Gets the specified efficiency

Returns
double, specifiedEfficiency

Definition at line 69 of file OptimalMotorShaftPower.h.

◆ setDrive()

void OptimalMotorShaftPower::setDrive ( Motor::Drive  drive)
inline

Sets the type of drive the pump uses from either direct or belt drive

Parameters
driveMotor::Drive, type of drive

Definition at line 63 of file OptimalMotorShaftPower.h.

◆ setPumpShaftPower()

void OptimalMotorShaftPower::setPumpShaftPower ( double  pumpShaftPower)
inline

Sets the pump shaft power

Parameters
pumpShaftPowerdouble, pump shaft power in hp

Definition at line 51 of file OptimalMotorShaftPower.h.

◆ setSpecifiedEfficiency()

void OptimalMotorShaftPower::setSpecifiedEfficiency ( double  specifiedEfficiency)
inline

Sets the specified efficiency

Parameters
specifiedEfficiencydouble

Definition at line 75 of file OptimalMotorShaftPower.h.

Member Data Documentation

◆ drive

Motor::Drive OptimalMotorShaftPower::drive
private

Definition at line 79 of file OptimalMotorShaftPower.h.

◆ pumpShaftPower

double OptimalMotorShaftPower::pumpShaftPower
private

Definition at line 78 of file OptimalMotorShaftPower.h.

◆ specifiedEfficiency

double OptimalMotorShaftPower::specifiedEfficiency
private

Definition at line 82 of file OptimalMotorShaftPower.h.


The documentation for this class was generated from the following file: