GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 20.0% 1 / 0 / 5
Functions: 20.0% 1 / 0 / 5
Branches: -% 0 / 0 / 0

src/model/EvaporativeFluidCoolerTwoSpeed.hpp
Line Branch Exec Source
1 /***********************************************************************************************************************
2 * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC.
3 * See also https://openstudio.net/license
4 ***********************************************************************************************************************/
5
6 #ifndef MODEL_EVAPORATIVEFLUIDCOOLERTWOSPEED_HPP
7 #define MODEL_EVAPORATIVEFLUIDCOOLERTWOSPEED_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Schedule;
17 // class WaterStorageTank;
18
19 namespace detail {
20
21 class EvaporativeFluidCoolerTwoSpeed_Impl;
22
23 } // namespace detail
24
25 /** EvaporativeFluidCoolerTwoSpeed is a StraightComponent that wraps the OpenStudio IDD object 'OS:EvaporativeFluidCooler:TwoSpeed'. */
26 class MODEL_API EvaporativeFluidCoolerTwoSpeed : public StraightComponent
27 {
28 public:
29 /** @name Constructors and Destructors */
30 //@{
31
32 explicit EvaporativeFluidCoolerTwoSpeed(const Model& model);
33
34 3 virtual ~EvaporativeFluidCoolerTwoSpeed() override = default;
35 // Default the copy and move operators because the virtual dtor is explicit
36 ✗ EvaporativeFluidCoolerTwoSpeed(const EvaporativeFluidCoolerTwoSpeed& other) = default;
37 ✗ EvaporativeFluidCoolerTwoSpeed(EvaporativeFluidCoolerTwoSpeed&& other) = default;
38 ✗ EvaporativeFluidCoolerTwoSpeed& operator=(const EvaporativeFluidCoolerTwoSpeed&) = default;
39 ✗ EvaporativeFluidCoolerTwoSpeed& operator=(EvaporativeFluidCoolerTwoSpeed&&) = default;
40
41 //@}
42
43 static IddObjectType iddObjectType();
44
45 static std::vector<std::string> performanceInputMethodValues();
46
47 static std::vector<std::string> evaporationLossModeValues();
48
49 static std::vector<std::string> blowdownCalculationModeValues();
50
51 /** @name Getters */
52 //@{
53
54 boost::optional<double> highFanSpeedAirFlowRate() const;
55
56 bool isHighFanSpeedAirFlowRateAutosized() const;
57
58 boost::optional<double> highFanSpeedFanPower() const;
59
60 bool isHighFanSpeedFanPowerAutosized() const;
61
62 boost::optional<double> lowFanSpeedAirFlowRate() const;
63
64 bool isLowFanSpeedAirFlowRateAutosized() const;
65
66 double lowFanSpeedAirFlowRateSizingFactor() const;
67
68 boost::optional<double> lowFanSpeedFanPower() const;
69
70 bool isLowFanSpeedFanPowerAutosized() const;
71
72 double lowFanSpeedFanPowerSizingFactor() const;
73
74 double designSprayWaterFlowRate() const;
75
76 std::string performanceInputMethod() const;
77
78 boost::optional<std::string> outdoorAirInletNodeName() const;
79
80 double heatRejectionCapacityandNominalCapacitySizingRatio() const;
81
82 boost::optional<double> highSpeedStandardDesignCapacity() const;
83
84 boost::optional<double> lowSpeedStandardDesignCapacity() const;
85
86 bool isLowSpeedStandardDesignCapacityAutosized() const;
87
88 double lowSpeedStandardCapacitySizingFactor() const;
89
90 boost::optional<double> highFanSpeedUfactorTimesAreaValue() const;
91
92 bool isHighFanSpeedUfactorTimesAreaValueAutosized() const;
93
94 boost::optional<double> lowFanSpeedUfactorTimesAreaValue() const;
95
96 bool isLowFanSpeedUfactorTimesAreaValueAutosized() const;
97
98 double lowFanSpeedUFactorTimesAreaSizingFactor() const;
99
100 boost::optional<double> designWaterFlowRate() const;
101
102 bool isDesignWaterFlowRateAutosized() const;
103
104 boost::optional<double> highSpeedUserSpecifiedDesignCapacity() const;
105
106 boost::optional<double> lowSpeedUserSpecifiedDesignCapacity() const;
107
108 bool isLowSpeedUserSpecifiedDesignCapacityAutosized() const;
109
110 double lowSpeedUserSpecifiedDesignCapacitySizingFactor() const;
111
112 boost::optional<double> designEnteringWaterTemperature() const;
113
114 bool isDesignEnteringWaterTemperatureAutosized() const;
115
116 double designEnteringAirTemperature() const;
117
118 double designEnteringAirWetbulbTemperature() const;
119
120 double highSpeedSizingFactor() const;
121
122 std::string evaporationLossMode() const;
123
124 boost::optional<double> evaporationLossFactor() const;
125
126 double driftLossPercent() const;
127
128 std::string blowdownCalculationMode() const;
129
130 double blowdownConcentrationRatio() const;
131
132 boost::optional<Schedule> blowdownMakeupWaterUsageSchedule() const;
133
134 // boost::optional<WaterStorageTank> supplyWaterStorageTank() const;
135
136 //@}
137 /** @name Setters */
138 //@{
139
140 bool setHighFanSpeedAirFlowRate(double highFanSpeedAirFlowRate);
141
142 void autosizeHighFanSpeedAirFlowRate();
143
144 bool setHighFanSpeedFanPower(double highFanSpeedFanPower);
145
146 void autosizeHighFanSpeedFanPower();
147
148 bool setLowFanSpeedAirFlowRate(double lowFanSpeedAirFlowRate);
149
150 void autosizeLowFanSpeedAirFlowRate();
151
152 bool setLowFanSpeedAirFlowRateSizingFactor(double lowFanSpeedAirFlowRateSizingFactor);
153
154 bool setLowFanSpeedFanPower(double lowFanSpeedFanPower);
155
156 void autosizeLowFanSpeedFanPower();
157
158 bool setLowFanSpeedFanPowerSizingFactor(double lowFanSpeedFanPowerSizingFactor);
159
160 bool setDesignSprayWaterFlowRate(double designSprayWaterFlowRate);
161
162 bool setPerformanceInputMethod(const std::string& performanceInputMethod);
163
164 bool setOutdoorAirInletNodeName(const std::string& outdoorAirInletNodeName);
165
166 void resetOutdoorAirInletNodeName();
167
168 bool setHeatRejectionCapacityandNominalCapacitySizingRatio(double heatRejectionCapacityandNominalCapacitySizingRatio);
169
170 bool setHighSpeedStandardDesignCapacity(double highSpeedStandardDesignCapacity);
171
172 void resetHighSpeedStandardDesignCapacity();
173
174 bool setLowSpeedStandardDesignCapacity(double lowSpeedStandardDesignCapacity);
175
176 void resetLowSpeedStandardDesignCapacity();
177
178 void autosizeLowSpeedStandardDesignCapacity();
179
180 bool setLowSpeedStandardCapacitySizingFactor(double lowSpeedStandardCapacitySizingFactor);
181
182 bool setHighFanSpeedUfactorTimesAreaValue(double highFanSpeedUfactorTimesAreaValue);
183
184 void resetHighFanSpeedUfactorTimesAreaValue();
185
186 void autosizeHighFanSpeedUfactorTimesAreaValue();
187
188 bool setLowFanSpeedUfactorTimesAreaValue(double lowFanSpeedUfactorTimesAreaValue);
189
190 void resetLowFanSpeedUfactorTimesAreaValue();
191
192 void autosizeLowFanSpeedUfactorTimesAreaValue();
193
194 bool setLowFanSpeedUFactorTimesAreaSizingFactor(double lowFanSpeedUFactorTimesAreaSizingFactor);
195
196 bool setDesignWaterFlowRate(double designWaterFlowRate);
197
198 void resetDesignWaterFlowRate();
199
200 void autosizeDesignWaterFlowRate();
201
202 bool setHighSpeedUserSpecifiedDesignCapacity(double highSpeedUserSpecifiedDesignCapacity);
203
204 void resetHighSpeedUserSpecifiedDesignCapacity();
205
206 bool setLowSpeedUserSpecifiedDesignCapacity(double lowSpeedUserSpecifiedDesignCapacity);
207
208 void resetLowSpeedUserSpecifiedDesignCapacity();
209
210 void autosizeLowSpeedUserSpecifiedDesignCapacity();
211
212 bool setLowSpeedUserSpecifiedDesignCapacitySizingFactor(double lowSpeedUserSpecifiedDesignCapacitySizingFactor);
213
214 bool setDesignEnteringWaterTemperature(double designEnteringWaterTemperature);
215
216 void autosizeDesignEnteringWaterTemperature();
217
218 bool setDesignEnteringAirTemperature(double designEnteringAirTemperature);
219
220 bool setDesignEnteringAirWetbulbTemperature(double designEnteringAirWetbulbTemperature);
221
222 bool setHighSpeedSizingFactor(double highSpeedSizingFactor);
223
224 bool setEvaporationLossMode(const std::string& evaporationLossMode);
225
226 bool setEvaporationLossFactor(double evaporationLossFactor);
227
228 void resetEvaporationLossFactor();
229
230 bool setDriftLossPercent(double driftLossPercent);
231
232 bool setBlowdownCalculationMode(const std::string& blowdownCalculationMode);
233
234 bool setBlowdownConcentrationRatio(double blowdownConcentrationRatio);
235
236 bool setBlowdownMakeupWaterUsageSchedule(Schedule& schedule);
237
238 void resetBlowdownMakeupWaterUsageSchedule();
239
240 // bool setSupplyWaterStorageTank(const WaterStorageTank& waterStorageTank);
241
242 // void resetSupplyWaterStorageTank();
243
244 //@}
245 /** @name Other */
246 //@{
247
248 boost::optional<double> autosizedHighFanSpeedAirFlowRate() const;
249
250 boost::optional<double> autosizedHighFanSpeedFanPower() const;
251
252 boost::optional<double> autosizedLowFanSpeedAirFlowRate() const;
253
254 boost::optional<double> autosizedLowFanSpeedFanPower() const;
255
256 boost::optional<double> autosizedLowSpeedStandardDesignCapacity() const;
257
258 boost::optional<double> autosizedHighFanSpeedUfactorTimesAreaValue() const;
259
260 boost::optional<double> autosizedLowFanSpeedUfactorTimesAreaValue() const;
261
262 boost::optional<double> autosizedDesignWaterFlowRate() const;
263
264 boost::optional<double> autosizedLowSpeedUserSpecifiedDesignCapacity() const;
265
266 boost::optional<double> autosizedDesignEnteringWaterTemperature() const;
267
268 //@}
269 protected:
270 /// @cond
271 using ImplType = detail::EvaporativeFluidCoolerTwoSpeed_Impl;
272
273 explicit EvaporativeFluidCoolerTwoSpeed(std::shared_ptr<detail::EvaporativeFluidCoolerTwoSpeed_Impl> impl);
274
275 friend class detail::EvaporativeFluidCoolerTwoSpeed_Impl;
276 friend class Model;
277 friend class IdfObject;
278 friend class openstudio::detail::IdfObject_Impl;
279 /// @endcond
280 private:
281 REGISTER_LOGGER("openstudio.model.EvaporativeFluidCoolerTwoSpeed");
282 };
283
284 /** \relates EvaporativeFluidCoolerTwoSpeed*/
285 using OptionalEvaporativeFluidCoolerTwoSpeed = boost::optional<EvaporativeFluidCoolerTwoSpeed>;
286
287 /** \relates EvaporativeFluidCoolerTwoSpeed*/
288 using EvaporativeFluidCoolerTwoSpeedVector = std::vector<EvaporativeFluidCoolerTwoSpeed>;
289
290 } // namespace model
291 } // namespace openstudio
292
293 #endif // MODEL_EVAPORATIVEFLUIDCOOLERTWOSPEED_HPP
294