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
MoverShaftPower Class Reference

Header file for MoverShaftPower class. More...

#include <MoverShaftPower.h>

Classes

struct  Output
 

Public Member Functions

 MoverShaftPower (double motorShaftPower, Motor::Drive drive, double specifiedEfficiency)
 
Output calculate ()
 
double getMotorShaftPower () const
 
void setMotorShaftPower (double motorShaftPower)
 
Motor::Drive getDrive () const
 
void setDrive (Motor::Drive drive)
 
double getSpecifiedEfficiency () const
 
void setSpecifiedEfficiency (double specifiedEfficiency)
 

Private Attributes

double motorShaftPower
 
Motor::Drive drive
 
double specifiedEfficiency
 

Detailed Description

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

Author
Gina Accawi (accawigk)
Allie Ledbetter (Aeledbetter)
Bug:
No known bugs.

Definition at line 17 of file MoverShaftPower.h.

Constructor & Destructor Documentation

◆ MoverShaftPower()

MoverShaftPower::MoverShaftPower ( double  motorShaftPower,
Motor::Drive  drive,
double  specifiedEfficiency 
)
inline

Constructor

Parameters
motorShaftPowerdouble, motor shaft power as defined in hp
driveMotor::Drive, type of drive the pump uses from either direct or belt drive.

Definition at line 36 of file MoverShaftPower.h.

Member Function Documentation

◆ calculate()

Output MoverShaftPower::calculate ( )

Calculates the pump shaft power

Returns
double, pump shaft power in hp

◆ getDrive()

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

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

Returns
Pump:Drive, type of drive

Definition at line 61 of file MoverShaftPower.h.

◆ getMotorShaftPower()

double MoverShaftPower::getMotorShaftPower ( ) const
inline

Gets the motor shaft power

Returns
double, motor shaft power in hp

Definition at line 49 of file MoverShaftPower.h.

◆ getSpecifiedEfficiency()

double MoverShaftPower::getSpecifiedEfficiency ( ) const
inline

Gets the specified efficiency

Returns
double, specifiedEfficiency

Definition at line 73 of file MoverShaftPower.h.

◆ setDrive()

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

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

Parameters
driveMotor:Drive, type of drive

Definition at line 67 of file MoverShaftPower.h.

◆ setMotorShaftPower()

void MoverShaftPower::setMotorShaftPower ( double  motorShaftPower)
inline

Sets the motor shaft power

Parameters
motorShaftPowerdouble, motor shaft power in hp

Definition at line 55 of file MoverShaftPower.h.

◆ setSpecifiedEfficiency()

void MoverShaftPower::setSpecifiedEfficiency ( double  specifiedEfficiency)
inline

Sets the specified efficiency

Parameters
specifiedEfficiencydouble

Definition at line 79 of file MoverShaftPower.h.

Member Data Documentation

◆ drive

Motor::Drive MoverShaftPower::drive
private

Definition at line 83 of file MoverShaftPower.h.

◆ motorShaftPower

double MoverShaftPower::motorShaftPower
private

Definition at line 82 of file MoverShaftPower.h.

◆ specifiedEfficiency

double MoverShaftPower::specifiedEfficiency
private

Definition at line 84 of file MoverShaftPower.h.


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