GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 48.4% 326 / 0 / 673
Functions: 44.6% 90 / 0 / 202
Branches: 36.2% 204 / 0 / 564

src/model/RefrigerationAirChiller.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 "RefrigerationAirChiller.hpp"
7 #include "RefrigerationAirChiller_Impl.hpp"
8
9 #include "Schedule.hpp"
10 #include "Schedule_Impl.hpp"
11 // #include "CurveLinear.hpp"
12 // #include "CurveLinear_Impl.hpp"
13 #include "RefrigerationSystem.hpp"
14 #include "RefrigerationSystem_Impl.hpp"
15 #include "RefrigerationSecondarySystem.hpp"
16 #include "RefrigerationSecondarySystem_Impl.hpp"
17 #include "RefrigerationCompressorRack.hpp"
18 #include "RefrigerationCompressorRack_Impl.hpp"
19 #include "ThermalZone.hpp"
20 #include "ThermalZone_Impl.hpp"
21 #include "ScheduleTypeLimits.hpp"
22 #include "ScheduleTypeRegistry.hpp"
23 #include "Model.hpp"
24
25 #include "../utilities/core/Assert.hpp"
26 #include "../utilities/data/DataEnums.hpp"
27
28 #include <utilities/idd/IddFactory.hxx>
29 #include <utilities/idd/OS_Refrigeration_AirChiller_FieldEnums.hxx>
30 #include <utilities/idd/IddEnums.hxx>
31
32 namespace openstudio {
33 namespace model {
34
35 namespace detail {
36
37 25 RefrigerationAirChiller_Impl::RefrigerationAirChiller_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
38 25 : ZoneHVACComponent_Impl(idfObject, model, keepHandle) {
39
4/6
✓ Branch 1 taken 25 times.
✓ Branch 4 taken 25 times.
✓ Branch 7 taken 25 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 25 times.
✗ Branch 13 not taken.
25 OS_ASSERT(idfObject.iddObject().type() == RefrigerationAirChiller::iddObjectType());
40 25 }
41
42 ✗ RefrigerationAirChiller_Impl::RefrigerationAirChiller_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model,
43 ✗ bool keepHandle)
44 ✗ : ZoneHVACComponent_Impl(other, model, keepHandle) {
45 ✗ OS_ASSERT(other.iddObject().type() == RefrigerationAirChiller::iddObjectType());
46 ✗ }
47
48 8 RefrigerationAirChiller_Impl::RefrigerationAirChiller_Impl(const RefrigerationAirChiller_Impl& other, Model_Impl* model, bool keepHandle)
49 8 : ZoneHVACComponent_Impl(other, model, keepHandle) {}
50
51 ✗ const std::vector<std::string>& RefrigerationAirChiller_Impl::outputVariableNames() const {
52 static const std::vector<std::string> result{
53 "Refrigeration Zone Air Chiller Total Cooling Rate", "Refrigeration Zone Air Chiller Total Cooling Energy",
54 "Refrigeration Zone Air Chiller Sensible Cooling Rate", "Refrigeration Zone Air Chiller Sensible Cooling Energy",
55 "Refrigeration Zone Air Chiller Latent Cooling Rate", "Refrigeration Zone Air Chiller Latent Cooling Energy",
56 "Refrigeration Zone Air Chiller Water Removed Mass Flow Rate", "Refrigeration Zone Air Chiller Total Electricity Rate",
57 "Refrigeration Zone Air Chiller Total Electricity Energy", "Refrigeration Zone Air Chiller Fan Electricity Rate",
58 "Refrigeration Zone Air Chiller Fan Electricity Energy", "Refrigeration Zone Air Chiller Heater Electricity Rate",
59 "Refrigeration Zone Air Chiller Heater Electricity Energy", "Refrigeration Zone Air Chiller Sensible Heat Ratio",
60 "Refrigeration Zone Air Chiller Frost Accumulation Mass", "Refrigeration Zone Air Chiller Zone Total Cooling Rate",
61 "Refrigeration Zone Air Chiller Zone Total Cooling Energy", "Refrigeration Zone Air Chiller Zone Sensible Cooling Rate",
62 "Refrigeration Zone Air Chiller Zone Sensible Cooling Energy", "Refrigeration Zone Air Chiller Zone Heating Rate",
63 "Refrigeration Zone Air Chiller Zone Heating Energy",
64
65 // TODO: implement test
66 // Report only for Air Chillers using electric defrost
67 "Refrigeration Zone Air Chiller Defrost Electricity Rate", "Refrigeration Zone Air Chiller Defrost Electricity Energy"
68
69 // Reported in ThermalZone
70 // Report for each Zone exchanging energy with the Air Chiller
71 //"Refrigeration Zone Air Chiller Sensible Cooling Rate",
72 //"Refrigeration Zone Air Chiller Sensible Cooling Energy",
73 //"Refrigeration Zone Air Chiller Heating Rate",
74 //"Refrigeration Zone Air Chiller Heating Energy",
75 //"Refrigeration Zone Air Chiller Latent Cooling Rate",
76 //"Refrigeration Zone Air Chiller Latent Cooling Energy",
77 //"Refrigeration Zone Air Chiller Total Cooling Rate",
78 //"Refrigeration Zone Air Chiller Total Cooling Energy",
79 //"Refrigeration Zone Air Chiller Water Removed Mass Flow Rate"
80
81 ✗ };
82 ✗ return result;
83 ✗ }
84
85 ✗ IddObjectType RefrigerationAirChiller_Impl::iddObjectType() const {
86 ✗ return RefrigerationAirChiller::iddObjectType();
87 }
88
89 ✗ std::vector<ScheduleTypeKey> RefrigerationAirChiller_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
90 ✗ std::vector<ScheduleTypeKey> result;
91 ✗ UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
92 ✗ UnsignedVector::const_iterator b(fieldIndices.begin());
93 ✗ UnsignedVector::const_iterator e(fieldIndices.end());
94 ✗ if (std::find(b, e, OS_Refrigeration_AirChillerFields::AvailabilityScheduleName) != e) {
95 ✗ result.push_back(ScheduleTypeKey("RefrigerationAirChiller", "Availability"));
96 }
97 ✗ if (std::find(b, e, OS_Refrigeration_AirChillerFields::HeatingPowerScheduleName) != e) {
98 ✗ result.push_back(ScheduleTypeKey("RefrigerationAirChiller", "Heating Power"));
99 }
100 ✗ if (std::find(b, e, OS_Refrigeration_AirChillerFields::DefrostScheduleName) != e) {
101 ✗ result.push_back(ScheduleTypeKey("RefrigerationAirChiller", "Defrost"));
102 }
103 ✗ if (std::find(b, e, OS_Refrigeration_AirChillerFields::DefrostDripDownScheduleName) != e) {
104 ✗ result.push_back(ScheduleTypeKey("RefrigerationAirChiller", "Defrost Drip-Down"));
105 }
106 ✗ return result;
107 ✗ }
108
109 4 ModelObject RefrigerationAirChiller_Impl::clone(Model model) const {
110
3/3
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
4 auto airChillerClone = ZoneHVACComponent_Impl::clone(model).cast<RefrigerationAirChiller>();
111 8 return std::move(airChillerClone);
112 4 }
113
114 3 std::vector<IdfObject> RefrigerationAirChiller_Impl::remove() {
115 // Remove from ModelObjectList in system if needed
116 3 this->removeFromSystem();
117
118 3 return ZoneHVACComponent_Impl::remove();
119 }
120
121 // std::vector<ModelObject> RefrigerationAirChiller_Impl::children() const
122 // {
123 // std::vector<ModelObject> result;
124 // if (boost::optional<CurveLinear> intermediate = capacityCorrectionCurve()) {
125 // result.push_back(*intermediate);
126 // }
127 // return result;
128 // }
129
130 10 unsigned RefrigerationAirChiller_Impl::inletPort() const {
131 10 return 0; // this object has no inlet or outlet node
132 }
133
134 4 unsigned RefrigerationAirChiller_Impl::outletPort() const {
135 4 return 0; // this object has no inlet or outlet node
136 }
137
138 9 boost::optional<ThermalZone> RefrigerationAirChiller_Impl::thermalZone() const {
139
1/1
✓ Branch 1 taken 9 times.
9 Model m = this->model();
140
1/1
✓ Branch 1 taken 9 times.
9 auto thisObject = this->getObject<ModelObject>();
141
1/1
✓ Branch 1 taken 9 times.
9 std::vector<ThermalZone> thermalZones = m.getConcreteModelObjects<ThermalZone>();
142
2/2
✓ Branch 5 taken 6 times.
✓ Branch 6 taken 6 times.
12 for (const auto& thermalZone : thermalZones) {
143
1/1
✓ Branch 1 taken 6 times.
6 std::vector<ModelObject> equipment = thermalZone.equipment();
144
145
3/3
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 3 times.
✓ Branch 8 taken 3 times.
6 if (std::find(equipment.begin(), equipment.end(), thisObject) != equipment.end()) {
146
1/1
✓ Branch 1 taken 3 times.
3 return thermalZone;
147 }
148 6 }
149 6 return boost::none;
150 9 }
151
152 3 bool RefrigerationAirChiller_Impl::addToThermalZone(ThermalZone& thermalZone) {
153
1/1
✓ Branch 1 taken 3 times.
3 Model m = this->model();
154
155
3/4
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 3 times.
3 if (thermalZone.model() != m) {
156 ✗ return false;
157 }
158
159
1/1
✓ Branch 1 taken 3 times.
3 removeFromThermalZone();
160
1/1
✓ Branch 1 taken 3 times.
3 thermalZone.setUseIdealAirLoads(false);
161
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 thermalZone.addEquipment(this->getObject<ZoneHVACComponent>());
162
163 3 return true;
164 3 }
165
166 7 void RefrigerationAirChiller_Impl::removeFromThermalZone() {
167
3/3
✓ Branch 1 taken 7 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 6 times.
14 if (boost::optional<ThermalZone> thermalZone = this->thermalZone()) {
168
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
1 thermalZone->removeEquipment(this->getObject<ZoneHVACComponent>());
169 7 }
170 7 }
171
172 ✗ boost::optional<Schedule> RefrigerationAirChiller_Impl::availabilitySchedule() const {
173 ✗ return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Refrigeration_AirChillerFields::AvailabilityScheduleName);
174 }
175
176 3 std::string RefrigerationAirChiller_Impl::capacityRatingType() const {
177
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_Refrigeration_AirChillerFields::CapacityRatingType, true);
178
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
179
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return value.get();
180 3 }
181
182 3 boost::optional<double> RefrigerationAirChiller_Impl::ratedUnitLoadFactor() const {
183 3 return getDouble(OS_Refrigeration_AirChillerFields::RatedUnitLoadFactor, true);
184 }
185
186 ✗ boost::optional<double> RefrigerationAirChiller_Impl::ratedCapacity() const {
187 ✗ return getDouble(OS_Refrigeration_AirChillerFields::RatedCapacity, true);
188 }
189
190 ✗ double RefrigerationAirChiller_Impl::ratedRelativeHumidity() const {
191 ✗ boost::optional<double> value = getDouble(OS_Refrigeration_AirChillerFields::RatedRelativeHumidity, true);
192 ✗ OS_ASSERT(value);
193 ✗ return value.get();
194 }
195
196 ✗ bool RefrigerationAirChiller_Impl::isRatedRelativeHumidityDefaulted() const {
197 ✗ return isEmpty(OS_Refrigeration_AirChillerFields::RatedRelativeHumidity);
198 }
199
200 3 double RefrigerationAirChiller_Impl::ratedCoolingSourceTemperature() const {
201
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Refrigeration_AirChillerFields::RatedCoolingSourceTemperature, true);
202
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
203
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
204 }
205
206 3 double RefrigerationAirChiller_Impl::ratedTemperatureDifferenceDT1() const {
207
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Refrigeration_AirChillerFields::RatedTemperatureDifferenceDT1, true);
208
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
209
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
210 }
211
212 3 boost::optional<double> RefrigerationAirChiller_Impl::maximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature() const {
213 3 return getDouble(OS_Refrigeration_AirChillerFields::MaximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature, true);
214 }
215
216 3 double RefrigerationAirChiller_Impl::coilMaterialCorrectionFactor() const {
217
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Refrigeration_AirChillerFields::CoilMaterialCorrectionFactor, true);
218
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
219
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
220 }
221
222 ✗ bool RefrigerationAirChiller_Impl::isCoilMaterialCorrectionFactorDefaulted() const {
223 ✗ return isEmpty(OS_Refrigeration_AirChillerFields::CoilMaterialCorrectionFactor);
224 }
225
226 3 double RefrigerationAirChiller_Impl::refrigerantCorrectionFactor() const {
227
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Refrigeration_AirChillerFields::RefrigerantCorrectionFactor, true);
228
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
229
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
230 }
231
232 ✗ bool RefrigerationAirChiller_Impl::isRefrigerantCorrectionFactorDefaulted() const {
233 ✗ return isEmpty(OS_Refrigeration_AirChillerFields::RefrigerantCorrectionFactor);
234 }
235
236 // std::string RefrigerationAirChiller_Impl::capacityCorrectionCurveType() const {
237 // boost::optional<std::string> value = getString(OS_Refrigeration_AirChillerFields::CapacityCorrectionCurveType,true);
238 // OS_ASSERT(value);
239 // return value.get();
240 // }
241
242 // bool RefrigerationAirChiller_Impl::isCapacityCorrectionCurveTypeDefaulted() const {
243 // return isEmpty(OS_Refrigeration_AirChillerFields::CapacityCorrectionCurveType);
244 // }
245
246 // boost::optional<CurveLinear> RefrigerationAirChiller_Impl::capacityCorrectionCurve() const {
247 // return getObject<ModelObject>().getModelObjectTarget<CurveLinear>(OS_Refrigeration_AirChillerFields::CapacityCorrectionCurveName);
248 // }
249
250 3 double RefrigerationAirChiller_Impl::sHR60CorrectionFactor() const {
251
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Refrigeration_AirChillerFields::SHR60CorrectionFactor, true);
252
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
253
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
254 }
255
256 ✗ bool RefrigerationAirChiller_Impl::isSHR60CorrectionFactorDefaulted() const {
257 ✗ return isEmpty(OS_Refrigeration_AirChillerFields::SHR60CorrectionFactor);
258 }
259
260 3 double RefrigerationAirChiller_Impl::ratedTotalHeatingPower() const {
261
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Refrigeration_AirChillerFields::RatedTotalHeatingPower, true);
262
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
263
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
264 }
265
266 ✗ boost::optional<Schedule> RefrigerationAirChiller_Impl::heatingPowerSchedule() const {
267 ✗ return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Refrigeration_AirChillerFields::HeatingPowerScheduleName);
268 }
269
270 3 std::string RefrigerationAirChiller_Impl::fanSpeedControlType() const {
271
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_Refrigeration_AirChillerFields::FanSpeedControlType, true);
272
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
273
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return value.get();
274 3 }
275
276 ✗ bool RefrigerationAirChiller_Impl::isFanSpeedControlTypeDefaulted() const {
277 ✗ return isEmpty(OS_Refrigeration_AirChillerFields::FanSpeedControlType);
278 }
279
280 3 double RefrigerationAirChiller_Impl::ratedFanPower() const {
281
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Refrigeration_AirChillerFields::RatedFanPower, true);
282
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
283
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
284 }
285
286 ✗ bool RefrigerationAirChiller_Impl::isRatedFanPowerDefaulted() const {
287 ✗ return isEmpty(OS_Refrigeration_AirChillerFields::RatedFanPower);
288 }
289
290 3 double RefrigerationAirChiller_Impl::ratedAirFlow() const {
291
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Refrigeration_AirChillerFields::RatedAirFlow, true);
292
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
293
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
294 }
295
296 3 double RefrigerationAirChiller_Impl::minimumFanAirFlowRatio() const {
297
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Refrigeration_AirChillerFields::MinimumFanAirFlowRatio, true);
298
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
299
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
300 }
301
302 ✗ bool RefrigerationAirChiller_Impl::isMinimumFanAirFlowRatioDefaulted() const {
303 ✗ return isEmpty(OS_Refrigeration_AirChillerFields::MinimumFanAirFlowRatio);
304 }
305
306 3 std::string RefrigerationAirChiller_Impl::defrostType() const {
307
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_Refrigeration_AirChillerFields::DefrostType, true);
308
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
309
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return value.get();
310 3 }
311
312 ✗ bool RefrigerationAirChiller_Impl::isDefrostTypeDefaulted() const {
313 ✗ return isEmpty(OS_Refrigeration_AirChillerFields::DefrostType);
314 }
315
316 3 std::string RefrigerationAirChiller_Impl::defrostControlType() const {
317
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_Refrigeration_AirChillerFields::DefrostControlType, true);
318
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
319
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return value.get();
320 3 }
321
322 ✗ bool RefrigerationAirChiller_Impl::isDefrostControlTypeDefaulted() const {
323 ✗ return isEmpty(OS_Refrigeration_AirChillerFields::DefrostControlType);
324 }
325
326 ✗ Schedule RefrigerationAirChiller_Impl::defrostSchedule() const {
327 ✗ boost::optional<Schedule> value = optionalDefrostSchedule();
328 ✗ if (!value) {
329 ✗ LOG_AND_THROW(briefDescription() << " does not have an Defrost Schedule attached.");
330 }
331 ✗ return value.get();
332 ✗ }
333
334 ✗ boost::optional<Schedule> RefrigerationAirChiller_Impl::defrostDripDownSchedule() const {
335 ✗ return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Refrigeration_AirChillerFields::DefrostDripDownScheduleName);
336 }
337
338 3 boost::optional<double> RefrigerationAirChiller_Impl::defrostPower() const {
339 3 return getDouble(OS_Refrigeration_AirChillerFields::DefrostPower, true);
340 }
341
342 3 boost::optional<double> RefrigerationAirChiller_Impl::temperatureTerminationDefrostFractiontoIce() const {
343 3 return getDouble(OS_Refrigeration_AirChillerFields::TemperatureTerminationDefrostFractiontoIce, true);
344 }
345
346 3 std::string RefrigerationAirChiller_Impl::verticalLocation() const {
347
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_Refrigeration_AirChillerFields::VerticalLocation, true);
348
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
349
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return value.get();
350 3 }
351
352 ✗ bool RefrigerationAirChiller_Impl::isVerticalLocationDefaulted() const {
353 ✗ return isEmpty(OS_Refrigeration_AirChillerFields::VerticalLocation);
354 }
355
356 ✗ double RefrigerationAirChiller_Impl::averageRefrigerantChargeInventory() const {
357 ✗ boost::optional<double> value = getDouble(OS_Refrigeration_AirChillerFields::AverageRefrigerantChargeInventory, true);
358 ✗ OS_ASSERT(value);
359 ✗ return value.get();
360 }
361
362 ✗ bool RefrigerationAirChiller_Impl::isAverageRefrigerantChargeInventoryDefaulted() const {
363 ✗ return isEmpty(OS_Refrigeration_AirChillerFields::AverageRefrigerantChargeInventory);
364 }
365
366 14 boost::optional<RefrigerationSystem> RefrigerationAirChiller_Impl::system() const {
367
2/2
✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
14 std::vector<RefrigerationSystem> refrigerationSystems = this->model().getConcreteModelObjects<RefrigerationSystem>();
368
1/1
✓ Branch 1 taken 14 times.
14 auto refrigerationAirChiller = this->getObject<RefrigerationAirChiller>();
369
2/2
✓ Branch 5 taken 13 times.
✓ Branch 6 taken 11 times.
24 for (const RefrigerationSystem& refrigerationSystem : refrigerationSystems) {
370
1/1
✓ Branch 1 taken 13 times.
13 RefrigerationAirChillerVector refrigerationAirChillers = refrigerationSystem.airChillers();
371 13 if (!refrigerationAirChillers.empty()
372
3/3
✓ Branch 0 taken 6 times.
✓ Branch 1 taken 7 times.
✓ Branch 5 taken 6 times.
25 && std::find(refrigerationAirChillers.begin(), refrigerationAirChillers.end(), refrigerationAirChiller)
373
4/4
✓ Branch 2 taken 3 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 5 taken 10 times.
25 != refrigerationAirChillers.end()) {
374
1/1
✓ Branch 1 taken 3 times.
3 return refrigerationSystem;
375 }
376 13 }
377 11 return boost::none;
378 14 }
379
380 6 boost::optional<RefrigerationSecondarySystem> RefrigerationAirChiller_Impl::secondarySystem() const {
381
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
6 std::vector<RefrigerationSecondarySystem> refrigerationSecondarySystems = this->model().getConcreteModelObjects<RefrigerationSecondarySystem>();
382
1/1
✓ Branch 1 taken 6 times.
6 auto refrigerationAirChiller = this->getObject<RefrigerationAirChiller>();
383
2/2
✓ Branch 5 taken 6 times.
✓ Branch 6 taken 6 times.
12 for (const RefrigerationSecondarySystem& refrigerationSecondarySystem : refrigerationSecondarySystems) {
384
1/1
✓ Branch 1 taken 6 times.
6 RefrigerationAirChillerVector refrigerationAirChillers = refrigerationSecondarySystem.airChillers();
385 6 if (!refrigerationAirChillers.empty()
386
3/3
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 4 times.
✓ Branch 5 taken 2 times.
10 && std::find(refrigerationAirChillers.begin(), refrigerationAirChillers.end(), refrigerationAirChiller)
387
2/4
✗ Branch 2 not taken.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
✓ Branch 5 taken 6 times.
10 != refrigerationAirChillers.end()) {
388 ✗ return refrigerationSecondarySystem;
389 }
390 6 }
391 6 return boost::none;
392 6 }
393
394 ✗ boost::optional<RefrigerationCompressorRack> RefrigerationAirChiller_Impl::compressorRack() const {
395 ✗ std::vector<RefrigerationCompressorRack> refrigerationCompressorRacks = this->model().getConcreteModelObjects<RefrigerationCompressorRack>();
396 ✗ auto refrigerationAirChiller = this->getObject<RefrigerationAirChiller>();
397 ✗ for (const RefrigerationCompressorRack& refrigerationCompressorRack : refrigerationCompressorRacks) {
398 ✗ RefrigerationAirChillerVector refrigerationAirChillers = refrigerationCompressorRack.airChillers();
399 ✗ if (!refrigerationAirChillers.empty()
400 ✗ && std::find(refrigerationAirChillers.begin(), refrigerationAirChillers.end(), refrigerationAirChiller)
401 ✗ != refrigerationAirChillers.end()) {
402 ✗ return refrigerationCompressorRack;
403 }
404 ✗ }
405 ✗ return boost::none;
406 ✗ }
407
408 ✗ bool RefrigerationAirChiller_Impl::setAvailabilitySchedule(Schedule& schedule) {
409 ✗ bool result = setSchedule(OS_Refrigeration_AirChillerFields::AvailabilityScheduleName, "RefrigerationAirChiller", "Availability", schedule);
410 ✗ return result;
411 }
412
413 ✗ void RefrigerationAirChiller_Impl::resetAvailabilitySchedule() {
414 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::AvailabilityScheduleName, "");
415 ✗ OS_ASSERT(result);
416 ✗ }
417
418 27 bool RefrigerationAirChiller_Impl::setCapacityRatingType(const std::string& capacityRatingType) {
419 27 bool result = setString(OS_Refrigeration_AirChillerFields::CapacityRatingType, capacityRatingType);
420 27 return result;
421 }
422
423 27 bool RefrigerationAirChiller_Impl::setRatedUnitLoadFactor(boost::optional<double> ratedUnitLoadFactor) {
424 27 bool result(false);
425
1/2
✓ Branch 0 taken 27 times.
✗ Branch 1 not taken.
27 if (ratedUnitLoadFactor) {
426 27 result = setDouble(OS_Refrigeration_AirChillerFields::RatedUnitLoadFactor, ratedUnitLoadFactor.get());
427 } else {
428 ✗ resetRatedUnitLoadFactor();
429 ✗ result = true;
430 }
431
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 27 times.
27 OS_ASSERT(result);
432 27 return result;
433 }
434
435 ✗ void RefrigerationAirChiller_Impl::resetRatedUnitLoadFactor() {
436 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::RatedUnitLoadFactor, "");
437 ✗ OS_ASSERT(result);
438 ✗ }
439
440 ✗ bool RefrigerationAirChiller_Impl::setRatedCapacity(boost::optional<double> ratedCapacity) {
441 ✗ bool result(false);
442 ✗ if (ratedCapacity) {
443 ✗ result = setDouble(OS_Refrigeration_AirChillerFields::RatedCapacity, ratedCapacity.get());
444 } else {
445 ✗ resetRatedCapacity();
446 ✗ result = true;
447 }
448 ✗ OS_ASSERT(result);
449 ✗ return result;
450 }
451
452 ✗ void RefrigerationAirChiller_Impl::resetRatedCapacity() {
453 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::RatedCapacity, "");
454 ✗ OS_ASSERT(result);
455 ✗ }
456
457 ✗ bool RefrigerationAirChiller_Impl::setRatedRelativeHumidity(double ratedRelativeHumidity) {
458 ✗ bool result = setDouble(OS_Refrigeration_AirChillerFields::RatedRelativeHumidity, ratedRelativeHumidity);
459 ✗ return result;
460 }
461
462 ✗ void RefrigerationAirChiller_Impl::resetRatedRelativeHumidity() {
463 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::RatedRelativeHumidity, "");
464 ✗ OS_ASSERT(result);
465 ✗ }
466
467 27 bool RefrigerationAirChiller_Impl::setRatedCoolingSourceTemperature(double ratedCoolingSourceTemperature) {
468 27 bool result = setDouble(OS_Refrigeration_AirChillerFields::RatedCoolingSourceTemperature, ratedCoolingSourceTemperature);
469 27 return result;
470 }
471
472 27 bool RefrigerationAirChiller_Impl::setRatedTemperatureDifferenceDT1(double ratedTemperatureDifferenceDT1) {
473 27 bool result = setDouble(OS_Refrigeration_AirChillerFields::RatedTemperatureDifferenceDT1, ratedTemperatureDifferenceDT1);
474 27 return result;
475 }
476
477 27 bool RefrigerationAirChiller_Impl::setMaximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature(
478 boost::optional<double> maximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature) {
479 27 bool result(false);
480
1/2
✓ Branch 0 taken 27 times.
✗ Branch 1 not taken.
27 if (maximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature) {
481 27 result = setDouble(OS_Refrigeration_AirChillerFields::MaximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature,
482 27 maximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature.get());
483 } else {
484 ✗ resetMaximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature();
485 ✗ result = true;
486 }
487 27 return result;
488 }
489
490 ✗ void RefrigerationAirChiller_Impl::resetMaximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature() {
491 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::MaximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature, "");
492 ✗ OS_ASSERT(result);
493 ✗ }
494
495 27 bool RefrigerationAirChiller_Impl::setCoilMaterialCorrectionFactor(double coilMaterialCorrectionFactor) {
496 27 bool result = setDouble(OS_Refrigeration_AirChillerFields::CoilMaterialCorrectionFactor, coilMaterialCorrectionFactor);
497
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 27 times.
27 OS_ASSERT(result);
498 27 return result;
499 }
500
501 ✗ void RefrigerationAirChiller_Impl::resetCoilMaterialCorrectionFactor() {
502 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::CoilMaterialCorrectionFactor, "");
503 ✗ OS_ASSERT(result);
504 ✗ }
505
506 27 bool RefrigerationAirChiller_Impl::setRefrigerantCorrectionFactor(double refrigerantCorrectionFactor) {
507 27 bool result = setDouble(OS_Refrigeration_AirChillerFields::RefrigerantCorrectionFactor, refrigerantCorrectionFactor);
508
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 27 times.
27 OS_ASSERT(result);
509 27 return result;
510 }
511
512 ✗ void RefrigerationAirChiller_Impl::resetRefrigerantCorrectionFactor() {
513 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::RefrigerantCorrectionFactor, "");
514 ✗ OS_ASSERT(result);
515 ✗ }
516
517 // bool RefrigerationAirChiller_Impl::setCapacityCorrectionCurveType(const std::string& capacityCorrectionCurveType) {
518 // bool result = setString(OS_Refrigeration_AirChillerFields::CapacityCorrectionCurveType, capacityCorrectionCurveType);
519 // return result;
520 // }
521
522 // void RefrigerationAirChiller_Impl::resetCapacityCorrectionCurveType() {
523 // bool result = setString(OS_Refrigeration_AirChillerFields::CapacityCorrectionCurveType, "");
524 // OS_ASSERT(result);
525 // }
526
527 // bool RefrigerationAirChiller_Impl::setCapacityCorrectionCurve(const boost::optional<CurveLinear>& curveLinear) {
528 // bool result(false);
529 // if (curveLinear) {
530 // result = setPointer(OS_Refrigeration_AirChillerFields::CapacityCorrectionCurveName, curveLinear.get().handle());
531 // }
532 // else {
533 // resetCapacityCorrectionCurve();
534 // result = true;
535 // }
536 // return result;
537 // }
538
539 // void RefrigerationAirChiller_Impl::resetCapacityCorrectionCurve() {
540 // bool result = setString(OS_Refrigeration_AirChillerFields::CapacityCorrectionCurveName, "");
541 // OS_ASSERT(result);
542 // }
543
544 27 bool RefrigerationAirChiller_Impl::setSHR60CorrectionFactor(double sHR60CorrectionFactor) {
545 27 bool result = setDouble(OS_Refrigeration_AirChillerFields::SHR60CorrectionFactor, sHR60CorrectionFactor);
546 27 return result;
547 }
548
549 ✗ void RefrigerationAirChiller_Impl::resetSHR60CorrectionFactor() {
550 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::SHR60CorrectionFactor, "");
551 ✗ OS_ASSERT(result);
552 ✗ }
553
554 27 bool RefrigerationAirChiller_Impl::setRatedTotalHeatingPower(double ratedTotalHeatingPower) {
555 27 bool result = setDouble(OS_Refrigeration_AirChillerFields::RatedTotalHeatingPower, ratedTotalHeatingPower);
556
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 27 times.
27 OS_ASSERT(result);
557 27 return result;
558 }
559
560 ✗ bool RefrigerationAirChiller_Impl::setHeatingPowerSchedule(Schedule& schedule) {
561 ✗ bool result = setSchedule(OS_Refrigeration_AirChillerFields::HeatingPowerScheduleName, "RefrigerationAirChiller", "Heating Power", schedule);
562 ✗ return result;
563 }
564
565 ✗ void RefrigerationAirChiller_Impl::resetHeatingPowerSchedule() {
566 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::HeatingPowerScheduleName, "");
567 ✗ OS_ASSERT(result);
568 ✗ }
569
570 27 bool RefrigerationAirChiller_Impl::setFanSpeedControlType(const std::string& fanSpeedControlType) {
571 27 bool result = setString(OS_Refrigeration_AirChillerFields::FanSpeedControlType, fanSpeedControlType);
572 27 return result;
573 }
574
575 ✗ void RefrigerationAirChiller_Impl::resetFanSpeedControlType() {
576 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::FanSpeedControlType, "");
577 ✗ OS_ASSERT(result);
578 ✗ }
579
580 27 bool RefrigerationAirChiller_Impl::setRatedFanPower(double ratedFanPower) {
581 27 bool result = setDouble(OS_Refrigeration_AirChillerFields::RatedFanPower, ratedFanPower);
582 27 return result;
583 }
584
585 ✗ void RefrigerationAirChiller_Impl::resetRatedFanPower() {
586 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::RatedFanPower, "");
587 ✗ OS_ASSERT(result);
588 ✗ }
589
590 27 bool RefrigerationAirChiller_Impl::setRatedAirFlow(double ratedAirFlow) {
591 27 bool result = setDouble(OS_Refrigeration_AirChillerFields::RatedAirFlow, ratedAirFlow);
592
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 27 times.
27 OS_ASSERT(result);
593 27 return result;
594 }
595
596 27 bool RefrigerationAirChiller_Impl::setMinimumFanAirFlowRatio(double minimumFanAirFlowRatio) {
597 27 bool result = setDouble(OS_Refrigeration_AirChillerFields::MinimumFanAirFlowRatio, minimumFanAirFlowRatio);
598 27 return result;
599 }
600
601 ✗ void RefrigerationAirChiller_Impl::resetMinimumFanAirFlowRatio() {
602 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::MinimumFanAirFlowRatio, "");
603 ✗ OS_ASSERT(result);
604 ✗ }
605
606 27 bool RefrigerationAirChiller_Impl::setDefrostType(const std::string& defrostType) {
607 27 bool result = setString(OS_Refrigeration_AirChillerFields::DefrostType, defrostType);
608 27 return result;
609 }
610
611 ✗ void RefrigerationAirChiller_Impl::resetDefrostType() {
612 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::DefrostType, "");
613 ✗ OS_ASSERT(result);
614 ✗ }
615
616 27 bool RefrigerationAirChiller_Impl::setDefrostControlType(const std::string& defrostControlType) {
617 27 bool result = setString(OS_Refrigeration_AirChillerFields::DefrostControlType, defrostControlType);
618 27 return result;
619 }
620
621 ✗ void RefrigerationAirChiller_Impl::resetDefrostControlType() {
622 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::DefrostControlType, "");
623 ✗ OS_ASSERT(result);
624 ✗ }
625
626 25 bool RefrigerationAirChiller_Impl::setDefrostSchedule(Schedule& schedule) {
627
3/3
✓ Branch 1 taken 25 times.
✓ Branch 4 taken 25 times.
✓ Branch 7 taken 25 times.
100 bool result = setSchedule(OS_Refrigeration_AirChillerFields::DefrostScheduleName, "RefrigerationAirChiller", "Defrost", schedule);
628 25 return result;
629 }
630
631 ✗ bool RefrigerationAirChiller_Impl::setDefrostDripDownSchedule(Schedule& schedule) {
632 bool result =
633 ✗ setSchedule(OS_Refrigeration_AirChillerFields::DefrostDripDownScheduleName, "RefrigerationAirChiller", "Defrost Drip-Down", schedule);
634 ✗ return result;
635 }
636
637 ✗ void RefrigerationAirChiller_Impl::resetDefrostDripDownSchedule() {
638 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::DefrostDripDownScheduleName, "");
639 ✗ OS_ASSERT(result);
640 ✗ }
641
642 27 bool RefrigerationAirChiller_Impl::setDefrostPower(boost::optional<double> defrostPower) {
643 27 bool result(false);
644
1/2
✓ Branch 0 taken 27 times.
✗ Branch 1 not taken.
27 if (defrostPower) {
645 27 result = setDouble(OS_Refrigeration_AirChillerFields::DefrostPower, defrostPower.get());
646 } else {
647 ✗ resetDefrostPower();
648 ✗ result = true;
649 }
650 27 return result;
651 }
652
653 ✗ void RefrigerationAirChiller_Impl::resetDefrostPower() {
654 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::DefrostPower, "");
655 ✗ OS_ASSERT(result);
656 ✗ }
657
658 27 bool RefrigerationAirChiller_Impl::setTemperatureTerminationDefrostFractiontoIce(
659 boost::optional<double> temperatureTerminationDefrostFractiontoIce) {
660 27 bool result(false);
661
1/2
✓ Branch 0 taken 27 times.
✗ Branch 1 not taken.
27 if (temperatureTerminationDefrostFractiontoIce) {
662 result =
663 27 setDouble(OS_Refrigeration_AirChillerFields::TemperatureTerminationDefrostFractiontoIce, temperatureTerminationDefrostFractiontoIce.get());
664 } else {
665 ✗ resetTemperatureTerminationDefrostFractiontoIce();
666 ✗ result = true;
667 }
668 27 return result;
669 }
670
671 ✗ void RefrigerationAirChiller_Impl::resetTemperatureTerminationDefrostFractiontoIce() {
672 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::TemperatureTerminationDefrostFractiontoIce, "");
673 ✗ OS_ASSERT(result);
674 ✗ }
675
676 25 bool RefrigerationAirChiller_Impl::setVerticalLocation(const std::string& verticalLocation) {
677 25 bool result = setString(OS_Refrigeration_AirChillerFields::VerticalLocation, verticalLocation);
678 25 return result;
679 }
680
681 ✗ void RefrigerationAirChiller_Impl::resetVerticalLocation() {
682 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::VerticalLocation, "");
683 ✗ OS_ASSERT(result);
684 ✗ }
685
686 ✗ bool RefrigerationAirChiller_Impl::setAverageRefrigerantChargeInventory(double averageRefrigerantChargeInventory) {
687 ✗ bool result = setDouble(OS_Refrigeration_AirChillerFields::AverageRefrigerantChargeInventory, averageRefrigerantChargeInventory);
688 ✗ OS_ASSERT(result);
689 ✗ return result;
690 }
691
692 ✗ void RefrigerationAirChiller_Impl::resetAverageRefrigerantChargeInventory() {
693 ✗ bool result = setString(OS_Refrigeration_AirChillerFields::AverageRefrigerantChargeInventory, "");
694 ✗ OS_ASSERT(result);
695 ✗ }
696
697 ✗ boost::optional<Schedule> RefrigerationAirChiller_Impl::optionalDefrostSchedule() const {
698 ✗ return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Refrigeration_AirChillerFields::DefrostScheduleName);
699 }
700
701 ✗ bool RefrigerationAirChiller_Impl::addToSystem(RefrigerationSystem& system) {
702 ✗ return system.addAirChiller(this->getObject<RefrigerationAirChiller>());
703 }
704
705 3 void RefrigerationAirChiller_Impl::removeFromSystem() {
706
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<RefrigerationSystem> refrigerationSystem = system();
707
2/2
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 1 time.
3 if (refrigerationSystem) {
708
3/3
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
2 refrigerationSystem.get().removeAirChiller(this->getObject<RefrigerationAirChiller>());
709 }
710 3 }
711
712 ✗ bool RefrigerationAirChiller_Impl::addToSecondarySystem(RefrigerationSecondarySystem& secondarySystem) {
713 ✗ return secondarySystem.addAirChiller(this->getObject<RefrigerationAirChiller>());
714 }
715
716 ✗ void RefrigerationAirChiller_Impl::removeFromSecondarySystem() {
717 ✗ boost::optional<RefrigerationSecondarySystem> refrigerationSecondarySystem = secondarySystem();
718 ✗ if (refrigerationSecondarySystem) {
719 ✗ refrigerationSecondarySystem.get().removeAirChiller(this->getObject<RefrigerationAirChiller>());
720 }
721 ✗ }
722
723 ✗ bool RefrigerationAirChiller_Impl::addToCompressorRack(RefrigerationCompressorRack& compressorRack) {
724 ✗ return compressorRack.addAirChiller(this->getObject<RefrigerationAirChiller>());
725 }
726
727 ✗ void RefrigerationAirChiller_Impl::removeFromCompressorRack() {
728 ✗ boost::optional<RefrigerationCompressorRack> refrigerationCompressorRack = compressorRack();
729 ✗ if (refrigerationCompressorRack) {
730 ✗ refrigerationCompressorRack.get().removeAirChiller(this->getObject<RefrigerationAirChiller>());
731 }
732 ✗ }
733
734 ✗ ComponentType RefrigerationAirChiller_Impl::componentType() const {
735 ✗ return ComponentType::Cooling;
736 }
737
738 ✗ std::vector<FuelType> RefrigerationAirChiller_Impl::coolingFuelTypes() const {
739 ✗ return {FuelType::Electricity};
740 }
741
742 ✗ std::vector<FuelType> RefrigerationAirChiller_Impl::heatingFuelTypes() const {
743 ✗ return {};
744 }
745
746 ✗ std::vector<AppGFuelType> RefrigerationAirChiller_Impl::appGHeatingFuelTypes() const {
747 ✗ return {};
748 }
749
750 } // namespace detail
751
752 25 RefrigerationAirChiller::RefrigerationAirChiller(const Model& model, Schedule& defrostSchedule)
753 25 : ZoneHVACComponent(RefrigerationAirChiller::iddObjectType(), model) {
754
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 25 times.
✗ Branch 5 not taken.
25 OS_ASSERT(getImpl<detail::RefrigerationAirChiller_Impl>());
755
756
2/2
✓ Branch 1 taken 25 times.
✓ Branch 4 taken 25 times.
25 bool ok = setCapacityRatingType("UnitLoadFactorSensibleOnly");
757
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 25 times.
✗ Branch 3 not taken.
25 OS_ASSERT(ok);
758
1/1
✓ Branch 1 taken 25 times.
25 setRatedUnitLoadFactor(15000.0);
759
1/1
✓ Branch 1 taken 25 times.
25 ok = setRatedCoolingSourceTemperature(-30.0);
760
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 25 times.
✗ Branch 3 not taken.
25 OS_ASSERT(ok);
761
1/1
✓ Branch 1 taken 25 times.
25 ok = setRatedTemperatureDifferenceDT1(5.6);
762
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 25 times.
✗ Branch 3 not taken.
25 OS_ASSERT(ok);
763
1/1
✓ Branch 1 taken 25 times.
25 ok = setMaximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature(7.3);
764
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 25 times.
✗ Branch 3 not taken.
25 OS_ASSERT(ok);
765
1/1
✓ Branch 1 taken 25 times.
25 setCoilMaterialCorrectionFactor(1.0);
766
1/1
✓ Branch 1 taken 25 times.
25 setRefrigerantCorrectionFactor(1.0);
767
1/1
✓ Branch 1 taken 25 times.
25 ok = setSHR60CorrectionFactor(1.5);
768
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 25 times.
✗ Branch 3 not taken.
25 OS_ASSERT(ok);
769
1/1
✓ Branch 1 taken 25 times.
25 setRatedTotalHeatingPower(275.0);
770
2/2
✓ Branch 1 taken 25 times.
✓ Branch 4 taken 25 times.
25 ok = setFanSpeedControlType("Fixed");
771
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 25 times.
✗ Branch 3 not taken.
25 OS_ASSERT(ok);
772
1/1
✓ Branch 1 taken 25 times.
25 ok = setRatedFanPower(1500.0);
773
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 25 times.
✗ Branch 3 not taken.
25 OS_ASSERT(ok);
774
1/1
✓ Branch 1 taken 25 times.
25 setRatedAirFlow(20.0);
775
1/1
✓ Branch 1 taken 25 times.
25 ok = setMinimumFanAirFlowRatio(0.2);
776
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 25 times.
✗ Branch 3 not taken.
25 OS_ASSERT(ok);
777
2/2
✓ Branch 1 taken 25 times.
✓ Branch 4 taken 25 times.
25 ok = setDefrostType("Electric");
778
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 25 times.
✗ Branch 3 not taken.
25 OS_ASSERT(ok);
779
2/2
✓ Branch 1 taken 25 times.
✓ Branch 4 taken 25 times.
25 ok = setDefrostControlType("TimeSchedule");
780
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 25 times.
✗ Branch 3 not taken.
25 OS_ASSERT(ok);
781
1/1
✓ Branch 1 taken 25 times.
25 ok = setDefrostSchedule(defrostSchedule);
782
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 25 times.
✗ Branch 3 not taken.
25 OS_ASSERT(ok);
783
1/1
✓ Branch 1 taken 25 times.
25 ok = setDefrostPower(75000.0);
784
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 25 times.
✗ Branch 3 not taken.
25 OS_ASSERT(ok);
785
1/1
✓ Branch 1 taken 25 times.
25 ok = setTemperatureTerminationDefrostFractiontoIce(0.7);
786
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 25 times.
✗ Branch 3 not taken.
25 OS_ASSERT(ok);
787
2/2
✓ Branch 3 taken 25 times.
✓ Branch 6 taken 25 times.
75 ok = getImpl<detail::RefrigerationAirChiller_Impl>()->setVerticalLocation("Middle");
788
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 25 times.
✗ Branch 3 not taken.
25 OS_ASSERT(ok);
789 25 }
790
791 7791 IddObjectType RefrigerationAirChiller::iddObjectType() {
792
1/1
✓ Branch 1 taken 7791 times.
7791 return {IddObjectType::OS_Refrigeration_AirChiller};
793 }
794
795 ✗ std::vector<std::string> RefrigerationAirChiller::capacityRatingTypeValues() {
796 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Refrigeration_AirChillerFields::CapacityRatingType);
797 }
798
799 // std::vector<std::string> RefrigerationAirChiller::capacityCorrectionCurveTypeValues() {
800 // return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
801 // OS_Refrigeration_AirChillerFields::CapacityCorrectionCurveType);
802 // }
803
804 ✗ std::vector<std::string> RefrigerationAirChiller::fanSpeedControlTypeValues() {
805 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Refrigeration_AirChillerFields::FanSpeedControlType);
806 }
807
808 ✗ std::vector<std::string> RefrigerationAirChiller::defrostTypeValues() {
809 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Refrigeration_AirChillerFields::DefrostType);
810 }
811
812 ✗ std::vector<std::string> RefrigerationAirChiller::defrostControlTypeValues() {
813 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Refrigeration_AirChillerFields::DefrostControlType);
814 }
815
816 ✗ std::vector<std::string> RefrigerationAirChiller::verticalLocationValues() {
817 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Refrigeration_AirChillerFields::VerticalLocation);
818 }
819
820 ✗ boost::optional<Schedule> RefrigerationAirChiller::availabilitySchedule() const {
821 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->availabilitySchedule();
822 }
823
824 3 std::string RefrigerationAirChiller::capacityRatingType() const {
825
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->capacityRatingType();
826 }
827
828 3 boost::optional<double> RefrigerationAirChiller::ratedUnitLoadFactor() const {
829
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->ratedUnitLoadFactor();
830 }
831
832 ✗ boost::optional<double> RefrigerationAirChiller::ratedCapacity() const {
833 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->ratedCapacity();
834 }
835
836 ✗ double RefrigerationAirChiller::ratedRelativeHumidity() const {
837 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->ratedRelativeHumidity();
838 }
839
840 ✗ bool RefrigerationAirChiller::isRatedRelativeHumidityDefaulted() const {
841 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->isRatedRelativeHumidityDefaulted();
842 }
843
844 3 double RefrigerationAirChiller::ratedCoolingSourceTemperature() const {
845
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->ratedCoolingSourceTemperature();
846 }
847
848 3 double RefrigerationAirChiller::ratedTemperatureDifferenceDT1() const {
849
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->ratedTemperatureDifferenceDT1();
850 }
851
852 3 boost::optional<double> RefrigerationAirChiller::maximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature() const {
853
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->maximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature();
854 }
855
856 3 double RefrigerationAirChiller::coilMaterialCorrectionFactor() const {
857
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->coilMaterialCorrectionFactor();
858 }
859
860 ✗ bool RefrigerationAirChiller::isCoilMaterialCorrectionFactorDefaulted() const {
861 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->isCoilMaterialCorrectionFactorDefaulted();
862 }
863
864 3 double RefrigerationAirChiller::refrigerantCorrectionFactor() const {
865
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->refrigerantCorrectionFactor();
866 }
867
868 ✗ bool RefrigerationAirChiller::isRefrigerantCorrectionFactorDefaulted() const {
869 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->isRefrigerantCorrectionFactorDefaulted();
870 }
871
872 // std::string RefrigerationAirChiller::capacityCorrectionCurveType() const {
873 // return getImpl<detail::RefrigerationAirChiller_Impl>()->capacityCorrectionCurveType();
874 // }
875
876 // bool RefrigerationAirChiller::isCapacityCorrectionCurveTypeDefaulted() const {
877 // return getImpl<detail::RefrigerationAirChiller_Impl>()->isCapacityCorrectionCurveTypeDefaulted();
878 // }
879
880 // boost::optional<CurveLinear> RefrigerationAirChiller::capacityCorrectionCurve() const {
881 // return getImpl<detail::RefrigerationAirChiller_Impl>()->capacityCorrectionCurve();
882 // }
883
884 3 double RefrigerationAirChiller::sHR60CorrectionFactor() const {
885
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->sHR60CorrectionFactor();
886 }
887
888 ✗ bool RefrigerationAirChiller::isSHR60CorrectionFactorDefaulted() const {
889 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->isSHR60CorrectionFactorDefaulted();
890 }
891
892 3 double RefrigerationAirChiller::ratedTotalHeatingPower() const {
893
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->ratedTotalHeatingPower();
894 }
895
896 ✗ boost::optional<Schedule> RefrigerationAirChiller::heatingPowerSchedule() const {
897 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->heatingPowerSchedule();
898 }
899
900 3 std::string RefrigerationAirChiller::fanSpeedControlType() const {
901
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->fanSpeedControlType();
902 }
903
904 ✗ bool RefrigerationAirChiller::isFanSpeedControlTypeDefaulted() const {
905 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->isFanSpeedControlTypeDefaulted();
906 }
907
908 3 double RefrigerationAirChiller::ratedFanPower() const {
909
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->ratedFanPower();
910 }
911
912 ✗ bool RefrigerationAirChiller::isRatedFanPowerDefaulted() const {
913 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->isRatedFanPowerDefaulted();
914 }
915
916 3 double RefrigerationAirChiller::ratedAirFlow() const {
917
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->ratedAirFlow();
918 }
919
920 3 double RefrigerationAirChiller::minimumFanAirFlowRatio() const {
921
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->minimumFanAirFlowRatio();
922 }
923
924 ✗ bool RefrigerationAirChiller::isMinimumFanAirFlowRatioDefaulted() const {
925 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->isMinimumFanAirFlowRatioDefaulted();
926 }
927
928 3 std::string RefrigerationAirChiller::defrostType() const {
929
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->defrostType();
930 }
931
932 ✗ bool RefrigerationAirChiller::isDefrostTypeDefaulted() const {
933 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->isDefrostTypeDefaulted();
934 }
935
936 3 std::string RefrigerationAirChiller::defrostControlType() const {
937
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->defrostControlType();
938 }
939
940 ✗ bool RefrigerationAirChiller::isDefrostControlTypeDefaulted() const {
941 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->isDefrostControlTypeDefaulted();
942 }
943
944 ✗ Schedule RefrigerationAirChiller::defrostSchedule() const {
945 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->defrostSchedule();
946 }
947
948 ✗ boost::optional<Schedule> RefrigerationAirChiller::defrostDripDownSchedule() const {
949 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->defrostDripDownSchedule();
950 }
951
952 3 boost::optional<double> RefrigerationAirChiller::defrostPower() const {
953
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->defrostPower();
954 }
955
956 3 boost::optional<double> RefrigerationAirChiller::temperatureTerminationDefrostFractiontoIce() const {
957
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->temperatureTerminationDefrostFractiontoIce();
958 }
959
960 3 std::string RefrigerationAirChiller::verticalLocation() const {
961
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::RefrigerationAirChiller_Impl>()->verticalLocation();
962 }
963
964 ✗ bool RefrigerationAirChiller::isVerticalLocationDefaulted() const {
965 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->isVerticalLocationDefaulted();
966 }
967
968 ✗ double RefrigerationAirChiller::averageRefrigerantChargeInventory() const {
969 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->averageRefrigerantChargeInventory();
970 }
971
972 ✗ bool RefrigerationAirChiller::isAverageRefrigerantChargeInventoryDefaulted() const {
973 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->isAverageRefrigerantChargeInventoryDefaulted();
974 }
975
976 11 boost::optional<RefrigerationSystem> RefrigerationAirChiller::system() const {
977
1/1
✓ Branch 3 taken 11 times.
11 return getImpl<detail::RefrigerationAirChiller_Impl>()->system();
978 }
979
980 6 boost::optional<RefrigerationSecondarySystem> RefrigerationAirChiller::secondarySystem() const {
981
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::RefrigerationAirChiller_Impl>()->secondarySystem();
982 }
983
984 ✗ boost::optional<RefrigerationCompressorRack> RefrigerationAirChiller::compressorRack() const {
985 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->compressorRack();
986 }
987
988 ✗ bool RefrigerationAirChiller::setAvailabilitySchedule(Schedule& schedule) {
989 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->setAvailabilitySchedule(schedule);
990 }
991
992 ✗ void RefrigerationAirChiller::resetAvailabilitySchedule() {
993 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetAvailabilitySchedule();
994 ✗ }
995
996 27 bool RefrigerationAirChiller::setCapacityRatingType(const std::string& capacityRatingType) {
997
1/1
✓ Branch 3 taken 27 times.
27 return getImpl<detail::RefrigerationAirChiller_Impl>()->setCapacityRatingType(capacityRatingType);
998 }
999
1000 27 bool RefrigerationAirChiller::setRatedUnitLoadFactor(double ratedUnitLoadFactor) {
1001
2/2
✓ Branch 3 taken 27 times.
✓ Branch 6 taken 27 times.
27 return getImpl<detail::RefrigerationAirChiller_Impl>()->setRatedUnitLoadFactor(ratedUnitLoadFactor);
1002 }
1003
1004 ✗ void RefrigerationAirChiller::resetRatedUnitLoadFactor() {
1005 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetRatedUnitLoadFactor();
1006 ✗ }
1007
1008 ✗ bool RefrigerationAirChiller::setRatedCapacity(double ratedCapacity) {
1009 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->setRatedCapacity(ratedCapacity);
1010 }
1011
1012 ✗ void RefrigerationAirChiller::resetRatedCapacity() {
1013 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetRatedCapacity();
1014 ✗ }
1015
1016 ✗ bool RefrigerationAirChiller::setRatedRelativeHumidity(double ratedRelativeHumidity) {
1017 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->setRatedRelativeHumidity(ratedRelativeHumidity);
1018 }
1019
1020 ✗ void RefrigerationAirChiller::resetRatedRelativeHumidity() {
1021 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetRatedRelativeHumidity();
1022 ✗ }
1023
1024 27 bool RefrigerationAirChiller::setRatedCoolingSourceTemperature(double ratedCoolingSourceTemperature) {
1025
1/1
✓ Branch 3 taken 27 times.
27 return getImpl<detail::RefrigerationAirChiller_Impl>()->setRatedCoolingSourceTemperature(ratedCoolingSourceTemperature);
1026 }
1027
1028 27 bool RefrigerationAirChiller::setRatedTemperatureDifferenceDT1(double ratedTemperatureDifferenceDT1) {
1029
1/1
✓ Branch 3 taken 27 times.
27 return getImpl<detail::RefrigerationAirChiller_Impl>()->setRatedTemperatureDifferenceDT1(ratedTemperatureDifferenceDT1);
1030 }
1031
1032 27 bool RefrigerationAirChiller::setMaximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature(
1033 double maximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature) {
1034
2/2
✓ Branch 3 taken 27 times.
✓ Branch 6 taken 27 times.
54 return getImpl<detail::RefrigerationAirChiller_Impl>()->setMaximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature(
1035 54 maximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature);
1036 }
1037
1038 ✗ void RefrigerationAirChiller::resetMaximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature() {
1039 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetMaximumTemperatureDifferenceBetweenInletAirandEvaporatingTemperature();
1040 ✗ }
1041
1042 27 bool RefrigerationAirChiller::setCoilMaterialCorrectionFactor(double coilMaterialCorrectionFactor) {
1043
1/1
✓ Branch 3 taken 27 times.
27 return getImpl<detail::RefrigerationAirChiller_Impl>()->setCoilMaterialCorrectionFactor(coilMaterialCorrectionFactor);
1044 }
1045
1046 ✗ void RefrigerationAirChiller::resetCoilMaterialCorrectionFactor() {
1047 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetCoilMaterialCorrectionFactor();
1048 ✗ }
1049
1050 27 bool RefrigerationAirChiller::setRefrigerantCorrectionFactor(double refrigerantCorrectionFactor) {
1051
1/1
✓ Branch 3 taken 27 times.
27 return getImpl<detail::RefrigerationAirChiller_Impl>()->setRefrigerantCorrectionFactor(refrigerantCorrectionFactor);
1052 }
1053
1054 ✗ void RefrigerationAirChiller::resetRefrigerantCorrectionFactor() {
1055 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetRefrigerantCorrectionFactor();
1056 ✗ }
1057
1058 // bool RefrigerationAirChiller::setCapacityCorrectionCurveType(const std::string& capacityCorrectionCurveType) {
1059 // return getImpl<detail::RefrigerationAirChiller_Impl>()->setCapacityCorrectionCurveType(capacityCorrectionCurveType);
1060 // }
1061
1062 // void RefrigerationAirChiller::resetCapacityCorrectionCurveType() {
1063 // getImpl<detail::RefrigerationAirChiller_Impl>()->resetCapacityCorrectionCurveType();
1064 // }
1065
1066 // bool RefrigerationAirChiller::setCapacityCorrectionCurve(const CurveLinear& curveLinear) {
1067 // return getImpl<detail::RefrigerationAirChiller_Impl>()->setCapacityCorrectionCurve(curveLinear);
1068 // }
1069
1070 // void RefrigerationAirChiller::resetCapacityCorrectionCurve() {
1071 // getImpl<detail::RefrigerationAirChiller_Impl>()->resetCapacityCorrectionCurve();
1072 // }
1073
1074 27 bool RefrigerationAirChiller::setSHR60CorrectionFactor(double sHR60CorrectionFactor) {
1075
1/1
✓ Branch 3 taken 27 times.
27 return getImpl<detail::RefrigerationAirChiller_Impl>()->setSHR60CorrectionFactor(sHR60CorrectionFactor);
1076 }
1077
1078 ✗ void RefrigerationAirChiller::resetSHR60CorrectionFactor() {
1079 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetSHR60CorrectionFactor();
1080 ✗ }
1081
1082 27 bool RefrigerationAirChiller::setRatedTotalHeatingPower(double ratedTotalHeatingPower) {
1083
1/1
✓ Branch 3 taken 27 times.
27 return getImpl<detail::RefrigerationAirChiller_Impl>()->setRatedTotalHeatingPower(ratedTotalHeatingPower);
1084 }
1085
1086 ✗ bool RefrigerationAirChiller::setHeatingPowerSchedule(Schedule& schedule) {
1087 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->setHeatingPowerSchedule(schedule);
1088 }
1089
1090 ✗ void RefrigerationAirChiller::resetHeatingPowerSchedule() {
1091 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetHeatingPowerSchedule();
1092 ✗ }
1093
1094 27 bool RefrigerationAirChiller::setFanSpeedControlType(const std::string& fanSpeedControlType) {
1095
1/1
✓ Branch 3 taken 27 times.
27 return getImpl<detail::RefrigerationAirChiller_Impl>()->setFanSpeedControlType(fanSpeedControlType);
1096 }
1097
1098 ✗ void RefrigerationAirChiller::resetFanSpeedControlType() {
1099 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetFanSpeedControlType();
1100 ✗ }
1101
1102 27 bool RefrigerationAirChiller::setRatedFanPower(double ratedFanPower) {
1103
1/1
✓ Branch 3 taken 27 times.
27 return getImpl<detail::RefrigerationAirChiller_Impl>()->setRatedFanPower(ratedFanPower);
1104 }
1105
1106 ✗ void RefrigerationAirChiller::resetRatedFanPower() {
1107 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetRatedFanPower();
1108 ✗ }
1109
1110 27 bool RefrigerationAirChiller::setRatedAirFlow(double ratedAirFlow) {
1111
1/1
✓ Branch 3 taken 27 times.
27 return getImpl<detail::RefrigerationAirChiller_Impl>()->setRatedAirFlow(ratedAirFlow);
1112 }
1113
1114 27 bool RefrigerationAirChiller::setMinimumFanAirFlowRatio(double minimumFanAirFlowRatio) {
1115
1/1
✓ Branch 3 taken 27 times.
27 return getImpl<detail::RefrigerationAirChiller_Impl>()->setMinimumFanAirFlowRatio(minimumFanAirFlowRatio);
1116 }
1117
1118 ✗ void RefrigerationAirChiller::resetMinimumFanAirFlowRatio() {
1119 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetMinimumFanAirFlowRatio();
1120 ✗ }
1121
1122 27 bool RefrigerationAirChiller::setDefrostType(const std::string& defrostType) {
1123
1/1
✓ Branch 3 taken 27 times.
27 return getImpl<detail::RefrigerationAirChiller_Impl>()->setDefrostType(defrostType);
1124 }
1125
1126 ✗ void RefrigerationAirChiller::resetDefrostType() {
1127 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetDefrostType();
1128 ✗ }
1129
1130 27 bool RefrigerationAirChiller::setDefrostControlType(const std::string& defrostControlType) {
1131
1/1
✓ Branch 3 taken 27 times.
27 return getImpl<detail::RefrigerationAirChiller_Impl>()->setDefrostControlType(defrostControlType);
1132 }
1133
1134 ✗ void RefrigerationAirChiller::resetDefrostControlType() {
1135 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetDefrostControlType();
1136 ✗ }
1137
1138 25 bool RefrigerationAirChiller::setDefrostSchedule(Schedule& schedule) {
1139
1/1
✓ Branch 3 taken 25 times.
25 return getImpl<detail::RefrigerationAirChiller_Impl>()->setDefrostSchedule(schedule);
1140 }
1141
1142 ✗ bool RefrigerationAirChiller::setDefrostDripDownSchedule(Schedule& schedule) {
1143 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->setDefrostDripDownSchedule(schedule);
1144 }
1145
1146 ✗ void RefrigerationAirChiller::resetDefrostDripDownSchedule() {
1147 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetDefrostDripDownSchedule();
1148 ✗ }
1149
1150 27 bool RefrigerationAirChiller::setDefrostPower(double defrostPower) {
1151
2/2
✓ Branch 3 taken 27 times.
✓ Branch 6 taken 27 times.
27 return getImpl<detail::RefrigerationAirChiller_Impl>()->setDefrostPower(defrostPower);
1152 }
1153
1154 ✗ void RefrigerationAirChiller::resetDefrostPower() {
1155 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetDefrostPower();
1156 ✗ }
1157
1158 27 bool RefrigerationAirChiller::setTemperatureTerminationDefrostFractiontoIce(double temperatureTerminationDefrostFractiontoIce) {
1159
2/2
✓ Branch 3 taken 27 times.
✓ Branch 6 taken 27 times.
27 return getImpl<detail::RefrigerationAirChiller_Impl>()->setTemperatureTerminationDefrostFractiontoIce(temperatureTerminationDefrostFractiontoIce);
1160 }
1161
1162 ✗ void RefrigerationAirChiller::resetTemperatureTerminationDefrostFractiontoIce() {
1163 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetTemperatureTerminationDefrostFractiontoIce();
1164 ✗ }
1165
1166 // bool RefrigerationAirChiller::setVerticalLocation(const std::string& verticalLocation) {
1167 // return getImpl<detail::RefrigerationAirChiller_Impl>()->setVerticalLocation(verticalLocation);
1168 // }
1169
1170 // void RefrigerationAirChiller::resetVerticalLocation() {
1171 // getImpl<detail::RefrigerationAirChiller_Impl>()->resetVerticalLocation();
1172 // }
1173
1174 ✗ bool RefrigerationAirChiller::setAverageRefrigerantChargeInventory(double averageRefrigerantChargeInventory) {
1175 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->setAverageRefrigerantChargeInventory(averageRefrigerantChargeInventory);
1176 }
1177
1178 ✗ void RefrigerationAirChiller::resetAverageRefrigerantChargeInventory() {
1179 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->resetAverageRefrigerantChargeInventory();
1180 ✗ }
1181
1182 ✗ bool RefrigerationAirChiller::addToSystem(RefrigerationSystem& system) {
1183 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->addToSystem(system);
1184 }
1185
1186 ✗ void RefrigerationAirChiller::removeFromSystem() {
1187 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->removeFromSystem();
1188 ✗ }
1189
1190 ✗ bool RefrigerationAirChiller::addToSecondarySystem(RefrigerationSecondarySystem& secondarySystem) {
1191 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->addToSecondarySystem(secondarySystem);
1192 }
1193
1194 ✗ void RefrigerationAirChiller::removeFromSecondarySystem() {
1195 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->removeFromSecondarySystem();
1196 ✗ }
1197
1198 ✗ bool RefrigerationAirChiller::addToCompressorRack(RefrigerationCompressorRack& compressorRack) {
1199 ✗ return getImpl<detail::RefrigerationAirChiller_Impl>()->addToCompressorRack(compressorRack);
1200 }
1201
1202 ✗ void RefrigerationAirChiller::removeFromCompressorRack() {
1203 ✗ getImpl<detail::RefrigerationAirChiller_Impl>()->removeFromCompressorRack();
1204 ✗ }
1205
1206 /// @cond
1207
1/1
✓ Branch 3 taken 72 times.
72 RefrigerationAirChiller::RefrigerationAirChiller(std::shared_ptr<detail::RefrigerationAirChiller_Impl> impl) : ZoneHVACComponent(std::move(impl)) {}
1208 /// @endcond
1209
1210 } // namespace model
1211 } // namespace openstudio
1212