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
atmosphere_heat_loss.h
Go to the documentation of this file.
1#pragma once
10#include <array>
11#include <string>
12#include <vector>
13
19namespace atmosphere_heat_loss {
20
28struct GasType {
29 std::string gas_description;
31};
32
39inline const std::array<GasType, 6> kGasTypes {{
40 {"Nitrogen", 0.0185},
41 {"Hydrogen", 0.0182},
42 {"Exothermic Gas", 0.0185},
43 {"Endothermic Gas", 0.0185},
44 {"Air", 0.0184},
45 {"Water Vapor", 0.0212},
46}};
47
55inline const std::vector<GasType>& gasTypes() {
56 static const std::vector<GasType> gas_types_vector(kGasTypes.begin(), kGasTypes.end());
57 return gas_types_vector;
58}
59
73double totalHeatLoss(double flow_rate, double specific_heat, double inlet_temperature, double outlet_temperature,
74 double correction_factor);
75
76} // namespace atmosphere_heat_loss
const std::array< GasType, 6 > kGasTypes
A collection of specific heat values for common atmospheric gases at a reference temperature of .
const std::vector< GasType > & gasTypes()
Returns the predefined specific heat values for common atmospheric gases at a reference temperature o...
double totalHeatLoss(double flow_rate, double specific_heat, double inlet_temperature, double outlet_temperature, double correction_factor)
Calculates the total heat loss from escaping atmospheric gas.
Calculates heat losses from escaping atmospheric gases in process heating equipment.
Represents a gas type and its associated specific heat at a reference temperature of .
std::string gas_description
Description of the gas type.
double specific_heat
Specific heat .