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
LiquidCoolingLosses.h
Go to the documentation of this file.
1 
12 #ifndef AMO_SUITE_LIQUIDCOOLINGLOSSES_H
13 #define AMO_SUITE_LIQUIDCOOLINGLOSSES_H
14 
20 class LiquidCoolingLosses {
21 public:
32  LiquidCoolingLosses(double flowRate,
33  double density,
34  double initialTemperature,
35  double outletTemperature,
36  double specificHeat,
37  double correctionFactor)
38  : flowRate(flowRate),
39  density(density),
40  initialTemperature(initialTemperature),
41  outletTemperature(outletTemperature),
42  specificHeat(specificHeat),
43  correctionFactor(correctionFactor)
44  {
45  heatLoss = 0.0;
46  }
47 
48  LiquidCoolingLosses() = default;
49 
54  double getFlowRate() const {
55  return flowRate;
56  }
57 
62  void setFlowRate(double flowRate) {
63  this->flowRate = flowRate;
64  }
65 
70  double getDensity() const {
71  return density;
72  }
73 
78  void setDensity(double density) {
79  this->density = density;
80  }
81 
86  double getInitialTemperature() const {
87  return initialTemperature;
88  }
89 
94  void setInitialTemperature(double initialTemperature) {
95  this->initialTemperature = initialTemperature;
96  }
97 
102  double getOutletTemperature() const {
103  return outletTemperature;
104  }
105 
110  void setOutletTemperature(double outletTemperature) {
111  this->outletTemperature = outletTemperature;
112  }
113 
118  double getSpecificHeat() const {
119  return specificHeat;
120  }
121 
127  void setSpecificHeat(double specificHeat) {
128  this->specificHeat = specificHeat;
129  }
130 
135  double getHeatLoss();
136 
137 private:
138  // In values
139  double flowRate;
140  double density;
141  double initialTemperature;
142  double outletTemperature;
143  double specificHeat;
144  double correctionFactor;
145  // Out value
146  double heatLoss;
147 };
148 #endif //AMO_SUITE_LIQUIDCOOLINGLOSSES_H
void setInitialTemperature(double initialTemperature)
void setOutletTemperature(double outletTemperature)
double getInitialTemperature() const
void setSpecificHeat(double specificHeat)
LiquidCoolingLosses(double flowRate, double density, double initialTemperature, double outletTemperature, double specificHeat, double correctionFactor)
void setFlowRate(double flowRate)
double getDensity() const
double getOutletTemperature() const
double getSpecificHeat() const
void setDensity(double density)
double getFlowRate() const