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/CoolingTowerSingleSpeed_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_COOLINGTOWERSINGLESPEED_IMPL_HPP
7 #define MODEL_COOLINGTOWERSINGLESPEED_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 /** CoolingTowerSingleSpeed_Impl is a StraightComponent_Impl that is the implementation class for CoolingTowerSingleSpeed.*/
21 class MODEL_API CoolingTowerSingleSpeed_Impl : public StraightComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 CoolingTowerSingleSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 CoolingTowerSingleSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 CoolingTowerSingleSpeed_Impl(const CoolingTowerSingleSpeed_Impl& other, Model_Impl* model, bool keepHandle);
32
33 15 virtual ~CoolingTowerSingleSpeed_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 void autosize() override;
50
51 virtual void applySizingValues() override;
52
53 virtual ComponentType componentType() const override;
54 virtual std::vector<FuelType> coolingFuelTypes() const override;
55 virtual std::vector<FuelType> heatingFuelTypes() const override;
56 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
57
58 //@}
59 /** @name Getters */
60 //@{
61
62 boost::optional<double> designWaterFlowRate() const;
63
64 bool isDesignWaterFlowRateAutosized() const;
65
66 boost::optional<double> designAirFlowRate() const;
67
68 bool isDesignAirFlowRateAutosized() const;
69
70 boost::optional<double> fanPoweratDesignAirFlowRate() const;
71
72 bool isFanPoweratDesignAirFlowRateAutosized() const;
73
74 boost::optional<double> uFactorTimesAreaValueatDesignAirFlowRate() const;
75
76 bool isUFactorTimesAreaValueatDesignAirFlowRateAutosized() const;
77
78 boost::optional<double> airFlowRateinFreeConvectionRegime() const;
79
80 bool isAirFlowRateinFreeConvectionRegimeDefaulted() const;
81
82 bool isAirFlowRateinFreeConvectionRegimeAutosized() const;
83
84 boost::optional<double> uFactorTimesAreaValueatFreeConvectionAirFlowRate() const;
85
86 bool isUFactorTimesAreaValueatFreeConvectionAirFlowRateDefaulted() const;
87
88 bool isUFactorTimesAreaValueatFreeConvectionAirFlowRateAutosized() const;
89
90 std::string performanceInputMethod() const;
91
92 bool isPerformanceInputMethodDefaulted() const;
93
94 boost::optional<double> nominalCapacity() const;
95
96 boost::optional<double> freeConvectionCapacity() const;
97
98 double basinHeaterCapacity() const;
99
100 bool isBasinHeaterCapacityDefaulted() const;
101
102 double basinHeaterSetpointTemperature() const;
103
104 bool isBasinHeaterSetpointTemperatureDefaulted() const;
105
106 boost::optional<Schedule> basinHeaterOperatingSchedule() const;
107
108 std::string evaporationLossMode() const;
109
110 bool isEvaporationLossModeDefaulted() const;
111
112 double evaporationLossFactor() const;
113
114 bool isEvaporationLossFactorDefaulted() const;
115
116 double driftLossPercent() const;
117
118 bool isDriftLossPercentDefaulted() const;
119
120 std::string blowdownCalculationMode() const;
121
122 bool isBlowdownCalculationModeDefaulted() const;
123
124 double blowdownConcentrationRatio() const;
125
126 bool isBlowdownConcentrationRatioDefaulted() const;
127
128 boost::optional<Schedule> blowdownMakeupWaterUsageSchedule() const;
129
130 std::string capacityControl() const;
131
132 bool isCapacityControlDefaulted() const;
133
134 int numberofCells() const;
135
136 bool isNumberofCellsDefaulted() const;
137
138 std::string cellControl() const;
139
140 bool isCellControlDefaulted() const;
141
142 double cellMinimumWaterFlowRateFraction() const;
143
144 bool isCellMinimumWaterFlowRateFractionDefaulted() const;
145
146 double cellMaximumWaterFlowRateFraction() const;
147
148 bool isCellMaximumWaterFlowRateFractionDefaulted() const;
149
150 double sizingFactor() const;
151
152 bool isSizingFactorDefaulted() const;
153
154 boost::optional<double> autosizedDesignWaterFlowRate() const;
155
156 boost::optional<double> autosizedDesignAirFlowRate() const;
157
158 boost::optional<double> autosizedFanPoweratDesignAirFlowRate() const;
159
160 boost::optional<double> autosizedUFactorTimesAreaValueatDesignAirFlowRate() const;
161
162 boost::optional<double> autosizedAirFlowRateinFreeConvectionRegime() const;
163
164 boost::optional<double> autosizedUFactorTimesAreaValueatFreeConvectionAirFlowRate() const;
165
166 boost::optional<double> autosizedDesignApproachTemperature() const;
167
168 boost::optional<double> autosizedDesignRangeTemperature() const;
169
170 //@}
171 /** @name Setters */
172 //@{
173
174 bool setDesignWaterFlowRate(boost::optional<double> designWaterFlowRate);
175
176 void resetDesignWaterFlowRate();
177
178 void autosizeDesignWaterFlowRate();
179
180 bool setDesignAirFlowRate(boost::optional<double> designAirFlowRate);
181
182 void autosizeDesignAirFlowRate();
183
184 bool setFanPoweratDesignAirFlowRate(boost::optional<double> fanPoweratDesignAirFlowRate);
185
186 void autosizeFanPoweratDesignAirFlowRate();
187
188 bool setUFactorTimesAreaValueatDesignAirFlowRate(boost::optional<double> uFactorTimesAreaValueatDesignAirFlowRate);
189
190 void resetUFactorTimesAreaValueatDesignAirFlowRate();
191
192 void autosizeUFactorTimesAreaValueatDesignAirFlowRate();
193
194 bool setAirFlowRateinFreeConvectionRegime(boost::optional<double> airFlowRateinFreeConvectionRegime);
195
196 void resetAirFlowRateinFreeConvectionRegime();
197
198 void autosizeAirFlowRateinFreeConvectionRegime();
199
200 bool setUFactorTimesAreaValueatFreeConvectionAirFlowRate(boost::optional<double> uFactorTimesAreaValueatFreeConvectionAirFlowRate);
201
202 void resetUFactorTimesAreaValueatFreeConvectionAirFlowRate();
203
204 void autosizeUFactorTimesAreaValueatFreeConvectionAirFlowRate();
205
206 bool setPerformanceInputMethod(const std::string& performanceInputMethod);
207
208 void resetPerformanceInputMethod();
209
210 bool setNominalCapacity(boost::optional<double> nominalCapacity);
211
212 void resetNominalCapacity();
213
214 bool setFreeConvectionCapacity(boost::optional<double> freeConvectionCapacity);
215
216 void resetFreeConvectionCapacity();
217
218 bool setBasinHeaterCapacity(double basinHeaterCapacity);
219
220 void resetBasinHeaterCapacity();
221
222 bool setBasinHeaterSetpointTemperature(double basinHeaterSetpointTemperature);
223
224 void resetBasinHeaterSetpointTemperature();
225
226 bool setBasinHeaterOperatingSchedule(Schedule& basinHeaterOperatingSchedule);
227
228 void resetBasinHeaterOperatingSchedule();
229
230 bool setEvaporationLossMode(boost::optional<std::string> evaporationLossMode);
231
232 void resetEvaporationLossMode();
233
234 bool setEvaporationLossFactor(double evaporationLossFactor);
235
236 void resetEvaporationLossFactor();
237
238 bool setDriftLossPercent(double driftLossPercent);
239
240 void resetDriftLossPercent();
241
242 bool setBlowdownCalculationMode(boost::optional<std::string> blowdownCalculationMode);
243
244 void resetBlowdownCalculationMode();
245
246 bool setBlowdownConcentrationRatio(double blowdownConcentrationRatio);
247
248 void resetBlowdownConcentrationRatio();
249
250 bool setBlowdownMakeupWaterUsageSchedule(Schedule& blowdownMakeupWaterUsageSchedule);
251
252 void resetBlowdownMakeupWaterUsageSchedule();
253
254 bool setCapacityControl(const std::string& capacityControl);
255
256 void resetCapacityControl();
257
258 bool setNumberofCells(int numberofCells);
259
260 void resetNumberofCells();
261
262 bool setCellControl(const std::string& cellControl);
263
264 void resetCellControl();
265
266 bool setCellMinimumWaterFlowRateFraction(double cellMinimumWaterFlowRateFraction);
267
268 void resetCellMinimumWaterFlowRateFraction();
269
270 bool setCellMaximumWaterFlowRateFraction(double cellMaximumWaterFlowRateFraction);
271
272 void resetCellMaximumWaterFlowRateFraction();
273
274 bool setSizingFactor(double sizingFactor);
275
276 void resetSizingFactor();
277
278 bool addToNode(Node& node) override;
279
280 double freeConvectionAirFlowRateSizingFactor() const;
281
282 bool setFreeConvectionAirFlowRateSizingFactor(double freeConvectionAirFlowRateSizingFactor);
283
284 double freeConvectionUFactorTimesAreaValueSizingFactor() const;
285
286 bool setFreeConvectionUFactorTimesAreaValueSizingFactor(double freeConvectionUFactorTimesAreaValueSizingFactor);
287
288 double heatRejectionCapacityAndNominalCapacitySizingRatio() const;
289
290 bool setHeatRejectionCapacityAndNominalCapacitySizingRatio(double heatRejectionCapacityAndNominalCapacitySizingRatio);
291
292 double freeConvectionNominalCapacitySizingFactor() const;
293
294 bool setFreeConvectionNominalCapacitySizingFactor(double freeConvectionNominalCapacitySizingFactor);
295
296 double designInletAirDryBulbTemperature() const;
297
298 bool setDesignInletAirDryBulbTemperature(double designInletAirDryBulbTemperature);
299
300 double designInletAirWetBulbTemperature() const;
301
302 bool setDesignInletAirWetBulbTemperature(double designInletAirWetBulbTemperature);
303
304 boost::optional<double> designApproachTemperature() const;
305
306 bool isDesignApproachTemperatureAutosized() const;
307
308 void autosizeDesignApproachTemperature();
309
310 bool setDesignApproachTemperature(double designApproachTemperature);
311
312 boost::optional<double> designRangeTemperature() const;
313
314 bool isDesignRangeTemperatureAutosized() const;
315
316 bool setDesignRangeTemperature(double designRangeTemperature);
317
318 void autosizeDesignRangeTemperature();
319
320 std::string endUseSubcategory() const;
321
322 bool setEndUseSubcategory(const std::string& endUseSubcategory);
323
324 //@}
325 protected:
326 private:
327 REGISTER_LOGGER("openstudio.model.CoolingTowerSingleSpeed");
328
329 std::vector<std::string> performanceInputMethodValues() const;
330 std::vector<std::string> evaporationLossModeValues() const;
331 std::vector<std::string> blowdownCalculationModeValues() const;
332 std::vector<std::string> capacityControlValues() const;
333 std::vector<std::string> cellControlValues() const;
334 boost::optional<ModelObject> basinHeaterOperatingScheduleAsModelObject() const;
335 boost::optional<ModelObject> blowdownMakeupWaterUsageScheduleAsModelObject() const;
336
337 bool setBasinHeaterOperatingScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
338 bool setBlowdownMakeupWaterUsageScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
339 };
340
341 } // namespace detail
342
343 } // namespace model
344
345 } // namespace openstudio
346
347 #endif // MODEL_COOLINGTOWERSINGLESPEED_IMPL_HPP
348