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
steam_reduction.h
Go to the documentation of this file.
1#pragma once
2
10#include <vector>
11
12#include "steamModeler/SteamProperties.h"
13
23namespace steam_reduction {
24
32 kFlowMeter = 0,
33 kAirMassFlow = 1,
34 kWaterMassFlow = 2,
35 kOffsheet = 3
36};
37
44enum class UtilityType {
45 kSteam = 0,
46 kNaturalGas = 1,
47 kOther = 2
48};
49
59 double flow_rate = 0.0;
60};
61
70 double flow_rate = 0.0;
71};
72
81 double area_of_duct = 0.0;
82 double air_velocity = 0.0;
83};
84
102
112 double consumption = 0.0;
113};
114
142
151 double steam_use = 0.0;
152 double energy_use = 0.0;
153 double energy_cost = 0.0;
154};
155
169SteamReductionOutput steamReduction(const std::vector<SteamReductionInput>& input_vec);
170
188 double system_efficiency, int units, double boiler_efficiency,
189 double change_enthalpy);
190
208 double system_efficiency, int units, double boiler_efficiency,
209 double change_enthalpy);
210
228 double system_efficiency, int units, double boiler_efficiency,
229 double change_enthalpy);
230
244SteamReductionOutput offsheetReduction(const OffsheetMethodData& data, double boiler_efficiency,
245 double change_enthalpy);
246
261double calculateChangeEnthalpy(double pressure,
262 SteamProperties::ThermodynamicQuantity steam_variable_option,
263 double steam_variable, double feed_water_temperature);
264
265} // namespace steam_reduction
ThermodynamicQuantity
enum class for ThermodynamicQuantity
SteamReductionOutput offsheetReduction(const OffsheetMethodData &data, double boiler_efficiency, double change_enthalpy)
Calculates steam use and energy use using the offsheet (direct consumption) method.
SteamReductionOutput waterMassFlowReduction(const MassFlowMethodData &data, int hours_per_year, double system_efficiency, int units, double boiler_efficiency, double change_enthalpy)
Calculates steam use and energy use using the water mass flow method.
SteamReductionOutput flowMeterReduction(const FlowMeterMethodData &data, int hours_per_year, double system_efficiency, int units, double boiler_efficiency, double change_enthalpy)
Calculates steam use and energy use using the flow meter method.
double calculateChangeEnthalpy(double pressure, SteamProperties::ThermodynamicQuantity steam_variable_option, double steam_variable, double feed_water_temperature)
Calculates the enthalpy difference between steam at the given conditions and feedwater.
SteamReductionOutput airMassFlowReduction(const MassFlowMethodData &data, int hours_per_year, double system_efficiency, int units, double boiler_efficiency, double change_enthalpy)
Calculates steam use and energy use using the air mass flow method.
SteamReductionOutput steamReduction(const std::vector< SteamReductionInput > &input_vec)
Calculates total annual steam use, energy use, and energy cost for a collection of steam reduction me...
Steam reduction calculations for treasure hunt measures.
@ kOffsheet
Offsheet method — uses a directly supplied energy consumption value.
@ kAirMassFlow
Air mass flow method — derives steam use from air flow and temperature rise.
@ kWaterMassFlow
Water mass flow method — derives steam use from water flow and temperature rise.
@ kFlowMeter
Flow meter method — uses a direct steam or water flow meter reading.
@ kOther
Other utility — energy cost is based on energy use .
@ kNaturalGas
Natural gas utility — energy cost is based on energy use .
@ kSteam
Steam utility — energy cost is based on steam use .
Input data for the flow meter measurement method.
double flow_rate
Flow rate (water , steam )
Input data for field-measured mass flow.
double area_of_duct
Cross-sectional area of the duct .
double air_velocity
Measured air velocity in the duct .
Input data for the air or water mass flow measurement method.
double outlet_temperature
Outlet temperature .
MassFlowNameplateData mass_flow_nameplate_data
Nameplate flow rate data.
MassFlowMeasuredData mass_flow_measured_data
Field-measured duct area and air velocity.
double inlet_temperature
Inlet temperature .
bool is_nameplate
True to use nameplate data; false to use measured data.
Input data for nameplate-based mass flow measurement.
double flow_rate
Nameplate flow rate (water , steam )
Input data for the offsheet (direct consumption) measurement method.
double consumption
Total annual energy consumption (used directly as annual energy use) .
Input data for a single steam reduction measure.
SteamProperties::ThermodynamicQuantity steam_variable_option
Thermodynamic quantity type for steam property lookup.
double steam_variable
Steam thermodynamic variable value (temperature , enthalpy , entropy , or quality \unitless)
UtilityType utility_type
Utility type for energy cost calculation.
FlowMeterMethodData flow_meter_method_data
Data for the flow meter method.
double utility_cost
Utility cost rate ( for steam, for gas/other)
double boiler_efficiency
Boiler efficiency .
int hours_per_year
Annual operating hours .
double system_efficiency
System efficiency .
SteamMeasurementMethod measurement_method
Measurement method to apply.
OffsheetMethodData offsheet_method_data
Data for the offsheet method.
MassFlowMethodData air_mass_flow_method_data
Data for the air mass flow method.
int units
Unit conversion factor .
double feed_water_temperature
Feedwater temperature .
MassFlowMethodData water_mass_flow_method_data
Data for the water mass flow method.
Output data for a steam reduction calculation.
double energy_cost
Annual energy cost .
double energy_use
Annual energy use .