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
water_reduction.h
Go to the documentation of this file.
1#pragma once
2#include <vector>
3
20namespace water_reduction {
21
31 double meter_reading = 0.0;
32};
33
44 double final_meter_reading = 0.0;
45 double initial_meter_reading = 0.0;
46 double elapsed_time = 0.0;
47};
48
58 double bucket_volume = 0.0;
59 double bucket_fill_time = 0.0;
60};
61
71 double consumption = 0.0;
72};
73
81 Metered = 0,
82 Volume = 1,
83 Bucket = 2,
84 Other = 3
85};
86
104
113 double water_use = 0.0;
114 double water_cost = 0.0;
115};
116
129WaterReductionOutput waterReduction(const std::vector<WaterReductionInput>& input_vec);
130
145WaterReductionOutput meteredFlowReduction(const MeteredFlowMethodData& data, int operating_hours, double water_cost);
146
162WaterReductionOutput volumeMeterReduction(const VolumeMeterMethodData& data, int operating_hours, double water_cost);
163
179WaterReductionOutput bucketReduction(const BucketMethodData& data, int operating_hours, double water_cost);
180
194
195} // namespace water_reduction
196
WaterReductionOutput volumeMeterReduction(const VolumeMeterMethodData &data, int operating_hours, double water_cost)
Calculates annual water use and cost using the volume meter method.
WaterReductionOutput otherReduction(const WaterOtherMethodData &data, double water_cost)
Calculates annual water use and cost using a directly supplied consumption value.
WaterReductionOutput waterReduction(const std::vector< WaterReductionInput > &input_vec)
Calculates total annual water use and cost for a collection of water reduction measures.
WaterReductionOutput meteredFlowReduction(const MeteredFlowMethodData &data, int operating_hours, double water_cost)
Calculates annual water use and cost using the metered flow method.
WaterReductionOutput bucketReduction(const BucketMethodData &data, int operating_hours, double water_cost)
Calculates annual water use and cost using the bucket measurement method.
Water reduction calculations for treasure hunt measures.
@ Metered
Metered flow method — uses an instantaneous flow meter reading.
@ Bucket
Bucket method — uses the time required to fill a container of known volume.
@ Other
Other method — uses a directly supplied annual consumption value.
@ Volume
Volume meter method — uses initial/final totalizing meter readings over a timed interval.
Input data for the bucket measurement method.
double bucket_fill_time
Time required to fill the bucket .
double bucket_volume
Volume of the bucket used for the measurement .
Input data for the metered flow measurement method.
double meter_reading
Instantaneous flow rate from the meter .
Input data for the volume meter measurement method.
double final_meter_reading
Final meter reading at end of measurement interval .
double initial_meter_reading
Initial meter reading at start of measurement interval .
double elapsed_time
Duration of the measurement interval .
Input data for the other (direct consumption) measurement method.
double consumption
Annual water consumption .
Input data for a single water reduction measure.
WaterOtherMethodData other_method_data
Data for the other method.
int operating_hours
Annual operating hours .
MeteredFlowMethodData metered_flow_method_data
Data for the metered flow method.
WaterReductionMeasurementMethod measurement_method
Measurement method to apply.
BucketMethodData bucket_method_data
Data for the bucket method.
VolumeMeterMethodData volume_meter_method_data
Data for the volume meter method.
Output data for a water reduction calculation.
double water_cost
Annual water cost .