MEASUR-Tools-Suite v1.2.4
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
compressor.h
Go to the documentation of this file.
1#pragma once
2
12#include <vector>
13
20
25enum class CompressorType {
26 Centrifugal = 0,
27 Screw = 1,
28 Reciprocating = 2
29};
30
36 LoadUnload = 0,
38 BlowOff = 2,
40 StartStop = 4,
43 Vfd = 7
44};
45
50enum class CompressorStage {
51 Single = 0,
52 Two = 1,
53 Multiple = 2
54};
55
61 Injected = 0,
62 Free = 1,
63 None = 2
64};
65
71 PowerFraction = 0,
73 MeasuredPower = 2,
75 Electrical = 4
76};
77
83 double powerKw = 0.0;
84 double airflowAcfm = 0.0;
85 double powerFraction = 0.0;
86 double airflowFraction = 0.0;
87};
88
94 double powerKw = 0.0;
95 double airflowAcfm = 0.0;
96 double powerFraction = 0.0;
97 double airflowFraction = 0.0;
98 double blowOffAirflowAcfm = 0.0;
99 double blowOffFraction = 0.0;
100};
101
107 public:
108 double adjustedFullLoadPowerKw() const { return full_load_power_adjusted_; }
109 double adjustedFullLoadAirflowAcfm() const { return full_load_airflow_adjusted_; }
110 double adjustedMaxPowerKw() const { return max_power_adjusted_; }
111 double adjustedMaxAirflowAcfm() const { return max_airflow_adjusted_; }
112
113 protected:
114 CompressorModelBase(double full_load_power, double full_load_airflow)
115 : full_load_power_(full_load_power), full_load_airflow_(full_load_airflow),
116 full_load_airflow_raw_(full_load_airflow), full_load_power_raw_(full_load_power),
117 full_load_power_adjusted_(full_load_power), full_load_airflow_adjusted_(full_load_airflow),
118 max_airflow_adjusted_(0.0), max_power_adjusted_(0.0) {}
119
120 static double roundDouble(double value);
121
122 void applyPressureInletCorrection(CompressorType compressor_type, double capacity, double full_load_bhp,
123 double poly_exponent, double rated_discharge_pressure,
124 double rated_inlet_pressure, double efficiency, double full_load_pressure,
125 double max_pressure, double inlet_pressure, bool pressure_adjustment,
126 double atmospheric_pressure);
127
128 double full_load_power_;
129 double full_load_airflow_;
130 const double full_load_airflow_raw_;
131 const double full_load_power_raw_;
132
133 double full_load_power_adjusted_;
134 double full_load_airflow_adjusted_;
135 double max_airflow_adjusted_;
136 double max_power_adjusted_;
137
138 private:
139 void applyPressureInletCorrection(double& capacity_adjusted, double& power_adjusted, CompressorType compressor_type,
140 double capacity, double full_load_bhp, double poly_exponent,
141 double rated_discharge_pressure, double rated_inlet_pressure, double efficiency,
142 double discharge_pressure, double inlet_pressure, bool pressure_adjustment,
143 double atmospheric_pressure);
144
145 static double pressureRatioCorrection(double poly_exponent, double rated_pressure_ratio,
146 double operating_pressure, double pressure_ratio_base);
147};
148
149} // namespace compressed_air::assessment
Base utilities shared by compressor assessment control models.
Definition compressor.h:106
Compressor assessment performance models and supporting calculations.
CompressorLubricant
Compressor lubricant configuration.
Definition compressor.h:60
@ Injected
Lubricant-injected compressor.
CompressorControl
Compressor control strategy.
Definition compressor.h:35
@ VariableDisplacementUnload
Variable displacement with unloading.
@ ModulationWithoutUnload
Modulation without unloading.
@ ModulationUnload
Modulation with unloading.
@ Vfd
Variable frequency drive control.
CompressorStage
Compressor stage arrangement.
Definition compressor.h:50
@ Multiple
Multiple-stage compressor.
CompressorType
Compressor mechanical type.
Definition compressor.h:25
@ Reciprocating
Reciprocating compressor.
CompressorInputBasis
Measurement basis used to calculate performance.
Definition compressor.h:70
@ MeasuredCapacity
Input is measured airflow .
@ Electrical
Input is voltage, current, and power factor.
@ CapacityFraction
Input is fraction of full-load airflow.
@ MeasuredPower
Input is measured package power .
@ PowerFraction
Input is fraction of full-load power.
Compressor model result for blow-off controls.
Definition compressor.h:93
double blowOffFraction
Calculated fraction of full-load airflow blown off .
Definition compressor.h:99
double airflowAcfm
Calculated useful compressor airflow .
Definition compressor.h:95
double blowOffAirflowAcfm
Calculated blow-off airflow .
Definition compressor.h:98
double powerKw
Calculated compressor package power .
Definition compressor.h:94
double airflowFraction
Calculated fraction of full-load useful airflow .
Definition compressor.h:97
double powerFraction
Calculated fraction of full-load power .
Definition compressor.h:96
double airflowAcfm
Calculated compressor airflow .
Definition compressor.h:84
double powerFraction
Calculated fraction of full-load power .
Definition compressor.h:85
double airflowFraction
Calculated fraction of full-load airflow .
Definition compressor.h:86
double powerKw
Calculated compressor package power .
Definition compressor.h:83