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
natural_gas_reduction.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
21namespace natural_gas_reduction {
22
32 double flow_rate = 0.0;
33};
34
44 double consumption = 0.0;
45};
46
56 double area_of_duct = 0.0;
57 double air_velocity = 0.0;
58};
59
69 double air_flow = 0.0;
70};
71
88
98 double water_flow = 0.0;
99 double inlet_temperature = 0.0;
100 double outlet_temperature = 0.0;
101 double system_efficiency = 1.0;
102};
103
111 FlowMeter = 0,
112 AirMassFlow = 1,
113 WaterMassFlow = 2,
114 Other = 3
115};
116
135
145 double energy_use = 0.0;
146 double energy_cost = 0.0;
147 double heat_flow = 0.0;
148 double total_flow = 0.0;
149};
150
163NaturalGasReductionOutput naturalGasReduction(const std::vector<NaturalGasReductionInput>& input_vec);
164
181 double fuel_cost, int units);
182
200 double fuel_cost, int units);
201
218 double fuel_cost, int units);
219
233
234} // namespace natural_gas_reduction
NaturalGasReductionOutput waterMassFlowMethodReduction(const WaterMassFlowData &data, int operating_hours, double fuel_cost, int units)
Calculates annual natural gas energy use and cost using the water mass flow method.
NaturalGasReductionOutput otherMethodReduction(const NaturalGasOtherMethodData &data, double fuel_cost)
Calculates annual natural gas energy use and cost using a directly supplied consumption value.
NaturalGasReductionOutput airMassFlowMethodReduction(const AirMassFlowData &data, int operating_hours, double fuel_cost, int units)
Calculates annual natural gas energy use and cost using the air mass flow method.
NaturalGasReductionOutput flowMeterMethodReduction(const FlowMeterMethodData &data, int operating_hours, double fuel_cost, int units)
Calculates annual natural gas energy use and cost using the flow meter method.
NaturalGasReductionOutput naturalGasReduction(const std::vector< NaturalGasReductionInput > &input_vec)
Calculates total annual natural gas energy use and cost for a collection of reduction measures.
Natural gas reduction calculations for treasure hunt measures.
@ AirMassFlow
Air mass flow method — uses heat transferred to an air stream.
@ Other
Other method — uses a directly supplied annual consumption value.
@ FlowMeter
Flow meter method — uses a direct gas flow rate measurement.
@ WaterMassFlow
Water mass flow method — uses heat transferred to a water stream.
Input data for the air mass flow measurement method.
double outlet_temperature
Outlet air temperature .
AirMassFlowNameplateData nameplate_data
Nameplate air flow data (used when is_nameplate is true)
bool is_nameplate
True if using nameplate data; false for measured data.
double inlet_temperature
Inlet air temperature .
AirMassFlowMeasuredData measured_data
Measured air duct data (used when is_nameplate is false)
Measured air duct data used to derive the air flow rate.
double air_velocity
Air velocity measured in the duct .
double area_of_duct
Cross-sectional area of the duct .
Nameplate air flow data used as the air flow rate.
Input data for the flow meter measurement method.
double flow_rate
Gas flow rate measured by the flow meter .
Input data for the other (direct consumption) measurement method.
double consumption
Annual natural gas consumption .
Input data for a single natural gas reduction measure.
AirMassFlowData air_mass_flow_data
Data for the air mass flow method.
WaterMassFlowData water_mass_flow_data
Data for the water mass flow method.
NaturalGasOtherMethodData other_method_data
Data for the other method.
NaturalGasMeasurementMethod measurement_method
Measurement method to apply.
FlowMeterMethodData flow_meter_method_data
Data for the flow meter method.
int units
Unit conversion multiplier applied to flow rates.
Output data for a natural gas reduction calculation.
double energy_cost
Annual natural gas energy cost .
double energy_use
Annual natural gas energy use .
Input data for the water mass flow measurement method.
double inlet_temperature
Inlet water temperature .
double outlet_temperature
Outlet water temperature .