GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 78.3% 591 / 0 / 755
Functions: 82.2% 162 / 0 / 197
Branches: 48.5% 399 / 0 / 822

src/model/AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.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 "Model.hpp"
7 #include "Model_Impl.hpp"
8 #include "AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.hpp"
9 #include "AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl.hpp"
10 #include "AirLoopHVAC.hpp"
11 #include "CoilHeatingDXMultiSpeed.hpp"
12 #include "CoilHeatingDXMultiSpeed_Impl.hpp"
13 #include "Node.hpp"
14 #include "Schedule.hpp"
15 #include "Schedule_Impl.hpp"
16 #include "ScheduleTypeLimits.hpp"
17 #include "ScheduleTypeRegistry.hpp"
18 #include "ThermalZone.hpp"
19 #include "ThermalZone_Impl.hpp"
20
21 #include "../utilities/core/Assert.hpp"
22 #include "../utilities/data/DataEnums.hpp"
23
24 #include <utilities/idd/IddFactory.hxx>
25 #include <utilities/idd/OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeed_FieldEnums.hxx>
26 #include <utilities/idd/IddEnums.hxx>
27
28 #include "../utilities/core/DeprecatedHelpers.hpp"
29
30 namespace openstudio {
31 namespace model {
32
33 namespace detail {
34
35 9 AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl(const IdfObject& idfObject,
36 9 Model_Impl* model, bool keepHandle)
37 9 : StraightComponent_Impl(idfObject, model, keepHandle) {
38
4/6
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 9 times.
✗ Branch 13 not taken.
9 OS_ASSERT(idfObject.iddObject().type() == AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::iddObjectType());
39 9 }
40
41 1 AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl(
42 1 const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
43 1 : StraightComponent_Impl(other, model, keepHandle) {
44
4/6
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
✗ Branch 13 not taken.
1 OS_ASSERT(other.iddObject().type() == AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::iddObjectType());
45 1 }
46
47 6 AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl(
48 6 const AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl& other, Model_Impl* model, bool keepHandle)
49 6 : StraightComponent_Impl(other, model, keepHandle) {}
50
51 ✗ const std::vector<std::string>& AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::outputVariableNames() const {
52 ✗ static const std::vector<std::string> result;
53 ✗ return result;
54 }
55
56 7 IddObjectType AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::iddObjectType() const {
57 7 return AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::iddObjectType();
58 }
59
60 ✗ std::vector<ScheduleTypeKey> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
61 ✗ std::vector<ScheduleTypeKey> result;
62 ✗ UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
63 ✗ UnsignedVector::const_iterator b(fieldIndices.begin());
64 ✗ UnsignedVector::const_iterator e(fieldIndices.end());
65 ✗ if (std::find(b, e, OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::AvailabilitySchedule) != e) {
66 ✗ result.push_back(ScheduleTypeKey("AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed", "Availability Schedule"));
67 }
68 ✗ if (std::find(b, e, OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::SupplyAirFanOperatingModeSchedule) != e) {
69 ✗ result.push_back(ScheduleTypeKey("AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed", "Supply Air Fan Operating Mode Schedule"));
70 }
71 ✗ return result;
72 ✗ }
73
74 6 boost::optional<Schedule> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::availabilitySchedule() const {
75
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
6 return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::AvailabilitySchedule);
76 }
77
78 6 boost::optional<ThermalZone> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::controllingZoneorThermostatLocation() const {
79
1/1
✓ Branch 1 taken 6 times.
12 return getObject<ModelObject>().getModelObjectTarget<ThermalZone>(
80
1/1
✓ Branch 1 taken 6 times.
12 OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::ControllingZoneorThermostatLocation);
81 }
82
83 6 HVACComponent AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::supplyAirFan() const {
84
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<HVACComponent> value = optionalSupplyAirFan();
85
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
6 if (!value) {
86 ✗ LOG_AND_THROW(briefDescription() << " does not have an Supply Air Fan attached.");
87 }
88
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
12 return value.get();
89 6 }
90
91 6 std::string AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::supplyAirFanPlacement() const {
92
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<std::string> value = getString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::SupplyAirFanPlacement, true);
93
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
6 OS_ASSERT(value);
94
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
12 return value.get();
95 6 }
96
97 5 Schedule AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::supplyAirFanOperatingModeSchedule() const {
98
1/1
✓ Branch 1 taken 5 times.
10 auto value = getObject<ModelObject>().getModelObjectTarget<Schedule>(
99
1/1
✓ Branch 1 taken 5 times.
5 OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::SupplyAirFanOperatingModeSchedule);
100
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
5 if (!value) {
101 ✗ LOG_AND_THROW(briefDescription() << " does not have an Air Fan Operating Mode Schedule attached.");
102 }
103
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
10 return value.get();
104 5 }
105
106 8 HVACComponent AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::heatingCoil() const {
107
1/1
✓ Branch 1 taken 8 times.
8 boost::optional<HVACComponent> value = optionalHeatingCoil();
108
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 8 times.
8 if (!value) {
109 ✗ LOG_AND_THROW(briefDescription() << " does not have an Heating Coil attached.");
110 }
111
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
16 return value.get();
112 8 }
113
114 4 double AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::dXHeatingCoilSizingRatio() const {
115
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<double> value = getDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::DXHeatingCoilSizingRatio, true);
116
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
4 OS_ASSERT(value);
117
1/1
✓ Branch 1 taken 4 times.
8 return value.get();
118 }
119
120 6 HVACComponent AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::coolingCoil() const {
121
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<HVACComponent> value = optionalCoolingCoil();
122
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
6 if (!value) {
123 ✗ LOG_AND_THROW(briefDescription() << " does not have an Cooling Coil attached.");
124 }
125
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
12 return value.get();
126 6 }
127
128 6 HVACComponent AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::supplementalHeatingCoil() const {
129
1/1
✓ Branch 1 taken 6 times.
6 auto value = optionalSupplementalHeatingCoil();
130
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
6 if (!value) {
131 ✗ LOG_AND_THROW(briefDescription() << " does not have a Supplemental Heating Coil attached.");
132 }
133
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
12 return value.get();
134 6 }
135
136 2 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::maximumSupplyAirTemperaturefromSupplementalHeater() const {
137 2 return getDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::MaximumSupplyAirTemperaturefromSupplementalHeater, true);
138 }
139
140 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::isMaximumSupplyAirTemperaturefromSupplementalHeaterAutosized() const {
141 6 bool result = false;
142 boost::optional<std::string> value =
143
1/1
✓ Branch 1 taken 6 times.
6 getString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::MaximumSupplyAirTemperaturefromSupplementalHeater, true);
144
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 if (value) {
145
3/3
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
12 result = openstudio::istringEqual(value.get(), "autosize");
146 }
147 6 return result;
148 6 }
149
150 6 double AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation() const {
151 boost::optional<double> value =
152
1/1
✓ Branch 1 taken 6 times.
6 getDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::MaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation, true);
153
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
6 OS_ASSERT(value);
154
1/1
✓ Branch 1 taken 6 times.
12 return value.get();
155 }
156
157 6 double AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::auxiliaryOnCycleElectricPower() const {
158
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<double> value = getDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::AuxiliaryOnCycleElectricPower, true);
159
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
6 OS_ASSERT(value);
160
1/1
✓ Branch 1 taken 6 times.
12 return value.get();
161 }
162
163 6 double AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::auxiliaryOffCycleElectricPower() const {
164
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<double> value = getDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::AuxiliaryOffCycleElectricPower, true);
165
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
6 OS_ASSERT(value);
166
1/1
✓ Branch 1 taken 6 times.
12 return value.get();
167 }
168
169 6 double AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::designHeatRecoveryWaterFlowRate() const {
170
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<double> value = getDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::DesignHeatRecoveryWaterFlowRate, true);
171
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
6 OS_ASSERT(value);
172
1/1
✓ Branch 1 taken 6 times.
12 return value.get();
173 }
174
175 6 double AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::maximumTemperatureforHeatRecovery() const {
176
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<double> value = getDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::MaximumTemperatureforHeatRecovery, true);
177
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
6 OS_ASSERT(value);
178
1/1
✓ Branch 1 taken 6 times.
12 return value.get();
179 }
180
181 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::supplyAirFlowRateWhenNoCoolingorHeatingisNeeded() const {
182 4 return getDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::SupplyAirFlowRateWhenNoCoolingorHeatingisNeeded, true);
183 }
184
185 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::isSupplyAirFlowRateWhenNoCoolingorHeatingisNeededAutosized() const {
186 6 bool result = false;
187 boost::optional<std::string> value =
188
1/1
✓ Branch 1 taken 6 times.
6 getString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::SupplyAirFlowRateWhenNoCoolingorHeatingisNeeded, true);
189
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 if (value) {
190
3/3
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
12 result = openstudio::istringEqual(value.get(), "autosize");
191 }
192 6 return result;
193 6 }
194
195 6 int AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::numberofSpeedsforHeating() const {
196
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> value = getInt(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::NumberofSpeedsforHeating, true);
197
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
6 OS_ASSERT(value);
198
1/1
✓ Branch 1 taken 6 times.
12 return value.get();
199 }
200
201 6 int AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::numberofSpeedsforCooling() const {
202
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<int> value = getInt(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::NumberofSpeedsforCooling, true);
203
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
6 OS_ASSERT(value);
204
1/1
✓ Branch 1 taken 6 times.
12 return value.get();
205 }
206
207 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::speed1SupplyAirFlowRateDuringHeatingOperation() const {
208 4 return getDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed1SupplyAirFlowRateDuringHeatingOperation, true);
209 }
210
211 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::isSpeed1SupplyAirFlowRateDuringHeatingOperationAutosized() const {
212 6 bool result = false;
213 boost::optional<std::string> value =
214
1/1
✓ Branch 1 taken 6 times.
6 getString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed1SupplyAirFlowRateDuringHeatingOperation, true);
215
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 if (value) {
216
3/3
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
12 result = openstudio::istringEqual(value.get(), "autosize");
217 }
218 6 return result;
219 6 }
220
221 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::speed2SupplyAirFlowRateDuringHeatingOperation() const {
222 4 return getDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed2SupplyAirFlowRateDuringHeatingOperation, true);
223 }
224
225 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::isSpeed2SupplyAirFlowRateDuringHeatingOperationAutosized() const {
226 6 bool result = false;
227 boost::optional<std::string> value =
228
1/1
✓ Branch 1 taken 6 times.
6 getString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed2SupplyAirFlowRateDuringHeatingOperation, true);
229
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 if (value) {
230
3/3
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
12 result = openstudio::istringEqual(value.get(), "autosize");
231 }
232 6 return result;
233 6 }
234
235 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::speed3SupplyAirFlowRateDuringHeatingOperation() const {
236 4 return getDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed3SupplyAirFlowRateDuringHeatingOperation, true);
237 }
238
239 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::isSpeed3SupplyAirFlowRateDuringHeatingOperationAutosized() const {
240 6 bool result = false;
241 boost::optional<std::string> value =
242
1/1
✓ Branch 1 taken 6 times.
6 getString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed3SupplyAirFlowRateDuringHeatingOperation, true);
243
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 if (value) {
244
3/3
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
12 result = openstudio::istringEqual(value.get(), "autosize");
245 }
246 6 return result;
247 6 }
248
249 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::speed4SupplyAirFlowRateDuringHeatingOperation() const {
250 4 return getDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed4SupplyAirFlowRateDuringHeatingOperation, true);
251 }
252
253 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::isSpeed4SupplyAirFlowRateDuringHeatingOperationAutosized() const {
254 6 bool result = false;
255 boost::optional<std::string> value =
256
1/1
✓ Branch 1 taken 6 times.
6 getString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed4SupplyAirFlowRateDuringHeatingOperation, true);
257
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 if (value) {
258
3/3
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
12 result = openstudio::istringEqual(value.get(), "autosize");
259 }
260 6 return result;
261 6 }
262
263 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::speed1SupplyAirFlowRateDuringCoolingOperation() const {
264 4 return getDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed1SupplyAirFlowRateDuringCoolingOperation, true);
265 }
266
267 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::isSpeed1SupplyAirFlowRateDuringCoolingOperationAutosized() const {
268 6 bool result = false;
269 boost::optional<std::string> value =
270
1/1
✓ Branch 1 taken 6 times.
6 getString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed1SupplyAirFlowRateDuringCoolingOperation, true);
271
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 if (value) {
272
3/3
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
12 result = openstudio::istringEqual(value.get(), "autosize");
273 }
274 6 return result;
275 6 }
276
277 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::speed2SupplyAirFlowRateDuringCoolingOperation() const {
278 4 return getDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed2SupplyAirFlowRateDuringCoolingOperation, true);
279 }
280
281 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::isSpeed2SupplyAirFlowRateDuringCoolingOperationAutosized() const {
282 6 bool result = false;
283 boost::optional<std::string> value =
284
1/1
✓ Branch 1 taken 6 times.
6 getString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed2SupplyAirFlowRateDuringCoolingOperation, true);
285
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 if (value) {
286
3/3
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
12 result = openstudio::istringEqual(value.get(), "autosize");
287 }
288 6 return result;
289 6 }
290
291 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::speed3SupplyAirFlowRateDuringCoolingOperation() const {
292 4 return getDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed3SupplyAirFlowRateDuringCoolingOperation, true);
293 }
294
295 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::isSpeed3SupplyAirFlowRateDuringCoolingOperationAutosized() const {
296 6 bool result = false;
297 boost::optional<std::string> value =
298
1/1
✓ Branch 1 taken 6 times.
6 getString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed3SupplyAirFlowRateDuringCoolingOperation, true);
299
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 if (value) {
300
3/3
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
12 result = openstudio::istringEqual(value.get(), "autosize");
301 }
302 6 return result;
303 6 }
304
305 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::speed4SupplyAirFlowRateDuringCoolingOperation() const {
306 4 return getDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed4SupplyAirFlowRateDuringCoolingOperation, true);
307 }
308
309 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::isSpeed4SupplyAirFlowRateDuringCoolingOperationAutosized() const {
310 6 bool result = false;
311 boost::optional<std::string> value =
312
1/1
✓ Branch 1 taken 6 times.
6 getString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed4SupplyAirFlowRateDuringCoolingOperation, true);
313
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 if (value) {
314
3/3
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
12 result = openstudio::istringEqual(value.get(), "autosize");
315 }
316 6 return result;
317 6 }
318
319 1 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setAvailabilitySchedule(Schedule& schedule) {
320
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
4 bool result = setSchedule(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::AvailabilitySchedule,
321 "AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed", "Availability Schedule", schedule);
322 1 return result;
323 }
324
325 ✗ void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::resetAvailabilitySchedule() {
326 ✗ bool result = setString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::AvailabilitySchedule, "");
327 ✗ OS_ASSERT(result);
328 ✗ }
329
330 1 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setControllingZoneorThermostatLocation(const boost::optional<ThermalZone>& thermalZone) {
331 1 bool result(false);
332
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (thermalZone) {
333 result =
334
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
1 setPointer(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::ControllingZoneorThermostatLocation, thermalZone.get().handle());
335 } else {
336 ✗ resetControllingZoneorThermostatLocation();
337 ✗ result = true;
338 }
339 1 return result;
340 }
341
342 ✗ void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::resetControllingZoneorThermostatLocation() {
343 ✗ bool result = setString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::ControllingZoneorThermostatLocation, "");
344 ✗ OS_ASSERT(result);
345 ✗ }
346
347 10 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setSupplyAirFan(const HVACComponent& fan) {
348
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 bool result = setPointer(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::SupplyAirFan, fan.handle());
349 10 return result;
350 }
351
352 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setSupplyAirFanPlacement(const std::string& supplyAirFanPlacement) {
353 9 bool result = setString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::SupplyAirFanPlacement, supplyAirFanPlacement);
354 9 return result;
355 }
356
357 8 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setSupplyAirFanOperatingModeSchedule(Schedule& schedule) {
358
3/3
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
32 bool result = setSchedule(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::SupplyAirFanOperatingModeSchedule,
359 "AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed", "Supply Air Fan Operating Mode Schedule", schedule);
360 8 return result;
361 }
362
363 10 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setHeatingCoil(const HVACComponent& coil) {
364
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 bool result = setPointer(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::HeatingCoil, coil.handle());
365 10 return result;
366 }
367
368 7 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setDXHeatingCoilSizingRatio(double dxHeatingCoilSizingRatio) {
369 7 bool result = setDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::DXHeatingCoilSizingRatio, dxHeatingCoilSizingRatio);
370 7 return result;
371 }
372
373 11 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setCoolingCoil(const HVACComponent& coil) {
374
2/2
✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
11 bool result = setPointer(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::CoolingCoil, coil.handle());
375 11 return result;
376 }
377
378 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setSupplementalHeatingCoil(const HVACComponent& coil) {
379
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
9 bool result = setPointer(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::SupplementalHeatingCoil, coil.handle());
380 9 return result;
381 }
382
383 1 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setMaximumSupplyAirTemperaturefromSupplementalHeater(
384 boost::optional<double> maximumSupplyAirTemperaturefromSupplementalHeater) {
385 1 bool result(false);
386
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (maximumSupplyAirTemperaturefromSupplementalHeater) {
387 1 result = setDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::MaximumSupplyAirTemperaturefromSupplementalHeater,
388 1 maximumSupplyAirTemperaturefromSupplementalHeater.get());
389 }
390
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
391 1 return result;
392 }
393
394 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizeMaximumSupplyAirTemperaturefromSupplementalHeater() {
395 bool result =
396
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
16 setString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::MaximumSupplyAirTemperaturefromSupplementalHeater, "autosize");
397
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
8 OS_ASSERT(result);
398 8 }
399
400 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation(
401 double maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation) {
402 bool result =
403 9 setDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::MaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation,
404 maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation);
405 9 return result;
406 }
407
408 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setAuxiliaryOnCycleElectricPower(double auxiliaryOnCycleElectricPower) {
409 9 bool result = setDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::AuxiliaryOnCycleElectricPower, auxiliaryOnCycleElectricPower);
410 9 return result;
411 }
412
413 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setAuxiliaryOffCycleElectricPower(double auxiliaryOffCycleElectricPower) {
414 bool result =
415 9 setDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::AuxiliaryOffCycleElectricPower, auxiliaryOffCycleElectricPower);
416 9 return result;
417 }
418
419 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setDesignHeatRecoveryWaterFlowRate(double designHeatRecoveryWaterFlowRate) {
420 bool result =
421 9 setDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::DesignHeatRecoveryWaterFlowRate, designHeatRecoveryWaterFlowRate);
422 9 return result;
423 }
424
425 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setMaximumTemperatureforHeatRecovery(double maximumTemperatureforHeatRecovery) {
426 bool result =
427 9 setDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::MaximumTemperatureforHeatRecovery, maximumTemperatureforHeatRecovery);
428 9 return result;
429 }
430
431 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(
432 boost::optional<double> supplyAirFlowRateWhenNoCoolingorHeatingisNeeded) {
433 2 bool result(false);
434
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (supplyAirFlowRateWhenNoCoolingorHeatingisNeeded) {
435 2 result = setDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::SupplyAirFlowRateWhenNoCoolingorHeatingisNeeded,
436 2 supplyAirFlowRateWhenNoCoolingorHeatingisNeeded.get());
437 }
438 2 return result;
439 }
440
441 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() {
442
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
16 bool result = setString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::SupplyAirFlowRateWhenNoCoolingorHeatingisNeeded, "autosize");
443
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
8 OS_ASSERT(result);
444 8 }
445
446 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setNumberofSpeedsforHeating(int numberofSpeedsforHeating) {
447 9 bool result = setInt(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::NumberofSpeedsforHeating, numberofSpeedsforHeating);
448 9 return result;
449 }
450
451 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setNumberofSpeedsforCooling(int numberofSpeedsforCooling) {
452 9 bool result = setInt(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::NumberofSpeedsforCooling, numberofSpeedsforCooling);
453 9 return result;
454 }
455
456 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setSpeed1SupplyAirFlowRateDuringHeatingOperation(
457 boost::optional<double> speed1SupplyAirFlowRateDuringHeatingOperation) {
458 2 bool result(false);
459
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (speed1SupplyAirFlowRateDuringHeatingOperation) {
460 2 result = setDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed1SupplyAirFlowRateDuringHeatingOperation,
461 2 speed1SupplyAirFlowRateDuringHeatingOperation.get());
462 }
463 2 return result;
464 }
465
466 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizeSpeed1SupplyAirFlowRateDuringHeatingOperation() {
467
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
16 bool result = setString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed1SupplyAirFlowRateDuringHeatingOperation, "autosize");
468
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
8 OS_ASSERT(result);
469 8 }
470
471 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setSpeed2SupplyAirFlowRateDuringHeatingOperation(
472 boost::optional<double> speed2SupplyAirFlowRateDuringHeatingOperation) {
473 2 bool result(false);
474
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (speed2SupplyAirFlowRateDuringHeatingOperation) {
475 2 result = setDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed2SupplyAirFlowRateDuringHeatingOperation,
476 2 speed2SupplyAirFlowRateDuringHeatingOperation.get());
477 }
478 2 return result;
479 }
480
481 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizeSpeed2SupplyAirFlowRateDuringHeatingOperation() {
482
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
16 bool result = setString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed2SupplyAirFlowRateDuringHeatingOperation, "autosize");
483
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
8 OS_ASSERT(result);
484 8 }
485
486 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setSpeed3SupplyAirFlowRateDuringHeatingOperation(
487 boost::optional<double> speed3SupplyAirFlowRateDuringHeatingOperation) {
488 2 bool result(false);
489
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (speed3SupplyAirFlowRateDuringHeatingOperation) {
490 2 result = setDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed3SupplyAirFlowRateDuringHeatingOperation,
491 2 speed3SupplyAirFlowRateDuringHeatingOperation.get());
492 }
493 2 return result;
494 }
495
496 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizeSpeed3SupplyAirFlowRateDuringHeatingOperation() {
497
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
16 bool result = setString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed3SupplyAirFlowRateDuringHeatingOperation, "autosize");
498
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
8 OS_ASSERT(result);
499 8 }
500
501 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setSpeed4SupplyAirFlowRateDuringHeatingOperation(
502 boost::optional<double> speed4SupplyAirFlowRateDuringHeatingOperation) {
503 2 bool result(false);
504
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (speed4SupplyAirFlowRateDuringHeatingOperation) {
505 2 result = setDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed4SupplyAirFlowRateDuringHeatingOperation,
506 2 speed4SupplyAirFlowRateDuringHeatingOperation.get());
507 }
508 2 return result;
509 }
510
511 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizeSpeed4SupplyAirFlowRateDuringHeatingOperation() {
512
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
16 bool result = setString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed4SupplyAirFlowRateDuringHeatingOperation, "autosize");
513
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
8 OS_ASSERT(result);
514 8 }
515
516 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setSpeed1SupplyAirFlowRateDuringCoolingOperation(
517 boost::optional<double> speed1SupplyAirFlowRateDuringCoolingOperation) {
518 2 bool result(false);
519
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (speed1SupplyAirFlowRateDuringCoolingOperation) {
520 2 result = setDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed1SupplyAirFlowRateDuringCoolingOperation,
521 2 speed1SupplyAirFlowRateDuringCoolingOperation.get());
522 }
523 2 return result;
524 }
525
526 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizeSpeed1SupplyAirFlowRateDuringCoolingOperation() {
527
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
16 bool result = setString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed1SupplyAirFlowRateDuringCoolingOperation, "autosize");
528
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
8 OS_ASSERT(result);
529 8 }
530
531 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setSpeed2SupplyAirFlowRateDuringCoolingOperation(
532 boost::optional<double> speed2SupplyAirFlowRateDuringCoolingOperation) {
533 2 bool result(false);
534
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (speed2SupplyAirFlowRateDuringCoolingOperation) {
535 2 result = setDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed2SupplyAirFlowRateDuringCoolingOperation,
536 2 speed2SupplyAirFlowRateDuringCoolingOperation.get());
537 }
538 2 return result;
539 }
540
541 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizeSpeed2SupplyAirFlowRateDuringCoolingOperation() {
542
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
16 bool result = setString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed2SupplyAirFlowRateDuringCoolingOperation, "autosize");
543
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
8 OS_ASSERT(result);
544 8 }
545
546 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setSpeed3SupplyAirFlowRateDuringCoolingOperation(
547 boost::optional<double> speed3SupplyAirFlowRateDuringCoolingOperation) {
548 2 bool result(false);
549
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (speed3SupplyAirFlowRateDuringCoolingOperation) {
550 2 result = setDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed3SupplyAirFlowRateDuringCoolingOperation,
551 2 speed3SupplyAirFlowRateDuringCoolingOperation.get());
552 }
553 2 return result;
554 }
555
556 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizeSpeed3SupplyAirFlowRateDuringCoolingOperation() {
557
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
16 bool result = setString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed3SupplyAirFlowRateDuringCoolingOperation, "autosize");
558
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
8 OS_ASSERT(result);
559 8 }
560
561 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::setSpeed4SupplyAirFlowRateDuringCoolingOperation(
562 boost::optional<double> speed4SupplyAirFlowRateDuringCoolingOperation) {
563 2 bool result(false);
564
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (speed4SupplyAirFlowRateDuringCoolingOperation) {
565 2 result = setDouble(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed4SupplyAirFlowRateDuringCoolingOperation,
566 2 speed4SupplyAirFlowRateDuringCoolingOperation.get());
567 }
568 2 return result;
569 }
570
571 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizeSpeed4SupplyAirFlowRateDuringCoolingOperation() {
572
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
16 bool result = setString(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::Speed4SupplyAirFlowRateDuringCoolingOperation, "autosize");
573
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
8 OS_ASSERT(result);
574 8 }
575
576 11 boost::optional<HVACComponent> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::optionalSupplyAirFan() const {
577
2/2
✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
11 return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::SupplyAirFan);
578 }
579
580 13 boost::optional<HVACComponent> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::optionalHeatingCoil() const {
581
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
13 return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::HeatingCoil);
582 }
583
584 11 boost::optional<HVACComponent> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::optionalCoolingCoil() const {
585
2/2
✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
11 return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::CoolingCoil);
586 }
587
588 11 boost::optional<HVACComponent> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::optionalSupplementalHeatingCoil() const {
589
1/1
✓ Branch 1 taken 11 times.
22 return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(
590
1/1
✓ Branch 1 taken 11 times.
22 OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::SupplementalHeatingCoil);
591 }
592
593 16 unsigned AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::inletPort() const {
594 16 return OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::AirInletNode;
595 }
596
597 58 unsigned AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::outletPort() const {
598 58 return OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::AirOutletNode;
599 }
600
601 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::addToNode(Node& node) {
602
3/3
✓ Branch 1 taken 9 times.
✓ Branch 3 taken 7 times.
✓ Branch 4 taken 2 times.
18 if (boost::optional<AirLoopHVAC> airLoop = node.airLoopHVAC()) {
603
5/5
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
✓ Branch 10 taken 6 times.
✓ Branch 11 taken 1 time.
14 if (airLoop->supplyComponent(node.handle())) {
604
1/1
✓ Branch 1 taken 6 times.
6 return StraightComponent_Impl::addToNode(node);
605 }
606 9 }
607
608 3 return false;
609 }
610
611 1 ModelObject AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::clone(Model model) const {
612
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
1 auto modelObjectClone = StraightComponent_Impl::clone(model).cast<AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed>();
613
614
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
2 if (boost::optional<HVACComponent> supplyFan = this->supplyAirFan()) {
615
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
1 modelObjectClone.setSupplyAirFan(supplyFan->clone(model).cast<HVACComponent>());
616 1 }
617
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
2 if (boost::optional<HVACComponent> coolingCoil = this->coolingCoil()) {
618
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
1 modelObjectClone.setCoolingCoil(coolingCoil->clone(model).cast<HVACComponent>());
619 1 }
620
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
2 if (boost::optional<HVACComponent> heatingCoil = this->heatingCoil()) {
621
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
1 modelObjectClone.setHeatingCoil(heatingCoil->clone(model).cast<HVACComponent>());
622 1 }
623
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
2 if (boost::optional<HVACComponent> supplementalHeatingCoil = this->supplementalHeatingCoil()) {
624
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
1 modelObjectClone.setSupplementalHeatingCoil(supplementalHeatingCoil->clone(model).cast<HVACComponent>());
625 1 }
626
627 2 return std::move(modelObjectClone);
628 1 }
629
630 5 std::vector<ModelObject> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::children() const {
631 5 std::vector<ModelObject> result;
632
633 // Avoid crashing when calling remove() in Ctor when failing to set one of the child component by calling the optional one
634
2/3
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
10 if (boost::optional<HVACComponent> supplyFan = this->optionalSupplyAirFan()) {
635
2/2
✓ Branch 1 taken 5 times.
✓ Branch 5 taken 5 times.
5 result.push_back(std::move(*supplyFan));
636 5 }
637
3/3
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 1 time.
10 if (boost::optional<HVACComponent> coolingCoil = this->optionalCoolingCoil()) {
638
2/2
✓ Branch 1 taken 4 times.
✓ Branch 5 taken 4 times.
4 result.push_back(std::move(*coolingCoil));
639 5 }
640
2/3
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
10 if (boost::optional<HVACComponent> heatingCoil = this->optionalHeatingCoil()) {
641
2/2
✓ Branch 1 taken 5 times.
✓ Branch 5 taken 5 times.
5 result.push_back(std::move(*heatingCoil));
642 5 }
643
3/3
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 1 time.
10 if (boost::optional<HVACComponent> supplementalHeatingCoil = this->optionalSupplementalHeatingCoil()) {
644
2/2
✓ Branch 1 taken 4 times.
✓ Branch 5 taken 4 times.
4 result.push_back(std::move(*supplementalHeatingCoil));
645 5 }
646
647 5 return result;
648 ✗ }
649
650 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizedMaximumSupplyAirTemperaturefromSupplementalHeater() const {
651 ✗ return getAutosizedValue("Maximum Supply Air Temperature from Supplemental Heater", "C");
652 }
653
654 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() const {
655 ✗ return getAutosizedValue("Supply Air Flow Rate When No Cooling or Heating is Needed", "m3/s");
656 }
657
658 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizedSpeed1SupplyAirFlowRateDuringHeatingOperation() const {
659 ✗ return getAutosizedValue("Speed1Supply Air Flow Rate During Heating Operation", "m3/s");
660 }
661
662 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizedSpeed2SupplyAirFlowRateDuringHeatingOperation() const {
663 ✗ return getAutosizedValue("Speed2Supply Air Flow Rate During Heating Operation", "m3/s");
664 }
665
666 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizedSpeed3SupplyAirFlowRateDuringHeatingOperation() const {
667 ✗ return getAutosizedValue("Speed3Supply Air Flow Rate During Heating Operation", "m3/s");
668 }
669
670 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizedSpeed4SupplyAirFlowRateDuringHeatingOperation() const {
671 ✗ return getAutosizedValue("Speed4Supply Air Flow Rate During Heating Operation", "m3/s");
672 }
673
674 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizedSpeed1SupplyAirFlowRateDuringCoolingOperation() const {
675 ✗ return getAutosizedValue("Speed 1 Supply Air Flow Rate During Cooling Operation", "m3/s");
676 }
677
678 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizedSpeed2SupplyAirFlowRateDuringCoolingOperation() const {
679 ✗ return getAutosizedValue("Speed 2 Supply Air Flow Rate During Cooling Operation", "m3/s");
680 }
681
682 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizedSpeed3SupplyAirFlowRateDuringCoolingOperation() const {
683 ✗ return getAutosizedValue("Speed 3 Supply Air Flow Rate During Cooling Operation", "m3/s");
684 }
685
686 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosizedSpeed4SupplyAirFlowRateDuringCoolingOperation() const {
687 ✗ return getAutosizedValue("Speed 4 Supply Air Flow Rate During Cooling Operation", "m3/s");
688 }
689
690 ✗ void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::autosize() {
691 ✗ autosizeMaximumSupplyAirTemperaturefromSupplementalHeater();
692 ✗ autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded();
693 ✗ autosizeSpeed1SupplyAirFlowRateDuringHeatingOperation();
694 ✗ autosizeSpeed2SupplyAirFlowRateDuringHeatingOperation();
695 ✗ autosizeSpeed3SupplyAirFlowRateDuringHeatingOperation();
696 ✗ autosizeSpeed4SupplyAirFlowRateDuringHeatingOperation();
697 ✗ autosizeSpeed1SupplyAirFlowRateDuringCoolingOperation();
698 ✗ autosizeSpeed2SupplyAirFlowRateDuringCoolingOperation();
699 ✗ autosizeSpeed3SupplyAirFlowRateDuringCoolingOperation();
700 ✗ autosizeSpeed4SupplyAirFlowRateDuringCoolingOperation();
701 ✗ }
702
703 ✗ void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::applySizingValues() {
704 ✗ boost::optional<double> val;
705 ✗ val = autosizedMaximumSupplyAirTemperaturefromSupplementalHeater();
706 ✗ if (val) {
707 ✗ setMaximumSupplyAirTemperaturefromSupplementalHeater(val.get());
708 }
709
710 ✗ val = autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded();
711 ✗ if (val) {
712 ✗ setSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(val.get());
713 }
714
715 ✗ val = autosizedSpeed1SupplyAirFlowRateDuringHeatingOperation();
716 ✗ if (val) {
717 ✗ setSpeed1SupplyAirFlowRateDuringHeatingOperation(val.get());
718 }
719
720 ✗ val = autosizedSpeed2SupplyAirFlowRateDuringHeatingOperation();
721 ✗ if (val) {
722 ✗ setSpeed2SupplyAirFlowRateDuringHeatingOperation(val.get());
723 }
724
725 ✗ val = autosizedSpeed3SupplyAirFlowRateDuringHeatingOperation();
726 ✗ if (val) {
727 ✗ setSpeed3SupplyAirFlowRateDuringHeatingOperation(val.get());
728 }
729
730 ✗ val = autosizedSpeed4SupplyAirFlowRateDuringHeatingOperation();
731 ✗ if (val) {
732 ✗ setSpeed4SupplyAirFlowRateDuringHeatingOperation(val.get());
733 }
734
735 ✗ val = autosizedSpeed1SupplyAirFlowRateDuringCoolingOperation();
736 ✗ if (val) {
737 ✗ setSpeed1SupplyAirFlowRateDuringCoolingOperation(val.get());
738 }
739
740 ✗ val = autosizedSpeed2SupplyAirFlowRateDuringCoolingOperation();
741 ✗ if (val) {
742 ✗ setSpeed2SupplyAirFlowRateDuringCoolingOperation(val.get());
743 }
744
745 ✗ val = autosizedSpeed3SupplyAirFlowRateDuringCoolingOperation();
746 ✗ if (val) {
747 ✗ setSpeed3SupplyAirFlowRateDuringCoolingOperation(val.get());
748 }
749
750 ✗ val = autosizedSpeed4SupplyAirFlowRateDuringCoolingOperation();
751 ✗ if (val) {
752 ✗ setSpeed4SupplyAirFlowRateDuringCoolingOperation(val.get());
753 }
754 ✗ }
755
756 ✗ std::vector<EMSActuatorNames> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::emsActuatorNames() const {
757 std::vector<EMSActuatorNames> actuators{{"AirLoopHVAC:UnitaryHeatPump:AirToAir", "Autosized Supply Air Flow Rate"},
758 {"Unitary HVAC", "Sensible Load Request"},
759 ✗ {"Unitary HVAC", "Moisture Load Request"}};
760 ✗ return actuators;
761 ✗ }
762
763 ✗ std::vector<std::string> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::emsInternalVariableNames() const {
764 ✗ std::vector<std::string> types{"Unitary HVAC Design Heating Capacity", "Unitary HVAC Design Cooling Capacity"};
765 ✗ return types;
766 ✗ }
767
768 ✗ ComponentType AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::componentType() const {
769
770 ✗ return ComponentType::Both;
771 }
772
773 ✗ std::vector<FuelType> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::coolingFuelTypes() const {
774 ✗ return coolingCoil().coolingFuelTypes();
775 }
776
777 ✗ std::vector<FuelType> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::heatingFuelTypes() const {
778 ✗ std::set<FuelType> result;
779 ✗ for (auto ft : heatingCoil().heatingFuelTypes()) {
780 ✗ result.insert(ft);
781 ✗ }
782 ✗ for (auto ft : supplementalHeatingCoil().heatingFuelTypes()) {
783 ✗ result.insert(ft);
784 ✗ }
785 ✗ return {result.begin(), result.end()};
786 ✗ }
787
788 ✗ std::vector<AppGFuelType> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl::appGHeatingFuelTypes() const {
789 ✗ std::set<AppGFuelType> result;
790 ✗ for (auto ft : heatingCoil().appGHeatingFuelTypes()) {
791 ✗ result.insert(ft);
792 ✗ }
793 ✗ for (auto ft : supplementalHeatingCoil().appGHeatingFuelTypes()) {
794 ✗ result.insert(ft);
795 ✗ }
796 ✗ return {result.begin(), result.end()};
797 ✗ }
798
799 } // namespace detail
800
801 8 AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed(const Model& model, const HVACComponent& fan,
802 const HVACComponent& heatingCoil,
803 const HVACComponent& coolingCoil,
804 8 const HVACComponent& supplementalHeatingCoil)
805 8 : StraightComponent(AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::iddObjectType(), model) {
806
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 8 times.
✗ Branch 5 not taken.
8 OS_ASSERT(getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>());
807
808
1/1
✓ Branch 1 taken 8 times.
8 bool ok = setSupplyAirFan(fan);
809
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
8 if (!ok) {
810 ✗ remove();
811 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s supply fan to " << fan.briefDescription() << ".");
812 }
813
814
1/1
✓ Branch 1 taken 8 times.
8 ok = setHeatingCoil(heatingCoil);
815
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
8 if (!ok) {
816 ✗ remove();
817 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s heating coil to " << heatingCoil.briefDescription() << ".");
818 }
819
820
1/1
✓ Branch 1 taken 8 times.
8 ok = setCoolingCoil(coolingCoil);
821
2/2
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 7 times.
8 if (!ok) {
822
1/1
✓ Branch 1 taken 1 time.
1 remove();
823
25/25
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 27 taken 1 time.
✓ Branch 30 taken 1 time.
✓ Branch 33 taken 1 time.
✓ Branch 39 taken 1 time.
✓ Branch 42 taken 1 time.
✓ Branch 45 taken 1 time.
✓ Branch 48 taken 1 time.
✓ Branch 51 taken 1 time.
✓ Branch 54 taken 1 time.
✓ Branch 57 taken 1 time.
✓ Branch 60 taken 1 time.
✓ Branch 63 taken 1 time.
✓ Branch 66 taken 1 time.
✓ Branch 69 taken 1 time.
✓ Branch 72 taken 1 time.
✓ Branch 78 taken 1 time.
✓ Branch 81 taken 1 time.
1 LOG_AND_THROW("Unable to set " << briefDescription() << "'s cooling coil to " << coolingCoil.briefDescription() << ".");
824 }
825
826
1/1
✓ Branch 1 taken 7 times.
7 ok = setSupplementalHeatingCoil(supplementalHeatingCoil);
827
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 if (!ok) {
828 ✗ remove();
829 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s supplemental heating coil to " << supplementalHeatingCoil.briefDescription()
830 << ".");
831 }
832
833
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
7 setSupplyAirFanPlacement("DrawThrough");
834
1/1
✓ Branch 1 taken 7 times.
7 setDXHeatingCoilSizingRatio(1.0);
835
1/1
✓ Branch 1 taken 7 times.
7 setMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation(21.0);
836
837
1/1
✓ Branch 1 taken 7 times.
7 autosizeMaximumSupplyAirTemperaturefromSupplementalHeater();
838
1/1
✓ Branch 1 taken 7 times.
7 setAuxiliaryOnCycleElectricPower(0.0);
839
1/1
✓ Branch 1 taken 7 times.
7 setAuxiliaryOffCycleElectricPower(0.0);
840
1/1
✓ Branch 1 taken 7 times.
7 setDesignHeatRecoveryWaterFlowRate(0.0);
841
1/1
✓ Branch 1 taken 7 times.
7 setMaximumTemperatureforHeatRecovery(80.0);
842
1/1
✓ Branch 1 taken 7 times.
7 autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded();
843
1/1
✓ Branch 1 taken 7 times.
7 setNumberofSpeedsforHeating(2);
844
1/1
✓ Branch 1 taken 7 times.
7 setNumberofSpeedsforCooling(2);
845
1/1
✓ Branch 1 taken 7 times.
7 autosizeSpeed1SupplyAirFlowRateDuringHeatingOperation();
846
1/1
✓ Branch 1 taken 7 times.
7 autosizeSpeed2SupplyAirFlowRateDuringHeatingOperation();
847
1/1
✓ Branch 1 taken 7 times.
7 autosizeSpeed3SupplyAirFlowRateDuringHeatingOperation();
848
1/1
✓ Branch 1 taken 7 times.
7 autosizeSpeed4SupplyAirFlowRateDuringHeatingOperation();
849
1/1
✓ Branch 1 taken 7 times.
7 autosizeSpeed1SupplyAirFlowRateDuringCoolingOperation();
850
1/1
✓ Branch 1 taken 7 times.
7 autosizeSpeed2SupplyAirFlowRateDuringCoolingOperation();
851
1/1
✓ Branch 1 taken 7 times.
7 autosizeSpeed3SupplyAirFlowRateDuringCoolingOperation();
852
1/1
✓ Branch 1 taken 7 times.
7 autosizeSpeed4SupplyAirFlowRateDuringCoolingOperation();
853
1/1
✓ Branch 1 taken 7 times.
7 auto schedule = model.alwaysOnDiscreteSchedule();
854
1/1
✓ Branch 1 taken 7 times.
7 setSupplyAirFanOperatingModeSchedule(schedule);
855 8 }
856
857 7900 IddObjectType AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::iddObjectType() {
858
1/1
✓ Branch 1 taken 7900 times.
7900 return {IddObjectType::OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeed};
859 }
860
861 ✗ std::vector<std::string> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::supplyAirFanPlacementValues() {
862 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
863 ✗ OS_AirLoopHVAC_UnitaryHeatPump_AirToAir_MultiSpeedFields::SupplyAirFanPlacement);
864 }
865
866 6 boost::optional<Schedule> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::availabilitySchedule() const {
867
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->availabilitySchedule();
868 }
869
870 6 boost::optional<ThermalZone> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::controllingZoneorThermostatLocation() const {
871
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->controllingZoneorThermostatLocation();
872 }
873
874 5 HVACComponent AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::supplyAirFan() const {
875
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->supplyAirFan();
876 }
877
878 6 std::string AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::supplyAirFanPlacement() const {
879
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->supplyAirFanPlacement();
880 }
881
882 5 Schedule AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::supplyAirFanOperatingModeSchedule() const {
883
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->supplyAirFanOperatingModeSchedule();
884 }
885
886 7 HVACComponent AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::heatingCoil() const {
887
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->heatingCoil();
888 }
889
890 4 double AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::dXHeatingCoilSizingRatio() const {
891
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->dXHeatingCoilSizingRatio();
892 }
893
894 5 HVACComponent AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::coolingCoil() const {
895
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->coolingCoil();
896 }
897
898 5 HVACComponent AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::supplementalHeatingCoil() const {
899
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->supplementalHeatingCoil();
900 }
901
902 2 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::maximumSupplyAirTemperaturefromSupplementalHeater() const {
903
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->maximumSupplyAirTemperaturefromSupplementalHeater();
904 }
905
906 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::isMaximumSupplyAirTemperaturefromSupplementalHeaterAutosized() const {
907
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->isMaximumSupplyAirTemperaturefromSupplementalHeaterAutosized();
908 }
909
910 6 double AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation() const {
911
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation();
912 }
913
914 6 double AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::auxiliaryOnCycleElectricPower() const {
915
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->auxiliaryOnCycleElectricPower();
916 }
917
918 6 double AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::auxiliaryOffCycleElectricPower() const {
919
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->auxiliaryOffCycleElectricPower();
920 }
921
922 6 double AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::designHeatRecoveryWaterFlowRate() const {
923
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->designHeatRecoveryWaterFlowRate();
924 }
925
926 6 double AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::maximumTemperatureforHeatRecovery() const {
927
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->maximumTemperatureforHeatRecovery();
928 }
929
930 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::supplyAirFlowRateWhenNoCoolingorHeatingisNeeded() const {
931
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->supplyAirFlowRateWhenNoCoolingorHeatingisNeeded();
932 }
933
934 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::isSupplyAirFlowRateWhenNoCoolingorHeatingisNeededAutosized() const {
935
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->isSupplyAirFlowRateWhenNoCoolingorHeatingisNeededAutosized();
936 }
937
938 6 int AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::numberofSpeedsforHeating() const {
939
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->numberofSpeedsforHeating();
940 }
941
942 6 int AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::numberofSpeedsforCooling() const {
943
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->numberofSpeedsforCooling();
944 }
945
946 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::speed1SupplyAirFlowRateDuringHeatingOperation() const {
947
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->speed1SupplyAirFlowRateDuringHeatingOperation();
948 }
949
950 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::isSpeed1SupplyAirFlowRateDuringHeatingOperationAutosized() const {
951
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->isSpeed1SupplyAirFlowRateDuringHeatingOperationAutosized();
952 }
953
954 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::speed2SupplyAirFlowRateDuringHeatingOperation() const {
955
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->speed2SupplyAirFlowRateDuringHeatingOperation();
956 }
957
958 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::isSpeed2SupplyAirFlowRateDuringHeatingOperationAutosized() const {
959
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->isSpeed2SupplyAirFlowRateDuringHeatingOperationAutosized();
960 }
961
962 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::speed3SupplyAirFlowRateDuringHeatingOperation() const {
963
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->speed3SupplyAirFlowRateDuringHeatingOperation();
964 }
965
966 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::isSpeed3SupplyAirFlowRateDuringHeatingOperationAutosized() const {
967
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->isSpeed3SupplyAirFlowRateDuringHeatingOperationAutosized();
968 }
969
970 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::speed4SupplyAirFlowRateDuringHeatingOperation() const {
971
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->speed4SupplyAirFlowRateDuringHeatingOperation();
972 }
973
974 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::isSpeed4SupplyAirFlowRateDuringHeatingOperationAutosized() const {
975
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->isSpeed4SupplyAirFlowRateDuringHeatingOperationAutosized();
976 }
977
978 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::speed1SupplyAirFlowRateDuringCoolingOperation() const {
979
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->speed1SupplyAirFlowRateDuringCoolingOperation();
980 }
981
982 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::isSpeed1SupplyAirFlowRateDuringCoolingOperationAutosized() const {
983
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->isSpeed1SupplyAirFlowRateDuringCoolingOperationAutosized();
984 }
985
986 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::speed2SupplyAirFlowRateDuringCoolingOperation() const {
987
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->speed2SupplyAirFlowRateDuringCoolingOperation();
988 }
989
990 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::isSpeed2SupplyAirFlowRateDuringCoolingOperationAutosized() const {
991
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->isSpeed2SupplyAirFlowRateDuringCoolingOperationAutosized();
992 }
993
994 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::speed3SupplyAirFlowRateDuringCoolingOperation() const {
995
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->speed3SupplyAirFlowRateDuringCoolingOperation();
996 }
997
998 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::isSpeed3SupplyAirFlowRateDuringCoolingOperationAutosized() const {
999
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->isSpeed3SupplyAirFlowRateDuringCoolingOperationAutosized();
1000 }
1001
1002 4 boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::speed4SupplyAirFlowRateDuringCoolingOperation() const {
1003
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->speed4SupplyAirFlowRateDuringCoolingOperation();
1004 }
1005
1006 6 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::isSpeed4SupplyAirFlowRateDuringCoolingOperationAutosized() const {
1007
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->isSpeed4SupplyAirFlowRateDuringCoolingOperationAutosized();
1008 }
1009
1010 1 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setAvailabilitySchedule(Schedule& schedule) {
1011
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setAvailabilitySchedule(schedule);
1012 }
1013
1014 ✗ void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::resetAvailabilitySchedule() {
1015 ✗ getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->resetAvailabilitySchedule();
1016 ✗ }
1017
1018 1 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setControllingZoneorThermostatLocation(const ThermalZone& thermalZone) {
1019
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setControllingZoneorThermostatLocation(thermalZone);
1020 }
1021
1022 ✗ void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::resetControllingZoneorThermostatLocation() {
1023 ✗ getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->resetControllingZoneorThermostatLocation();
1024 ✗ }
1025
1026 10 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setSupplyAirFan(const HVACComponent& fan) {
1027
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setSupplyAirFan(fan);
1028 }
1029
1030 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setSupplyAirFanPlacement(const std::string& supplyAirFanPlacement) {
1031
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setSupplyAirFanPlacement(supplyAirFanPlacement);
1032 }
1033
1034 8 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setSupplyAirFanOperatingModeSchedule(Schedule& schedule) {
1035
1/1
✓ Branch 3 taken 8 times.
8 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setSupplyAirFanOperatingModeSchedule(schedule);
1036 }
1037
1038 10 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setHeatingCoil(const HVACComponent& coil) {
1039
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setHeatingCoil(coil);
1040 }
1041
1042 7 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setDXHeatingCoilSizingRatio(double dxHeatingCoilSizingRatio) {
1043
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setDXHeatingCoilSizingRatio(dxHeatingCoilSizingRatio);
1044 }
1045
1046 11 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setCoolingCoil(const HVACComponent& coil) {
1047
1/1
✓ Branch 3 taken 11 times.
11 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setCoolingCoil(coil);
1048 }
1049
1050 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setSupplementalHeatingCoil(const HVACComponent& coil) {
1051
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setSupplementalHeatingCoil(coil);
1052 }
1053
1054 1 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setMaximumSupplyAirTemperaturefromSupplementalHeater(
1055 double maximumSupplyAirTemperaturefromSupplementalHeater) {
1056
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
2 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setMaximumSupplyAirTemperaturefromSupplementalHeater(
1057 2 maximumSupplyAirTemperaturefromSupplementalHeater);
1058 }
1059
1060 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizeMaximumSupplyAirTemperaturefromSupplementalHeater() {
1061
1/1
✓ Branch 3 taken 8 times.
8 getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizeMaximumSupplyAirTemperaturefromSupplementalHeater();
1062 8 }
1063
1064 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation(
1065 double maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation) {
1066
1/1
✓ Branch 3 taken 9 times.
18 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setMaximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation(
1067 18 maximumOutdoorDryBulbTemperatureforSupplementalHeaterOperation);
1068 }
1069
1070 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setAuxiliaryOnCycleElectricPower(double auxiliaryOnCycleElectricPower) {
1071
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setAuxiliaryOnCycleElectricPower(auxiliaryOnCycleElectricPower);
1072 }
1073
1074 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setAuxiliaryOffCycleElectricPower(double auxiliaryOffCycleElectricPower) {
1075
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setAuxiliaryOffCycleElectricPower(auxiliaryOffCycleElectricPower);
1076 }
1077
1078 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setDesignHeatRecoveryWaterFlowRate(double designHeatRecoveryWaterFlowRate) {
1079
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setDesignHeatRecoveryWaterFlowRate(designHeatRecoveryWaterFlowRate);
1080 }
1081
1082 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setMaximumTemperatureforHeatRecovery(double maximumTemperatureforHeatRecovery) {
1083
1/1
✓ Branch 3 taken 9 times.
18 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setMaximumTemperatureforHeatRecovery(
1084 18 maximumTemperatureforHeatRecovery);
1085 }
1086
1087 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(
1088 double supplyAirFlowRateWhenNoCoolingorHeatingisNeeded) {
1089
2/2
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded(
1090 4 supplyAirFlowRateWhenNoCoolingorHeatingisNeeded);
1091 }
1092
1093 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() {
1094
1/1
✓ Branch 3 taken 8 times.
8 getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizeSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded();
1095 8 }
1096
1097 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setNumberofSpeedsforHeating(int numberofSpeedsforHeating) {
1098
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setNumberofSpeedsforHeating(numberofSpeedsforHeating);
1099 }
1100
1101 9 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setNumberofSpeedsforCooling(int numberofSpeedsforCooling) {
1102
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setNumberofSpeedsforCooling(numberofSpeedsforCooling);
1103 }
1104
1105 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setSpeed1SupplyAirFlowRateDuringHeatingOperation(
1106 double speed1SupplyAirFlowRateDuringHeatingOperation) {
1107
2/2
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setSpeed1SupplyAirFlowRateDuringHeatingOperation(
1108 4 speed1SupplyAirFlowRateDuringHeatingOperation);
1109 }
1110
1111 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizeSpeed1SupplyAirFlowRateDuringHeatingOperation() {
1112
1/1
✓ Branch 3 taken 8 times.
8 getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizeSpeed1SupplyAirFlowRateDuringHeatingOperation();
1113 8 }
1114
1115 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setSpeed2SupplyAirFlowRateDuringHeatingOperation(
1116 double speed2SupplyAirFlowRateDuringHeatingOperation) {
1117
2/2
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setSpeed2SupplyAirFlowRateDuringHeatingOperation(
1118 4 speed2SupplyAirFlowRateDuringHeatingOperation);
1119 }
1120
1121 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizeSpeed2SupplyAirFlowRateDuringHeatingOperation() {
1122
1/1
✓ Branch 3 taken 8 times.
8 getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizeSpeed2SupplyAirFlowRateDuringHeatingOperation();
1123 8 }
1124
1125 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setSpeed3SupplyAirFlowRateDuringHeatingOperation(
1126 double speed3SupplyAirFlowRateDuringHeatingOperation) {
1127
2/2
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setSpeed3SupplyAirFlowRateDuringHeatingOperation(
1128 4 speed3SupplyAirFlowRateDuringHeatingOperation);
1129 }
1130
1131 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizeSpeed3SupplyAirFlowRateDuringHeatingOperation() {
1132
1/1
✓ Branch 3 taken 8 times.
8 getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizeSpeed3SupplyAirFlowRateDuringHeatingOperation();
1133 8 }
1134
1135 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setSpeed4SupplyAirFlowRateDuringHeatingOperation(
1136 double speed4SupplyAirFlowRateDuringHeatingOperation) {
1137
2/2
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setSpeed4SupplyAirFlowRateDuringHeatingOperation(
1138 4 speed4SupplyAirFlowRateDuringHeatingOperation);
1139 }
1140
1141 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizeSpeed4SupplyAirFlowRateDuringHeatingOperation() {
1142
1/1
✓ Branch 3 taken 8 times.
8 getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizeSpeed4SupplyAirFlowRateDuringHeatingOperation();
1143 8 }
1144
1145 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setSpeed1SupplyAirFlowRateDuringCoolingOperation(
1146 double speed1SupplyAirFlowRateDuringCoolingOperation) {
1147
2/2
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setSpeed1SupplyAirFlowRateDuringCoolingOperation(
1148 4 speed1SupplyAirFlowRateDuringCoolingOperation);
1149 }
1150
1151 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizeSpeed1SupplyAirFlowRateDuringCoolingOperation() {
1152
1/1
✓ Branch 3 taken 8 times.
8 getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizeSpeed1SupplyAirFlowRateDuringCoolingOperation();
1153 8 }
1154
1155 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setSpeed2SupplyAirFlowRateDuringCoolingOperation(
1156 double speed2SupplyAirFlowRateDuringCoolingOperation) {
1157
2/2
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setSpeed2SupplyAirFlowRateDuringCoolingOperation(
1158 4 speed2SupplyAirFlowRateDuringCoolingOperation);
1159 }
1160
1161 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizeSpeed2SupplyAirFlowRateDuringCoolingOperation() {
1162
1/1
✓ Branch 3 taken 8 times.
8 getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizeSpeed2SupplyAirFlowRateDuringCoolingOperation();
1163 8 }
1164
1165 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setSpeed3SupplyAirFlowRateDuringCoolingOperation(
1166 double speed3SupplyAirFlowRateDuringCoolingOperation) {
1167
2/2
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setSpeed3SupplyAirFlowRateDuringCoolingOperation(
1168 4 speed3SupplyAirFlowRateDuringCoolingOperation);
1169 }
1170
1171 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizeSpeed3SupplyAirFlowRateDuringCoolingOperation() {
1172
1/1
✓ Branch 3 taken 8 times.
8 getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizeSpeed3SupplyAirFlowRateDuringCoolingOperation();
1173 8 }
1174
1175 2 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setSpeed4SupplyAirFlowRateDuringCoolingOperation(
1176 double speed4SupplyAirFlowRateDuringCoolingOperation) {
1177
2/2
✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
4 return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->setSpeed4SupplyAirFlowRateDuringCoolingOperation(
1178 4 speed4SupplyAirFlowRateDuringCoolingOperation);
1179 }
1180
1181 8 void AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizeSpeed4SupplyAirFlowRateDuringCoolingOperation() {
1182
1/1
✓ Branch 3 taken 8 times.
8 getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizeSpeed4SupplyAirFlowRateDuringCoolingOperation();
1183 8 }
1184
1185 /// @cond
1186 6 AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed(
1187 6 std::shared_ptr<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl> impl)
1188
1/1
✓ Branch 3 taken 6 times.
6 : StraightComponent(std::move(impl)) {}
1189 /// @endcond
1190
1191 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizedMaximumSupplyAirTemperaturefromSupplementalHeater() const {
1192 ✗ return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizedMaximumSupplyAirTemperaturefromSupplementalHeater();
1193 }
1194
1195 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded() const {
1196 ✗ return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizedSupplyAirFlowRateWhenNoCoolingorHeatingisNeeded();
1197 }
1198
1199 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizedSpeed1SupplyAirFlowRateDuringHeatingOperation() const {
1200 ✗ return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizedSpeed1SupplyAirFlowRateDuringHeatingOperation();
1201 }
1202
1203 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizedSpeed2SupplyAirFlowRateDuringHeatingOperation() const {
1204 ✗ return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizedSpeed2SupplyAirFlowRateDuringHeatingOperation();
1205 }
1206
1207 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizedSpeed3SupplyAirFlowRateDuringHeatingOperation() const {
1208 ✗ return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizedSpeed3SupplyAirFlowRateDuringHeatingOperation();
1209 }
1210
1211 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizedSpeed4SupplyAirFlowRateDuringHeatingOperation() const {
1212 ✗ return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizedSpeed4SupplyAirFlowRateDuringHeatingOperation();
1213 }
1214
1215 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizedSpeed1SupplyAirFlowRateDuringCoolingOperation() const {
1216 ✗ return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizedSpeed1SupplyAirFlowRateDuringCoolingOperation();
1217 }
1218
1219 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizedSpeed2SupplyAirFlowRateDuringCoolingOperation() const {
1220 ✗ return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizedSpeed2SupplyAirFlowRateDuringCoolingOperation();
1221 }
1222
1223 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizedSpeed3SupplyAirFlowRateDuringCoolingOperation() const {
1224 ✗ return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizedSpeed3SupplyAirFlowRateDuringCoolingOperation();
1225 }
1226
1227 ✗ boost::optional<double> AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::autosizedSpeed4SupplyAirFlowRateDuringCoolingOperation() const {
1228 ✗ return getImpl<detail::AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed_Impl>()->autosizedSpeed4SupplyAirFlowRateDuringCoolingOperation();
1229 }
1230
1231 // DEPRECATED
1232 1 double AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::minimumOutdoorDryBulbTemperatureforCompressorOperation() const {
1233 // Former v25.1.0 IDD note said this "Needs to match the corresponding minimum outdoor temperature defined in the DX heating coil object"
1234
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
4 DEPRECATED_AT_MSG(3, 11, 0,
1235 "This field was previously unused and removed in EnergyPlus 25.2.0. Set the Minimum OAT for Compressor Operation on the child "
1236 "DX MultiSpeed Coils if any.");
1237
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✗ Branch 8 not taken.
✓ Branch 9 taken 1 time.
2 if (auto hc_ = heatingCoil().optionalCast<CoilHeatingDXMultiSpeed>()) {
1238 ✗ return hc_->minimumOutdoorDryBulbTemperatureforCompressorOperation();
1239 1 }
1240 1 return -1000.0;
1241 }
1242
1243 1 bool AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed::setMinimumOutdoorDryBulbTemperatureforCompressorOperation(
1244 double minimumOutdoorDryBulbTemperatureforCompressorOperation) {
1245
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
4 DEPRECATED_AT_MSG(3, 11, 0,
1246 "This field was previously unused and removed in EnergyPlus 25.2.0. Set the Minimum OAT for Compressor Operation on the child "
1247 "DX MultiSpeed Coils if any.");
1248
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✗ Branch 8 not taken.
✓ Branch 9 taken 1 time.
2 if (auto hc_ = heatingCoil().optionalCast<CoilHeatingDXMultiSpeed>()) {
1249 ✗ return hc_->setMinimumOutdoorDryBulbTemperatureforCompressorOperation(minimumOutdoorDryBulbTemperatureforCompressorOperation);
1250 1 }
1251
1252 1 return false;
1253 }
1254
1255 } // namespace model
1256 } // namespace openstudio
1257