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
PumpEfficiency.h
1
9#ifndef TOOLS_SUITE_PUMPEFFICIENCY_H
10#define TOOLS_SUITE_PUMPEFFICIENCY_H
11
13
15 public:
16 struct Output {
21 Output(const double average, const double max) : average(average), max(max) {}
22
23 const double average, max;
24 };
35 PumpEfficiency(Pump::Style style, double pumpEfficiency, double rpm, double kinematicViscosity, double stageCount,
36 double flowRate, double head)
37 : style(style), pumpEfficiency(pumpEfficiency), rpm(rpm), kinematicViscosity(kinematicViscosity),
38 stageCount(stageCount), flowRate(flowRate), head(head) {};
39
44
45 private:
46 Pump::Style style;
47 double pumpEfficiency;
48 double rpm;
49 double kinematicViscosity;
50 double stageCount;
51 double flowRate;
52 double head;
53};
54
55#endif // TOOLS_SUITE_PUMPEFFICIENCY_H
Function prototypes for the Pump result fields.
Output calculate()
PumpEfficiency(Pump::Style style, double pumpEfficiency, double rpm, double kinematicViscosity, double stageCount, double flowRate, double head)
Output(const double average, const double max)