GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 51.4% 151 / 0 / 294
Functions: 48.9% 44 / 0 / 90
Branches: 44.1% 97 / 0 / 220

src/model/RefrigerationCondenserAirCooled.cpp
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 #include "RefrigerationCondenserAirCooled.hpp"
7 #include "RefrigerationCondenserAirCooled_Impl.hpp"
8
9 #include "RefrigerationSystem.hpp"
10 #include "RefrigerationSystem_Impl.hpp"
11 #include "CurveLinear.hpp"
12 #include "CurveLinear_Impl.hpp"
13 #include "ThermalZone.hpp"
14 #include "ThermalZone_Impl.hpp"
15 #include "Model.hpp"
16 #include "Model_Impl.hpp"
17
18 #include <utilities/idd/IddFactory.hxx>
19
20 #include <utilities/idd/OS_Refrigeration_Condenser_AirCooled_FieldEnums.hxx>
21 #include <utilities/idd/IddEnums.hxx>
22
23 #include "../utilities/units/Unit.hpp"
24
25 #include "../utilities/core/Assert.hpp"
26
27 namespace openstudio {
28 namespace model {
29
30 namespace detail {
31
32 16 RefrigerationCondenserAirCooled_Impl::RefrigerationCondenserAirCooled_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
33 16 : ParentObject_Impl(idfObject, model, keepHandle) {
34
4/6
✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
✓ Branch 7 taken 16 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 16 times.
✗ Branch 13 not taken.
16 OS_ASSERT(idfObject.iddObject().type() == RefrigerationCondenserAirCooled::iddObjectType());
35 16 }
36
37 ✗ RefrigerationCondenserAirCooled_Impl::RefrigerationCondenserAirCooled_Impl(const openstudio::detail::WorkspaceObject_Impl& other,
38 ✗ Model_Impl* model, bool keepHandle)
39 ✗ : ParentObject_Impl(other, model, keepHandle) {
40 ✗ OS_ASSERT(other.iddObject().type() == RefrigerationCondenserAirCooled::iddObjectType());
41 ✗ }
42
43 13 RefrigerationCondenserAirCooled_Impl::RefrigerationCondenserAirCooled_Impl(const RefrigerationCondenserAirCooled_Impl& other, Model_Impl* model,
44 13 bool keepHandle)
45 13 : ParentObject_Impl(other, model, keepHandle) {}
46
47 ✗ const std::vector<std::string>& RefrigerationCondenserAirCooled_Impl::outputVariableNames() const {
48 static const std::vector<std::string> result{
49 // TODO: implement checks
50 // FOR CONDENSERS COOLING SYSTEMS SERVING CASES AND/OR WALKINS:
51 "Refrigeration System Condenser Fan Electricity Rate", "Refrigeration System Condenser Fan Electricity Energy",
52 "Refrigeration System Condenser Heat Transfer Rate", "Refrigeration System Condenser Heat Transfer Energy",
53 "Refrigeration System Condenser Total Recovered Heat Transfer Rate",
54 "Refrigeration System Condenser Non Refrigeration Recovered Heat Transfer Rate",
55 "Refrigeration System Condenser Heat Recovered for Non-Refrigeration Purposes Energy",
56 "Refrigeration System Condenser Defrost Recovered Heat Transfer Rate",
57 "Refrigeration System Condenser Defrost Recovered Heat Transfer Energy",
58 // FOR CONDENSERS COOLING SYSTEMS SERVING AIR CHILLERS:
59 "Refrigeration System Condenser Fan Electricity Rate", "Refrigeration System Condenser Fan Electric Consumption",
60 "Refrigeration Air Chiller System Condenser Heat Transfer Rate", "Refrigeration Air Chiller System Condenser Heat Transfer Energy",
61 "Refrigeration Air Chiller System Condenser Total Recovered Heat Transfer Rate",
62 "Refrigeration Air Chiller System Condenser Non Refrigeration Recovered Heat Transfer Rate",
63 "Refrigeration Air Chiller System Condenser Non Refrigeration Recovered Heat Transfer Energy",
64 "Refrigeration Air Chiller System Condenser Defrost Recovered Heat Transfer Rate",
65 ✗ "Refrigeration Air Chiller System Condenser Defrost Recovered Heat Transfer Energy"};
66 ✗ return result;
67 ✗ }
68
69 6 IddObjectType RefrigerationCondenserAirCooled_Impl::iddObjectType() const {
70 6 return RefrigerationCondenserAirCooled::iddObjectType();
71 }
72
73 4 ModelObject RefrigerationCondenserAirCooled_Impl::clone(Model model) const {
74
3/3
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
4 auto modelObjectClone = ModelObject_Impl::clone(model).cast<RefrigerationCondenserAirCooled>();
75
76
1/1
✓ Branch 1 taken 4 times.
4 modelObjectClone.resetAirInletZone();
77
78 8 return std::move(modelObjectClone);
79 4 }
80
81 ✗ std::vector<IddObjectType> RefrigerationCondenserAirCooled_Impl::allowableChildTypes() const {
82 ✗ std::vector<IddObjectType> result;
83 ✗ result.push_back(IddObjectType::OS_Curve_Linear);
84 ✗ return result;
85 ✗ }
86
87 4 std::vector<ModelObject> RefrigerationCondenserAirCooled_Impl::children() const {
88 4 std::vector<ModelObject> result;
89
2/3
✓ Branch 1 taken 4 times.
✓ Branch 3 taken 4 times.
✗ Branch 4 not taken.
8 if (boost::optional<CurveLinear> intermediate = ratedEffectiveTotalHeatRejectionRateCurve()) {
90
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
4 result.push_back(*intermediate);
91 4 }
92 4 return result;
93 ✗ }
94
95 12 boost::optional<CurveLinear> RefrigerationCondenserAirCooled_Impl::ratedEffectiveTotalHeatRejectionRateCurve() const {
96
1/1
✓ Branch 1 taken 12 times.
24 return getObject<ModelObject>().getModelObjectTarget<CurveLinear>(
97
1/1
✓ Branch 1 taken 12 times.
24 OS_Refrigeration_Condenser_AirCooledFields::RatedEffectiveTotalHeatRejectionRateCurveName);
98 }
99
100 4 double RefrigerationCondenserAirCooled_Impl::ratedSubcoolingTemperatureDifference() const {
101
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<double> value = getDouble(OS_Refrigeration_Condenser_AirCooledFields::RatedSubcoolingTemperatureDifference, true);
102
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
4 OS_ASSERT(value);
103
1/1
✓ Branch 1 taken 4 times.
8 return value.get();
104 }
105
106 ✗ bool RefrigerationCondenserAirCooled_Impl::isRatedSubcoolingTemperatureDifferenceDefaulted() const {
107 ✗ return isEmpty(OS_Refrigeration_Condenser_AirCooledFields::RatedSubcoolingTemperatureDifference);
108 }
109
110 4 std::string RefrigerationCondenserAirCooled_Impl::condenserFanSpeedControlType() const {
111
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<std::string> value = getString(OS_Refrigeration_Condenser_AirCooledFields::CondenserFanSpeedControlType, true);
112
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
4 OS_ASSERT(value);
113
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 return value.get();
114 4 }
115
116 ✗ bool RefrigerationCondenserAirCooled_Impl::isCondenserFanSpeedControlTypeDefaulted() const {
117 ✗ return isEmpty(OS_Refrigeration_Condenser_AirCooledFields::CondenserFanSpeedControlType);
118 }
119
120 4 double RefrigerationCondenserAirCooled_Impl::ratedFanPower() const {
121
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<double> value = getDouble(OS_Refrigeration_Condenser_AirCooledFields::RatedFanPower, true);
122
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
4 OS_ASSERT(value);
123
1/1
✓ Branch 1 taken 4 times.
8 return value.get();
124 }
125
126 ✗ bool RefrigerationCondenserAirCooled_Impl::isRatedFanPowerDefaulted() const {
127 ✗ return isEmpty(OS_Refrigeration_Condenser_AirCooledFields::RatedFanPower);
128 }
129
130 3 double RefrigerationCondenserAirCooled_Impl::minimumFanAirFlowRatio() const {
131
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Refrigeration_Condenser_AirCooledFields::MinimumFanAirFlowRatio, true);
132
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
133
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
134 }
135
136 ✗ bool RefrigerationCondenserAirCooled_Impl::isMinimumFanAirFlowRatioDefaulted() const {
137 ✗ return isEmpty(OS_Refrigeration_Condenser_AirCooledFields::MinimumFanAirFlowRatio);
138 }
139
140 2 boost::optional<ThermalZone> RefrigerationCondenserAirCooled_Impl::airInletZone() const {
141
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 return getObject<ModelObject>().getModelObjectTarget<ThermalZone>(OS_Refrigeration_Condenser_AirCooledFields::AirInletZoneName);
142 }
143
144 1 std::string RefrigerationCondenserAirCooled_Impl::endUseSubcategory() const {
145
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_Refrigeration_Condenser_AirCooledFields::EndUseSubcategory, true);
146
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
147
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 return value.get();
148 1 }
149
150 ✗ bool RefrigerationCondenserAirCooled_Impl::isEndUseSubcategoryDefaulted() const {
151 ✗ return isEmpty(OS_Refrigeration_Condenser_AirCooledFields::EndUseSubcategory);
152 }
153
154 1 double RefrigerationCondenserAirCooled_Impl::condenserRefrigerantOperatingChargeInventory() const {
155
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<double> value = getDouble(OS_Refrigeration_Condenser_AirCooledFields::CondenserRefrigerantOperatingChargeInventory, true);
156
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
157
1/1
✓ Branch 1 taken 1 time.
2 return value.get();
158 }
159
160 ✗ bool RefrigerationCondenserAirCooled_Impl::isCondenserRefrigerantOperatingChargeInventoryDefaulted() const {
161 ✗ return isEmpty(OS_Refrigeration_Condenser_AirCooledFields::CondenserRefrigerantOperatingChargeInventory);
162 }
163
164 1 double RefrigerationCondenserAirCooled_Impl::condensateReceiverRefrigerantInventory() const {
165
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<double> value = getDouble(OS_Refrigeration_Condenser_AirCooledFields::CondensateReceiverRefrigerantInventory, true);
166
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
167
1/1
✓ Branch 1 taken 1 time.
2 return value.get();
168 }
169
170 ✗ bool RefrigerationCondenserAirCooled_Impl::isCondensateReceiverRefrigerantInventoryDefaulted() const {
171 ✗ return isEmpty(OS_Refrigeration_Condenser_AirCooledFields::CondensateReceiverRefrigerantInventory);
172 }
173
174 1 double RefrigerationCondenserAirCooled_Impl::condensatePipingRefrigerantInventory() const {
175
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<double> value = getDouble(OS_Refrigeration_Condenser_AirCooledFields::CondensatePipingRefrigerantInventory, true);
176
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
177
1/1
✓ Branch 1 taken 1 time.
2 return value.get();
178 }
179
180 ✗ bool RefrigerationCondenserAirCooled_Impl::isCondensatePipingRefrigerantInventoryDefaulted() const {
181 ✗ return isEmpty(OS_Refrigeration_Condenser_AirCooledFields::CondensatePipingRefrigerantInventory);
182 }
183
184 17 bool RefrigerationCondenserAirCooled_Impl::setRatedEffectiveTotalHeatRejectionRateCurve(const boost::optional<CurveLinear>& curveLinear) {
185 17 bool result(false);
186
1/2
✓ Branch 0 taken 17 times.
✗ Branch 1 not taken.
17 if (curveLinear) {
187
3/3
✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
✓ Branch 7 taken 17 times.
17 result = setPointer(OS_Refrigeration_Condenser_AirCooledFields::RatedEffectiveTotalHeatRejectionRateCurveName, curveLinear.get().handle());
188 } else {
189 ✗ resetRatedEffectiveTotalHeatRejectionRateCurve();
190 ✗ result = true;
191 }
192 17 return result;
193 }
194
195 ✗ void RefrigerationCondenserAirCooled_Impl::resetRatedEffectiveTotalHeatRejectionRateCurve() {
196 ✗ bool result = setString(OS_Refrigeration_Condenser_AirCooledFields::RatedEffectiveTotalHeatRejectionRateCurveName, "");
197 ✗ OS_ASSERT(result);
198 ✗ }
199
200 17 bool RefrigerationCondenserAirCooled_Impl::setRatedSubcoolingTemperatureDifference(double ratedSubcoolingTemperatureDifference) {
201 17 bool result = setDouble(OS_Refrigeration_Condenser_AirCooledFields::RatedSubcoolingTemperatureDifference, ratedSubcoolingTemperatureDifference);
202 17 return result;
203 }
204
205 ✗ void RefrigerationCondenserAirCooled_Impl::resetRatedSubcoolingTemperatureDifference() {
206 ✗ bool result = setString(OS_Refrigeration_Condenser_AirCooledFields::RatedSubcoolingTemperatureDifference, "");
207 ✗ OS_ASSERT(result);
208 ✗ }
209
210 17 bool RefrigerationCondenserAirCooled_Impl::setCondenserFanSpeedControlType(const std::string& condenserFanSpeedControlType) {
211 17 bool result = setString(OS_Refrigeration_Condenser_AirCooledFields::CondenserFanSpeedControlType, condenserFanSpeedControlType);
212 17 return result;
213 }
214
215 ✗ void RefrigerationCondenserAirCooled_Impl::resetCondenserFanSpeedControlType() {
216 ✗ bool result = setString(OS_Refrigeration_Condenser_AirCooledFields::CondenserFanSpeedControlType, "");
217 ✗ OS_ASSERT(result);
218 ✗ }
219
220 17 bool RefrigerationCondenserAirCooled_Impl::setRatedFanPower(double ratedFanPower) {
221 17 bool result = setDouble(OS_Refrigeration_Condenser_AirCooledFields::RatedFanPower, ratedFanPower);
222 17 return result;
223 }
224
225 ✗ void RefrigerationCondenserAirCooled_Impl::resetRatedFanPower() {
226 ✗ bool result = setString(OS_Refrigeration_Condenser_AirCooledFields::RatedFanPower, "");
227 ✗ OS_ASSERT(result);
228 ✗ }
229
230 17 bool RefrigerationCondenserAirCooled_Impl::setMinimumFanAirFlowRatio(double minimumFanAirFlowRatio) {
231 17 bool result = setDouble(OS_Refrigeration_Condenser_AirCooledFields::MinimumFanAirFlowRatio, minimumFanAirFlowRatio);
232 17 return result;
233 }
234
235 ✗ void RefrigerationCondenserAirCooled_Impl::resetMinimumFanAirFlowRatio() {
236 ✗ bool result = setString(OS_Refrigeration_Condenser_AirCooledFields::MinimumFanAirFlowRatio, "");
237 ✗ OS_ASSERT(result);
238 ✗ }
239
240 1 bool RefrigerationCondenserAirCooled_Impl::setAirInletZone(const boost::optional<ThermalZone>& thermalZone) {
241 1 bool result(false);
242
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (thermalZone) {
243
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
1 result = setPointer(OS_Refrigeration_Condenser_AirCooledFields::AirInletZoneName, thermalZone.get().handle());
244 } else {
245 ✗ resetAirInletZone();
246 ✗ result = true;
247 }
248 1 return result;
249 }
250
251 4 void RefrigerationCondenserAirCooled_Impl::resetAirInletZone() {
252
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 bool result = setString(OS_Refrigeration_Condenser_AirCooledFields::AirInletZoneName, "");
253
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 OS_ASSERT(result);
254 4 }
255
256 ✗ bool RefrigerationCondenserAirCooled_Impl::setEndUseSubcategory(const std::string& endUseSubcategory) {
257 ✗ bool result = setString(OS_Refrigeration_Condenser_AirCooledFields::EndUseSubcategory, endUseSubcategory);
258 ✗ OS_ASSERT(result);
259 ✗ return result;
260 }
261
262 ✗ void RefrigerationCondenserAirCooled_Impl::resetEndUseSubcategory() {
263 ✗ bool result = setString(OS_Refrigeration_Condenser_AirCooledFields::EndUseSubcategory, "");
264 ✗ OS_ASSERT(result);
265 ✗ }
266
267 ✗ bool RefrigerationCondenserAirCooled_Impl::setCondenserRefrigerantOperatingChargeInventory(double condenserRefrigerantOperatingChargeInventory) {
268 ✗ bool result = setDouble(OS_Refrigeration_Condenser_AirCooledFields::CondenserRefrigerantOperatingChargeInventory,
269 condenserRefrigerantOperatingChargeInventory);
270 ✗ OS_ASSERT(result);
271 ✗ return result;
272 }
273
274 ✗ void RefrigerationCondenserAirCooled_Impl::resetCondenserRefrigerantOperatingChargeInventory() {
275 ✗ bool result = setString(OS_Refrigeration_Condenser_AirCooledFields::CondenserRefrigerantOperatingChargeInventory, "");
276 ✗ OS_ASSERT(result);
277 ✗ }
278
279 ✗ bool RefrigerationCondenserAirCooled_Impl::setCondensateReceiverRefrigerantInventory(double condensateReceiverRefrigerantInventory) {
280 bool result =
281 ✗ setDouble(OS_Refrigeration_Condenser_AirCooledFields::CondensateReceiverRefrigerantInventory, condensateReceiverRefrigerantInventory);
282 ✗ OS_ASSERT(result);
283 ✗ return result;
284 }
285
286 ✗ void RefrigerationCondenserAirCooled_Impl::resetCondensateReceiverRefrigerantInventory() {
287 ✗ bool result = setString(OS_Refrigeration_Condenser_AirCooledFields::CondensateReceiverRefrigerantInventory, "");
288 ✗ OS_ASSERT(result);
289 ✗ }
290
291 ✗ bool RefrigerationCondenserAirCooled_Impl::setCondensatePipingRefrigerantInventory(double condensatePipingRefrigerantInventory) {
292 ✗ bool result = setDouble(OS_Refrigeration_Condenser_AirCooledFields::CondensatePipingRefrigerantInventory, condensatePipingRefrigerantInventory);
293 ✗ OS_ASSERT(result);
294 ✗ return result;
295 }
296
297 ✗ void RefrigerationCondenserAirCooled_Impl::resetCondensatePipingRefrigerantInventory() {
298 ✗ bool result = setString(OS_Refrigeration_Condenser_AirCooledFields::CondensatePipingRefrigerantInventory, "");
299 ✗ OS_ASSERT(result);
300 ✗ }
301
302 9 boost::optional<RefrigerationSystem> RefrigerationCondenserAirCooled_Impl::system() const {
303
304 9 boost::optional<RefrigerationSystem> system;
305 // We use getModelObjectSources to check if more than one
306 std::vector<RefrigerationSystem> systems =
307
3/3
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
9 getObject<ModelObject>().getModelObjectSources<RefrigerationSystem>(RefrigerationSystem::iddObjectType());
308
309
2/2
✓ Branch 1 taken 5 times.
✓ Branch 2 taken 4 times.
9 if (!systems.empty()) {
310
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
5 if (systems.size() > 1u) {
311 ✗ LOG(Error, briefDescription() << " is referenced by more than one RefrigerationSystem, returning the first");
312 }
313
1/1
✓ Branch 2 taken 5 times.
5 system = systems[0];
314 }
315 18 return system;
316 9 }
317
318 } // namespace detail
319
320 16 RefrigerationCondenserAirCooled::RefrigerationCondenserAirCooled(const Model& model)
321 16 : ParentObject(RefrigerationCondenserAirCooled::iddObjectType(), model) {
322
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 16 times.
✗ Branch 5 not taken.
16 OS_ASSERT(getImpl<detail::RefrigerationCondenserAirCooled_Impl>());
323
324 16 bool ok = true;
325
326
1/1
✓ Branch 1 taken 16 times.
16 CurveLinear heatRejectionCurve = CurveLinear(model);
327
2/2
✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
16 heatRejectionCurve.setName("Refrigeration Condenser Air Cooled HR Curve");
328
1/1
✓ Branch 1 taken 16 times.
16 heatRejectionCurve.setCoefficient1Constant(0.0);
329
1/1
✓ Branch 1 taken 16 times.
16 heatRejectionCurve.setCoefficient2x(22000.0);
330
1/1
✓ Branch 1 taken 16 times.
16 heatRejectionCurve.setMinimumValueofx(5.0);
331
1/1
✓ Branch 1 taken 16 times.
16 heatRejectionCurve.setMaximumValueofx(22.2);
332
333
1/1
✓ Branch 1 taken 16 times.
16 setRatedEffectiveTotalHeatRejectionRateCurve(heatRejectionCurve);
334
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 16 times.
✗ Branch 3 not taken.
16 OS_ASSERT(ok);
335
336
1/1
✓ Branch 1 taken 16 times.
16 setRatedSubcoolingTemperatureDifference(0.0);
337
2/2
✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
16 setCondenserFanSpeedControlType("VariableSpeed");
338
1/1
✓ Branch 1 taken 16 times.
16 setRatedFanPower(7000.0);
339
1/1
✓ Branch 1 taken 16 times.
16 setMinimumFanAirFlowRatio(0.25);
340 16 }
341
342 7778 IddObjectType RefrigerationCondenserAirCooled::iddObjectType() {
343
1/1
✓ Branch 1 taken 7778 times.
7778 return {IddObjectType::OS_Refrigeration_Condenser_AirCooled};
344 }
345
346 ✗ std::vector<std::string> RefrigerationCondenserAirCooled::condenserFanSpeedControlTypeValues() {
347 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
348 ✗ OS_Refrigeration_Condenser_AirCooledFields::CondenserFanSpeedControlType);
349 }
350
351 8 boost::optional<CurveLinear> RefrigerationCondenserAirCooled::ratedEffectiveTotalHeatRejectionRateCurve() const {
352
1/1
✓ Branch 3 taken 8 times.
8 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->ratedEffectiveTotalHeatRejectionRateCurve();
353 }
354
355 4 double RefrigerationCondenserAirCooled::ratedSubcoolingTemperatureDifference() const {
356
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->ratedSubcoolingTemperatureDifference();
357 }
358
359 ✗ bool RefrigerationCondenserAirCooled::isRatedSubcoolingTemperatureDifferenceDefaulted() const {
360 ✗ return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->isRatedSubcoolingTemperatureDifferenceDefaulted();
361 }
362
363 4 std::string RefrigerationCondenserAirCooled::condenserFanSpeedControlType() const {
364
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->condenserFanSpeedControlType();
365 }
366
367 ✗ bool RefrigerationCondenserAirCooled::isCondenserFanSpeedControlTypeDefaulted() const {
368 ✗ return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->isCondenserFanSpeedControlTypeDefaulted();
369 }
370
371 4 double RefrigerationCondenserAirCooled::ratedFanPower() const {
372
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->ratedFanPower();
373 }
374
375 ✗ bool RefrigerationCondenserAirCooled::isRatedFanPowerDefaulted() const {
376 ✗ return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->isRatedFanPowerDefaulted();
377 }
378
379 3 double RefrigerationCondenserAirCooled::minimumFanAirFlowRatio() const {
380
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->minimumFanAirFlowRatio();
381 }
382
383 ✗ bool RefrigerationCondenserAirCooled::isMinimumFanAirFlowRatioDefaulted() const {
384 ✗ return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->isMinimumFanAirFlowRatioDefaulted();
385 }
386
387 2 boost::optional<ThermalZone> RefrigerationCondenserAirCooled::airInletZone() const {
388
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->airInletZone();
389 }
390
391 1 std::string RefrigerationCondenserAirCooled::endUseSubcategory() const {
392
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->endUseSubcategory();
393 }
394
395 ✗ bool RefrigerationCondenserAirCooled::isEndUseSubcategoryDefaulted() const {
396 ✗ return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->isEndUseSubcategoryDefaulted();
397 }
398
399 1 double RefrigerationCondenserAirCooled::condenserRefrigerantOperatingChargeInventory() const {
400
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->condenserRefrigerantOperatingChargeInventory();
401 }
402
403 ✗ bool RefrigerationCondenserAirCooled::isCondenserRefrigerantOperatingChargeInventoryDefaulted() const {
404 ✗ return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->isCondenserRefrigerantOperatingChargeInventoryDefaulted();
405 }
406
407 1 double RefrigerationCondenserAirCooled::condensateReceiverRefrigerantInventory() const {
408
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->condensateReceiverRefrigerantInventory();
409 }
410
411 ✗ bool RefrigerationCondenserAirCooled::isCondensateReceiverRefrigerantInventoryDefaulted() const {
412 ✗ return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->isCondensateReceiverRefrigerantInventoryDefaulted();
413 }
414
415 1 double RefrigerationCondenserAirCooled::condensatePipingRefrigerantInventory() const {
416
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->condensatePipingRefrigerantInventory();
417 }
418
419 ✗ bool RefrigerationCondenserAirCooled::isCondensatePipingRefrigerantInventoryDefaulted() const {
420 ✗ return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->isCondensatePipingRefrigerantInventoryDefaulted();
421 }
422
423 17 bool RefrigerationCondenserAirCooled::setRatedEffectiveTotalHeatRejectionRateCurve(const CurveLinear& curveLinear) {
424
2/2
✓ Branch 3 taken 17 times.
✓ Branch 6 taken 17 times.
17 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->setRatedEffectiveTotalHeatRejectionRateCurve(curveLinear);
425 }
426
427 ✗ void RefrigerationCondenserAirCooled::resetRatedEffectiveTotalHeatRejectionRateCurve() {
428 ✗ getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->resetRatedEffectiveTotalHeatRejectionRateCurve();
429 ✗ }
430
431 17 bool RefrigerationCondenserAirCooled::setRatedSubcoolingTemperatureDifference(double ratedSubcoolingTemperatureDifference) {
432
1/1
✓ Branch 3 taken 17 times.
17 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->setRatedSubcoolingTemperatureDifference(ratedSubcoolingTemperatureDifference);
433 }
434
435 ✗ void RefrigerationCondenserAirCooled::resetRatedSubcoolingTemperatureDifference() {
436 ✗ getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->resetRatedSubcoolingTemperatureDifference();
437 ✗ }
438
439 17 bool RefrigerationCondenserAirCooled::setCondenserFanSpeedControlType(const std::string& condenserFanSpeedControlType) {
440
1/1
✓ Branch 3 taken 17 times.
17 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->setCondenserFanSpeedControlType(condenserFanSpeedControlType);
441 }
442
443 ✗ void RefrigerationCondenserAirCooled::resetCondenserFanSpeedControlType() {
444 ✗ getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->resetCondenserFanSpeedControlType();
445 ✗ }
446
447 17 bool RefrigerationCondenserAirCooled::setRatedFanPower(double ratedFanPower) {
448
1/1
✓ Branch 3 taken 17 times.
17 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->setRatedFanPower(ratedFanPower);
449 }
450
451 ✗ void RefrigerationCondenserAirCooled::resetRatedFanPower() {
452 ✗ getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->resetRatedFanPower();
453 ✗ }
454
455 17 bool RefrigerationCondenserAirCooled::setMinimumFanAirFlowRatio(double minimumFanAirFlowRatio) {
456
1/1
✓ Branch 3 taken 17 times.
17 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->setMinimumFanAirFlowRatio(minimumFanAirFlowRatio);
457 }
458
459 ✗ void RefrigerationCondenserAirCooled::resetMinimumFanAirFlowRatio() {
460 ✗ getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->resetMinimumFanAirFlowRatio();
461 ✗ }
462
463 1 bool RefrigerationCondenserAirCooled::setAirInletZone(const ThermalZone& thermalZone) {
464
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->setAirInletZone(thermalZone);
465 }
466
467 4 void RefrigerationCondenserAirCooled::resetAirInletZone() {
468
1/1
✓ Branch 3 taken 4 times.
4 getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->resetAirInletZone();
469 4 }
470
471 ✗ bool RefrigerationCondenserAirCooled::setEndUseSubcategory(const std::string& endUseSubcategory) {
472 ✗ return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->setEndUseSubcategory(endUseSubcategory);
473 }
474
475 ✗ void RefrigerationCondenserAirCooled::resetEndUseSubcategory() {
476 ✗ getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->resetEndUseSubcategory();
477 ✗ }
478
479 ✗ bool RefrigerationCondenserAirCooled::setCondenserRefrigerantOperatingChargeInventory(double condenserRefrigerantOperatingChargeInventory) {
480 ✗ return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->setCondenserRefrigerantOperatingChargeInventory(
481 ✗ condenserRefrigerantOperatingChargeInventory);
482 }
483
484 ✗ void RefrigerationCondenserAirCooled::resetCondenserRefrigerantOperatingChargeInventory() {
485 ✗ getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->resetCondenserRefrigerantOperatingChargeInventory();
486 ✗ }
487
488 ✗ bool RefrigerationCondenserAirCooled::setCondensateReceiverRefrigerantInventory(double condensateReceiverRefrigerantInventory) {
489 ✗ return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->setCondensateReceiverRefrigerantInventory(condensateReceiverRefrigerantInventory);
490 }
491
492 ✗ void RefrigerationCondenserAirCooled::resetCondensateReceiverRefrigerantInventory() {
493 ✗ getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->resetCondensateReceiverRefrigerantInventory();
494 ✗ }
495
496 ✗ bool RefrigerationCondenserAirCooled::setCondensatePipingRefrigerantInventory(double condensatePipingRefrigerantInventory) {
497 ✗ return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->setCondensatePipingRefrigerantInventory(condensatePipingRefrigerantInventory);
498 }
499
500 ✗ void RefrigerationCondenserAirCooled::resetCondensatePipingRefrigerantInventory() {
501 ✗ getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->resetCondensatePipingRefrigerantInventory();
502 ✗ }
503
504 9 boost::optional<RefrigerationSystem> RefrigerationCondenserAirCooled::system() const {
505
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::RefrigerationCondenserAirCooled_Impl>()->system();
506 }
507
508 /// @cond
509 22 RefrigerationCondenserAirCooled::RefrigerationCondenserAirCooled(std::shared_ptr<detail::RefrigerationCondenserAirCooled_Impl> impl)
510
1/1
✓ Branch 3 taken 22 times.
22 : ParentObject(std::move(impl)) {}
511 /// @endcond
512
513 } // namespace model
514 } // namespace openstudio
515