AMO-Tools-Suite  v.0.9.0
Set of tools for calculating energy efficiency in industrial equipment
All Classes Namespaces Files Functions Variables Enumerations Friends Macros Pages
HeatLoss.h
Go to the documentation of this file.
1 
12 #include <iostream>
13 #include "SteamProperties.h"
14 #include "SteamSystemModelerTool.h"
15 
16 #ifndef AMO_TOOLS_SUITE_HEATLOSS_H
17 #define AMO_TOOLS_SUITE_HEATLOSS_H
18 
23 class HeatLoss {
24 public:
34  HeatLoss(double inletPressure, SteamProperties::ThermodynamicQuantity quantityType, double quantityValue,
35  double inletMassFlow, double percentHeatLoss);
36 
37  friend std::ostream &operator<<(std::ostream &stream, const HeatLoss &heatLoss);
38 
43  SteamSystemModelerTool::FluidProperties const & getInletProperties() const { return inletProperties; };
44 
49  SteamSystemModelerTool::FluidProperties const & getOutletProperties() const { return outletProperties; };
50 
55  double getHeatLoss() const { return heatLoss; }
56 
61  double getInletPressure() const { return inletPressure; };
62 
67  double getQuantityValue() const { return quantityValue; };
68 
73  double getInletMassFlow() const { return inletMassFlow; };
74 
79  double getPercentHeatLoss() const { return percentHeatLoss; };
80 
85  SteamProperties::ThermodynamicQuantity getQuantityType() const { return quantityType; };
86 
91  void setInletPressure(double inletPressure);
92 
97  void setQuantityValue(double quantityValue);
98 
103  void setInletMassFlow(double inletMassFlow);
104 
109  void setPercentHeatLoss(double percentHeatLoss);
110 
116 
117 private:
118  void calculateProperties();
119 
120  double inletPressure, quantityValue, inletMassFlow, percentHeatLoss;
122  double inletEnergyFlow, outletEnergyFlow;
124 
125  double heatLoss;
127 };
128 
129 #endif //AMO_TOOLS_SUITE_HEATLOSS_H
SteamSystemModelerTool::FluidProperties const & getInletProperties() const
Definition: HeatLoss.h:43
void setQuantityType(SteamProperties::ThermodynamicQuantity quantityType)
Definition: HeatLoss.cpp:72
void setQuantityValue(double quantityValue)
Definition: HeatLoss.cpp:57
SteamSystemModelerTool::FluidProperties const & getOutletProperties() const
Definition: HeatLoss.h:49
double getHeatLoss() const
Definition: HeatLoss.h:55
void setInletPressure(double inletPressure)
Definition: HeatLoss.cpp:52
double getQuantityValue() const
Definition: HeatLoss.h:67
SteamProperties::ThermodynamicQuantity getQuantityType() const
Definition: HeatLoss.h:85
double getInletPressure() const
Definition: HeatLoss.h:61
HeatLoss(double inletPressure, SteamProperties::ThermodynamicQuantity quantityType, double quantityValue, double inletMassFlow, double percentHeatLoss)
Definition: HeatLoss.cpp:12
void setPercentHeatLoss(double percentHeatLoss)
Definition: HeatLoss.cpp:67
double getPercentHeatLoss() const
Definition: HeatLoss.h:79
ThermodynamicQuantity
enum class for ThermodynamicQuantity
void setInletMassFlow(double inletMassFlow)
Definition: HeatLoss.cpp:62
double getInletMassFlow() const
Definition: HeatLoss.h:73