GCC Code Coverage Report


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

src/model/CoolingTowerTwoSpeed_Impl.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_COOLINGTOWERTWOSPEED_IMPL_HPP
7 #define MODEL_COOLINGTOWERTWOSPEED_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Schedule;
17
18 namespace detail {
19
20 /** CoolingTowerTwoSpeed_Impl is a StraightComponent_Impl that is the implementation class for CoolingTowerTwoSpeed.*/
21 class MODEL_API CoolingTowerTwoSpeed_Impl : public StraightComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 CoolingTowerTwoSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 CoolingTowerTwoSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 CoolingTowerTwoSpeed_Impl(const CoolingTowerTwoSpeed_Impl& other, Model_Impl* model, bool keepHandle);
32
33 5 virtual ~CoolingTowerTwoSpeed_Impl() override = default;
34
35 //@}
36 /** @name Virtual Methods */
37 //@{
38
39 virtual const std::vector<std::string>& outputVariableNames() const override;
40
41 virtual IddObjectType iddObjectType() const override;
42
43 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
44
45 virtual unsigned inletPort() const override;
46
47 virtual unsigned outletPort() const override;
48
49 virtual bool addToNode(Node& node) override;
50
51 virtual void autosize() override;
52
53 virtual void applySizingValues() override;
54
55 virtual ComponentType componentType() const override;
56 virtual std::vector<FuelType> coolingFuelTypes() const override;
57 virtual std::vector<FuelType> heatingFuelTypes() const override;
58 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
59
60 //@}
61 /** @name Getters */
62 //@{
63
64 boost::optional<double> designWaterFlowRate() const;
65
66 bool isDesignWaterFlowRateAutosized() const;
67
68 boost::optional<double> highFanSpeedAirFlowRate() const;
69
70 bool isHighFanSpeedAirFlowRateAutosized() const;
71
72 boost::optional<double> highFanSpeedFanPower() const;
73
74 bool isHighFanSpeedFanPowerAutosized() const;
75
76 boost::optional<double> highFanSpeedUFactorTimesAreaValue() const;
77
78 bool isHighFanSpeedUFactorTimesAreaValueAutosized() const;
79
80 boost::optional<double> lowFanSpeedAirFlowRate() const;
81
82 bool isLowFanSpeedAirFlowRateAutosized() const;
83
84 double lowFanSpeedAirFlowRateSizingFactor() const;
85
86 bool isLowFanSpeedAirFlowRateSizingFactorDefaulted() const;
87
88 boost::optional<double> lowFanSpeedFanPower() const;
89
90 bool isLowFanSpeedFanPowerAutosized() const;
91
92 double lowFanSpeedFanPowerSizingFactor() const;
93
94 bool isLowFanSpeedFanPowerSizingFactorDefaulted() const;
95
96 boost::optional<double> lowFanSpeedUFactorTimesAreaValue() const;
97
98 bool isLowFanSpeedUFactorTimesAreaValueAutosized() const;
99
100 double lowFanSpeedUFactorTimesAreaSizingFactor() const;
101
102 bool isLowFanSpeedUFactorTimesAreaSizingFactorDefaulted() const;
103
104 boost::optional<double> freeConvectionRegimeAirFlowRate() const;
105
106 bool isFreeConvectionRegimeAirFlowRateDefaulted() const;
107
108 bool isFreeConvectionRegimeAirFlowRateAutosized() const;
109
110 double freeConvectionRegimeAirFlowRateSizingFactor() const;
111
112 bool isFreeConvectionRegimeAirFlowRateSizingFactorDefaulted() const;
113
114 boost::optional<double> freeConvectionRegimeUFactorTimesAreaValue() const;
115
116 bool isFreeConvectionRegimeUFactorTimesAreaValueDefaulted() const;
117
118 bool isFreeConvectionRegimeUFactorTimesAreaValueAutosized() const;
119
120 double freeConvectionUFactorTimesAreaValueSizingFactor() const;
121
122 bool isFreeConvectionUFactorTimesAreaValueSizingFactorDefaulted() const;
123
124 std::string performanceInputMethod() const;
125
126 bool isPerformanceInputMethodDefaulted() const;
127
128 double heatRejectionCapacityandNominalCapacitySizingRatio() const;
129
130 bool isHeatRejectionCapacityandNominalCapacitySizingRatioDefaulted() const;
131
132 boost::optional<double> highSpeedNominalCapacity() const;
133
134 boost::optional<double> lowSpeedNominalCapacity() const;
135
136 bool isLowSpeedNominalCapacityAutosized() const;
137
138 double lowSpeedNominalCapacitySizingFactor() const;
139
140 bool isLowSpeedNominalCapacitySizingFactorDefaulted() const;
141
142 boost::optional<double> freeConvectionNominalCapacity() const;
143
144 bool isFreeConvectionNominalCapacityAutosized() const;
145
146 double freeConvectionNominalCapacitySizingFactor() const;
147
148 bool isFreeConvectionNominalCapacitySizingFactorDefaulted() const;
149
150 double basinHeaterCapacity() const;
151
152 bool isBasinHeaterCapacityDefaulted() const;
153
154 double basinHeaterSetpointTemperature() const;
155
156 bool isBasinHeaterSetpointTemperatureDefaulted() const;
157
158 boost::optional<Schedule> basinHeaterOperatingSchedule() const;
159
160 std::string evaporationLossMode() const;
161
162 bool isEvaporationLossModeDefaulted() const;
163
164 double evaporationLossFactor() const;
165
166 bool isEvaporationLossFactorDefaulted() const;
167
168 double driftLossPercent() const;
169
170 bool isDriftLossPercentDefaulted() const;
171
172 std::string blowdownCalculationMode() const;
173
174 bool isBlowdownCalculationModeDefaulted() const;
175
176 double blowdownConcentrationRatio() const;
177
178 bool isBlowdownConcentrationRatioDefaulted() const;
179
180 boost::optional<Schedule> blowdownMakeupWaterUsageSchedule() const;
181
182 // boost::optional<WaterStorageTank> supplyWaterStorageTank() const;
183
184 int numberofCells() const;
185
186 bool isNumberofCellsDefaulted() const;
187
188 std::string cellControl() const;
189
190 bool isCellControlDefaulted() const;
191
192 double cellMinimumWaterFlowRateFraction() const;
193
194 bool isCellMinimumWaterFlowRateFractionDefaulted() const;
195
196 double cellMaximumWaterFlowRateFraction() const;
197
198 bool isCellMaximumWaterFlowRateFractionDefaulted() const;
199
200 double sizingFactor() const;
201
202 bool isSizingFactorDefaulted() const;
203
204 boost::optional<double> autosizedDesignWaterFlowRate() const;
205
206 boost::optional<double> autosizedHighFanSpeedAirFlowRate() const;
207
208 boost::optional<double> autosizedHighFanSpeedFanPower() const;
209
210 boost::optional<double> autosizedHighFanSpeedUFactorTimesAreaValue() const;
211
212 boost::optional<double> autosizedLowFanSpeedAirFlowRate() const;
213
214 boost::optional<double> autosizedLowFanSpeedFanPower() const;
215
216 boost::optional<double> autosizedLowFanSpeedUFactorTimesAreaValue() const;
217
218 boost::optional<double> autosizedFreeConvectionRegimeAirFlowRate() const;
219
220 boost::optional<double> autosizedFreeConvectionRegimeUFactorTimesAreaValue() const;
221
222 boost::optional<double> autosizedLowSpeedNominalCapacity() const;
223
224 boost::optional<double> autosizedFreeConvectionNominalCapacity() const;
225
226 boost::optional<double> autosizedDesignApproachTemperature() const;
227
228 boost::optional<double> autosizedDesignRangeTemperature() const;
229
230 //@}
231 /** @name Setters */
232 //@{
233
234 bool setDesignWaterFlowRate(boost::optional<double> designWaterFlowRate);
235
236 void resetDesignWaterFlowRate();
237
238 void autosizeDesignWaterFlowRate();
239
240 bool setHighFanSpeedAirFlowRate(boost::optional<double> highFanSpeedAirFlowRate);
241
242 void autosizeHighFanSpeedAirFlowRate();
243
244 bool setHighFanSpeedFanPower(boost::optional<double> highFanSpeedFanPower);
245
246 void autosizeHighFanSpeedFanPower();
247
248 bool setHighFanSpeedUFactorTimesAreaValue(boost::optional<double> highFanSpeedUFactorTimesAreaValue);
249
250 void resetHighFanSpeedUFactorTimesAreaValue();
251
252 void autosizeHighFanSpeedUFactorTimesAreaValue();
253
254 bool setLowFanSpeedAirFlowRate(boost::optional<double> lowFanSpeedAirFlowRate);
255
256 void autosizeLowFanSpeedAirFlowRate();
257
258 bool setLowFanSpeedAirFlowRateSizingFactor(double lowFanSpeedAirFlowRateSizingFactor);
259
260 void resetLowFanSpeedAirFlowRateSizingFactor();
261
262 bool setLowFanSpeedFanPower(boost::optional<double> lowFanSpeedFanPower);
263
264 void autosizeLowFanSpeedFanPower();
265
266 bool setLowFanSpeedFanPowerSizingFactor(double lowFanSpeedFanPowerSizingFactor);
267
268 void resetLowFanSpeedFanPowerSizingFactor();
269
270 bool setLowFanSpeedUFactorTimesAreaValue(boost::optional<double> lowFanSpeedUFactorTimesAreaValue);
271
272 void resetLowFanSpeedUFactorTimesAreaValue();
273
274 void autosizeLowFanSpeedUFactorTimesAreaValue();
275
276 bool setLowFanSpeedUFactorTimesAreaSizingFactor(double lowFanSpeedUFactorTimesAreaSizingFactor);
277
278 void resetLowFanSpeedUFactorTimesAreaSizingFactor();
279
280 bool setFreeConvectionRegimeAirFlowRate(boost::optional<double> freeConvectionRegimeAirFlowRate);
281
282 void resetFreeConvectionRegimeAirFlowRate();
283
284 void autosizeFreeConvectionRegimeAirFlowRate();
285
286 bool setFreeConvectionRegimeAirFlowRateSizingFactor(double freeConvectionRegimeAirFlowRateSizingFactor);
287
288 void resetFreeConvectionRegimeAirFlowRateSizingFactor();
289
290 bool setFreeConvectionRegimeUFactorTimesAreaValue(boost::optional<double> freeConvectionRegimeUFactorTimesAreaValue);
291
292 void resetFreeConvectionRegimeUFactorTimesAreaValue();
293
294 void autosizeFreeConvectionRegimeUFactorTimesAreaValue();
295
296 bool setFreeConvectionUFactorTimesAreaValueSizingFactor(double freeConvectionUFactorTimesAreaValueSizingFactor);
297
298 void resetFreeConvectionUFactorTimesAreaValueSizingFactor();
299
300 bool setPerformanceInputMethod(const std::string& performanceInputMethod);
301
302 void resetPerformanceInputMethod();
303
304 bool setHeatRejectionCapacityandNominalCapacitySizingRatio(double heatRejectionCapacityandNominalCapacitySizingRatio);
305
306 void resetHeatRejectionCapacityandNominalCapacitySizingRatio();
307
308 bool setHighSpeedNominalCapacity(boost::optional<double> highSpeedNominalCapacity);
309
310 void resetHighSpeedNominalCapacity();
311
312 bool setLowSpeedNominalCapacity(boost::optional<double> lowSpeedNominalCapacity);
313
314 void resetLowSpeedNominalCapacity();
315
316 void autosizeLowSpeedNominalCapacity();
317
318 bool setLowSpeedNominalCapacitySizingFactor(double lowSpeedNominalCapacitySizingFactor);
319
320 void resetLowSpeedNominalCapacitySizingFactor();
321
322 bool setFreeConvectionNominalCapacity(boost::optional<double> freeConvectionNominalCapacity);
323
324 void resetFreeConvectionNominalCapacity();
325
326 void autosizeFreeConvectionNominalCapacity();
327
328 bool setFreeConvectionNominalCapacitySizingFactor(double freeConvectionNominalCapacitySizingFactor);
329
330 void resetFreeConvectionNominalCapacitySizingFactor();
331
332 bool setBasinHeaterCapacity(double basinHeaterCapacity);
333
334 void resetBasinHeaterCapacity();
335
336 bool setBasinHeaterSetpointTemperature(double basinHeaterSetpointTemperature);
337
338 void resetBasinHeaterSetpointTemperature();
339
340 bool setBasinHeaterOperatingSchedule(Schedule& schedule);
341
342 void resetBasinHeaterOperatingSchedule();
343
344 bool setEvaporationLossMode(boost::optional<std::string> evaporationLossMode);
345
346 void resetEvaporationLossMode();
347
348 bool setEvaporationLossFactor(double evaporationLossFactor);
349
350 void resetEvaporationLossFactor();
351
352 bool setDriftLossPercent(double driftLossPercent);
353
354 void resetDriftLossPercent();
355
356 bool setBlowdownCalculationMode(boost::optional<std::string> blowdownCalculationMode);
357
358 void resetBlowdownCalculationMode();
359
360 bool setBlowdownConcentrationRatio(double blowdownConcentrationRatio);
361
362 void resetBlowdownConcentrationRatio();
363
364 bool setBlowdownMakeupWaterUsageSchedule(Schedule& schedule);
365
366 void resetBlowdownMakeupWaterUsageSchedule();
367
368 // bool setSupplyWaterStorageTank(const boost::optional<WaterStorageTank>& waterStorageTank);
369
370 // void resetSupplyWaterStorageTank();
371
372 bool setNumberofCells(int numberofCells);
373
374 void resetNumberofCells();
375
376 bool setCellControl(const std::string& cellControl);
377
378 void resetCellControl();
379
380 bool setCellMinimumWaterFlowRateFraction(double cellMinimumWaterFlowRateFraction);
381
382 void resetCellMinimumWaterFlowRateFraction();
383
384 bool setCellMaximumWaterFlowRateFraction(double cellMaximumWaterFlowRateFraction);
385
386 void resetCellMaximumWaterFlowRateFraction();
387
388 bool setSizingFactor(double sizingFactor);
389
390 void resetSizingFactor();
391
392 double designInletAirDryBulbTemperature() const;
393 bool setDesignInletAirDryBulbTemperature(double designInletAirDryBulbTemperature);
394
395 double designInletAirWetBulbTemperature() const;
396 bool setDesignInletAirWetBulbTemperature(double designInletAirWetBulbTemperature);
397
398 boost::optional<double> designApproachTemperature() const;
399 bool isDesignApproachTemperatureAutosized() const;
400 bool setDesignApproachTemperature(double designApproachTemperature);
401 void autosizeDesignApproachTemperature();
402
403 boost::optional<double> designRangeTemperature() const;
404 bool isDesignRangeTemperatureAutosized() const;
405 bool setDesignRangeTemperature(double designRangeTemperature);
406 void autosizeDesignRangeTemperature();
407
408 std::string endUseSubcategory() const;
409 bool setEndUseSubcategory(const std::string& endUseSubcategory);
410
411 //@}
412 /** @name Other */
413 //@{
414
415 //@}
416 protected:
417 private:
418 REGISTER_LOGGER("openstudio.model.CoolingTowerTwoSpeed");
419 };
420
421 } // namespace detail
422
423 } // namespace model
424 } // namespace openstudio
425
426 #endif // MODEL_COOLINGTOWERTWOSPEED_IMPL_HPP
427