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
HeatLoss.h
Go to the documentation of this file.
1
12#include <iostream>
13
14#include "SteamProperties.h"
15#include "SteamSystemModelerTool.h"
16
17#ifndef TOOLS_SUITE_HEATLOSS_H
18 #define TOOLS_SUITE_HEATLOSS_H
19
24class HeatLoss {
25 public:
37 HeatLoss(double inletPressure, SteamProperties::ThermodynamicQuantity quantityType, double quantityValue,
38 double inletMassFlow, double percentHeatLoss);
39
40 friend std::ostream& operator<<(std::ostream& stream, const HeatLoss& heatLoss);
41
46 SteamSystemModelerTool::FluidProperties const& getInletProperties() const { return inletProperties; };
47
52 SteamSystemModelerTool::FluidProperties const& getOutletProperties() const { return outletProperties; };
53
58 double getHeatLoss() const { return heatLoss; }
59
64 double getInletPressure() const { return inletPressure; };
65
71 double getQuantityValue() const { return quantityValue; };
72
77 double getInletMassFlow() const { return inletMassFlow; };
78
83 double getPercentHeatLoss() const { return percentHeatLoss; };
84
91
96 void setInletPressure(double inletPressure);
97
103 void setQuantityValue(double quantityValue);
104
109 void setInletMassFlow(double inletMassFlow);
110
115 void setPercentHeatLoss(double percentHeatLoss);
116
123
124 private:
125 void calculateProperties();
126
127 double inletPressure, quantityValue, inletMassFlow, percentHeatLoss;
129 double inletEnergyFlow, outletEnergyFlow;
131
132 double heatLoss;
134};
135
136#endif // TOOLS_SUITE_HEATLOSS_H
double getInletPressure() const
Definition HeatLoss.h:64
HeatLoss(double inletPressure, SteamProperties::ThermodynamicQuantity quantityType, double quantityValue, double inletMassFlow, double percentHeatLoss)
void setPercentHeatLoss(double percentHeatLoss)
SteamSystemModelerTool::FluidProperties const & getInletProperties() const
Definition HeatLoss.h:46
void setQuantityType(SteamProperties::ThermodynamicQuantity quantityType)
double getQuantityValue() const
Definition HeatLoss.h:71
SteamSystemModelerTool::FluidProperties const & getOutletProperties() const
Definition HeatLoss.h:52
SteamProperties::ThermodynamicQuantity getQuantityType() const
Definition HeatLoss.h:90
void setInletPressure(double inletPressure)
void setInletMassFlow(double inletMassFlow)
double getPercentHeatLoss() const
Definition HeatLoss.h:83
double getHeatLoss() const
Definition HeatLoss.h:58
double getInletMassFlow() const
Definition HeatLoss.h:77
void setQuantityValue(double quantityValue)
ThermodynamicQuantity
enum class for ThermodynamicQuantity