5#include "compressedAir/compressed_air_utils.h"
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 .
Output data for a compressed air reduction calculation.
double energy_use
Annual electrical energy use .
double consumption
Annual compressed air consumption .
double energy_cost
Annual energy cost .
double flow_rate
Total compressed air flow rate .
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.