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/EvaporativeFluidCoolerSingleSpeed.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_EVAPORATIVEFLUIDCOOLERSINGLESPEED_HPP
7 #define MODEL_EVAPORATIVEFLUIDCOOLERSINGLESPEED_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 //class WaterStorageTank;
17
18 namespace detail {
19
20 class EvaporativeFluidCoolerSingleSpeed_Impl;
21
22 } // namespace detail
23
24 /** EvaporativeFluidCoolerSingleSpeed is a StraightComponent that wraps the OpenStudio IDD object 'OS:EvaporativeFluidCooler:SingleSpeed'. */
25 class MODEL_API EvaporativeFluidCoolerSingleSpeed : public StraightComponent
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 explicit EvaporativeFluidCoolerSingleSpeed(const Model& model);
32
33 27 virtual ~EvaporativeFluidCoolerSingleSpeed() override = default;
34 // Default the copy and move operators because the virtual dtor is explicit
35 ✗ EvaporativeFluidCoolerSingleSpeed(const EvaporativeFluidCoolerSingleSpeed& other) = default;
36 ✗ EvaporativeFluidCoolerSingleSpeed(EvaporativeFluidCoolerSingleSpeed&& other) = default;
37 ✗ EvaporativeFluidCoolerSingleSpeed& operator=(const EvaporativeFluidCoolerSingleSpeed&) = default;
38 ✗ EvaporativeFluidCoolerSingleSpeed& operator=(EvaporativeFluidCoolerSingleSpeed&&) = default;
39
40 //@}
41
42 static IddObjectType iddObjectType();
43
44 static std::vector<std::string> performanceInputMethodValues();
45
46 static std::vector<std::string> capacityControlValues();
47
48 static std::vector<std::string> evaporationLossModeValues();
49
50 static std::vector<std::string> blowdownCalculationModeValues();
51
52 /** @name Getters */
53 //@{
54
55 boost::optional<double> designAirFlowRate() const;
56
57 bool isDesignAirFlowRateAutosized() const;
58
59 boost::optional<double> fanPoweratDesignAirFlowRate() const;
60
61 bool isFanPoweratDesignAirFlowRateAutosized() const;
62
63 double designSprayWaterFlowRate() const;
64
65 std::string performanceInputMethod() const;
66
67 double heatRejectionCapacityandNominalCapacitySizingRatio() const;
68
69 boost::optional<double> standardDesignCapacity() const;
70
71 boost::optional<double> ufactorTimesAreaValueatDesignAirFlowRate() const;
72
73 bool isUfactorTimesAreaValueatDesignAirFlowRateAutosized() const;
74
75 boost::optional<double> designWaterFlowRate() const;
76
77 bool isDesignWaterFlowRateAutosized() const;
78
79 boost::optional<double> userSpecifiedDesignCapacity() const;
80
81 boost::optional<double> designEnteringWaterTemperature() const;
82
83 bool isDesignEnteringWaterTemperatureAutosized() const;
84
85 double designEnteringAirTemperature() const;
86
87 double designEnteringAirWetbulbTemperature() const;
88
89 std::string capacityControl() const;
90
91 bool isCapacityControlDefaulted() const;
92
93 double sizingFactor() const;
94
95 bool isSizingFactorDefaulted() const;
96
97 std::string evaporationLossMode() const;
98
99 bool isEvaporationLossModeDefaulted() const;
100
101 boost::optional<double> evaporationLossFactor() const;
102
103 double driftLossPercent() const;
104
105 bool isDriftLossPercentDefaulted() const;
106
107 std::string blowdownCalculationMode() const;
108
109 bool isBlowdownCalculationModeDefaulted() const;
110
111 double blowdownConcentrationRatio() const;
112
113 bool isBlowdownConcentrationRatioDefaulted() const;
114
115 boost::optional<Schedule> blowdownMakeupWaterUsageSchedule() const;
116
117 //@}
118 /** @name Setters */
119 //@{
120
121 bool setDesignAirFlowRate(double designAirFlowRate);
122
123 void autosizeDesignAirFlowRate();
124
125 bool setFanPoweratDesignAirFlowRate(double fanPoweratDesignAirFlowRate);
126
127 void autosizeFanPoweratDesignAirFlowRate();
128
129 bool setDesignSprayWaterFlowRate(double designSprayWaterFlowRate);
130
131 bool setPerformanceInputMethod(const std::string& performanceInputMethod);
132
133 bool setHeatRejectionCapacityandNominalCapacitySizingRatio(double heatRejectionCapacityandNominalCapacitySizingRatio);
134
135 bool setStandardDesignCapacity(double standardDesignCapacity);
136
137 void resetStandardDesignCapacity();
138
139 bool setUfactorTimesAreaValueatDesignAirFlowRate(double ufactorTimesAreaValueatDesignAirFlowRate);
140
141 void resetUfactorTimesAreaValueatDesignAirFlowRate();
142
143 void autosizeUfactorTimesAreaValueatDesignAirFlowRate();
144
145 bool setDesignWaterFlowRate(double designWaterFlowRate);
146
147 void resetDesignWaterFlowRate();
148
149 void autosizeDesignWaterFlowRate();
150
151 bool setUserSpecifiedDesignCapacity(double userSpecifiedDesignCapacity);
152
153 void resetUserSpecifiedDesignCapacity();
154
155 bool setDesignEnteringWaterTemperature(double designEnteringWaterTemperature);
156
157 void autosizeDesignEnteringWaterTemperature();
158
159 bool setDesignEnteringAirTemperature(double designEnteringAirTemperature);
160
161 bool setDesignEnteringAirWetbulbTemperature(double designEnteringAirWetbulbTemperature);
162
163 bool setCapacityControl(const std::string& capacityControl);
164
165 void resetCapacityControl();
166
167 bool setSizingFactor(double sizingFactor);
168
169 void resetSizingFactor();
170
171 bool setEvaporationLossMode(const std::string& evaporationLossMode);
172
173 void resetEvaporationLossMode();
174
175 bool setEvaporationLossFactor(double evaporationLossFactor);
176
177 void resetEvaporationLossFactor();
178
179 bool setDriftLossPercent(double driftLossPercent);
180
181 void resetDriftLossPercent();
182
183 bool setBlowdownCalculationMode(const std::string& blowdownCalculationMode);
184
185 void resetBlowdownCalculationMode();
186
187 bool setBlowdownConcentrationRatio(double blowdownConcentrationRatio);
188
189 void resetBlowdownConcentrationRatio();
190
191 bool setBlowdownMakeupWaterUsageSchedule(Schedule& schedule);
192
193 void resetBlowdownMakeupWaterUsageSchedule();
194
195 //@}
196 /** @name Other */
197 //@{
198
199 boost::optional<double> autosizedDesignAirFlowRate() const;
200
201 boost::optional<double> autosizedFanPoweratDesignAirFlowRate() const;
202
203 boost::optional<double> autosizedUfactorTimesAreaValueatDesignAirFlowRate() const;
204
205 boost::optional<double> autosizedDesignWaterFlowRate() const;
206
207 boost::optional<double> autosizedDesignEnteringWaterTemperature() const;
208
209 //@}
210 protected:
211 /// @cond
212 using ImplType = detail::EvaporativeFluidCoolerSingleSpeed_Impl;
213
214 explicit EvaporativeFluidCoolerSingleSpeed(std::shared_ptr<detail::EvaporativeFluidCoolerSingleSpeed_Impl> impl);
215
216 friend class detail::EvaporativeFluidCoolerSingleSpeed_Impl;
217 friend class Model;
218 friend class IdfObject;
219 friend class openstudio::detail::IdfObject_Impl;
220 /// @endcond
221 private:
222 REGISTER_LOGGER("openstudio.model.EvaporativeFluidCoolerSingleSpeed");
223 };
224
225 /** \relates EvaporativeFluidCoolerSingleSpeed*/
226 using OptionalEvaporativeFluidCoolerSingleSpeed = boost::optional<EvaporativeFluidCoolerSingleSpeed>;
227
228 /** \relates EvaporativeFluidCoolerSingleSpeed*/
229 using EvaporativeFluidCoolerSingleSpeedVector = std::vector<EvaporativeFluidCoolerSingleSpeed>;
230
231 } // namespace model
232 } // namespace openstudio
233
234 #endif // MODEL_EVAPORATIVEFLUIDCOOLERSINGLESPEED_HPP
235