GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 68.8% 484 / 0 / 704
Functions: 78.0% 145 / 0 / 186
Branches: 43.0% 351 / 0 / 816

src/model/ZoneHVACFourPipeFanCoil.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 "ZoneHVACFourPipeFanCoil.hpp"
7 #include "ZoneHVACFourPipeFanCoil_Impl.hpp"
8
9 #include "Schedule.hpp"
10 #include "Schedule_Impl.hpp"
11 #include "ScheduleTypeLimits.hpp"
12 #include "ScheduleTypeRegistry.hpp"
13 #include "HVACComponent.hpp"
14 #include "HVACComponent_Impl.hpp"
15 #include "CoilHeatingWater.hpp"
16 #include "CoilHeatingWater_Impl.hpp"
17 #include "CoilCoolingWater.hpp"
18 #include "CoilCoolingWater_Impl.hpp"
19 #include "Model.hpp"
20 #include "Model_Impl.hpp"
21 #include <utilities/idd/IddFactory.hxx>
22
23 #include <utilities/idd/OS_ZoneHVAC_FourPipeFanCoil_FieldEnums.hxx>
24 #include <utilities/idd/IddEnums.hxx>
25
26 #include "../utilities/core/Assert.hpp"
27 #include "../utilities/data/DataEnums.hpp"
28
29 namespace openstudio {
30 namespace model {
31
32 namespace detail {
33
34 9 ZoneHVACFourPipeFanCoil_Impl::ZoneHVACFourPipeFanCoil_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
35 9 : ZoneHVACComponent_Impl(idfObject, model, keepHandle) {
36
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() == ZoneHVACFourPipeFanCoil::iddObjectType());
37 9 }
38
39 1 ZoneHVACFourPipeFanCoil_Impl::ZoneHVACFourPipeFanCoil_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model,
40 1 bool keepHandle)
41 1 : ZoneHVACComponent_Impl(other, model, keepHandle) {
42
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() == ZoneHVACFourPipeFanCoil::iddObjectType());
43 1 }
44
45 1 ZoneHVACFourPipeFanCoil_Impl::ZoneHVACFourPipeFanCoil_Impl(const ZoneHVACFourPipeFanCoil_Impl& other, Model_Impl* model, bool keepHandle)
46 1 : ZoneHVACComponent_Impl(other, model, keepHandle) {}
47
48 ✗ ModelObject ZoneHVACFourPipeFanCoil_Impl::clone(Model model) const {
49 ✗ auto fourPipeFanCoilClone = ZoneHVACComponent_Impl::clone(model).cast<ZoneHVACFourPipeFanCoil>();
50
51 ✗ auto supplyFanClone = this->supplyAirFan().clone(model).cast<HVACComponent>();
52
53 ✗ auto t_coolingCoil = coolingCoil();
54 ✗ auto coolingCoilClone = t_coolingCoil.clone(model).cast<HVACComponent>();
55
56 ✗ auto t_heatingCoil = heatingCoil();
57 ✗ auto heatingCoilClone = t_heatingCoil.clone(model).cast<HVACComponent>();
58
59 ✗ fourPipeFanCoilClone.setSupplyAirFan(supplyFanClone);
60
61 ✗ fourPipeFanCoilClone.setHeatingCoil(heatingCoilClone);
62
63 ✗ fourPipeFanCoilClone.setCoolingCoil(coolingCoilClone);
64
65 ✗ if (model == this->model()) {
66 ✗ if (auto waterToAirComponent = t_coolingCoil.optionalCast<WaterToAirComponent>()) {
67 ✗ if (auto plant = waterToAirComponent->plantLoop()) {
68 ✗ plant->addDemandBranchForComponent(coolingCoilClone);
69 ✗ }
70 ✗ }
71 ✗ if (auto waterToAirComponent = t_heatingCoil.optionalCast<WaterToAirComponent>()) {
72 ✗ if (auto plant = waterToAirComponent->plantLoop()) {
73 ✗ plant->addDemandBranchForComponent(heatingCoilClone);
74 ✗ }
75 ✗ }
76 }
77
78 ✗ return std::move(fourPipeFanCoilClone);
79 ✗ }
80
81 1 std::vector<IdfObject> ZoneHVACFourPipeFanCoil_Impl::remove() {
82 // Careful here, remove could be called during the Ctor, and the coils might not be set actually!
83
2/3
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
2 if (boost::optional<HVACComponent> _hc = optionalHeatingCoil()) {
84 ✗ if (boost::optional<CoilHeatingWater> waterHeatingCoil = _hc->optionalCast<CoilHeatingWater>()) {
85 ✗ if (boost::optional<PlantLoop> plantLoop = waterHeatingCoil->plantLoop()) {
86 ✗ plantLoop->removeDemandBranchWithComponent(waterHeatingCoil.get());
87 ✗ }
88 ✗ }
89 1 }
90
91
2/3
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
2 if (boost::optional<HVACComponent> _cc = optionalCoolingCoil()) {
92 ✗ if (boost::optional<CoilCoolingWater> waterCoolingCoil = _cc->optionalCast<CoilCoolingWater>()) {
93 ✗ if (boost::optional<PlantLoop> plantLoop = waterCoolingCoil->plantLoop()) {
94 ✗ plantLoop->removeDemandBranchWithComponent(waterCoolingCoil.get());
95 ✗ }
96 ✗ }
97 1 }
98 1 return ZoneHVACComponent_Impl::remove();
99 }
100
101 ✗ const std::vector<std::string>& ZoneHVACFourPipeFanCoil_Impl::outputVariableNames() const {
102 static const std::vector<std::string> result{"Fan Coil Heating Rate", "Fan Coil Heating Energy",
103 "Fan Coil Total Cooling Rate", "Fan Coil Total Cooling Energy",
104 "Fan Coil Sensible Cooling Rate", "Fan Coil Sensible Cooling Energy",
105 "Fan Coil Fan Electricity Rate", "Fan Coil Fan Electricity Energy",
106 "Fan Coil Runtime Fraction", "Fan Coil Fan Speed Level",
107 "Fan Coil Part Load Ratio", "Fan Coil Availability Status",
108 ✗ "Fan Coil Part Load Ratio", "Fan Coil Speed Ratio"};
109 ✗ return result;
110 ✗ }
111
112 7 IddObjectType ZoneHVACFourPipeFanCoil_Impl::iddObjectType() const {
113 7 return ZoneHVACFourPipeFanCoil::iddObjectType();
114 }
115
116 ✗ std::vector<ScheduleTypeKey> ZoneHVACFourPipeFanCoil_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
117 ✗ std::vector<ScheduleTypeKey> result;
118 ✗ UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
119 ✗ UnsignedVector::const_iterator b(fieldIndices.begin());
120 ✗ UnsignedVector::const_iterator e(fieldIndices.end());
121 ✗ if (std::find(b, e, OS_ZoneHVAC_FourPipeFanCoilFields::AvailabilityScheduleName) != e) {
122 ✗ result.push_back(ScheduleTypeKey("ZoneHVACFourPipeFanCoil", "Availability"));
123 }
124 ✗ if (std::find(b, e, OS_ZoneHVAC_FourPipeFanCoilFields::OutdoorAirScheduleName) != e) {
125 ✗ result.push_back(ScheduleTypeKey("ZoneHVACFourPipeFanCoil", "Outdoor Air"));
126 }
127 ✗ if (std::find(b, e, OS_ZoneHVAC_FourPipeFanCoilFields::SupplyAirFanOperatingModeScheduleName) != e) {
128 ✗ result.push_back(ScheduleTypeKey("ZoneHVACFourPipeFanCoil", "Supply Air Fan Operating Mode"));
129 }
130 ✗ return result;
131 ✗ }
132
133 2 std::vector<ModelObject> ZoneHVACFourPipeFanCoil_Impl::children() const {
134 2 std::vector<ModelObject> result;
135
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 if (OptionalHVACComponent intermediate = optionalSupplyAirFan()) {
136
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 result.push_back(*intermediate);
137 2 }
138
3/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
4 if (OptionalHVACComponent intermediate = optionalCoolingCoil()) {
139
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 result.push_back(*intermediate);
140 2 }
141
3/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
4 if (OptionalHVACComponent intermediate = optionalHeatingCoil()) {
142
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 result.push_back(*intermediate);
143 2 }
144 2 return result;
145 ✗ }
146
147 25 unsigned ZoneHVACFourPipeFanCoil_Impl::inletPort() const {
148 25 return OS_ZoneHVAC_FourPipeFanCoilFields::AirInletNodeName;
149 }
150
151 34 unsigned ZoneHVACFourPipeFanCoil_Impl::outletPort() const {
152 34 return OS_ZoneHVAC_FourPipeFanCoilFields::AirOutletNodeName;
153 }
154
155 3 Schedule ZoneHVACFourPipeFanCoil_Impl::availabilitySchedule() const {
156
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<Schedule> value = optionalAvailabilitySchedule();
157
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if (!value) {
158 // it is an error if we get here, however we don't want to crash
159 // so we hook up to global always on schedule
160 ✗ LOG(Error, "Required availability schedule not set, using 'Always On' schedule");
161 ✗ value = this->model().alwaysOnDiscreteSchedule();
162 ✗ OS_ASSERT(value);
163 ✗ const_cast<ZoneHVACFourPipeFanCoil_Impl*>(this)->setAvailabilitySchedule(*value);
164 ✗ value = optionalAvailabilitySchedule();
165 }
166
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
167
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return value.get();
168 3 }
169
170 12 std::string ZoneHVACFourPipeFanCoil_Impl::capacityControlMethod() const {
171
1/1
✓ Branch 1 taken 12 times.
12 boost::optional<std::string> value = getString(OS_ZoneHVAC_FourPipeFanCoilFields::CapacityControlMethod, true);
172
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 12 times.
✗ Branch 4 not taken.
12 OS_ASSERT(value);
173
2/2
✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
24 return value.get();
174 12 }
175
176 2 boost::optional<double> ZoneHVACFourPipeFanCoil_Impl::maximumSupplyAirFlowRate() const {
177 2 return getDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumSupplyAirFlowRate, true);
178 }
179
180 1 bool ZoneHVACFourPipeFanCoil_Impl::isMaximumSupplyAirFlowRateAutosized() const {
181 1 bool result = false;
182
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumSupplyAirFlowRate, true);
183
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
184
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "autosize");
185 }
186 1 return result;
187 1 }
188
189 3 double ZoneHVACFourPipeFanCoil_Impl::lowSpeedSupplyAirFlowRatio() const {
190
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_ZoneHVAC_FourPipeFanCoilFields::LowSpeedSupplyAirFlowRatio, true);
191
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
192
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
193 }
194
195 1 bool ZoneHVACFourPipeFanCoil_Impl::isLowSpeedSupplyAirFlowRatioDefaulted() const {
196 1 return isEmpty(OS_ZoneHVAC_FourPipeFanCoilFields::LowSpeedSupplyAirFlowRatio);
197 }
198
199 3 double ZoneHVACFourPipeFanCoil_Impl::mediumSpeedSupplyAirFlowRatio() const {
200
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MediumSpeedSupplyAirFlowRatio, true);
201
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
202
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
203 }
204
205 1 bool ZoneHVACFourPipeFanCoil_Impl::isMediumSpeedSupplyAirFlowRatioDefaulted() const {
206 1 return isEmpty(OS_ZoneHVAC_FourPipeFanCoilFields::MediumSpeedSupplyAirFlowRatio);
207 }
208
209 2 boost::optional<double> ZoneHVACFourPipeFanCoil_Impl::maximumOutdoorAirFlowRate() const {
210 2 return getDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumOutdoorAirFlowRate, true);
211 }
212
213 1 bool ZoneHVACFourPipeFanCoil_Impl::isMaximumOutdoorAirFlowRateAutosized() const {
214 1 bool result = false;
215
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumOutdoorAirFlowRate, true);
216
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
217
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "autosize");
218 }
219 1 return result;
220 1 }
221
222 4 boost::optional<Schedule> ZoneHVACFourPipeFanCoil_Impl::outdoorAirSchedule() const {
223
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
4 return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_ZoneHVAC_FourPipeFanCoilFields::OutdoorAirScheduleName);
224 }
225
226 2 std::string ZoneHVACFourPipeFanCoil_Impl::outdoorAirMixerObjectType() const {
227
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<std::string> value = getString(OS_ZoneHVAC_FourPipeFanCoilFields::OutdoorAirMixerObjectType, true);
228
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
229
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 return value.get();
230 2 }
231
232 ✗ std::string ZoneHVACFourPipeFanCoil_Impl::outdoorAirMixerName() const {
233 ✗ boost::optional<std::string> value = getString(OS_ZoneHVAC_FourPipeFanCoilFields::OutdoorAirMixerName, true);
234 ✗ OS_ASSERT(value);
235 ✗ return value.get();
236 ✗ }
237
238 7 HVACComponent ZoneHVACFourPipeFanCoil_Impl::supplyAirFan() const {
239
1/1
✓ Branch 1 taken 7 times.
7 boost::optional<HVACComponent> fan = optionalSupplyAirFan();
240
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
7 OS_ASSERT(fan);
241
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
14 return fan.get();
242 7 }
243
244 7 HVACComponent ZoneHVACFourPipeFanCoil_Impl::coolingCoil() const {
245
1/1
✓ Branch 1 taken 7 times.
7 boost::optional<HVACComponent> coil = optionalCoolingCoil();
246
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
7 OS_ASSERT(coil);
247
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
14 return coil.get();
248 7 }
249
250 2 boost::optional<double> ZoneHVACFourPipeFanCoil_Impl::maximumColdWaterFlowRate() const {
251 2 return getDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumColdWaterFlowRate, true);
252 }
253
254 1 bool ZoneHVACFourPipeFanCoil_Impl::isMaximumColdWaterFlowRateAutosized() const {
255 1 bool result = false;
256
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumColdWaterFlowRate, true);
257
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
258
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "autosize");
259 }
260 1 return result;
261 1 }
262
263 3 double ZoneHVACFourPipeFanCoil_Impl::minimumColdWaterFlowRate() const {
264
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MinimumColdWaterFlowRate, true);
265
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
266
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
267 }
268
269 1 bool ZoneHVACFourPipeFanCoil_Impl::isMinimumColdWaterFlowRateDefaulted() const {
270 1 return isEmpty(OS_ZoneHVAC_FourPipeFanCoilFields::MinimumColdWaterFlowRate);
271 }
272
273 3 double ZoneHVACFourPipeFanCoil_Impl::coolingConvergenceTolerance() const {
274
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_ZoneHVAC_FourPipeFanCoilFields::CoolingConvergenceTolerance, true);
275
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
276
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
277 }
278
279 1 bool ZoneHVACFourPipeFanCoil_Impl::isCoolingConvergenceToleranceDefaulted() const {
280 1 return isEmpty(OS_ZoneHVAC_FourPipeFanCoilFields::CoolingConvergenceTolerance);
281 }
282
283 6 HVACComponent ZoneHVACFourPipeFanCoil_Impl::heatingCoil() const {
284
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<HVACComponent> coil = optionalHeatingCoil();
285
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
6 OS_ASSERT(coil);
286
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
12 return coil.get();
287 6 }
288
289 2 boost::optional<double> ZoneHVACFourPipeFanCoil_Impl::maximumHotWaterFlowRate() const {
290 2 return getDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumHotWaterFlowRate, true);
291 }
292
293 1 bool ZoneHVACFourPipeFanCoil_Impl::isMaximumHotWaterFlowRateAutosized() const {
294 1 bool result = false;
295
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumHotWaterFlowRate, true);
296
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
297
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "autosize");
298 }
299 1 return result;
300 1 }
301
302 3 double ZoneHVACFourPipeFanCoil_Impl::minimumHotWaterFlowRate() const {
303
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MinimumHotWaterFlowRate, true);
304
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
305
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
306 }
307
308 1 bool ZoneHVACFourPipeFanCoil_Impl::isMinimumHotWaterFlowRateDefaulted() const {
309 1 return isEmpty(OS_ZoneHVAC_FourPipeFanCoilFields::MinimumHotWaterFlowRate);
310 }
311
312 3 double ZoneHVACFourPipeFanCoil_Impl::heatingConvergenceTolerance() const {
313
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_ZoneHVAC_FourPipeFanCoilFields::HeatingConvergenceTolerance, true);
314
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
315
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
316 }
317
318 1 bool ZoneHVACFourPipeFanCoil_Impl::isHeatingConvergenceToleranceDefaulted() const {
319 1 return isEmpty(OS_ZoneHVAC_FourPipeFanCoilFields::HeatingConvergenceTolerance);
320 }
321
322 9 bool ZoneHVACFourPipeFanCoil_Impl::setAvailabilitySchedule(Schedule& schedule) {
323
3/3
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
36 bool result = setSchedule(OS_ZoneHVAC_FourPipeFanCoilFields::AvailabilityScheduleName, "ZoneHVACFourPipeFanCoil", "Availability", schedule);
324 9 return result;
325 }
326
327 10 bool ZoneHVACFourPipeFanCoil_Impl::setCapacityControlMethod(const std::string& capacityControlMethod) {
328 10 bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::CapacityControlMethod, capacityControlMethod);
329 10 return result;
330 }
331
332 1 bool ZoneHVACFourPipeFanCoil_Impl::setMaximumSupplyAirFlowRate(boost::optional<double> maximumSupplyAirFlowRate) {
333 1 bool result(false);
334
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (maximumSupplyAirFlowRate) {
335 1 result = setDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumSupplyAirFlowRate, maximumSupplyAirFlowRate.get());
336 }
337
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
338 1 return result;
339 }
340
341 7 void ZoneHVACFourPipeFanCoil_Impl::autosizeMaximumSupplyAirFlowRate() {
342
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
14 bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumSupplyAirFlowRate, "autosize");
343
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 OS_ASSERT(result);
344 7 }
345
346 1 bool ZoneHVACFourPipeFanCoil_Impl::setLowSpeedSupplyAirFlowRatio(double lowSpeedSupplyAirFlowRatio) {
347 1 bool result = setDouble(OS_ZoneHVAC_FourPipeFanCoilFields::LowSpeedSupplyAirFlowRatio, lowSpeedSupplyAirFlowRatio);
348 1 return result;
349 }
350
351 1 void ZoneHVACFourPipeFanCoil_Impl::resetLowSpeedSupplyAirFlowRatio() {
352
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::LowSpeedSupplyAirFlowRatio, "");
353
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
354 1 }
355
356 1 bool ZoneHVACFourPipeFanCoil_Impl::setMediumSpeedSupplyAirFlowRatio(double mediumSpeedSupplyAirFlowRatio) {
357 1 bool result = setDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MediumSpeedSupplyAirFlowRatio, mediumSpeedSupplyAirFlowRatio);
358 1 return result;
359 }
360
361 1 void ZoneHVACFourPipeFanCoil_Impl::resetMediumSpeedSupplyAirFlowRatio() {
362
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::MediumSpeedSupplyAirFlowRatio, "");
363
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
364 1 }
365
366 1 bool ZoneHVACFourPipeFanCoil_Impl::setMaximumOutdoorAirFlowRate(boost::optional<double> maximumOutdoorAirFlowRate) {
367 1 bool result(false);
368
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (maximumOutdoorAirFlowRate) {
369 1 result = setDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumOutdoorAirFlowRate, maximumOutdoorAirFlowRate.get());
370 }
371
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
372 1 return result;
373 }
374
375 7 void ZoneHVACFourPipeFanCoil_Impl::autosizeMaximumOutdoorAirFlowRate() {
376
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
14 bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumOutdoorAirFlowRate, "autosize");
377
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 OS_ASSERT(result);
378 7 }
379
380 1 bool ZoneHVACFourPipeFanCoil_Impl::setOutdoorAirSchedule(Schedule& schedule) {
381
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
4 bool result = setSchedule(OS_ZoneHVAC_FourPipeFanCoilFields::OutdoorAirScheduleName, "ZoneHVACFourPipeFanCoil", "Outdoor Air", schedule);
382 1 return result;
383 }
384
385 8 void ZoneHVACFourPipeFanCoil_Impl::resetOutdoorAirSchedule() {
386
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
16 bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::OutdoorAirScheduleName, "");
387
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
8 OS_ASSERT(result);
388 8 }
389
390 10 bool ZoneHVACFourPipeFanCoil_Impl::setOutdoorAirMixerObjectType(const std::string& outdoorAirMixerObjectType) {
391 10 bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::OutdoorAirMixerObjectType, outdoorAirMixerObjectType);
392 10 return result;
393 }
394
395 ✗ bool ZoneHVACFourPipeFanCoil_Impl::setOutdoorAirMixerName(const std::string& outdoorAirMixerName) {
396 ✗ bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::OutdoorAirMixerName, outdoorAirMixerName);
397 ✗ OS_ASSERT(result);
398 ✗ return result;
399 }
400
401 9 bool ZoneHVACFourPipeFanCoil_Impl::setSupplyAirFan(HVACComponent& fan) {
402 9 bool isAllowedType = false;
403
404
4/4
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 1 time.
✓ Branch 8 taken 8 times.
9 if (fan.iddObjectType() == IddObjectType::OS_Fan_SystemModel) {
405 // One fan to rule them all!
406 1 isAllowedType = true;
407
408 } else {
409
5/5
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
✓ Branch 11 taken 7 times.
✓ Branch 12 taken 1 time.
16 if (istringEqual(capacityControlMethod(), "ConstantFanVariableFlow")) {
410
4/10
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 7 times.
✗ Branch 10 not taken.
✗ Branch 13 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✓ Branch 18 taken 7 times.
✗ Branch 19 not taken.
7 if (fan.iddObjectType() == IddObjectType::OS_Fan_ConstantVolume || fan.iddObjectType() == IddObjectType::OS_Fan_OnOff) {
411 7 isAllowedType = true;
412 }
413
4/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 11 taken 1 time.
✗ Branch 12 not taken.
2 } else if (istringEqual(capacityControlMethod(), "CyclingFan")) {
414
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
1 if (fan.iddObjectType() == IddObjectType::OS_Fan_OnOff) {
415 1 isAllowedType = true;
416 }
417 ✗ } else if (istringEqual(capacityControlMethod(), "VariableFanVariableFlow")
418 ✗ || istringEqual(capacityControlMethod(), "VariableFanConstantFlow")) {
419 ✗ if (fan.iddObjectType() == IddObjectType::OS_Fan_VariableVolume) {
420 ✗ isAllowedType = true;
421 }
422 }
423 }
424
425
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 if (isAllowedType) {
426
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
9 return setPointer(OS_ZoneHVAC_FourPipeFanCoilFields::SupplyAirFanName, fan.handle());
427 }
428
429 ✗ return false;
430 }
431
432 9 bool ZoneHVACFourPipeFanCoil_Impl::setCoolingCoil(HVACComponent& coolingCoil) {
433 9 bool isAllowedType = false;
434
435 // Note JM 2019-03-13: Technically the idd \object-list should enforce that to begin with no? @kbenne
436
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
9 if ((coolingCoil.iddObjectType() == IddObjectType::OS_Coil_Cooling_Water)
437
6/8
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 8 times.
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
✓ Branch 9 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 9 times.
✗ Branch 12 not taken.
9 || (coolingCoil.iddObjectType() == IddObjectType::OS_CoilSystem_Cooling_Water_HeatExchangerAssisted)) {
438 9 isAllowedType = true;
439 }
440
441
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 if (isAllowedType) {
442
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
9 return setPointer(OS_ZoneHVAC_FourPipeFanCoilFields::CoolingCoilName, coolingCoil.handle());
443 }
444
445 ✗ return false;
446 }
447
448 1 bool ZoneHVACFourPipeFanCoil_Impl::setMaximumColdWaterFlowRate(boost::optional<double> maximumColdWaterFlowRate) {
449 1 bool result(false);
450
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (maximumColdWaterFlowRate) {
451 1 result = setDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumColdWaterFlowRate, maximumColdWaterFlowRate.get());
452 }
453
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
454 1 return result;
455 }
456
457 7 void ZoneHVACFourPipeFanCoil_Impl::autosizeMaximumColdWaterFlowRate() {
458
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
14 bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumColdWaterFlowRate, "autosize");
459
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 OS_ASSERT(result);
460 7 }
461
462 1 bool ZoneHVACFourPipeFanCoil_Impl::setMinimumColdWaterFlowRate(double minimumColdWaterFlowRate) {
463 1 bool result = setDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MinimumColdWaterFlowRate, minimumColdWaterFlowRate);
464
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
465 1 return result;
466 }
467
468 1 void ZoneHVACFourPipeFanCoil_Impl::resetMinimumColdWaterFlowRate() {
469
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::MinimumColdWaterFlowRate, "");
470
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
471 1 }
472
473 1 bool ZoneHVACFourPipeFanCoil_Impl::setCoolingConvergenceTolerance(double coolingConvergenceTolerance) {
474 1 bool result = setDouble(OS_ZoneHVAC_FourPipeFanCoilFields::CoolingConvergenceTolerance, coolingConvergenceTolerance);
475 1 return result;
476 }
477
478 1 void ZoneHVACFourPipeFanCoil_Impl::resetCoolingConvergenceTolerance() {
479
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::CoolingConvergenceTolerance, "");
480
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
481 1 }
482
483 9 bool ZoneHVACFourPipeFanCoil_Impl::setHeatingCoil(HVACComponent& heatingCoil) {
484 9 bool result = false;
485
486 // Only accept if type is allowed
487
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
9 if ((heatingCoil.iddObjectType() == IddObjectType::OS_Coil_Heating_Water)
488
7/8
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 8 times.
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 9 not taken.
✓ Branch 10 taken 1 time.
✓ Branch 11 taken 8 times.
✓ Branch 12 taken 1 time.
9 || (heatingCoil.iddObjectType() == IddObjectType::OS_Coil_Heating_Electric)) {
489
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
8 result = setPointer(OS_ZoneHVAC_FourPipeFanCoilFields::HeatingCoilName, heatingCoil.handle());
490 }
491
492 9 return result;
493 }
494
495 1 bool ZoneHVACFourPipeFanCoil_Impl::setMaximumHotWaterFlowRate(boost::optional<double> maximumHotWaterFlowRate) {
496 1 bool result(false);
497
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (maximumHotWaterFlowRate) {
498 1 result = setDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumHotWaterFlowRate, maximumHotWaterFlowRate.get());
499 }
500
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
501 1 return result;
502 }
503
504 7 void ZoneHVACFourPipeFanCoil_Impl::autosizeMaximumHotWaterFlowRate() {
505
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
14 bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumHotWaterFlowRate, "autosize");
506
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 OS_ASSERT(result);
507 7 }
508
509 1 bool ZoneHVACFourPipeFanCoil_Impl::setMinimumHotWaterFlowRate(double minimumHotWaterFlowRate) {
510 1 bool result = setDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MinimumHotWaterFlowRate, minimumHotWaterFlowRate);
511
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
512 1 return result;
513 }
514
515 1 void ZoneHVACFourPipeFanCoil_Impl::resetMinimumHotWaterFlowRate() {
516
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::MinimumHotWaterFlowRate, "");
517
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
518 1 }
519
520 1 bool ZoneHVACFourPipeFanCoil_Impl::setHeatingConvergenceTolerance(double heatingConvergenceTolerance) {
521 1 bool result = setDouble(OS_ZoneHVAC_FourPipeFanCoilFields::HeatingConvergenceTolerance, heatingConvergenceTolerance);
522 1 return result;
523 }
524
525 1 void ZoneHVACFourPipeFanCoil_Impl::resetHeatingConvergenceTolerance() {
526
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::HeatingConvergenceTolerance, "");
527
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
528 1 }
529
530 ✗ std::vector<std::string> ZoneHVACFourPipeFanCoil_Impl::capacityControlMethodValues() const {
531 ✗ return ZoneHVACFourPipeFanCoil::capacityControlMethodValues();
532 }
533
534 ✗ std::vector<std::string> ZoneHVACFourPipeFanCoil_Impl::outdoorAirMixerObjectTypeValues() const {
535 ✗ return ZoneHVACFourPipeFanCoil::outdoorAirMixerObjectTypeValues();
536 }
537
538 3 boost::optional<Schedule> ZoneHVACFourPipeFanCoil_Impl::optionalAvailabilitySchedule() const {
539
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_ZoneHVAC_FourPipeFanCoilFields::AvailabilityScheduleName);
540 }
541 9 boost::optional<HVACComponent> ZoneHVACFourPipeFanCoil_Impl::optionalSupplyAirFan() const {
542
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
9 return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_ZoneHVAC_FourPipeFanCoilFields::SupplyAirFanName);
543 }
544 9 boost::optional<HVACComponent> ZoneHVACFourPipeFanCoil_Impl::optionalHeatingCoil() const {
545
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
9 return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_ZoneHVAC_FourPipeFanCoilFields::HeatingCoilName);
546 }
547 10 boost::optional<HVACComponent> ZoneHVACFourPipeFanCoil_Impl::optionalCoolingCoil() const {
548
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_ZoneHVAC_FourPipeFanCoilFields::CoolingCoilName);
549 }
550
551 ✗ boost::optional<ModelObject> ZoneHVACFourPipeFanCoil_Impl::availabilityScheduleAsModelObject() const {
552 ✗ OptionalModelObject result = availabilitySchedule();
553 ✗ return result;
554 }
555
556 ✗ boost::optional<ModelObject> ZoneHVACFourPipeFanCoil_Impl::outdoorAirScheduleAsModelObject() const {
557 ✗ OptionalModelObject result;
558 ✗ OptionalSchedule intermediate = outdoorAirSchedule();
559 ✗ if (intermediate) {
560 ✗ result = *intermediate;
561 }
562 ✗ return result;
563 ✗ }
564
565 ✗ boost::optional<ModelObject> ZoneHVACFourPipeFanCoil_Impl::supplyAirFanAsModelObject() const {
566 ✗ OptionalModelObject result = supplyAirFan();
567 ✗ return result;
568 }
569
570 ✗ boost::optional<ModelObject> ZoneHVACFourPipeFanCoil_Impl::coolingCoilAsModelObject() const {
571 ✗ OptionalModelObject result = coolingCoil();
572 ✗ return result;
573 }
574
575 ✗ boost::optional<ModelObject> ZoneHVACFourPipeFanCoil_Impl::heatingCoilAsModelObject() const {
576 ✗ OptionalModelObject result = heatingCoil();
577 ✗ return result;
578 }
579
580 ✗ bool ZoneHVACFourPipeFanCoil_Impl::setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
581 ✗ if (modelObject) {
582 ✗ OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
583 ✗ if (intermediate) {
584 ✗ Schedule schedule(*intermediate);
585 ✗ return setAvailabilitySchedule(schedule);
586 ✗ }
587 ✗ }
588 ✗ return false;
589 }
590
591 ✗ bool ZoneHVACFourPipeFanCoil_Impl::setOutdoorAirScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
592 ✗ if (modelObject) {
593 ✗ OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
594 ✗ if (intermediate) {
595 ✗ Schedule schedule(*intermediate);
596 ✗ return setOutdoorAirSchedule(schedule);
597 ✗ } else {
598 ✗ return false;
599 }
600 ✗ } else {
601 ✗ resetOutdoorAirSchedule();
602 }
603 ✗ return true;
604 }
605
606 ✗ bool ZoneHVACFourPipeFanCoil_Impl::setSupplyAirFanAsModelObject(const boost::optional<ModelObject>& modelObject) {
607 ✗ if (modelObject) {
608 ✗ OptionalHVACComponent intermediate = modelObject->optionalCast<HVACComponent>();
609 ✗ if (intermediate) {
610 ✗ setSupplyAirFan(*intermediate);
611 ✗ return true;
612 }
613 ✗ }
614 ✗ return false;
615 }
616
617 ✗ bool ZoneHVACFourPipeFanCoil_Impl::setCoolingCoilAsModelObject(const boost::optional<ModelObject>& modelObject) {
618 ✗ if (modelObject) {
619 ✗ OptionalHVACComponent intermediate = modelObject->optionalCast<HVACComponent>();
620 ✗ if (intermediate) {
621 ✗ setCoolingCoil(*intermediate);
622 ✗ return true;
623 }
624 ✗ }
625 ✗ return false;
626 }
627
628 ✗ bool ZoneHVACFourPipeFanCoil_Impl::setHeatingCoilAsModelObject(const boost::optional<ModelObject>& modelObject) {
629 ✗ if (modelObject) {
630 ✗ OptionalHVACComponent intermediate = modelObject->optionalCast<HVACComponent>();
631 ✗ if (intermediate) {
632 ✗ setHeatingCoil(*intermediate);
633 ✗ return true;
634 }
635 ✗ }
636 ✗ return false;
637 }
638
639 1 bool ZoneHVACFourPipeFanCoil_Impl::setSupplyAirFanOperatingModeSchedule(Schedule& schedule) {
640
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
4 bool result = setSchedule(OS_ZoneHVAC_FourPipeFanCoilFields::SupplyAirFanOperatingModeScheduleName, "ZoneHVACFourPipeFanCoil",
641 "Supply Air Fan Operating Mode", schedule);
642 1 return result;
643 }
644
645 ✗ void ZoneHVACFourPipeFanCoil_Impl::resetSupplyAirFanOperatingModeSchedule() {
646 ✗ bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::SupplyAirFanOperatingModeScheduleName, "");
647 ✗ OS_ASSERT(result);
648 ✗ }
649
650 4 boost::optional<Schedule> ZoneHVACFourPipeFanCoil_Impl::supplyAirFanOperatingModeSchedule() const {
651
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
4 return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_ZoneHVAC_FourPipeFanCoilFields::SupplyAirFanOperatingModeScheduleName);
652 }
653
654 2 boost::optional<double> ZoneHVACFourPipeFanCoil_Impl::minimumSupplyAirTemperatureInCoolingMode() const {
655 2 return getDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MinimumSupplyAirTemperatureinCoolingMode, true);
656 }
657
658 1 bool ZoneHVACFourPipeFanCoil_Impl::isMinimumSupplyAirTemperatureInCoolingModeAutosized() const {
659 1 bool result = false;
660
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_ZoneHVAC_FourPipeFanCoilFields::MinimumSupplyAirTemperatureinCoolingMode, true);
661
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
662
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "autosize");
663 }
664 1 return result;
665 1 }
666
667 7 void ZoneHVACFourPipeFanCoil_Impl::autosizeMinimumSupplyAirTemperatureInCoolingMode() {
668
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
14 bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::MinimumSupplyAirTemperatureinCoolingMode, "autosize");
669
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 OS_ASSERT(result);
670 7 }
671
672 1 bool ZoneHVACFourPipeFanCoil_Impl::setMinimumSupplyAirTemperatureInCoolingMode(double minimumSupplyAirTemperatureInCoolingMode) {
673 1 return setDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MinimumSupplyAirTemperatureinCoolingMode, minimumSupplyAirTemperatureInCoolingMode);
674 }
675
676 2 boost::optional<double> ZoneHVACFourPipeFanCoil_Impl::maximumSupplyAirTemperatureInHeatingMode() const {
677 2 return getDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumSupplyAirTemperatureinHeatingMode, true);
678 }
679
680 1 bool ZoneHVACFourPipeFanCoil_Impl::isMaximumSupplyAirTemperatureInHeatingModeAutosized() const {
681 1 bool result = false;
682
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumSupplyAirTemperatureinHeatingMode, true);
683
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
684
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "autosize");
685 }
686 1 return result;
687 1 }
688
689 7 void ZoneHVACFourPipeFanCoil_Impl::autosizeMaximumSupplyAirTemperatureInHeatingMode() {
690
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
14 bool result = setString(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumSupplyAirTemperatureinHeatingMode, "autosize");
691
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 OS_ASSERT(result);
692 7 }
693
694 1 bool ZoneHVACFourPipeFanCoil_Impl::setMaximumSupplyAirTemperatureInHeatingMode(double maximumSupplyAirTemperatureInHeatingMode) {
695 1 return setDouble(OS_ZoneHVAC_FourPipeFanCoilFields::MaximumSupplyAirTemperatureinHeatingMode, maximumSupplyAirTemperatureInHeatingMode);
696 }
697
698 ✗ boost::optional<double> ZoneHVACFourPipeFanCoil_Impl::autosizedMaximumSupplyAirFlowRate() const {
699 ✗ return getAutosizedValue("Design Size Maximum Supply Air Flow Rate", "m3/s");
700 }
701
702 ✗ boost::optional<double> ZoneHVACFourPipeFanCoil_Impl::autosizedMaximumOutdoorAirFlowRate() const {
703 ✗ return getAutosizedValue("Design Size Maximum Outdoor Air Flow Rate", "m3/s");
704 }
705
706 ✗ boost::optional<double> ZoneHVACFourPipeFanCoil_Impl::autosizedMaximumColdWaterFlowRate() const {
707 ✗ return getAutosizedValue("Design Size Maximum Cold Water Flow", "m3/s");
708 }
709
710 ✗ boost::optional<double> ZoneHVACFourPipeFanCoil_Impl::autosizedMaximumHotWaterFlowRate() const {
711 ✗ return getAutosizedValue("Design Size Maximum Hot Water Flow", "m3/s");
712 }
713
714 ✗ boost::optional<double> ZoneHVACFourPipeFanCoil_Impl::autosizedMinimumSupplyAirTemperatureinCoolingMode() const {
715 ✗ return getAutosizedValue("Design Size Minimum Supply Air Temperature in Cooling Mode", "C");
716 }
717
718 ✗ boost::optional<double> ZoneHVACFourPipeFanCoil_Impl::autosizedMaximumSupplyAirTemperatureinHeatingMode() const {
719 ✗ return getAutosizedValue("Design Size Maximum Supply Air Temperature in Heating Mode", "C");
720 }
721
722 ✗ void ZoneHVACFourPipeFanCoil_Impl::autosize() {
723 ✗ autosizeMaximumSupplyAirFlowRate();
724 ✗ autosizeMaximumOutdoorAirFlowRate();
725 ✗ autosizeMaximumColdWaterFlowRate();
726 ✗ autosizeMaximumHotWaterFlowRate();
727 ✗ autosizeMinimumSupplyAirTemperatureInCoolingMode();
728 ✗ autosizeMaximumSupplyAirTemperatureInHeatingMode();
729 ✗ }
730
731 ✗ void ZoneHVACFourPipeFanCoil_Impl::applySizingValues() {
732 ✗ boost::optional<double> val;
733 ✗ val = autosizedMaximumSupplyAirFlowRate();
734 ✗ if (val) {
735 ✗ setMaximumSupplyAirFlowRate(val.get());
736 }
737
738 ✗ val = autosizedMaximumOutdoorAirFlowRate();
739 ✗ if (val) {
740 ✗ setMaximumOutdoorAirFlowRate(val.get());
741 }
742
743 ✗ val = autosizedMaximumColdWaterFlowRate();
744 ✗ if (val) {
745 ✗ setMaximumColdWaterFlowRate(val.get());
746 }
747
748 ✗ val = autosizedMaximumHotWaterFlowRate();
749 ✗ if (val) {
750 ✗ setMaximumHotWaterFlowRate(val.get());
751 }
752
753 ✗ val = autosizedMinimumSupplyAirTemperatureinCoolingMode();
754 ✗ if (val) {
755 ✗ setMinimumSupplyAirTemperatureInCoolingMode(val.get());
756 }
757
758 ✗ val = autosizedMaximumSupplyAirTemperatureinHeatingMode();
759 ✗ if (val) {
760 ✗ setMaximumSupplyAirTemperatureInHeatingMode(val.get());
761 }
762 ✗ }
763
764 ✗ ComponentType ZoneHVACFourPipeFanCoil_Impl::componentType() const {
765 ✗ return ComponentType::Both;
766 }
767
768 ✗ std::vector<FuelType> ZoneHVACFourPipeFanCoil_Impl::coolingFuelTypes() const {
769 ✗ return coolingCoil().coolingFuelTypes();
770 }
771
772 ✗ std::vector<FuelType> ZoneHVACFourPipeFanCoil_Impl::heatingFuelTypes() const {
773 ✗ return heatingCoil().heatingFuelTypes();
774 }
775
776 ✗ std::vector<AppGFuelType> ZoneHVACFourPipeFanCoil_Impl::appGHeatingFuelTypes() const {
777 ✗ return heatingCoil().appGHeatingFuelTypes();
778 }
779
780 } // namespace detail
781
782 8 ZoneHVACFourPipeFanCoil::ZoneHVACFourPipeFanCoil(const Model& model, Schedule& availabilitySchedule, HVACComponent& supplyAirFan,
783 8 HVACComponent& coolingCoil, HVACComponent& heatingCoil)
784 8 : ZoneHVACComponent(ZoneHVACFourPipeFanCoil::iddObjectType(), model) {
785
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 8 times.
✗ Branch 5 not taken.
8 OS_ASSERT(getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>());
786
787
1/1
✓ Branch 1 taken 8 times.
8 bool ok = setAvailabilitySchedule(availabilitySchedule);
788
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
8 if (!ok) {
789 ✗ remove();
790 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s availability schedule to " << availabilitySchedule.briefDescription() << ".");
791 }
792
793
4/4
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 6 times.
✓ Branch 8 taken 2 times.
8 if (supplyAirFan.iddObjectType() == IddObjectType::OS_Fan_ConstantVolume) {
794
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
12 setCapacityControlMethod("ConstantFanVariableFlow");
795 }
796
797
4/4
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 1 time.
✓ Branch 8 taken 1 time.
2 else if (supplyAirFan.iddObjectType() == IddObjectType::OS_Fan_OnOff) {
798
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 setCapacityControlMethod("CyclingFan");
799 }
800
801
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 else if ((supplyAirFan.iddObjectType() == IddObjectType::OS_Fan_VariableVolume)
802
5/8
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
✓ Branch 9 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
✗ Branch 12 not taken.
1 || (supplyAirFan.iddObjectType() == IddObjectType::OS_Fan_SystemModel)) {
803
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 setCapacityControlMethod("VariableFanVariableFlow");
804 }
805
806
1/1
✓ Branch 1 taken 8 times.
8 resetOutdoorAirSchedule();
807
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
8 setOutdoorAirMixerObjectType("OutdoorAir:Mixer");
808
1/1
✓ Branch 1 taken 8 times.
8 ok = setSupplyAirFan(supplyAirFan);
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 air fan to " << supplyAirFan.briefDescription() << ".");
812 }
813
1/1
✓ Branch 1 taken 8 times.
8 ok = setHeatingCoil(heatingCoil);
814
2/2
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 7 times.
8 if (!ok) {
815
1/1
✓ Branch 1 taken 1 time.
1 remove();
816
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 heating coil to " << heatingCoil.briefDescription() << ".");
817 }
818
1/1
✓ Branch 1 taken 7 times.
7 ok = setCoolingCoil(coolingCoil);
819
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 if (!ok) {
820 ✗ remove();
821 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s cooling coil to " << coolingCoil.briefDescription() << ".");
822 }
823
1/1
✓ Branch 1 taken 7 times.
7 autosizeMaximumSupplyAirFlowRate();
824
1/1
✓ Branch 1 taken 7 times.
7 autosizeMaximumOutdoorAirFlowRate();
825
1/1
✓ Branch 1 taken 7 times.
7 autosizeMaximumColdWaterFlowRate();
826
1/1
✓ Branch 1 taken 7 times.
7 autosizeMaximumHotWaterFlowRate();
827
1/1
✓ Branch 1 taken 7 times.
7 autosizeMinimumSupplyAirTemperatureInCoolingMode();
828
1/1
✓ Branch 1 taken 7 times.
7 autosizeMaximumSupplyAirTemperatureInHeatingMode();
829 8 }
830
831 7859 IddObjectType ZoneHVACFourPipeFanCoil::iddObjectType() {
832
1/1
✓ Branch 1 taken 7859 times.
7859 return {IddObjectType::OS_ZoneHVAC_FourPipeFanCoil};
833 }
834
835 ✗ std::vector<std::string> ZoneHVACFourPipeFanCoil::capacityControlMethodValues() {
836 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_ZoneHVAC_FourPipeFanCoilFields::CapacityControlMethod);
837 }
838
839 ✗ std::vector<std::string> ZoneHVACFourPipeFanCoil::outdoorAirMixerObjectTypeValues() {
840 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_ZoneHVAC_FourPipeFanCoilFields::OutdoorAirMixerObjectType);
841 }
842
843 3 Schedule ZoneHVACFourPipeFanCoil::availabilitySchedule() const {
844
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->availabilitySchedule();
845 }
846
847 3 std::string ZoneHVACFourPipeFanCoil::capacityControlMethod() const {
848
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->capacityControlMethod();
849 }
850
851 2 boost::optional<double> ZoneHVACFourPipeFanCoil::maximumSupplyAirFlowRate() const {
852
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->maximumSupplyAirFlowRate();
853 }
854
855 1 bool ZoneHVACFourPipeFanCoil::isMaximumSupplyAirFlowRateAutosized() const {
856
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->isMaximumSupplyAirFlowRateAutosized();
857 }
858
859 3 double ZoneHVACFourPipeFanCoil::lowSpeedSupplyAirFlowRatio() const {
860
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->lowSpeedSupplyAirFlowRatio();
861 }
862
863 1 bool ZoneHVACFourPipeFanCoil::isLowSpeedSupplyAirFlowRatioDefaulted() const {
864
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->isLowSpeedSupplyAirFlowRatioDefaulted();
865 }
866
867 3 double ZoneHVACFourPipeFanCoil::mediumSpeedSupplyAirFlowRatio() const {
868
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->mediumSpeedSupplyAirFlowRatio();
869 }
870
871 1 bool ZoneHVACFourPipeFanCoil::isMediumSpeedSupplyAirFlowRatioDefaulted() const {
872
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->isMediumSpeedSupplyAirFlowRatioDefaulted();
873 }
874
875 2 boost::optional<double> ZoneHVACFourPipeFanCoil::maximumOutdoorAirFlowRate() const {
876
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->maximumOutdoorAirFlowRate();
877 }
878
879 1 bool ZoneHVACFourPipeFanCoil::isMaximumOutdoorAirFlowRateAutosized() const {
880
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->isMaximumOutdoorAirFlowRateAutosized();
881 }
882
883 4 boost::optional<Schedule> ZoneHVACFourPipeFanCoil::outdoorAirSchedule() const {
884
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->outdoorAirSchedule();
885 }
886
887 2 std::string ZoneHVACFourPipeFanCoil::outdoorAirMixerObjectType() const {
888
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->outdoorAirMixerObjectType();
889 }
890
891 ✗ std::string ZoneHVACFourPipeFanCoil::outdoorAirMixerName() const {
892 ✗ return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->outdoorAirMixerName();
893 }
894
895 7 HVACComponent ZoneHVACFourPipeFanCoil::supplyAirFan() const {
896
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->supplyAirFan();
897 }
898
899 7 HVACComponent ZoneHVACFourPipeFanCoil::coolingCoil() const {
900
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->coolingCoil();
901 }
902
903 2 boost::optional<double> ZoneHVACFourPipeFanCoil::maximumColdWaterFlowRate() const {
904
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->maximumColdWaterFlowRate();
905 }
906
907 1 bool ZoneHVACFourPipeFanCoil::isMaximumColdWaterFlowRateAutosized() const {
908
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->isMaximumColdWaterFlowRateAutosized();
909 }
910
911 3 double ZoneHVACFourPipeFanCoil::minimumColdWaterFlowRate() const {
912
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->minimumColdWaterFlowRate();
913 }
914
915 1 bool ZoneHVACFourPipeFanCoil::isMinimumColdWaterFlowRateDefaulted() const {
916
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->isMinimumColdWaterFlowRateDefaulted();
917 }
918
919 3 double ZoneHVACFourPipeFanCoil::coolingConvergenceTolerance() const {
920
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->coolingConvergenceTolerance();
921 }
922
923 1 bool ZoneHVACFourPipeFanCoil::isCoolingConvergenceToleranceDefaulted() const {
924
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->isCoolingConvergenceToleranceDefaulted();
925 }
926
927 6 HVACComponent ZoneHVACFourPipeFanCoil::heatingCoil() const {
928
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->heatingCoil();
929 }
930
931 2 boost::optional<double> ZoneHVACFourPipeFanCoil::maximumHotWaterFlowRate() const {
932
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->maximumHotWaterFlowRate();
933 }
934
935 1 bool ZoneHVACFourPipeFanCoil::isMaximumHotWaterFlowRateAutosized() const {
936
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->isMaximumHotWaterFlowRateAutosized();
937 }
938
939 3 double ZoneHVACFourPipeFanCoil::minimumHotWaterFlowRate() const {
940
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->minimumHotWaterFlowRate();
941 }
942
943 1 bool ZoneHVACFourPipeFanCoil::isMinimumHotWaterFlowRateDefaulted() const {
944
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->isMinimumHotWaterFlowRateDefaulted();
945 }
946
947 3 double ZoneHVACFourPipeFanCoil::heatingConvergenceTolerance() const {
948
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->heatingConvergenceTolerance();
949 }
950
951 1 bool ZoneHVACFourPipeFanCoil::isHeatingConvergenceToleranceDefaulted() const {
952
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->isHeatingConvergenceToleranceDefaulted();
953 }
954
955 9 bool ZoneHVACFourPipeFanCoil::setAvailabilitySchedule(Schedule& schedule) {
956
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setAvailabilitySchedule(schedule);
957 }
958
959 10 bool ZoneHVACFourPipeFanCoil::setCapacityControlMethod(const std::string& capacityControlMethod) {
960
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setCapacityControlMethod(capacityControlMethod);
961 }
962
963 1 bool ZoneHVACFourPipeFanCoil::setMaximumSupplyAirFlowRate(double maximumSupplyAirFlowRate) {
964
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setMaximumSupplyAirFlowRate(maximumSupplyAirFlowRate);
965 }
966
967 7 void ZoneHVACFourPipeFanCoil::autosizeMaximumSupplyAirFlowRate() {
968
1/1
✓ Branch 3 taken 7 times.
7 getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->autosizeMaximumSupplyAirFlowRate();
969 7 }
970
971 1 bool ZoneHVACFourPipeFanCoil::setLowSpeedSupplyAirFlowRatio(double lowSpeedSupplyAirFlowRatio) {
972
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setLowSpeedSupplyAirFlowRatio(lowSpeedSupplyAirFlowRatio);
973 }
974
975 1 void ZoneHVACFourPipeFanCoil::resetLowSpeedSupplyAirFlowRatio() {
976
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->resetLowSpeedSupplyAirFlowRatio();
977 1 }
978
979 1 bool ZoneHVACFourPipeFanCoil::setMediumSpeedSupplyAirFlowRatio(double mediumSpeedSupplyAirFlowRatio) {
980
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setMediumSpeedSupplyAirFlowRatio(mediumSpeedSupplyAirFlowRatio);
981 }
982
983 1 void ZoneHVACFourPipeFanCoil::resetMediumSpeedSupplyAirFlowRatio() {
984
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->resetMediumSpeedSupplyAirFlowRatio();
985 1 }
986
987 1 bool ZoneHVACFourPipeFanCoil::setMaximumOutdoorAirFlowRate(double maximumOutdoorAirFlowRate) {
988
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setMaximumOutdoorAirFlowRate(maximumOutdoorAirFlowRate);
989 }
990
991 7 void ZoneHVACFourPipeFanCoil::autosizeMaximumOutdoorAirFlowRate() {
992
1/1
✓ Branch 3 taken 7 times.
7 getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->autosizeMaximumOutdoorAirFlowRate();
993 7 }
994
995 1 bool ZoneHVACFourPipeFanCoil::setOutdoorAirSchedule(Schedule& schedule) {
996
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setOutdoorAirSchedule(schedule);
997 }
998
999 8 void ZoneHVACFourPipeFanCoil::resetOutdoorAirSchedule() {
1000
1/1
✓ Branch 3 taken 8 times.
8 getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->resetOutdoorAirSchedule();
1001 8 }
1002
1003 10 bool ZoneHVACFourPipeFanCoil::setOutdoorAirMixerObjectType(const std::string& outdoorAirMixerObjectType) {
1004
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setOutdoorAirMixerObjectType(outdoorAirMixerObjectType);
1005 }
1006
1007 ✗ bool ZoneHVACFourPipeFanCoil::setOutdoorAirMixerName(const std::string& outdoorAirMixerName) {
1008 ✗ return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setOutdoorAirMixerName(outdoorAirMixerName);
1009 }
1010
1011 9 bool ZoneHVACFourPipeFanCoil::setSupplyAirFan(HVACComponent& fan) {
1012
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setSupplyAirFan(fan);
1013 }
1014
1015 9 bool ZoneHVACFourPipeFanCoil::setCoolingCoil(HVACComponent& coolingCoil) {
1016
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setCoolingCoil(coolingCoil);
1017 }
1018
1019 1 bool ZoneHVACFourPipeFanCoil::setMaximumColdWaterFlowRate(double maximumColdWaterFlowRate) {
1020
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setMaximumColdWaterFlowRate(maximumColdWaterFlowRate);
1021 }
1022
1023 7 void ZoneHVACFourPipeFanCoil::autosizeMaximumColdWaterFlowRate() {
1024
1/1
✓ Branch 3 taken 7 times.
7 getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->autosizeMaximumColdWaterFlowRate();
1025 7 }
1026
1027 1 bool ZoneHVACFourPipeFanCoil::setMinimumColdWaterFlowRate(double minimumColdWaterFlowRate) {
1028
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setMinimumColdWaterFlowRate(minimumColdWaterFlowRate);
1029 }
1030
1031 1 void ZoneHVACFourPipeFanCoil::resetMinimumColdWaterFlowRate() {
1032
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->resetMinimumColdWaterFlowRate();
1033 1 }
1034
1035 1 bool ZoneHVACFourPipeFanCoil::setCoolingConvergenceTolerance(double coolingConvergenceTolerance) {
1036
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setCoolingConvergenceTolerance(coolingConvergenceTolerance);
1037 }
1038
1039 1 void ZoneHVACFourPipeFanCoil::resetCoolingConvergenceTolerance() {
1040
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->resetCoolingConvergenceTolerance();
1041 1 }
1042
1043 9 bool ZoneHVACFourPipeFanCoil::setHeatingCoil(HVACComponent& heatingCoil) {
1044
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setHeatingCoil(heatingCoil);
1045 }
1046
1047 1 bool ZoneHVACFourPipeFanCoil::setMaximumHotWaterFlowRate(double maximumHotWaterFlowRate) {
1048
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setMaximumHotWaterFlowRate(maximumHotWaterFlowRate);
1049 }
1050
1051 7 void ZoneHVACFourPipeFanCoil::autosizeMaximumHotWaterFlowRate() {
1052
1/1
✓ Branch 3 taken 7 times.
7 getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->autosizeMaximumHotWaterFlowRate();
1053 7 }
1054
1055 1 bool ZoneHVACFourPipeFanCoil::setMinimumHotWaterFlowRate(double minimumHotWaterFlowRate) {
1056
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setMinimumHotWaterFlowRate(minimumHotWaterFlowRate);
1057 }
1058
1059 1 void ZoneHVACFourPipeFanCoil::resetMinimumHotWaterFlowRate() {
1060
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->resetMinimumHotWaterFlowRate();
1061 1 }
1062
1063 1 bool ZoneHVACFourPipeFanCoil::setHeatingConvergenceTolerance(double heatingConvergenceTolerance) {
1064
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setHeatingConvergenceTolerance(heatingConvergenceTolerance);
1065 }
1066
1067 1 void ZoneHVACFourPipeFanCoil::resetHeatingConvergenceTolerance() {
1068
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->resetHeatingConvergenceTolerance();
1069 1 }
1070
1071 1 bool ZoneHVACFourPipeFanCoil::setSupplyAirFanOperatingModeSchedule(Schedule& schedule) {
1072
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setSupplyAirFanOperatingModeSchedule(schedule);
1073 }
1074
1075 ✗ void ZoneHVACFourPipeFanCoil::resetSupplyAirFanOperatingModeSchedule() {
1076 ✗ getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->resetSupplyAirFanOperatingModeSchedule();
1077 ✗ }
1078
1079 4 boost::optional<Schedule> ZoneHVACFourPipeFanCoil::supplyAirFanOperatingModeSchedule() const {
1080
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->supplyAirFanOperatingModeSchedule();
1081 }
1082
1083 2 boost::optional<double> ZoneHVACFourPipeFanCoil::minimumSupplyAirTemperatureInCoolingMode() const {
1084
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->minimumSupplyAirTemperatureInCoolingMode();
1085 }
1086
1087 1 bool ZoneHVACFourPipeFanCoil::isMinimumSupplyAirTemperatureInCoolingModeAutosized() const {
1088
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->isMinimumSupplyAirTemperatureInCoolingModeAutosized();
1089 }
1090
1091 7 void ZoneHVACFourPipeFanCoil::autosizeMinimumSupplyAirTemperatureInCoolingMode() {
1092
1/1
✓ Branch 3 taken 7 times.
7 getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->autosizeMinimumSupplyAirTemperatureInCoolingMode();
1093 7 }
1094
1095 1 bool ZoneHVACFourPipeFanCoil::setMinimumSupplyAirTemperatureInCoolingMode(double minimumSupplyAirTemperatureInCoolingMode) {
1096
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setMinimumSupplyAirTemperatureInCoolingMode(minimumSupplyAirTemperatureInCoolingMode);
1097 }
1098
1099 2 boost::optional<double> ZoneHVACFourPipeFanCoil::maximumSupplyAirTemperatureInHeatingMode() const {
1100
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->maximumSupplyAirTemperatureInHeatingMode();
1101 }
1102
1103 1 bool ZoneHVACFourPipeFanCoil::isMaximumSupplyAirTemperatureInHeatingModeAutosized() const {
1104
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->isMaximumSupplyAirTemperatureInHeatingModeAutosized();
1105 }
1106
1107 7 void ZoneHVACFourPipeFanCoil::autosizeMaximumSupplyAirTemperatureInHeatingMode() {
1108
1/1
✓ Branch 3 taken 7 times.
7 getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->autosizeMaximumSupplyAirTemperatureInHeatingMode();
1109 7 }
1110
1111 1 bool ZoneHVACFourPipeFanCoil::setMaximumSupplyAirTemperatureInHeatingMode(double maximumSupplyAirTemperatureInHeatingMode) {
1112
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->setMaximumSupplyAirTemperatureInHeatingMode(maximumSupplyAirTemperatureInHeatingMode);
1113 }
1114
1115 /// @cond
1116
1/1
✓ Branch 3 taken 9 times.
9 ZoneHVACFourPipeFanCoil::ZoneHVACFourPipeFanCoil(std::shared_ptr<detail::ZoneHVACFourPipeFanCoil_Impl> impl) : ZoneHVACComponent(std::move(impl)) {}
1117 /// @endcond
1118
1119 ✗ boost::optional<double> ZoneHVACFourPipeFanCoil::autosizedMaximumSupplyAirFlowRate() const {
1120 ✗ return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->autosizedMaximumSupplyAirFlowRate();
1121 }
1122
1123 ✗ boost::optional<double> ZoneHVACFourPipeFanCoil::autosizedMaximumOutdoorAirFlowRate() const {
1124 ✗ return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->autosizedMaximumOutdoorAirFlowRate();
1125 }
1126
1127 ✗ boost::optional<double> ZoneHVACFourPipeFanCoil::autosizedMaximumColdWaterFlowRate() const {
1128 ✗ return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->autosizedMaximumColdWaterFlowRate();
1129 }
1130
1131 ✗ boost::optional<double> ZoneHVACFourPipeFanCoil::autosizedMaximumHotWaterFlowRate() const {
1132 ✗ return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->autosizedMaximumHotWaterFlowRate();
1133 }
1134
1135 ✗ boost::optional<double> ZoneHVACFourPipeFanCoil::autosizedMinimumSupplyAirTemperatureinCoolingMode() const {
1136 ✗ return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->autosizedMinimumSupplyAirTemperatureinCoolingMode();
1137 }
1138
1139 ✗ boost::optional<double> ZoneHVACFourPipeFanCoil::autosizedMaximumSupplyAirTemperatureinHeatingMode() const {
1140 ✗ return getImpl<detail::ZoneHVACFourPipeFanCoil_Impl>()->autosizedMaximumSupplyAirTemperatureinHeatingMode();
1141 }
1142
1143 } // namespace model
1144 } // namespace openstudio
1145