GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 63.5% 355 / 0 / 559
Functions: 64.5% 69 / 0 / 107
Branches: 44.8% 321 / 0 / 716

src/model/AirTerminalSingleDuctConstantVolumeFourPipeBeam.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 "AirTerminalSingleDuctConstantVolumeFourPipeBeam.hpp"
7 #include "AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl.hpp"
8
9 #include "CoilCoolingFourPipeBeam.hpp"
10 #include "CoilCoolingFourPipeBeam_Impl.hpp"
11 #include "CoilHeatingFourPipeBeam.hpp"
12 #include "CoilHeatingFourPipeBeam_Impl.hpp"
13
14 #include "Model.hpp"
15 #include "Model_Impl.hpp"
16 #include "Schedule.hpp"
17 #include "Schedule_Impl.hpp"
18 #include "AirLoopHVAC.hpp"
19 #include "AirLoopHVAC_Impl.hpp"
20 #include "Node.hpp"
21 #include "Node_Impl.hpp"
22 #include "PortList.hpp"
23 #include "PortList_Impl.hpp"
24 #include "HVACComponent.hpp"
25 #include "HVACComponent_Impl.hpp"
26 #include "ThermalZone.hpp"
27 #include "ThermalZone_Impl.hpp"
28 #include "AirLoopHVACZoneSplitter.hpp"
29 #include "AirLoopHVACZoneSplitter_Impl.hpp"
30 #include "AirLoopHVACZoneMixer.hpp"
31 #include "AirLoopHVACZoneMixer_Impl.hpp"
32
33 #include "ScheduleTypeLimits.hpp"
34 #include "ScheduleTypeRegistry.hpp"
35
36 #include <utilities/idd/IddEnums.hxx>
37 #include <utilities/idd/OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeam_FieldEnums.hxx>
38
39 #include "../utilities/core/Assert.hpp"
40 #include "../utilities/data/DataEnums.hpp"
41
42 namespace openstudio {
43 namespace model {
44
45 namespace detail {
46
47 7 AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl(const IdfObject& idfObject,
48 7 Model_Impl* model, bool keepHandle)
49 7 : StraightComponent_Impl(idfObject, model, keepHandle) {
50
4/6
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 7 times.
✗ Branch 13 not taken.
7 OS_ASSERT(idfObject.iddObject().type() == AirTerminalSingleDuctConstantVolumeFourPipeBeam::iddObjectType());
51 7 }
52
53 ✗ AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl(
54 ✗ const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
55 ✗ : StraightComponent_Impl(other, model, keepHandle) {
56 ✗ OS_ASSERT(other.iddObject().type() == AirTerminalSingleDuctConstantVolumeFourPipeBeam::iddObjectType());
57 ✗ }
58
59 6 AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl(
60 6 const AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl& other, Model_Impl* model, bool keepHandle)
61 6 : StraightComponent_Impl(other, model, keepHandle) {}
62
63 ✗ const std::vector<std::string>& AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::outputVariableNames() const {
64 static const std::vector<std::string> result{
65 // These apply to all AirTerminals
66 "Zone Air Terminal Sensible Heating Energy",
67 "Zone Air Terminal Sensible Heating Rate",
68 "Zone Air Terminal Sensible Cooling Energy",
69 "Zone Air Terminal Sensible Cooling Rate",
70
71 // Object specific output variables
72 "Zone Air Terminal Beam Sensible Cooling Rate",
73 "Zone Air Terminal Beam Sensible Cooling Energy",
74 "Zone Air Terminal Beam Sensible Heating Rate",
75 "Zone Air Terminal Beam Sensible Heating Energy",
76 "Zone Air Terminal Primary Air Sensible Cooling Rate",
77 "Zone Air Terminal Primary Air Sensible Cooling Energy",
78 "Zone Air Terminal Primary Air Sensible Heating Rate",
79 "Zone Air Terminal Primary Air Sensible Heating Energy",
80 "Zone Air Terminal Primary Air Flow Rate",
81 ✗ };
82 ✗ return result;
83 ✗ }
84
85 14 IddObjectType AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::iddObjectType() const {
86 14 return AirTerminalSingleDuctConstantVolumeFourPipeBeam::iddObjectType();
87 }
88
89 ✗ std::vector<ScheduleTypeKey> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
90 ✗ std::vector<ScheduleTypeKey> result;
91 ✗ UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
92 ✗ UnsignedVector::const_iterator b(fieldIndices.begin());
93 ✗ UnsignedVector::const_iterator e(fieldIndices.end());
94 ✗ if (std::find(b, e, OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::PrimaryAirAvailabilityScheduleName) != e) {
95 ✗ result.push_back(ScheduleTypeKey("AirTerminalSingleDuctConstantVolumeFourPipeBeam", "Primary Air Availability"));
96 }
97 ✗ if (std::find(b, e, OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::CoolingAvailabilityScheduleName) != e) {
98 ✗ result.push_back(ScheduleTypeKey("AirTerminalSingleDuctConstantVolumeFourPipeBeam", "Cooling Availability"));
99 }
100 ✗ if (std::find(b, e, OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::HeatingAvailabilityScheduleName) != e) {
101 ✗ result.push_back(ScheduleTypeKey("AirTerminalSingleDuctConstantVolumeFourPipeBeam", "Heating Availability"));
102 }
103 ✗ return result;
104 ✗ }
105
106 1 std::vector<IdfObject> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::remove() {
107
1/1
✓ Branch 1 taken 1 time.
1 Model _model = this->model();
108
1/1
✓ Branch 1 taken 1 time.
1 auto thisObject = this->getObject<ModelObject>();
109
110 1 boost::optional<PlantLoop> loop;
111
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<HVACComponent> _coolingCoil = this->coolingCoil();
112
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<HVACComponent> _heatingCoil = this->heatingCoil();
113
114
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<ModelObject> sourceModelObject = this->inletModelObject();
115
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 boost::optional<unsigned> sourcePort = this->connectedObjectPort(this->inletPort());
116
117
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<ModelObject> targetModelObject = this->outletModelObject();
118
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 boost::optional<unsigned> targetPort = this->connectedObjectPort(this->outletPort());
119
120 // Remove from any ZoneHVACEquipmentList
121
1/1
✓ Branch 1 taken 1 time.
1 std::vector<ThermalZone> thermalZones = _model.getConcreteModelObjects<ThermalZone>();
122
1/2
✓ Branch 5 taken 1 time.
✗ Branch 6 not taken.
1 for (auto& thermalZone : thermalZones) {
123
1/1
✓ Branch 1 taken 1 time.
1 std::vector<ModelObject> equipment = thermalZone.equipment();
124
125
2/3
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
1 if (std::find(equipment.begin(), equipment.end(), thisObject) != equipment.end()) {
126
1/1
✓ Branch 1 taken 1 time.
1 thermalZone.removeEquipment(thisObject);
127 1 break;
128 }
129 1 }
130
131
5/10
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
✗ Branch 5 not taken.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
4 if (sourcePort && sourceModelObject && targetPort && targetModelObject) {
132
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
2 if (boost::optional<Node> inletNode = sourceModelObject->optionalCast<Node>()) {
133
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
2 if (boost::optional<ModelObject> source2ModelObject = inletNode->inletModelObject()) {
134
5/6
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 12 taken 1 time.
✗ Branch 13 not taken.
2 if (boost::optional<unsigned> source2Port = inletNode->connectedObjectPort(inletNode->inletPort())) {
135
7/7
✓ 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.
1 _model.connect(source2ModelObject.get(), source2Port.get(), targetModelObject.get(), targetPort.get());
136
137
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 inletNode->disconnect();
138
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 inletNode->remove();
139
140
6/12
✓ Branch 1 taken 1 time.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✗ Branch 11 not taken.
✓ Branch 12 taken 1 time.
✗ Branch 13 not taken.
✓ Branch 15 taken 1 time.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
3 if (_coolingCoil && (loop = _coolingCoil->plantLoop())) {
141
4/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
1 loop->removeDemandBranchWithComponent(*_coolingCoil);
142 }
143
144
6/12
✓ Branch 1 taken 1 time.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✗ Branch 11 not taken.
✓ Branch 12 taken 1 time.
✗ Branch 13 not taken.
✓ Branch 15 taken 1 time.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
3 if (_heatingCoil && (loop = _heatingCoil->plantLoop())) {
145
4/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
1 loop->removeDemandBranchWithComponent(*_heatingCoil);
146 }
147
148
1/1
✓ Branch 1 taken 1 time.
1 return StraightComponent_Impl::remove();
149 }
150 1 }
151 1 }
152 }
153
154 ✗ model().disconnect(thisObject, inletPort());
155 ✗ model().disconnect(thisObject, outletPort());
156
157 ✗ if (_coolingCoil && (loop = _coolingCoil->plantLoop())) {
158 ✗ loop->removeDemandBranchWithComponent(*_coolingCoil);
159 }
160
161 ✗ if (_heatingCoil && (loop = _heatingCoil->plantLoop())) {
162 ✗ loop->removeDemandBranchWithComponent(*_heatingCoil);
163 }
164
165 ✗ return StraightComponent_Impl::remove();
166 1 }
167
168 1 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::isRemovable() const {
169 1 return true;
170 }
171
172 /* Clone this + any cooling and heating coils */
173 2 ModelObject AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::clone(Model model) const {
174
3/3
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
2 auto airTerminalCVFourPipeBeamClone = StraightComponent_Impl::clone(model).cast<AirTerminalSingleDuctConstantVolumeFourPipeBeam>();
175
176
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 if (boost::optional<HVACComponent> cc = coolingCoil()) {
177
4/4
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
2 auto coilCoolingClone = cc->clone(model).cast<HVACComponent>();
178
1/1
✓ Branch 1 taken 2 times.
2 airTerminalCVFourPipeBeamClone.setCoolingCoil(coilCoolingClone);
179 4 }
180
181
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 if (boost::optional<HVACComponent> hc = heatingCoil()) {
182
4/4
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
2 auto coilHeatingClone = hc->clone(model).cast<HVACComponent>();
183
1/1
✓ Branch 1 taken 2 times.
2 airTerminalCVFourPipeBeamClone.setHeatingCoil(coilHeatingClone);
184 4 }
185
186 4 return std::move(airTerminalCVFourPipeBeamClone);
187 2 }
188
189 /* Children are the (optional) subclasses corresponding to the cooling and heating water side */
190 4 std::vector<ModelObject> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::children() const {
191 4 std::vector<ModelObject> result;
192
3/3
✓ Branch 1 taken 4 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 2 times.
8 if (boost::optional<HVACComponent> cc = coolingCoil()) {
193
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 result.push_back(*cc);
194 4 }
195
3/3
✓ Branch 1 taken 4 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 2 times.
8 if (boost::optional<HVACComponent> hc = heatingCoil()) {
196
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 result.push_back(*hc);
197 4 }
198 4 return result;
199 ✗ }
200
201 10 unsigned AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::inletPort() const {
202 10 return OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::PrimaryAirInletNodeName;
203 }
204
205 47 unsigned AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::outletPort() const {
206 47 return OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::PrimaryAirOutletNodeName;
207 }
208
209 /* Only allow connection on a demand side branch of an AirLoopHVAC */
210 4 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::addToNode(Node& node) {
211
1/1
✓ Branch 1 taken 4 times.
4 Model _model = node.model();
212
213
2/3
✓ Branch 1 taken 4 times.
✓ Branch 3 taken 4 times.
✗ Branch 4 not taken.
8 if (boost::optional<ModelObject> outlet = node.outletModelObject()) {
214 4 boost::optional<ThermalZone> thermalZone;
215
216
3/4
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 6 taken 4 times.
✗ Branch 7 not taken.
8 if (boost::optional<PortList> portList = outlet->optionalCast<PortList>()) {
217
3/3
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
4 thermalZone = portList->thermalZone();
218 4 }
219
220
4/19
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
✗ Branch 7 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✗ Branch 13 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✓ Branch 19 taken 4 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 4 times.
✓ Branch 24 taken 4 times.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
8 if (thermalZone || (outlet->optionalCast<Mixer>() && node.airLoopHVAC())) {
221
2/3
✓ Branch 1 taken 4 times.
✓ Branch 3 taken 4 times.
✗ Branch 4 not taken.
8 if (boost::optional<ModelObject> inlet = node.inletModelObject()) {
222
3/4
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 6 taken 4 times.
✗ Branch 7 not taken.
8 if (boost::optional<Splitter> splitter = inlet->optionalCast<Splitter>()) {
223
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<ModelObject> sourceModelObject = inlet;
224
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
4 boost::optional<unsigned> sourcePort = node.connectedObjectPort(node.inletPort());
225
226
3/6
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 4 times.
✗ Branch 5 not taken.
8 if (sourcePort && sourceModelObject) {
227
1/1
✓ Branch 1 taken 4 times.
4 Node inletNode(_model);
228
229
6/6
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 13 taken 4 times.
✓ Branch 16 taken 4 times.
4 _model.connect(sourceModelObject.get(), sourcePort.get(), inletNode, inletNode.inletPort());
230
231
5/5
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 13 taken 4 times.
4 _model.connect(inletNode, inletNode.outletPort(), this->getObject<ModelObject>(), this->inletPort());
232
233
5/5
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 13 taken 4 times.
4 _model.connect(this->getObject<ModelObject>(), outletPort(), node, node.inletPort());
234
235
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 if (thermalZone) {
236
1/1
✓ Branch 1 taken 4 times.
4 auto mo = this->getObject<AirTerminalSingleDuctConstantVolumeFourPipeBeam>();
237
238
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
4 thermalZone->addEquipment(mo);
239 4 }
240
241 4 return true;
242 4 }
243 8 }
244 4 }
245 }
246 8 }
247
248 ✗ return false;
249 4 }
250
251 /* Primary Air Availability */
252 2 Schedule AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::primaryAirAvailabilitySchedule() const {
253
1/1
✓ Branch 1 taken 2 times.
4 boost::optional<Schedule> value = getObject<ModelObject>().getModelObjectTarget<Schedule>(
254
1/1
✓ Branch 1 taken 2 times.
2 OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::PrimaryAirAvailabilityScheduleName);
255
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
2 if (!value) {
256 ✗ value = this->model().alwaysOnDiscreteSchedule();
257 ✗ OS_ASSERT(value);
258 ✗ const_cast<AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl*>(this)->setPrimaryAirAvailabilitySchedule(*value);
259 }
260
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
261
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 return value.get();
262 2 }
263
264 8 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::setPrimaryAirAvailabilitySchedule(Schedule& schedule) {
265
3/3
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
32 bool result = setSchedule(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::PrimaryAirAvailabilityScheduleName,
266 "AirTerminalSingleDuctConstantVolumeFourPipeBeam", "Primary Air Availability", schedule);
267 8 return result;
268 }
269
270 /* Cooling Availability */
271 1 Schedule AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::coolingAvailabilitySchedule() const {
272
1/1
✓ Branch 1 taken 1 time.
2 boost::optional<Schedule> value = getObject<ModelObject>().getModelObjectTarget<Schedule>(
273
1/1
✓ Branch 1 taken 1 time.
1 OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::CoolingAvailabilityScheduleName);
274
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
1 if (!value) {
275 ✗ value = this->model().alwaysOnDiscreteSchedule();
276 ✗ OS_ASSERT(value);
277 ✗ const_cast<AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl*>(this)->setCoolingAvailabilitySchedule(*value);
278 }
279
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
280
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 return value.get();
281 1 }
282
283 7 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::setCoolingAvailabilitySchedule(Schedule& schedule) {
284
3/3
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
28 bool result = setSchedule(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::CoolingAvailabilityScheduleName,
285 "AirTerminalSingleDuctConstantVolumeFourPipeBeam", "Cooling Availability", schedule);
286 7 return result;
287 }
288
289 /* Heating Availability */
290 1 Schedule AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::heatingAvailabilitySchedule() const {
291
1/1
✓ Branch 1 taken 1 time.
2 boost::optional<Schedule> value = getObject<ModelObject>().getModelObjectTarget<Schedule>(
292
1/1
✓ Branch 1 taken 1 time.
1 OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::HeatingAvailabilityScheduleName);
293
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
1 if (!value) {
294 ✗ value = this->model().alwaysOnDiscreteSchedule();
295 ✗ OS_ASSERT(value);
296 ✗ const_cast<AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl*>(this)->setHeatingAvailabilitySchedule(*value);
297 }
298
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
299
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 return value.get();
300 1 }
301
302 7 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::setHeatingAvailabilitySchedule(Schedule& schedule) {
303
3/3
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
28 bool result = setSchedule(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::HeatingAvailabilityScheduleName,
304 "AirTerminalSingleDuctConstantVolumeFourPipeBeam", "Heating Availability", schedule);
305 7 return result;
306 }
307
308 /* Air Nodes */
309 1 boost::optional<Node> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::primaryAirInletNode() const {
310
1/1
✓ Branch 1 taken 1 time.
1 unsigned port = inletPort();
311
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<ModelObject> mo = connectedObject(port);
312 1 boost::optional<Node> result;
313
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (mo) {
314
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
2 if (boost::optional<Node> node = mo->optionalCast<Node>()) {
315
1/1
✓ Branch 1 taken 1 time.
1 result = node;
316 1 }
317 }
318 2 return result;
319 1 }
320
321 1 boost::optional<Node> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::primaryAirOutletNode() const {
322
1/1
✓ Branch 1 taken 1 time.
1 unsigned port = outletPort();
323
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<ModelObject> mo = connectedObject(port);
324 1 boost::optional<Node> result;
325
326
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (mo) {
327
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
2 if (boost::optional<Node> node = mo->optionalCast<Node>()) {
328
1/1
✓ Branch 1 taken 1 time.
1 result = node;
329 1 }
330 }
331
332 2 return result;
333 1 }
334
335 /* Coils */
336
337 /* Cooling Coil */
338 35 boost::optional<HVACComponent> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::coolingCoil() const {
339
1/1
✓ Branch 1 taken 35 times.
70 return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(
340
1/1
✓ Branch 1 taken 35 times.
70 OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::CoolingCoilName);
341 }
342
343 8 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::setCoolingCoil(const HVACComponent& coilCoolingFourPipeBeam) {
344
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
8 bool result = setPointer(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::CoolingCoilName, coilCoolingFourPipeBeam.handle());
345
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
8 if (!result) {
346 ✗ if (!coilCoolingFourPipeBeam.optionalCast<CoilCoolingFourPipeBeam>()) {
347 ✗ LOG(Error, "Cannot set the cooling coil to something else than CoilCoolingFourPipeBeam for " << briefDescription());
348 }
349 }
350 8 return result;
351 }
352
353 /* Heating Coil */
354 34 boost::optional<HVACComponent> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::heatingCoil() const {
355
1/1
✓ Branch 1 taken 34 times.
68 return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(
356
1/1
✓ Branch 1 taken 34 times.
68 OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::HeatingCoilName);
357 }
358
359 8 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::setHeatingCoil(const HVACComponent& coilHeatingFourPipeBeam) {
360
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
8 bool result = setPointer(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::HeatingCoilName, coilHeatingFourPipeBeam.handle());
361
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
8 if (!result) {
362 ✗ if (!coilHeatingFourPipeBeam.optionalCast<CoilHeatingFourPipeBeam>()) {
363 ✗ LOG(Error, "Cannot set the heating coil to something else than CoilHeatingFourPipeBeam for " << briefDescription());
364 }
365 }
366 8 return result;
367 }
368
369 /* Autosizable Fields */
370
371 // Design Primary Air Volume Flow Rate
372
373 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::designPrimaryAirVolumeFlowRate() const {
374 ✗ return getDouble(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::DesignPrimaryAirVolumeFlowRate, true);
375 }
376
377 1 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::isDesignPrimaryAirVolumeFlowRateAutosized() const {
378 1 bool result = false;
379 boost::optional<std::string> value =
380
1/1
✓ Branch 1 taken 1 time.
1 getString(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::DesignPrimaryAirVolumeFlowRate, true);
381
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
382
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "autosize");
383 }
384 1 return result;
385 1 }
386
387 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::autosizedDesignPrimaryAirVolumeFlowRate() {
388 ✗ return getAutosizedValue("Supply Air Flow Rate", "m3/s");
389 }
390
391 ✗ bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::setDesignPrimaryAirVolumeFlowRate(double designPrimaryAirVolumeFlowRate) {
392 bool result =
393 ✗ setDouble(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::DesignPrimaryAirVolumeFlowRate, designPrimaryAirVolumeFlowRate);
394 ✗ return result;
395 }
396
397 7 void AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::autosizeDesignPrimaryAirVolumeFlowRate() {
398
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
14 bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::DesignPrimaryAirVolumeFlowRate, "autosize");
399
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 OS_ASSERT(result);
400 7 }
401
402 // Design Chilled Water Volume Flow Rate
403
404 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::designChilledWaterVolumeFlowRate() const {
405 ✗ return getDouble(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::DesignChilledWaterVolumeFlowRate, true);
406 }
407
408 1 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::isDesignChilledWaterVolumeFlowRateAutosized() const {
409 1 bool result = false;
410 boost::optional<std::string> value =
411
1/1
✓ Branch 1 taken 1 time.
1 getString(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::DesignChilledWaterVolumeFlowRate, true);
412
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
413
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "autosize");
414 }
415 1 return result;
416 1 }
417
418 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::autosizedDesignChilledWaterVolumeFlowRate() {
419 ✗ return getAutosizedValue("Maximum Total Chilled Water Flow Rate", "m3/s");
420 }
421
422 ✗ bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::setDesignChilledWaterVolumeFlowRate(double designChilledWaterVolumeFlowRate) {
423 bool result =
424 ✗ setDouble(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::DesignChilledWaterVolumeFlowRate, designChilledWaterVolumeFlowRate);
425 ✗ return result;
426 }
427
428 7 void AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::autosizeDesignChilledWaterVolumeFlowRate() {
429
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
14 bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::DesignChilledWaterVolumeFlowRate, "autosize");
430
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 OS_ASSERT(result);
431 7 }
432
433 // Design Hot Water Volume Flow Rate
434
435 1 boost::optional<double> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::designHotWaterVolumeFlowRate() const {
436 1 return getDouble(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::DesignHotWaterVolumeFlowRate, true);
437 }
438
439 1 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::isDesignHotWaterVolumeFlowRateAutosized() const {
440 1 bool result = false;
441
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::DesignHotWaterVolumeFlowRate, true);
442
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
443
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "autosize");
444 }
445 1 return result;
446 1 }
447
448 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::autosizedDesignHotWaterVolumeFlowRate() {
449 ✗ return getAutosizedValue("Maximum Total Hot Water Flow Rate", "m3/s");
450 }
451
452 1 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::setDesignHotWaterVolumeFlowRate(double designHotWaterVolumeFlowRate) {
453 bool result =
454 1 setDouble(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::DesignHotWaterVolumeFlowRate, designHotWaterVolumeFlowRate);
455 1 return result;
456 }
457
458 7 void AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::autosizeDesignHotWaterVolumeFlowRate() {
459
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
14 bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::DesignHotWaterVolumeFlowRate, "autosize");
460
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 OS_ASSERT(result);
461 7 }
462
463 // Zone Total Beam Length
464
465 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::zoneTotalBeamLength() const {
466 ✗ return getDouble(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::ZoneTotalBeamLength, true);
467 }
468
469 1 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::isZoneTotalBeamLengthAutosized() const {
470 1 bool result = false;
471
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::ZoneTotalBeamLength, true);
472
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
473
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "autosize");
474 }
475 1 return result;
476 1 }
477
478 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::autosizedZoneTotalBeamLength() {
479 ✗ return getAutosizedValue("Zone Total Beam Length", "m");
480 }
481
482 ✗ bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::setZoneTotalBeamLength(double zoneTotalBeamLength) {
483 ✗ bool result = setDouble(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::ZoneTotalBeamLength, zoneTotalBeamLength);
484 ✗ return result;
485 }
486
487 7 void AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::autosizeZoneTotalBeamLength() {
488
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
14 bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::ZoneTotalBeamLength, "autosize");
489
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 OS_ASSERT(result);
490 7 }
491
492 /* Double with defaults */
493
494 // Rated Primary Air Flow Rate per Beam Length
495 2 double AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::ratedPrimaryAirFlowRateperBeamLength() const {
496 boost::optional<double> value =
497
1/1
✓ Branch 1 taken 2 times.
2 getDouble(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::RatedPrimaryAirFlowRateperBeamLength, true);
498
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
499
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
500 }
501
502 ✗ bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::isRatedPrimaryAirFlowRateperBeamLengthDefaulted() const {
503 ✗ return isEmpty(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::RatedPrimaryAirFlowRateperBeamLength);
504 }
505
506 ✗ bool AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::setRatedPrimaryAirFlowRateperBeamLength(double ratedPrimaryAirFlowRateperBeamLength) {
507 ✗ bool result = setDouble(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::RatedPrimaryAirFlowRateperBeamLength,
508 ratedPrimaryAirFlowRateperBeamLength);
509 ✗ return result;
510 }
511
512 ✗ void AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::resetRatedPrimaryAirFlowRateperBeamLength() {
513 ✗ bool result = setString(OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeamFields::RatedPrimaryAirFlowRateperBeamLength, "");
514 ✗ OS_ASSERT(result);
515 ✗ }
516
517 // Global Autosize
518 7 void AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::autosize() {
519 7 autosizeDesignPrimaryAirVolumeFlowRate();
520 7 autosizeDesignChilledWaterVolumeFlowRate();
521 7 autosizeDesignHotWaterVolumeFlowRate();
522 7 autosizeZoneTotalBeamLength();
523 7 }
524
525 // Global Apply Sizing Values
526 ✗ void AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::applySizingValues() {
527 ✗ boost::optional<double> val;
528 ✗ val = autosizedDesignPrimaryAirVolumeFlowRate();
529 ✗ if (val) {
530 ✗ setDesignPrimaryAirVolumeFlowRate(val.get());
531 }
532
533 ✗ val = autosizedDesignChilledWaterVolumeFlowRate();
534 ✗ if (val) {
535 ✗ setDesignChilledWaterVolumeFlowRate(val.get());
536 }
537
538 ✗ val = autosizedDesignHotWaterVolumeFlowRate();
539 ✗ if (val) {
540 ✗ setDesignHotWaterVolumeFlowRate(val.get());
541 }
542
543 ✗ val = autosizedZoneTotalBeamLength();
544 ✗ if (val) {
545 ✗ setZoneTotalBeamLength(val.get());
546 }
547 ✗ }
548
549 /* Convenience functions */
550
551 /* Convenience method to return the chilled water PlantLoop */
552 11 boost::optional<PlantLoop> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::chilledWaterPlantLoop() const {
553 11 boost::optional<PlantLoop> plantLoop;
554
3/3
✓ Branch 1 taken 11 times.
✓ Branch 3 taken 9 times.
✓ Branch 4 taken 2 times.
22 if (boost::optional<HVACComponent> _comp = coolingCoil()) {
555
3/4
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 6 taken 9 times.
✗ Branch 7 not taken.
18 if (boost::optional<CoilCoolingFourPipeBeam> _hc = _comp->optionalCast<CoilCoolingFourPipeBeam>()) {
556
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
9 plantLoop = _hc->plantLoop();
557 9 }
558 11 }
559 11 return plantLoop;
560 ✗ }
561 3 boost::optional<Node> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::chilledWaterInletNode() const {
562 3 boost::optional<Node> node;
563
2/3
✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
6 if (boost::optional<HVACComponent> _comp = coolingCoil()) {
564
3/4
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 6 taken 3 times.
✗ Branch 7 not taken.
6 if (boost::optional<CoilCoolingFourPipeBeam> _hc = _comp->optionalCast<CoilCoolingFourPipeBeam>()) {
565
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 node = _hc->chilledWaterInletNode();
566 3 }
567 3 }
568 3 return node;
569 ✗ }
570 3 boost::optional<Node> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::chilledWaterOutletNode() const {
571 3 boost::optional<Node> node;
572
2/3
✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
6 if (boost::optional<HVACComponent> _comp = coolingCoil()) {
573
3/4
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 6 taken 3 times.
✗ Branch 7 not taken.
6 if (boost::optional<CoilCoolingFourPipeBeam> _hc = _comp->optionalCast<CoilCoolingFourPipeBeam>()) {
574
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 node = _hc->chilledWaterOutletNode();
575 3 }
576 3 }
577 3 return node;
578 ✗ }
579
580 /* Convenience method to return the hot water PlantLoop */
581 10 boost::optional<PlantLoop> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::hotWaterPlantLoop() const {
582 10 boost::optional<PlantLoop> plantLoop;
583
3/3
✓ Branch 1 taken 10 times.
✓ Branch 3 taken 8 times.
✓ Branch 4 taken 2 times.
20 if (boost::optional<HVACComponent> _comp = heatingCoil()) {
584
3/4
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 6 taken 8 times.
✗ Branch 7 not taken.
16 if (boost::optional<CoilHeatingFourPipeBeam> _hc = _comp->optionalCast<CoilHeatingFourPipeBeam>()) {
585
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
8 plantLoop = _hc->plantLoop();
586 8 }
587 10 }
588 10 return plantLoop;
589 ✗ }
590 3 boost::optional<Node> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::hotWaterInletNode() const {
591 3 boost::optional<Node> node;
592
2/3
✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
6 if (boost::optional<HVACComponent> _comp = heatingCoil()) {
593
3/4
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 6 taken 3 times.
✗ Branch 7 not taken.
6 if (boost::optional<CoilHeatingFourPipeBeam> _hc = _comp->optionalCast<CoilHeatingFourPipeBeam>()) {
594
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 node = _hc->hotWaterInletNode();
595 3 }
596 3 }
597 3 return node;
598 ✗ }
599 3 boost::optional<Node> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::hotWaterOutletNode() const {
600 3 boost::optional<Node> node;
601
2/3
✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
6 if (boost::optional<HVACComponent> _comp = heatingCoil()) {
602
3/4
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 6 taken 3 times.
✗ Branch 7 not taken.
6 if (boost::optional<CoilHeatingFourPipeBeam> _hc = _comp->optionalCast<CoilHeatingFourPipeBeam>()) {
603
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 node = _hc->hotWaterOutletNode();
604 3 }
605 3 }
606 3 return node;
607 ✗ }
608
609 ✗ ComponentType AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::componentType() const {
610 ✗ bool has_cooling = coolingCoil().is_initialized();
611 ✗ bool has_heating = heatingCoil().is_initialized();
612 ✗ if (auto a_ = airLoopHVAC()) {
613 ✗ auto compType = a_->componentType();
614 ✗ if (compType == ComponentType::Cooling) {
615 ✗ has_cooling = true;
616 ✗ } else if (compType == ComponentType::Heating) {
617 ✗ has_heating = true;
618 ✗ } else if (compType == ComponentType::Both) {
619 ✗ has_heating = true;
620 ✗ has_cooling = true;
621 }
622 ✗ }
623
624 ✗ if (has_cooling && has_heating) {
625 ✗ return ComponentType::Both;
626 ✗ } else if (has_cooling) {
627 ✗ return ComponentType::Cooling;
628 ✗ } else if (has_heating) {
629 ✗ return ComponentType::Heating;
630 }
631 ✗ return ComponentType::None;
632 }
633
634 ✗ std::vector<FuelType> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::coolingFuelTypes() const {
635 ✗ std::set<FuelType> result;
636 ✗ if (auto cc_ = coolingCoil()) {
637 ✗ for (auto ft : cc_->coolingFuelTypes()) {
638 ✗ result.insert(ft);
639 ✗ }
640 ✗ }
641 ✗ if (auto a_ = airLoopHVAC()) {
642 ✗ for (auto ft : a_->coolingFuelTypes()) {
643 ✗ result.insert(ft);
644 ✗ }
645 ✗ }
646 ✗ return {result.begin(), result.end()};
647 ✗ }
648
649 ✗ std::vector<FuelType> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::heatingFuelTypes() const {
650 ✗ std::set<FuelType> result;
651 ✗ if (auto hc_ = heatingCoil()) {
652 ✗ for (auto ft : hc_->heatingFuelTypes()) {
653 ✗ result.insert(ft);
654 ✗ }
655 ✗ }
656 ✗ if (auto a_ = airLoopHVAC()) {
657 ✗ for (auto ft : a_->heatingFuelTypes()) {
658 ✗ result.insert(ft);
659 ✗ }
660 ✗ }
661 ✗ return {result.begin(), result.end()};
662 ✗ }
663
664 ✗ std::vector<AppGFuelType> AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl::appGHeatingFuelTypes() const {
665 ✗ std::set<AppGFuelType> result;
666 ✗ if (auto hc_ = heatingCoil()) {
667 ✗ for (auto ft : hc_->appGHeatingFuelTypes()) {
668 ✗ result.insert(ft);
669 ✗ }
670 ✗ }
671 ✗ if (auto a_ = airLoopHVAC()) {
672 ✗ for (auto ft : a_->appGHeatingFuelTypes()) {
673 ✗ result.insert(ft);
674 ✗ }
675 ✗ }
676 ✗ return {result.begin(), result.end()};
677 ✗ }
678
679 } // namespace detail
680
681 3 AirTerminalSingleDuctConstantVolumeFourPipeBeam::AirTerminalSingleDuctConstantVolumeFourPipeBeam(const Model& model)
682 3 : StraightComponent(AirTerminalSingleDuctConstantVolumeFourPipeBeam::iddObjectType(), model) {
683
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
✗ Branch 5 not taken.
3 OS_ASSERT(getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>());
684
685 3 bool ok = true;
686
687
1/1
✓ Branch 1 taken 3 times.
3 Schedule always_on = model.alwaysOnDiscreteSchedule();
688
1/1
✓ Branch 1 taken 3 times.
3 ok = setPrimaryAirAvailabilitySchedule(always_on);
689
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
690
1/1
✓ Branch 1 taken 3 times.
3 ok = setCoolingAvailabilitySchedule(always_on);
691
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
692
1/1
✓ Branch 1 taken 3 times.
3 ok = setHeatingAvailabilitySchedule(always_on);
693
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
694
695
1/1
✓ Branch 1 taken 3 times.
3 autosize();
696 ;
697 3 }
698
699 // More explicit Ctor
700 //
701 4 AirTerminalSingleDuctConstantVolumeFourPipeBeam::AirTerminalSingleDuctConstantVolumeFourPipeBeam(const Model& model,
702 HVACComponent& coilCoolingFourPipeBeam,
703 4 HVACComponent& coilHeatingFourPipeBeam)
704 4 : StraightComponent(AirTerminalSingleDuctConstantVolumeFourPipeBeam::iddObjectType(), model) {
705
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 4 times.
✗ Branch 5 not taken.
4 OS_ASSERT(getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>());
706
707 4 bool ok = true;
708
709
1/1
✓ Branch 1 taken 4 times.
4 Schedule always_on = model.alwaysOnDiscreteSchedule();
710
1/1
✓ Branch 1 taken 4 times.
4 ok = setPrimaryAirAvailabilitySchedule(always_on);
711
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
✗ Branch 3 not taken.
4 OS_ASSERT(ok);
712
1/1
✓ Branch 1 taken 4 times.
4 ok = setCoolingAvailabilitySchedule(always_on);
713
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
✗ Branch 3 not taken.
4 OS_ASSERT(ok);
714
1/1
✓ Branch 1 taken 4 times.
4 ok = setHeatingAvailabilitySchedule(always_on);
715
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
✗ Branch 3 not taken.
4 OS_ASSERT(ok);
716
717
1/1
✓ Branch 1 taken 4 times.
4 autosize();
718
719
1/1
✓ Branch 1 taken 4 times.
4 ok = setCoolingCoil(coilCoolingFourPipeBeam);
720
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 if (!ok) {
721 ✗ remove();
722 ✗ LOG_AND_THROW("Cannot set the cooling coil, make sure you use a CoilCoolingFourPipeBeam")
723 }
724
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
✗ Branch 3 not taken.
4 OS_ASSERT(ok);
725
1/1
✓ Branch 1 taken 4 times.
4 ok = setHeatingCoil(coilHeatingFourPipeBeam);
726
727
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 if (!ok) {
728 ✗ remove();
729 ✗ LOG_AND_THROW("Cannot set the heating coil, make sure you use a CoilHeatingFourPipeBeam")
730 }
731
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
✗ Branch 3 not taken.
4 OS_ASSERT(ok);
732 4 }
733 7764 IddObjectType AirTerminalSingleDuctConstantVolumeFourPipeBeam::iddObjectType() {
734
1/1
✓ Branch 1 taken 7764 times.
7764 return {IddObjectType::OS_AirTerminal_SingleDuct_ConstantVolume_FourPipeBeam};
735 }
736
737 /* Primary Air Availability Schedule */
738 2 Schedule AirTerminalSingleDuctConstantVolumeFourPipeBeam::primaryAirAvailabilitySchedule() const {
739
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->primaryAirAvailabilitySchedule();
740 }
741 8 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam::setPrimaryAirAvailabilitySchedule(Schedule& schedule) {
742
1/1
✓ Branch 3 taken 8 times.
8 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->setPrimaryAirAvailabilitySchedule(schedule);
743 }
744
745 /* Cooling Availability Schedule */
746 1 Schedule AirTerminalSingleDuctConstantVolumeFourPipeBeam::coolingAvailabilitySchedule() const {
747
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->coolingAvailabilitySchedule();
748 }
749
750 7 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam::setCoolingAvailabilitySchedule(Schedule& schedule) {
751
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->setCoolingAvailabilitySchedule(schedule);
752 }
753
754 /* Heating Availability Schedule */
755 1 Schedule AirTerminalSingleDuctConstantVolumeFourPipeBeam::heatingAvailabilitySchedule() const {
756
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->heatingAvailabilitySchedule();
757 }
758
759 7 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam::setHeatingAvailabilitySchedule(Schedule& schedule) {
760
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->setHeatingAvailabilitySchedule(schedule);
761 }
762
763 /* Nodes */
764
765 1 boost::optional<Node> AirTerminalSingleDuctConstantVolumeFourPipeBeam::primaryAirInletNode() const {
766
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->primaryAirInletNode();
767 }
768
769 1 boost::optional<Node> AirTerminalSingleDuctConstantVolumeFourPipeBeam::primaryAirOutletNode() const {
770
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->primaryAirOutletNode();
771 }
772
773 /* Coils */
774
775 11 boost::optional<HVACComponent> AirTerminalSingleDuctConstantVolumeFourPipeBeam::coolingCoil() const {
776
1/1
✓ Branch 3 taken 11 times.
11 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->coolingCoil();
777 }
778 8 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam::setCoolingCoil(const HVACComponent& coilCoolingFourPipeBeam) {
779
1/1
✓ Branch 3 taken 8 times.
8 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->setCoolingCoil(coilCoolingFourPipeBeam);
780 }
781
782 11 boost::optional<HVACComponent> AirTerminalSingleDuctConstantVolumeFourPipeBeam::heatingCoil() const {
783
1/1
✓ Branch 3 taken 11 times.
11 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->heatingCoil();
784 }
785 8 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam::setHeatingCoil(const HVACComponent& coilHeatingFourPipeBeam) {
786
1/1
✓ Branch 3 taken 8 times.
8 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->setHeatingCoil(coilHeatingFourPipeBeam);
787 }
788
789 /* Autosizable fields */
790
791 // Design Primary Air Volume Flow Rate
792
793 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeFourPipeBeam::designPrimaryAirVolumeFlowRate() const {
794 ✗ return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->designPrimaryAirVolumeFlowRate();
795 }
796
797 1 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam::isDesignPrimaryAirVolumeFlowRateAutosized() const {
798
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->isDesignPrimaryAirVolumeFlowRateAutosized();
799 }
800
801 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeFourPipeBeam::autosizedDesignPrimaryAirVolumeFlowRate() {
802 ✗ return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->autosizedDesignPrimaryAirVolumeFlowRate();
803 }
804
805 ✗ bool AirTerminalSingleDuctConstantVolumeFourPipeBeam::setDesignPrimaryAirVolumeFlowRate(double designPrimaryAirVolumeFlowRate) {
806 ✗ return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->setDesignPrimaryAirVolumeFlowRate(designPrimaryAirVolumeFlowRate);
807 }
808
809 ✗ void AirTerminalSingleDuctConstantVolumeFourPipeBeam::autosizeDesignPrimaryAirVolumeFlowRate() {
810 ✗ getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->autosizeDesignPrimaryAirVolumeFlowRate();
811 ✗ }
812
813 // Design Chilled Water Volume Flow Rate
814
815 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeFourPipeBeam::designChilledWaterVolumeFlowRate() const {
816 ✗ return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->designChilledWaterVolumeFlowRate();
817 }
818
819 1 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam::isDesignChilledWaterVolumeFlowRateAutosized() const {
820
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->isDesignChilledWaterVolumeFlowRateAutosized();
821 }
822
823 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeFourPipeBeam::autosizedDesignChilledWaterVolumeFlowRate() {
824 ✗ return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->autosizedDesignChilledWaterVolumeFlowRate();
825 }
826
827 ✗ bool AirTerminalSingleDuctConstantVolumeFourPipeBeam::setDesignChilledWaterVolumeFlowRate(double designChilledWaterVolumeFlowRate) {
828 ✗ return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->setDesignChilledWaterVolumeFlowRate(
829 ✗ designChilledWaterVolumeFlowRate);
830 }
831
832 ✗ void AirTerminalSingleDuctConstantVolumeFourPipeBeam::autosizeDesignChilledWaterVolumeFlowRate() {
833 ✗ getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->autosizeDesignChilledWaterVolumeFlowRate();
834 ✗ }
835
836 // Design Hot Water Volume Flow Rate
837
838 1 boost::optional<double> AirTerminalSingleDuctConstantVolumeFourPipeBeam::designHotWaterVolumeFlowRate() const {
839
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->designHotWaterVolumeFlowRate();
840 }
841
842 1 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam::isDesignHotWaterVolumeFlowRateAutosized() const {
843
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->isDesignHotWaterVolumeFlowRateAutosized();
844 }
845
846 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeFourPipeBeam::autosizedDesignHotWaterVolumeFlowRate() {
847 ✗ return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->autosizedDesignHotWaterVolumeFlowRate();
848 }
849
850 1 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam::setDesignHotWaterVolumeFlowRate(double designHotWaterVolumeFlowRate) {
851
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->setDesignHotWaterVolumeFlowRate(designHotWaterVolumeFlowRate);
852 }
853
854 ✗ void AirTerminalSingleDuctConstantVolumeFourPipeBeam::autosizeDesignHotWaterVolumeFlowRate() {
855 ✗ getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->autosizeDesignHotWaterVolumeFlowRate();
856 ✗ }
857
858 // Zone Total Beam Length
859
860 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeFourPipeBeam::zoneTotalBeamLength() const {
861 ✗ return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->zoneTotalBeamLength();
862 }
863
864 1 bool AirTerminalSingleDuctConstantVolumeFourPipeBeam::isZoneTotalBeamLengthAutosized() const {
865
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->isZoneTotalBeamLengthAutosized();
866 }
867
868 ✗ boost::optional<double> AirTerminalSingleDuctConstantVolumeFourPipeBeam::autosizedZoneTotalBeamLength() {
869 ✗ return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->autosizedZoneTotalBeamLength();
870 }
871
872 ✗ bool AirTerminalSingleDuctConstantVolumeFourPipeBeam::setZoneTotalBeamLength(double zoneTotalBeamLength) {
873 ✗ return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->setZoneTotalBeamLength(zoneTotalBeamLength);
874 }
875
876 ✗ void AirTerminalSingleDuctConstantVolumeFourPipeBeam::autosizeZoneTotalBeamLength() {
877 ✗ getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->autosizeZoneTotalBeamLength();
878 ✗ }
879
880 /* Double with defaults */
881
882 // Rated Primary Air Flow Rate per Beam Length
883
884 2 double AirTerminalSingleDuctConstantVolumeFourPipeBeam::ratedPrimaryAirFlowRateperBeamLength() const {
885
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->ratedPrimaryAirFlowRateperBeamLength();
886 }
887
888 ✗ bool AirTerminalSingleDuctConstantVolumeFourPipeBeam::isRatedPrimaryAirFlowRateperBeamLengthDefaulted() const {
889 ✗ return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->isRatedPrimaryAirFlowRateperBeamLengthDefaulted();
890 }
891
892 ✗ bool AirTerminalSingleDuctConstantVolumeFourPipeBeam::setRatedPrimaryAirFlowRateperBeamLength(double ratedPrimaryAirFlowRateperBeamLength) {
893 ✗ return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->setRatedPrimaryAirFlowRateperBeamLength(
894 ✗ ratedPrimaryAirFlowRateperBeamLength);
895 }
896
897 ✗ void AirTerminalSingleDuctConstantVolumeFourPipeBeam::resetRatedPrimaryAirFlowRateperBeamLength() {
898 ✗ getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->resetRatedPrimaryAirFlowRateperBeamLength();
899 ✗ }
900
901 /* Convenience functions */
902
903 /* Convenience method to return the chilled water PlantLoop */
904 11 boost::optional<PlantLoop> AirTerminalSingleDuctConstantVolumeFourPipeBeam::chilledWaterPlantLoop() const {
905
1/1
✓ Branch 3 taken 11 times.
11 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->chilledWaterPlantLoop();
906 }
907
908 3 boost::optional<Node> AirTerminalSingleDuctConstantVolumeFourPipeBeam::chilledWaterInletNode() const {
909
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->chilledWaterInletNode();
910 }
911
912 3 boost::optional<Node> AirTerminalSingleDuctConstantVolumeFourPipeBeam::chilledWaterOutletNode() const {
913
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->chilledWaterOutletNode();
914 }
915
916 /* Convenience method to return the hot water PlantLoop */
917 10 boost::optional<PlantLoop> AirTerminalSingleDuctConstantVolumeFourPipeBeam::hotWaterPlantLoop() const {
918
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->hotWaterPlantLoop();
919 }
920
921 3 boost::optional<Node> AirTerminalSingleDuctConstantVolumeFourPipeBeam::hotWaterInletNode() const {
922
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->hotWaterInletNode();
923 }
924
925 3 boost::optional<Node> AirTerminalSingleDuctConstantVolumeFourPipeBeam::hotWaterOutletNode() const {
926
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl>()->hotWaterOutletNode();
927 }
928
929 /// @cond
930 25 AirTerminalSingleDuctConstantVolumeFourPipeBeam::AirTerminalSingleDuctConstantVolumeFourPipeBeam(
931 25 std::shared_ptr<detail::AirTerminalSingleDuctConstantVolumeFourPipeBeam_Impl> impl)
932
1/1
✓ Branch 2 taken 25 times.
25 : StraightComponent(impl) {}
933 /// @endcond
934
935 } // namespace model
936 } // namespace openstudio
937