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
compressed_air_reduction.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "compressedAir/compressed_air_utils.h"
6
27
29
37 FlowMeter = 0,
38 Bag = 1,
39 Pressure = 2,
40 Other = 3
41};
42
52enum class UtilityType {
53 CompressedAir = 0,
54 Electricity = 1
55};
56
67 double meter_reading = 0.0;
68};
69
80 double bag_fill_time = 0.0;
81 double bag_volume = 0.0;
82};
83
96 int nozzle_type = 0;
98 double supply_pressure = 0.0;
99};
100
109 double consumption = 0.0;
110};
111
133
143 double energy_use = 0.0;
144 double energy_cost = 0.0;
145 double flow_rate = 0.0;
147 double consumption = 0.0;
148};
149
164CompressedAirReductionOutput compressedAirReduction(const std::vector<CompressedAirReductionInput>& input_vec);
165
180CompressedAirReductionOutput flowMeterReduction(const FlowMeterMethodData& data, int hours_per_year, int units);
181
196CompressedAirReductionOutput bagMethodReduction(const BagMethodData& data, int hours_per_year, int units);
197
214
226
227} // namespace compressed_air_reduction
CompressedAirReductionOutput otherMethodReduction(const OtherMethodData &data)
Returns a partial result with consumption set from a directly supplied value.
CompressedAirReductionOutput compressedAirReduction(const std::vector< CompressedAirReductionInput > &input_vec)
Calculates total annual compressed air consumption, energy use, and cost for a collection of measures...
CompressedAirReductionOutput pressureMethodReduction(const PressureMethodData &data, int hours_per_year)
Calculates annual compressed air consumption and flow rate using the orifice/pressure method.
CompressedAirReductionOutput bagMethodReduction(const BagMethodData &data, int hours_per_year, int units)
Calculates annual compressed air consumption and flow rate using the bag method.
CompressedAirReductionOutput flowMeterReduction(const FlowMeterMethodData &data, int hours_per_year, int units)
Calculates annual compressed air consumption and flow rate using the flow meter method.
Compressed air reduction calculations for treasure hunt measures.
@ Other
Other method — uses a directly supplied annual consumption value.
@ FlowMeter
Flow meter method — reads flow rate directly from an installed flow meter.
@ Pressure
Orifice/pressure method — calculates flow rate from nozzle type and supply pressure.
@ Bag
Bag method — estimates flow rate by timing how long it takes to fill a known-volume bag.
@ Electricity
Electricity utility — cost based on compressor electricity draw .
@ CompressedAir
Compressed air utility — cost based on air consumption .
Input data for the bag measurement method.
double bag_fill_time
Time to fill the bag with compressed air .
double bag_volume
Internal volume of the bag .
Input data for a single compressed air reduction measure.
MeasurementMethod measurement_method
Measurement method to apply.
UtilityType utility_type
Utility type for cost calculation.
PressureMethodData pressure_method_data
Data for the orifice/pressure method.
FlowMeterMethodData flow_meter_method_data
Data for the flow meter method.
CompressorElectricityData compressor_electricity_data
Data for the electricity utility calculation.
OtherMethodData other_method_data
Data for the other method.
int units
Quantity multiplier (not applied to pressure method)
Output data for a compressed air reduction calculation.
double single_nozzle_flow_rate
Flow rate per individual nozzle (pressure method only) .
Input data for the flow meter measurement method.
double meter_reading
Instantaneous flow rate from the installed meter .
Input data for the other (direct consumption) measurement method.
double consumption
Annual compressed air consumption .
Input data for the orifice/pressure measurement method.
int nozzle_type
Nozzle type index (0–12) used to select lookup table coefficients.
int number_of_nozzles
Number of nozzles in the system.
double supply_pressure
Compressed air supply pressure .
Compressor electricity parameters used when the electricity utility type is selected.