GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 60.4% 366 / 0 / 606
Functions: 71.5% 103 / 0 / 144
Branches: 47.7% 329 / 0 / 690

src/model/AirTerminalSingleDuctVAVReheat.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 "AirTerminalSingleDuctVAVReheat.hpp"
7 #include "AirTerminalSingleDuctVAVReheat_Impl.hpp"
8 #include "AirLoopHVAC.hpp"
9 #include "AirLoopHVAC_Impl.hpp"
10 #include "Node.hpp"
11 #include "Node_Impl.hpp"
12 #include "PortList.hpp"
13 #include "PortList_Impl.hpp"
14 #include "HVACComponent.hpp"
15 #include "HVACComponent_Impl.hpp"
16 #include "AirLoopHVACZoneSplitter.hpp"
17 #include "AirLoopHVACZoneSplitter_Impl.hpp"
18 #include "AirLoopHVACZoneMixer.hpp"
19 #include "AirLoopHVACZoneMixer_Impl.hpp"
20 #include "ThermalZone.hpp"
21 #include "ThermalZone_Impl.hpp"
22 #include "Model.hpp"
23 #include "Schedule.hpp"
24 #include "Schedule_Impl.hpp"
25 #include "AirflowNetworkEquivalentDuct.hpp"
26 #include "AirflowNetworkEquivalentDuct_Impl.hpp"
27 #include <utilities/idd/OS_AirTerminal_SingleDuct_VAV_Reheat_FieldEnums.hxx>
28 #include <utilities/idd/IddEnums.hxx>
29 #include "../utilities/core/Compare.hpp"
30 #include "../utilities/core/Assert.hpp"
31 #include "../utilities/data/DataEnums.hpp"
32 #include "../utilities/core/DeprecatedHelpers.hpp"
33
34 namespace openstudio {
35
36 namespace model {
37
38 namespace detail {
39
40 31 AirTerminalSingleDuctVAVReheat_Impl::AirTerminalSingleDuctVAVReheat_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
41 31 : StraightComponent_Impl(idfObject, model, keepHandle) {
42
4/6
✓ Branch 1 taken 31 times.
✓ Branch 4 taken 31 times.
✓ Branch 7 taken 31 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 31 times.
✗ Branch 13 not taken.
31 OS_ASSERT(idfObject.iddObject().type() == AirTerminalSingleDuctVAVReheat::iddObjectType());
43 31 }
44
45 ✗ AirTerminalSingleDuctVAVReheat_Impl::AirTerminalSingleDuctVAVReheat_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model,
46 ✗ bool keepHandle)
47 ✗ : StraightComponent_Impl(other, model, keepHandle) {
48 ✗ OS_ASSERT(other.iddObject().type() == AirTerminalSingleDuctVAVReheat::iddObjectType());
49 ✗ }
50
51 11 AirTerminalSingleDuctVAVReheat_Impl::AirTerminalSingleDuctVAVReheat_Impl(const AirTerminalSingleDuctVAVReheat_Impl& other, Model_Impl* model,
52 11 bool keepHandle)
53 11 : StraightComponent_Impl(other, model, keepHandle) {}
54
55 // Get all output variable names that could be associated with this object.
56 ✗ const std::vector<std::string>& AirTerminalSingleDuctVAVReheat_Impl::outputVariableNames() const {
57 static const std::vector<std::string> result{// These apply to all AirTerminals
58 "Zone Air Terminal Sensible Heating Energy", "Zone Air Terminal Sensible Heating Rate",
59 "Zone Air Terminal Sensible Cooling Energy", "Zone Air Terminal Sensible Cooling Rate",
60
61 "Zone Air Terminal VAV Damper Position", "Zone Air Terminal Minimum Air Flow Fraction",
62 ✗ "Zone Air Terminal Outdoor Air Volume Flow Rate"};
63 ✗ return result;
64 ✗ }
65
66 34 IddObjectType AirTerminalSingleDuctVAVReheat_Impl::iddObjectType() const {
67 34 return AirTerminalSingleDuctVAVReheat::iddObjectType();
68 }
69
70 ✗ std::vector<ScheduleTypeKey> AirTerminalSingleDuctVAVReheat_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
71 ✗ std::vector<ScheduleTypeKey> result;
72 ✗ UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
73 ✗ UnsignedVector::const_iterator b(fieldIndices.begin());
74 ✗ UnsignedVector::const_iterator e(fieldIndices.end());
75 ✗ if (std::find(b, e, OS_AirTerminal_SingleDuct_VAV_ReheatFields::AvailabilityScheduleName) != e) {
76 ✗ result.push_back(ScheduleTypeKey("AirTerminalSingleDuctVAVReheat", "Availability"));
77 }
78 ✗ if (std::find(b, e, OS_AirTerminal_SingleDuct_VAV_ReheatFields::MinimumAirFlowFractionScheduleName) != e) {
79 ✗ result.push_back(ScheduleTypeKey("AirTerminalSingleDuctVAVReheat", "Minimum Air Flow Fraction"));
80 }
81 ✗ if (std::find(b, e, OS_AirTerminal_SingleDuct_VAV_ReheatFields::MinimumAirFlowTurndownScheduleName) != e) {
82 ✗ result.push_back(ScheduleTypeKey("AirTerminalSingleDuctVAVReheat", "Minimum Air Flow Turndown"));
83 }
84 ✗ return result;
85 ✗ }
86
87 3 Schedule AirTerminalSingleDuctVAVReheat_Impl::availabilitySchedule() const {
88
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<Schedule> value = optionalAvailabilitySchedule();
89
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if (!value) {
90 // it is an error if we get here, however we don't want to crash
91 // so we hook up to global always on schedule
92 ✗ LOG(Error, "Required availability schedule not set, using 'Always On' schedule");
93 ✗ value = this->model().alwaysOnDiscreteSchedule();
94 ✗ OS_ASSERT(value);
95 ✗ const_cast<AirTerminalSingleDuctVAVReheat_Impl*>(this)->setAvailabilitySchedule(*value);
96 ✗ value = optionalAvailabilitySchedule();
97 }
98
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
99
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return value.get();
100 3 }
101
102 32 bool AirTerminalSingleDuctVAVReheat_Impl::setAvailabilitySchedule(Schedule& schedule) {
103 bool result =
104
3/3
✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
✓ Branch 7 taken 32 times.
128 setSchedule(OS_AirTerminal_SingleDuct_VAV_ReheatFields::AvailabilityScheduleName, "AirTerminalSingleDuctVAVReheat", "Availability", schedule);
105 32 return result;
106 }
107
108 51 unsigned AirTerminalSingleDuctVAVReheat_Impl::inletPort() const {
109 51 return OS_AirTerminal_SingleDuct_VAV_ReheatFields::AirInletNodeName;
110 }
111
112 1585 unsigned AirTerminalSingleDuctVAVReheat_Impl::outletPort() const {
113 1585 return OS_AirTerminal_SingleDuct_VAV_ReheatFields::AirOutletNodeName;
114 }
115
116 37 bool AirTerminalSingleDuctVAVReheat_Impl::addToNode(Node& node) {
117
1/1
✓ Branch 1 taken 37 times.
37 Model _model = node.model();
118
119
2/3
✓ Branch 1 taken 37 times.
✓ Branch 3 taken 37 times.
✗ Branch 4 not taken.
74 if (boost::optional<ModelObject> outlet = node.outletModelObject()) {
120 37 boost::optional<ThermalZone> thermalZone;
121
122
4/4
✓ Branch 1 taken 37 times.
✓ Branch 4 taken 37 times.
✓ Branch 6 taken 28 times.
✓ Branch 7 taken 9 times.
74 if (boost::optional<PortList> portList = outlet->optionalCast<PortList>()) {
123
3/3
✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
✓ Branch 7 taken 28 times.
28 thermalZone = portList->thermalZone();
124 37 }
125
126
14/19
✓ Branch 1 taken 9 times.
✓ Branch 2 taken 28 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
✓ Branch 10 taken 5 times.
✓ Branch 11 taken 4 times.
✓ Branch 13 taken 5 times.
✓ Branch 16 taken 5 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 5 times.
✓ Branch 19 taken 32 times.
✓ Branch 21 taken 9 times.
✓ Branch 22 taken 28 times.
✓ Branch 24 taken 33 times.
✓ Branch 25 taken 4 times.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
88 if (thermalZone || (outlet->optionalCast<Mixer>() && node.airLoopHVAC())) {
127
2/3
✓ Branch 1 taken 33 times.
✓ Branch 3 taken 33 times.
✗ Branch 4 not taken.
66 if (boost::optional<ModelObject> inlet = node.inletModelObject()) {
128
3/4
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 6 taken 33 times.
✗ Branch 7 not taken.
66 if (boost::optional<Splitter> splitter = inlet->optionalCast<Splitter>()) {
129
1/1
✓ Branch 1 taken 33 times.
33 boost::optional<ModelObject> sourceModelObject = inlet;
130
2/2
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
33 boost::optional<unsigned> sourcePort = node.connectedObjectPort(node.inletPort());
131
132
3/6
✓ Branch 0 taken 33 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 33 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 33 times.
✗ Branch 5 not taken.
66 if (sourcePort && sourceModelObject) {
133
1/1
✓ Branch 1 taken 33 times.
33 Node inletNode(_model);
134
135
6/6
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 33 times.
✓ Branch 13 taken 33 times.
✓ Branch 16 taken 33 times.
33 _model.connect(sourceModelObject.get(), sourcePort.get(), inletNode, inletNode.inletPort());
136
137
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 33 times.
✓ Branch 13 taken 33 times.
33 _model.connect(inletNode, inletNode.outletPort(), this->getObject<ModelObject>(), this->inletPort());
138
139
5/5
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✓ Branch 10 taken 33 times.
✓ Branch 13 taken 33 times.
33 _model.connect(this->getObject<ModelObject>(), outletPort(), node, node.inletPort());
140
141
2/2
✓ Branch 0 taken 28 times.
✓ Branch 1 taken 5 times.
33 if (thermalZone) {
142
1/1
✓ Branch 1 taken 28 times.
28 auto mo = this->getObject<AirTerminalSingleDuctVAVReheat>();
143
144
2/2
✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
28 thermalZone->addEquipment(mo);
145 28 }
146
147 33 return true;
148 33 }
149 66 }
150 33 }
151 }
152 74 }
153
154 4 return false;
155 37 }
156
157 4 std::vector<IdfObject> AirTerminalSingleDuctVAVReheat_Impl::remove() {
158
1/1
✓ Branch 1 taken 4 times.
4 Model _model = this->model();
159
1/1
✓ Branch 1 taken 4 times.
4 auto thisObject = this->getObject<ModelObject>();
160
161
1/1
✓ Branch 1 taken 4 times.
4 HVACComponent _reheatCoil = reheatCoil();
162
163
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<ModelObject> sourceModelObject = this->inletModelObject();
164
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
4 boost::optional<unsigned> sourcePort = this->connectedObjectPort(this->inletPort());
165
166
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<ModelObject> targetModelObject = this->outletModelObject();
167
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
4 boost::optional<unsigned> targetPort = this->connectedObjectPort(this->outletPort());
168
169
1/1
✓ Branch 1 taken 4 times.
4 std::vector<ThermalZone> thermalZones = _model.getConcreteModelObjects<ThermalZone>();
170
2/2
✓ Branch 5 taken 6 times.
✓ Branch 6 taken 1 time.
7 for (auto& thermalZone : thermalZones) {
171
1/1
✓ Branch 1 taken 6 times.
6 std::vector<ModelObject> equipment = thermalZone.equipment();
172
173
3/3
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 3 times.
✓ Branch 8 taken 3 times.
6 if (std::find(equipment.begin(), equipment.end(), thisObject) != equipment.end()) {
174
1/1
✓ Branch 1 taken 3 times.
3 thermalZone.removeEquipment(thisObject);
175
176 3 break;
177 }
178 6 }
179
180
7/10
✓ Branch 0 taken 3 times.
✓ Branch 1 taken 1 time.
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 3 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 3 times.
✓ Branch 9 taken 1 time.
13 if (sourcePort && sourceModelObject && targetPort && targetModelObject) {
181
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<Node> inletNode = sourceModelObject->optionalCast<Node>()) {
182
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<ModelObject> source2ModelObject = inletNode->inletModelObject()) {
183
5/6
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 12 taken 3 times.
✗ Branch 13 not taken.
6 if (boost::optional<unsigned> source2Port = inletNode->connectedObjectPort(inletNode->inletPort())) {
184
7/7
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
✓ Branch 16 taken 3 times.
✓ Branch 19 taken 3 times.
3 _model.connect(source2ModelObject.get(), source2Port.get(), targetModelObject.get(), targetPort.get());
185
186
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 inletNode->disconnect();
187
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 inletNode->remove();
188
189
2/3
✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
6 if (boost::optional<PlantLoop> loop = _reheatCoil.plantLoop()) {
190
3/3
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
3 loop->removeDemandBranchWithComponent(_reheatCoil);
191 3 }
192
193
1/1
✓ Branch 1 taken 3 times.
6 return StraightComponent_Impl::remove();
194 }
195 3 }
196 3 }
197 }
198
199
4/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
1 model().disconnect(getObject<ModelObject>(), inletPort());
200
4/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
1 model().disconnect(getObject<ModelObject>(), outletPort());
201
202
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<PlantLoop> loop = _reheatCoil.plantLoop()) {
203
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
1 loop->removeDemandBranchWithComponent(_reheatCoil);
204 1 }
205
206
1/1
✓ Branch 1 taken 1 time.
1 return StraightComponent_Impl::remove();
207 4 }
208
209 4 bool AirTerminalSingleDuctVAVReheat_Impl::isRemovable() const {
210 4 return true;
211 }
212
213 7 std::vector<ModelObject> AirTerminalSingleDuctVAVReheat_Impl::children() const {
214 7 std::vector<ModelObject> result;
215
2/3
✓ Branch 1 taken 7 times.
✓ Branch 3 taken 7 times.
✗ Branch 4 not taken.
14 if (OptionalHVACComponent intermediate = optionalReheatCoil()) {
216
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
7 result.push_back(*intermediate);
217 7 }
218 std::vector<AirflowNetworkEquivalentDuct> myAFNItems =
219
3/3
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
7 getObject<ModelObject>().getModelObjectSources<AirflowNetworkEquivalentDuct>(AirflowNetworkEquivalentDuct::iddObjectType());
220
1/1
✓ Branch 5 taken 7 times.
7 result.insert(result.end(), myAFNItems.begin(), myAFNItems.end());
221 14 return result;
222 7 }
223
224 4 ModelObject AirTerminalSingleDuctVAVReheat_Impl::clone(Model model) const {
225
3/3
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
4 auto modelObjectClone = StraightComponent_Impl::clone(model).cast<AirTerminalSingleDuctVAVReheat>();
226
227
1/1
✓ Branch 1 taken 4 times.
4 HVACComponent coil = this->reheatCoil();
228
229
3/3
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
4 auto coilClone = coil.clone(model).cast<HVACComponent>();
230
231
1/1
✓ Branch 1 taken 4 times.
4 modelObjectClone.setReheatCoil(coilClone);
232
233 8 return std::move(modelObjectClone);
234 4 }
235
236 3 boost::optional<double> AirTerminalSingleDuctVAVReheat_Impl::maximumAirFlowRate() const {
237 3 return this->getDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumAirFlowRate);
238 }
239
240 22 bool AirTerminalSingleDuctVAVReheat_Impl::setMaximumAirFlowRate(double value) {
241 22 return this->setDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumAirFlowRate, value);
242 }
243
244 31 void AirTerminalSingleDuctVAVReheat_Impl::autosizeMaximumAirFlowRate() {
245
2/2
✓ Branch 1 taken 31 times.
✓ Branch 4 taken 31 times.
62 this->setString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumAirFlowRate, "AutoSize");
246 31 }
247
248 2 bool AirTerminalSingleDuctVAVReheat_Impl::isMaximumAirFlowRateAutosized() const {
249
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<std::string> text = this->getString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumAirFlowRate);
250
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (text) {
251
4/5
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 2 times.
4 if (istringEqual(text.get(), "Autocalculate")) {
252 ✗ return true;
253
4/5
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✗ Branch 11 not taken.
4 } else if (istringEqual(text.get(), "AutoSize")) {
254 2 return true;
255 }
256 }
257
258 ✗ return false;
259 2 }
260
261 3 std::string AirTerminalSingleDuctVAVReheat_Impl::zoneMinimumAirFlowInputMethod() {
262
3/3
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
3 return this->getString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::ZoneMinimumAirFlowInputMethod).get();
263 }
264
265 53 bool AirTerminalSingleDuctVAVReheat_Impl::setZoneMinimumAirFlowInputMethod(const std::string& value) {
266
4/4
✓ Branch 1 taken 53 times.
✓ Branch 4 taken 53 times.
✓ Branch 7 taken 31 times.
✓ Branch 8 taken 22 times.
106 if (istringEqual(value, "Constant")) {
267
2/2
✓ Branch 1 taken 31 times.
✓ Branch 4 taken 31 times.
93 return this->setString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::ZoneMinimumAirFlowInputMethod, "Constant");
268
3/4
✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
✓ Branch 7 taken 22 times.
✗ Branch 8 not taken.
44 } else if (istringEqual(value, "FixedFlowRate")) {
269
2/2
✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
66 return this->setString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::ZoneMinimumAirFlowInputMethod, "FixedFlowRate");
270 ✗ } else if (istringEqual(value, "Scheduled")) {
271 ✗ return this->setString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::ZoneMinimumAirFlowInputMethod, "Scheduled");
272 } else {
273 ✗ return false;
274 }
275 }
276
277 3 boost::optional<double> AirTerminalSingleDuctVAVReheat_Impl::constantMinimumAirFlowFraction() const {
278 3 return getDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::ConstantMinimumAirFlowFraction);
279 }
280
281 3 bool AirTerminalSingleDuctVAVReheat_Impl::isConstantMinimumAirFlowFractionAutosized() const {
282 3 bool result = false;
283
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::ConstantMinimumAirFlowFraction, true);
284
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 if (value) {
285
3/3
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
6 result = openstudio::istringEqual(value.get(), "Autosize");
286 }
287 3 return result;
288 3 }
289
290 32 bool AirTerminalSingleDuctVAVReheat_Impl::setConstantMinimumAirFlowFraction(double value) {
291 32 return this->setDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::ConstantMinimumAirFlowFraction, value);
292 }
293
294 ✗ void AirTerminalSingleDuctVAVReheat_Impl::autosizeConstantMinimumAirFlowFraction() {
295 ✗ bool result = setString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::ConstantMinimumAirFlowFraction, "Autosize");
296 ✗ OS_ASSERT(result);
297 ✗ }
298
299 3 boost::optional<double> AirTerminalSingleDuctVAVReheat_Impl::fixedMinimumAirFlowRate() const {
300 3 return getDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::FixedMinimumAirFlowRate);
301 }
302
303 3 bool AirTerminalSingleDuctVAVReheat_Impl::isFixedMinimumAirFlowRateAutosized() const {
304 3 bool result = false;
305
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::FixedMinimumAirFlowRate, true);
306
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 if (value) {
307
3/3
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
6 result = openstudio::istringEqual(value.get(), "Autosize");
308 }
309 3 return result;
310 3 }
311
312 53 bool AirTerminalSingleDuctVAVReheat_Impl::setFixedMinimumAirFlowRate(double value) {
313 53 return this->setDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::FixedMinimumAirFlowRate, value);
314 }
315
316 ✗ void AirTerminalSingleDuctVAVReheat_Impl::autosizeFixedMinimumAirFlowRate() {
317 ✗ bool result = setString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::FixedMinimumAirFlowRate, "Autosize");
318 ✗ OS_ASSERT(result);
319 ✗ }
320
321 3 boost::optional<Schedule> AirTerminalSingleDuctVAVReheat_Impl::minimumAirFlowFractionSchedule() const {
322
1/1
✓ Branch 1 taken 3 times.
6 return this->getObject<AirTerminalSingleDuctVAVReheat>().getModelObjectTarget<Schedule>(
323
1/1
✓ Branch 1 taken 3 times.
6 OS_AirTerminal_SingleDuct_VAV_ReheatFields::MinimumAirFlowFractionScheduleName);
324 }
325
326 1 bool AirTerminalSingleDuctVAVReheat_Impl::setMinimumAirFlowFractionSchedule(Schedule& schedule) {
327
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
4 bool result = setSchedule(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MinimumAirFlowFractionScheduleName, "AirTerminalSingleDuctVAVReheat",
328 "Minimum Air Flow Fraction", schedule);
329 1 return result;
330 }
331
332 ✗ void AirTerminalSingleDuctVAVReheat_Impl::resetMinimumAirFlowFractionSchedule() {
333 ✗ bool result = setString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MinimumAirFlowFractionScheduleName, "");
334 ✗ OS_ASSERT(result);
335 ✗ }
336
337 7 boost::optional<Schedule> AirTerminalSingleDuctVAVReheat_Impl::minimumAirFlowTurndownSchedule() const {
338
1/1
✓ Branch 1 taken 7 times.
14 return this->getObject<AirTerminalSingleDuctVAVReheat>().getModelObjectTarget<Schedule>(
339
1/1
✓ Branch 1 taken 7 times.
14 OS_AirTerminal_SingleDuct_VAV_ReheatFields::MinimumAirFlowTurndownScheduleName);
340 }
341
342 2 bool AirTerminalSingleDuctVAVReheat_Impl::setMinimumAirFlowTurndownSchedule(Schedule& schedule) {
343
3/3
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
8 bool result = setSchedule(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MinimumAirFlowTurndownScheduleName, "AirTerminalSingleDuctVAVReheat",
344 "Minimum Air Flow Turndown", schedule);
345 2 return result;
346 }
347
348 1 void AirTerminalSingleDuctVAVReheat_Impl::resetMinimumAirFlowTurndownSchedule() {
349
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MinimumAirFlowTurndownScheduleName, "");
350
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
351 1 }
352
353 3 boost::optional<double> AirTerminalSingleDuctVAVReheat_Impl::maximumHotWaterOrSteamFlowRate() {
354 3 return this->getDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumHotWaterorSteamFlowRate);
355 }
356
357 1 bool AirTerminalSingleDuctVAVReheat_Impl::setMaximumHotWaterOrSteamFlowRate(double value) {
358 1 return this->setDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumHotWaterorSteamFlowRate, value);
359 }
360
361 31 void AirTerminalSingleDuctVAVReheat_Impl::autosizeMaximumHotWaterOrSteamFlowRate() {
362
2/2
✓ Branch 1 taken 31 times.
✓ Branch 4 taken 31 times.
62 this->setString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumHotWaterorSteamFlowRate, "AutoSize");
363 31 }
364
365 2 bool AirTerminalSingleDuctVAVReheat_Impl::isMaximumHotWaterOrSteamFlowRateAutosized() const {
366
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<std::string> text = this->getString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumHotWaterorSteamFlowRate);
367
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (text) {
368
4/5
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 2 times.
4 if (istringEqual(text.get(), "Autocalculate")) {
369 ✗ return true;
370
4/5
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✗ Branch 11 not taken.
4 } else if (istringEqual(text.get(), "AutoSize")) {
371 2 return true;
372 }
373 }
374
375 ✗ return false;
376 2 }
377
378 3 double AirTerminalSingleDuctVAVReheat_Impl::minimumHotWaterOrSteamFlowRate() {
379
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 return this->getDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MinimumHotWaterorSteamFlowRate).get();
380 }
381
382 32 bool AirTerminalSingleDuctVAVReheat_Impl::setMinimumHotWaterOrStreamFlowRate(double value) {
383 32 return this->setDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MinimumHotWaterorSteamFlowRate, value);
384 }
385
386 3 double AirTerminalSingleDuctVAVReheat_Impl::convergenceTolerance() {
387
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 return this->getDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::ConvergenceTolerance).get();
388 }
389
390 32 bool AirTerminalSingleDuctVAVReheat_Impl::setConvergenceTolerance(double value) {
391 32 return this->setDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::ConvergenceTolerance, value);
392 }
393
394 3 std::string AirTerminalSingleDuctVAVReheat_Impl::damperHeatingAction() {
395
3/3
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
3 return this->getString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::DamperHeatingAction).get();
396 }
397
398 53 bool AirTerminalSingleDuctVAVReheat_Impl::setDamperHeatingAction(const std::string& value) {
399 53 return setString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::DamperHeatingAction, value);
400 ;
401 }
402
403 3 boost::optional<double> AirTerminalSingleDuctVAVReheat_Impl::maximumFlowPerZoneFloorAreaDuringReheat() {
404 3 return this->getDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumFlowperZoneFloorAreaDuringReheat);
405 }
406
407 21 void AirTerminalSingleDuctVAVReheat_Impl::resetMaximumFlowPerZoneFloorAreaDuringReheat() {
408
2/2
✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
42 bool result = setString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumFlowperZoneFloorAreaDuringReheat, "");
409
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 21 times.
21 OS_ASSERT(result);
410 21 }
411
412 32 bool AirTerminalSingleDuctVAVReheat_Impl::setMaximumFlowPerZoneFloorAreaDuringReheat(double value) {
413 32 return this->setDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumFlowperZoneFloorAreaDuringReheat, value);
414 }
415
416 31 void AirTerminalSingleDuctVAVReheat_Impl::autosizeMaximumFlowPerZoneFloorAreaDuringReheat() {
417
2/2
✓ Branch 1 taken 31 times.
✓ Branch 4 taken 31 times.
62 this->setString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumFlowperZoneFloorAreaDuringReheat, "AutoSize");
418 31 }
419
420 2 bool AirTerminalSingleDuctVAVReheat_Impl::isMaximumFlowPerZoneFloorAreaDuringReheatAutosized() const {
421
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<std::string> text = this->getString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumFlowperZoneFloorAreaDuringReheat);
422
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (text) {
423
4/5
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 2 times.
4 if (istringEqual(text.get(), "Autocalculate")) {
424 ✗ return true;
425
4/5
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✗ Branch 11 not taken.
4 } else if (istringEqual(text.get(), "AutoSize")) {
426 2 return true;
427 }
428 }
429
430 ✗ return false;
431 2 }
432
433 3 boost::optional<double> AirTerminalSingleDuctVAVReheat_Impl::maximumFlowFractionDuringReheat() {
434 3 return this->getDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumFlowFractionDuringReheat);
435 }
436
437 22 bool AirTerminalSingleDuctVAVReheat_Impl::setMaximumFlowFractionDuringReheat(double value) {
438 22 return this->setDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumFlowFractionDuringReheat, value);
439 }
440
441 31 void AirTerminalSingleDuctVAVReheat_Impl::autosizeMaximumFlowFractionDuringReheat() {
442
2/2
✓ Branch 1 taken 31 times.
✓ Branch 4 taken 31 times.
62 this->setString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumFlowFractionDuringReheat, "AutoSize");
443 31 }
444
445 2 bool AirTerminalSingleDuctVAVReheat_Impl::isMaximumFlowFractionDuringReheatAutosized() const {
446
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<std::string> text = this->getString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumFlowFractionDuringReheat);
447
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (text) {
448
4/5
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 2 times.
4 if (istringEqual(text.get(), "Autocalculate")) {
449 ✗ return true;
450
4/5
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✗ Branch 11 not taken.
4 } else if (istringEqual(text.get(), "AutoSize")) {
451 2 return true;
452 }
453 }
454
455 ✗ return false;
456 2 }
457
458 ✗ void AirTerminalSingleDuctVAVReheat_Impl::resetMaximumFlowFractionDuringReheat() {
459 ✗ this->setString(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumFlowFractionDuringReheat, "");
460 ✗ }
461
462 3 double AirTerminalSingleDuctVAVReheat_Impl::maximumReheatAirTemperature() {
463
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 return this->getDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumReheatAirTemperature).get();
464 }
465
466 32 bool AirTerminalSingleDuctVAVReheat_Impl::setMaximumReheatAirTemperature(double value) {
467 32 return this->setDouble(OS_AirTerminal_SingleDuct_VAV_ReheatFields::MaximumReheatAirTemperature, value);
468 }
469
470 250 HVACComponent AirTerminalSingleDuctVAVReheat_Impl::reheatCoil() const {
471
1/1
✓ Branch 1 taken 250 times.
250 boost::optional<HVACComponent> coil = optionalReheatCoil();
472
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 250 times.
✗ Branch 4 not taken.
250 OS_ASSERT(coil);
473
2/2
✓ Branch 1 taken 250 times.
✓ Branch 4 taken 250 times.
500 return coil.get();
474 250 }
475
476 35 bool AirTerminalSingleDuctVAVReheat_Impl::setReheatCoil(HVACComponent& coil) {
477 35 bool result = false;
478
479
5/7
✓ Branch 1 taken 35 times.
✓ Branch 4 taken 35 times.
✓ Branch 7 taken 35 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 28 times.
✓ Branch 12 taken 7 times.
✗ Branch 13 not taken.
35 switch (coil.iddObject().type().value()) {
480 ✗ case openstudio::IddObjectType::OS_Coil_Heating_Gas: {
481 ✗ result = true;
482
483 ✗ break;
484 }
485 28 case openstudio::IddObjectType::OS_Coil_Heating_Water: {
486 28 result = true;
487
488 28 break;
489 }
490 7 case openstudio::IddObjectType::OS_Coil_Heating_Electric: {
491 7 result = true;
492
493 7 break;
494 }
495 ✗ default: {
496 ✗ LOG(Warn, "Unsupported or invalid IddObjectType: '" << coil.iddObject().name() << "'");
497
498 ✗ result = false;
499 }
500 }
501
502
1/2
✓ Branch 0 taken 35 times.
✗ Branch 1 not taken.
35 if (result) {
503
2/2
✓ Branch 1 taken 35 times.
✓ Branch 4 taken 35 times.
35 result = this->setPointer(OS_AirTerminal_SingleDuct_VAV_ReheatFields::ReheatCoilName, coil.handle());
504 }
505
506 35 return result;
507 }
508
509 257 boost::optional<HVACComponent> AirTerminalSingleDuctVAVReheat_Impl::optionalReheatCoil() const {
510
2/2
✓ Branch 1 taken 257 times.
✓ Branch 4 taken 257 times.
257 return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_AirTerminal_SingleDuct_VAV_ReheatFields::ReheatCoilName);
511 }
512
513 3 boost::optional<Schedule> AirTerminalSingleDuctVAVReheat_Impl::optionalAvailabilitySchedule() const {
514
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_AirTerminal_SingleDuct_VAV_ReheatFields::AvailabilityScheduleName);
515 }
516
517 ✗ boost::optional<ModelObject> AirTerminalSingleDuctVAVReheat_Impl::availabilityScheduleAsModelObject() const {
518 ✗ OptionalModelObject result = availabilitySchedule();
519 ✗ return result;
520 }
521
522 ✗ boost::optional<ModelObject> AirTerminalSingleDuctVAVReheat_Impl::minimumAirFlowFractionScheduleAsModelObject() const {
523 ✗ OptionalModelObject result;
524 ✗ OptionalSchedule intermediate = minimumAirFlowFractionSchedule();
525 ✗ if (intermediate) {
526 ✗ result = *intermediate;
527 }
528 ✗ return result;
529 ✗ }
530
531 ✗ boost::optional<ModelObject> AirTerminalSingleDuctVAVReheat_Impl::minimumAirFlowTurndownScheduleAsModelObject() const {
532 ✗ OptionalModelObject result;
533 ✗ OptionalSchedule intermediate = minimumAirFlowTurndownSchedule();
534 ✗ if (intermediate) {
535 ✗ result = *intermediate;
536 }
537 ✗ return result;
538 ✗ }
539
540 ✗ bool AirTerminalSingleDuctVAVReheat_Impl::setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
541 ✗ if (modelObject) {
542 ✗ OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
543 ✗ if (intermediate) {
544 ✗ Schedule schedule(*intermediate);
545 ✗ return setAvailabilitySchedule(schedule);
546 ✗ }
547 ✗ }
548 ✗ return false;
549 }
550
551 ✗ bool AirTerminalSingleDuctVAVReheat_Impl::setMinimumAirFlowFractionScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
552 ✗ if (modelObject) {
553 ✗ OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
554 ✗ if (intermediate) {
555 ✗ Schedule schedule(*intermediate);
556 ✗ return setMinimumAirFlowFractionSchedule(schedule);
557 ✗ } else {
558 ✗ return false;
559 }
560 ✗ } else {
561 ✗ resetMinimumAirFlowFractionSchedule();
562 }
563 ✗ return true;
564 }
565
566 ✗ bool AirTerminalSingleDuctVAVReheat_Impl::setMinimumAirFlowTurndownScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
567 ✗ if (modelObject) {
568 ✗ OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
569 ✗ if (intermediate) {
570 ✗ Schedule schedule(*intermediate);
571 ✗ return setMinimumAirFlowTurndownSchedule(schedule);
572 ✗ } else {
573 ✗ return false;
574 }
575 ✗ } else {
576 ✗ resetMinimumAirFlowTurndownSchedule();
577 }
578 ✗ return true;
579 }
580
581 3 bool AirTerminalSingleDuctVAVReheat_Impl::controlForOutdoorAir() const {
582 3 return getBooleanFieldValue(OS_AirTerminal_SingleDuct_VAV_ReheatFields::ControlForOutdoorAir);
583 }
584
585 32 bool AirTerminalSingleDuctVAVReheat_Impl::setControlForOutdoorAir(bool controlForOutdoorAir) {
586 32 return setBooleanFieldValue(OS_AirTerminal_SingleDuct_VAV_ReheatFields::ControlForOutdoorAir, controlForOutdoorAir);
587 ;
588 }
589
590 ✗ AirflowNetworkEquivalentDuct AirTerminalSingleDuctVAVReheat_Impl::getAirflowNetworkEquivalentDuct(double length, double diameter) {
591 ✗ boost::optional<AirflowNetworkEquivalentDuct> opt = airflowNetworkEquivalentDuct();
592 ✗ if (opt) {
593 ✗ if (opt->airPathLength() != length) {
594 ✗ opt->setAirPathLength(length);
595 }
596 ✗ if (opt->airPathHydraulicDiameter() != diameter) {
597 ✗ opt->setAirPathHydraulicDiameter(diameter);
598 }
599 }
600 ✗ return AirflowNetworkEquivalentDuct(model(), length, diameter, handle());
601 ✗ }
602
603 ✗ boost::optional<AirflowNetworkEquivalentDuct> AirTerminalSingleDuctVAVReheat_Impl::airflowNetworkEquivalentDuct() const {
604 std::vector<AirflowNetworkEquivalentDuct> myAFN =
605 ✗ getObject<ModelObject>().getModelObjectSources<AirflowNetworkEquivalentDuct>(AirflowNetworkEquivalentDuct::iddObjectType());
606 ✗ auto count = myAFN.size();
607 ✗ if (count == 1) {
608 ✗ return myAFN[0];
609 ✗ } else if (count > 1) {
610 ✗ LOG(Warn, briefDescription() << " has more than one AirflowNetwork EquivalentDuct attached, returning first.");
611 ✗ return myAFN[0];
612 }
613 ✗ return boost::none;
614 ✗ }
615
616 ✗ boost::optional<double> AirTerminalSingleDuctVAVReheat_Impl::autosizedMaximumAirFlowRate() const {
617 ✗ return getAutosizedValue("Design Size Maximum Air Flow Rate", "m3/s");
618 }
619
620 ✗ boost::optional<double> AirTerminalSingleDuctVAVReheat_Impl::autosizedConstantMinimumAirFlowFraction() const {
621 ✗ return getAutosizedValue("Design Size Constant Minimum Air Flow Fraction", "");
622 }
623
624 ✗ boost::optional<double> AirTerminalSingleDuctVAVReheat_Impl::autosizedFixedMinimumAirFlowRate() const {
625 ✗ return getAutosizedValue("Design Size Minimum Air Flow Rate", "m3/s");
626 }
627
628 ✗ boost::optional<double> AirTerminalSingleDuctVAVReheat_Impl::autosizedMaximumHotWaterOrSteamFlowRate() const {
629 ✗ return getAutosizedValue("Design Size Maximum Reheat Water Flow Rate", "m3/s");
630 }
631
632 ✗ boost::optional<double> AirTerminalSingleDuctVAVReheat_Impl::autosizedMaximumFlowPerZoneFloorAreaDuringReheat() const {
633 ✗ return getAutosizedValue("Design Size Maximum Flow per Zone Floor Area during Reheat", "m3/s-m2");
634 }
635
636 ✗ boost::optional<double> AirTerminalSingleDuctVAVReheat_Impl::autosizedMaximumFlowFractionDuringReheat() const {
637 ✗ return getAutosizedValue("Design Size Maximum Flow Fraction during Reheat", "");
638 }
639
640 ✗ void AirTerminalSingleDuctVAVReheat_Impl::autosize() {
641 ✗ autosizeMaximumAirFlowRate();
642 ✗ autosizeConstantMinimumAirFlowFraction();
643 ✗ autosizeFixedMinimumAirFlowRate();
644 ✗ autosizeMaximumHotWaterOrSteamFlowRate();
645 ✗ autosizeMaximumFlowPerZoneFloorAreaDuringReheat();
646 ✗ autosizeMaximumFlowFractionDuringReheat();
647 ✗ }
648
649 ✗ void AirTerminalSingleDuctVAVReheat_Impl::applySizingValues() {
650 ✗ boost::optional<double> val;
651 ✗ val = autosizedMaximumAirFlowRate();
652 ✗ if (val) {
653 ✗ setMaximumAirFlowRate(val.get());
654 }
655
656 ✗ val = autosizedConstantMinimumAirFlowFraction();
657 ✗ if (val) {
658 ✗ setConstantMinimumAirFlowFraction(val.get());
659 }
660
661 ✗ val = autosizedFixedMinimumAirFlowRate();
662 ✗ if (val) {
663 ✗ setFixedMinimumAirFlowRate(val.get());
664 }
665
666 ✗ val = autosizedMaximumHotWaterOrSteamFlowRate();
667 ✗ if (val) {
668 ✗ setMaximumHotWaterOrSteamFlowRate(val.get());
669 }
670
671 ✗ val = autosizedMaximumFlowPerZoneFloorAreaDuringReheat();
672 ✗ if (val) {
673 ✗ setMaximumFlowPerZoneFloorAreaDuringReheat(val.get());
674 }
675
676 ✗ val = autosizedMaximumFlowFractionDuringReheat();
677 ✗ if (val) {
678 ✗ setMaximumFlowFractionDuringReheat(val.get());
679 }
680 ✗ }
681
682 ✗ ComponentType AirTerminalSingleDuctVAVReheat_Impl::componentType() const {
683 ✗ ComponentType loopType = ComponentType::None;
684 ✗ if (auto a_ = airLoopHVAC()) {
685 ✗ loopType = a_->componentType();
686 ✗ }
687 ✗ if ((loopType == ComponentType::Both) or (loopType == ComponentType::Cooling)) {
688 ✗ return ComponentType::Both;
689 }
690
691 ✗ return ComponentType::Heating;
692 }
693
694 ✗ std::vector<FuelType> AirTerminalSingleDuctVAVReheat_Impl::coolingFuelTypes() const {
695 ✗ if (auto a_ = airLoopHVAC()) {
696 ✗ return a_->coolingFuelTypes();
697 ✗ }
698 ✗ return {};
699 }
700
701 ✗ std::vector<FuelType> AirTerminalSingleDuctVAVReheat_Impl::heatingFuelTypes() const {
702 ✗ std::set<FuelType> result;
703 ✗ for (auto ft : reheatCoil().heatingFuelTypes()) {
704 ✗ result.insert(ft);
705 ✗ }
706 ✗ if (auto a_ = airLoopHVAC()) {
707 ✗ for (auto ft : a_->heatingFuelTypes()) {
708 ✗ result.insert(ft);
709 ✗ }
710 ✗ }
711 ✗ return {result.begin(), result.end()};
712 ✗ }
713
714 ✗ std::vector<AppGFuelType> AirTerminalSingleDuctVAVReheat_Impl::appGHeatingFuelTypes() const {
715 ✗ std::set<AppGFuelType> result;
716 ✗ for (auto ft : reheatCoil().appGHeatingFuelTypes()) {
717 ✗ result.insert(ft);
718 ✗ }
719 ✗ if (auto a_ = airLoopHVAC()) {
720 ✗ for (auto ft : a_->appGHeatingFuelTypes()) {
721 ✗ result.insert(ft);
722 ✗ }
723 ✗ }
724 ✗ return {result.begin(), result.end()};
725 ✗ }
726
727 } // namespace detail
728
729 31 AirTerminalSingleDuctVAVReheat::AirTerminalSingleDuctVAVReheat(const Model& model, Schedule& availabilitySchedule, HVACComponent& coil)
730 31 : StraightComponent(AirTerminalSingleDuctVAVReheat::iddObjectType(), model) {
731
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 31 times.
✗ Branch 5 not taken.
31 OS_ASSERT(getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>());
732
733
1/1
✓ Branch 1 taken 31 times.
31 bool test = setAvailabilitySchedule(availabilitySchedule);
734
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
31 if (!test) {
735 ✗ remove();
736 ✗ LOG_AND_THROW("Unable to construct " << briefDescription() << ", because cannot set its " << "availability schedule to "
737 << availabilitySchedule.briefDescription() << ".");
738 }
739
740
1/1
✓ Branch 1 taken 31 times.
31 setReheatCoil(coil);
741
742
1/1
✓ Branch 1 taken 31 times.
31 autosizeMaximumAirFlowRate();
743
744
2/2
✓ Branch 1 taken 31 times.
✓ Branch 4 taken 31 times.
31 setZoneMinimumAirFlowInputMethod("Constant");
745
746
1/1
✓ Branch 1 taken 31 times.
31 setConstantMinimumAirFlowFraction(0.3);
747
748
1/1
✓ Branch 1 taken 31 times.
31 setFixedMinimumAirFlowRate(0.0);
749
750
1/1
✓ Branch 1 taken 31 times.
31 setMaximumFlowPerZoneFloorAreaDuringReheat(0.0);
751
752
1/1
✓ Branch 1 taken 31 times.
31 setMinimumHotWaterOrStreamFlowRate(0.0);
753
754
1/1
✓ Branch 1 taken 31 times.
31 setConvergenceTolerance(0.001);
755
756
2/2
✓ Branch 1 taken 31 times.
✓ Branch 4 taken 31 times.
31 setDamperHeatingAction("Normal");
757
758
1/1
✓ Branch 1 taken 31 times.
31 autosizeMaximumFlowPerZoneFloorAreaDuringReheat();
759
760
1/1
✓ Branch 1 taken 31 times.
31 autosizeMaximumFlowFractionDuringReheat();
761
762
1/1
✓ Branch 1 taken 31 times.
31 setMaximumReheatAirTemperature(35.0);
763
764
1/1
✓ Branch 1 taken 31 times.
31 autosizeMaximumHotWaterOrSteamFlowRate();
765
766
1/1
✓ Branch 1 taken 31 times.
31 setControlForOutdoorAir(false);
767 31 }
768
769 3 Schedule AirTerminalSingleDuctVAVReheat::availabilitySchedule() const {
770
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->availabilitySchedule();
771 }
772
773 32 bool AirTerminalSingleDuctVAVReheat::setAvailabilitySchedule(Schedule& schedule) {
774
1/1
✓ Branch 3 taken 32 times.
32 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->setAvailabilitySchedule(schedule);
775 }
776
777 301 AirTerminalSingleDuctVAVReheat::AirTerminalSingleDuctVAVReheat(std::shared_ptr<detail::AirTerminalSingleDuctVAVReheat_Impl> p)
778
1/1
✓ Branch 3 taken 301 times.
301 : StraightComponent(std::move(p)) {}
779
780 7874 IddObjectType AirTerminalSingleDuctVAVReheat::iddObjectType() {
781
1/1
✓ Branch 1 taken 7874 times.
7874 return {IddObjectType::OS_AirTerminal_SingleDuct_VAV_Reheat};
782 }
783
784 3 boost::optional<double> AirTerminalSingleDuctVAVReheat::maximumAirFlowRate() const {
785
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->maximumAirFlowRate();
786 }
787
788 22 bool AirTerminalSingleDuctVAVReheat::setMaximumAirFlowRate(double value) {
789
1/1
✓ Branch 3 taken 22 times.
22 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->setMaximumAirFlowRate(value);
790 }
791
792 31 void AirTerminalSingleDuctVAVReheat::autosizeMaximumAirFlowRate() {
793
1/1
✓ Branch 3 taken 31 times.
31 getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->autosizeMaximumAirFlowRate();
794 31 }
795
796 2 bool AirTerminalSingleDuctVAVReheat::isMaximumAirFlowRateAutosized() const {
797
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->isMaximumAirFlowRateAutosized();
798 }
799
800 3 std::string AirTerminalSingleDuctVAVReheat::zoneMinimumAirFlowInputMethod() {
801
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->zoneMinimumAirFlowInputMethod();
802 }
803
804 ✗ std::string AirTerminalSingleDuctVAVReheat::zoneMinimumAirFlowMethod() {
805 ✗ DEPRECATED_AT_MSG(3, 0, 1, "Use zoneMinimumAirFlowInputMethod instead.");
806 ✗ return zoneMinimumAirFlowInputMethod();
807 }
808
809 53 bool AirTerminalSingleDuctVAVReheat::setZoneMinimumAirFlowInputMethod(const std::string& value) {
810
1/1
✓ Branch 3 taken 53 times.
53 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->setZoneMinimumAirFlowInputMethod(value);
811 }
812
813 ✗ bool AirTerminalSingleDuctVAVReheat::setZoneMinimumAirFlowMethod(const std::string& value) {
814 ✗ DEPRECATED_AT_MSG(3, 0, 1, "Use setZoneMinimumAirFlowInputMethod instead.");
815 ✗ return setZoneMinimumAirFlowInputMethod(value);
816 }
817
818 3 boost::optional<double> AirTerminalSingleDuctVAVReheat::constantMinimumAirFlowFraction() const {
819
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->constantMinimumAirFlowFraction();
820 }
821
822 3 bool AirTerminalSingleDuctVAVReheat::isConstantMinimumAirFlowFractionAutosized() const {
823
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->isConstantMinimumAirFlowFractionAutosized();
824 }
825
826 32 bool AirTerminalSingleDuctVAVReheat::setConstantMinimumAirFlowFraction(double value) {
827
1/1
✓ Branch 3 taken 32 times.
32 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->setConstantMinimumAirFlowFraction(value);
828 }
829
830 ✗ void AirTerminalSingleDuctVAVReheat::autosizeConstantMinimumAirFlowFraction() {
831 ✗ getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->autosizeConstantMinimumAirFlowFraction();
832 ✗ }
833
834 3 boost::optional<double> AirTerminalSingleDuctVAVReheat::fixedMinimumAirFlowRate() const {
835
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->fixedMinimumAirFlowRate();
836 }
837
838 3 bool AirTerminalSingleDuctVAVReheat::isFixedMinimumAirFlowRateAutosized() const {
839
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->isFixedMinimumAirFlowRateAutosized();
840 }
841
842 53 bool AirTerminalSingleDuctVAVReheat::setFixedMinimumAirFlowRate(double value) {
843
1/1
✓ Branch 3 taken 53 times.
53 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->setFixedMinimumAirFlowRate(value);
844 }
845
846 ✗ void AirTerminalSingleDuctVAVReheat::autosizeFixedMinimumAirFlowRate() {
847 ✗ getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->autosizeFixedMinimumAirFlowRate();
848 ✗ }
849
850 3 boost::optional<Schedule> AirTerminalSingleDuctVAVReheat::minimumAirFlowFractionSchedule() const {
851
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->minimumAirFlowFractionSchedule();
852 }
853
854 1 bool AirTerminalSingleDuctVAVReheat::setMinimumAirFlowFractionSchedule(Schedule& schedule) {
855
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->setMinimumAirFlowFractionSchedule(schedule);
856 }
857
858 ✗ void AirTerminalSingleDuctVAVReheat::resetMinimumAirFlowFractionSchedule() {
859 ✗ getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->resetMinimumAirFlowFractionSchedule();
860 ✗ }
861
862 7 boost::optional<Schedule> AirTerminalSingleDuctVAVReheat::minimumAirFlowTurndownSchedule() const {
863
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->minimumAirFlowTurndownSchedule();
864 }
865
866 2 bool AirTerminalSingleDuctVAVReheat::setMinimumAirFlowTurndownSchedule(Schedule& schedule) {
867
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->setMinimumAirFlowTurndownSchedule(schedule);
868 }
869
870 1 void AirTerminalSingleDuctVAVReheat::resetMinimumAirFlowTurndownSchedule() {
871
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->resetMinimumAirFlowTurndownSchedule();
872 1 }
873
874 3 boost::optional<double> AirTerminalSingleDuctVAVReheat::maximumHotWaterOrSteamFlowRate() {
875
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->maximumHotWaterOrSteamFlowRate();
876 }
877
878 1 bool AirTerminalSingleDuctVAVReheat::setMaximumHotWaterOrSteamFlowRate(double value) {
879
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->setMaximumHotWaterOrSteamFlowRate(value);
880 }
881
882 31 void AirTerminalSingleDuctVAVReheat::autosizeMaximumHotWaterOrSteamFlowRate() {
883
1/1
✓ Branch 3 taken 31 times.
31 getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->autosizeMaximumHotWaterOrSteamFlowRate();
884 31 }
885
886 2 bool AirTerminalSingleDuctVAVReheat::isMaximumHotWaterOrSteamFlowRateAutosized() const {
887
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->isMaximumHotWaterOrSteamFlowRateAutosized();
888 }
889
890 3 double AirTerminalSingleDuctVAVReheat::minimumHotWaterOrSteamFlowRate() {
891
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->minimumHotWaterOrSteamFlowRate();
892 }
893
894 32 bool AirTerminalSingleDuctVAVReheat::setMinimumHotWaterOrStreamFlowRate(double value) {
895
1/1
✓ Branch 3 taken 32 times.
32 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->setMinimumHotWaterOrStreamFlowRate(value);
896 }
897
898 3 double AirTerminalSingleDuctVAVReheat::convergenceTolerance() {
899
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->convergenceTolerance();
900 }
901
902 32 bool AirTerminalSingleDuctVAVReheat::setConvergenceTolerance(double value) {
903
1/1
✓ Branch 3 taken 32 times.
32 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->setConvergenceTolerance(value);
904 }
905
906 3 std::string AirTerminalSingleDuctVAVReheat::damperHeatingAction() {
907
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->damperHeatingAction();
908 }
909
910 53 bool AirTerminalSingleDuctVAVReheat::setDamperHeatingAction(const std::string& value) {
911
1/1
✓ Branch 3 taken 53 times.
53 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->setDamperHeatingAction(value);
912 }
913
914 3 boost::optional<double> AirTerminalSingleDuctVAVReheat::maximumFlowPerZoneFloorAreaDuringReheat() {
915
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->maximumFlowPerZoneFloorAreaDuringReheat();
916 }
917
918 21 void AirTerminalSingleDuctVAVReheat::resetMaximumFlowPerZoneFloorAreaDuringReheat() {
919
1/1
✓ Branch 3 taken 21 times.
21 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->resetMaximumFlowPerZoneFloorAreaDuringReheat();
920 }
921
922 32 bool AirTerminalSingleDuctVAVReheat::setMaximumFlowPerZoneFloorAreaDuringReheat(double value) {
923
1/1
✓ Branch 3 taken 32 times.
32 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->setMaximumFlowPerZoneFloorAreaDuringReheat(value);
924 }
925
926 31 void AirTerminalSingleDuctVAVReheat::autosizeMaximumFlowPerZoneFloorAreaDuringReheat() {
927
1/1
✓ Branch 3 taken 31 times.
31 getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->autosizeMaximumFlowPerZoneFloorAreaDuringReheat();
928 31 }
929
930 2 bool AirTerminalSingleDuctVAVReheat::isMaximumFlowPerZoneFloorAreaDuringReheatAutosized() const {
931
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->isMaximumFlowPerZoneFloorAreaDuringReheatAutosized();
932 }
933
934 3 boost::optional<double> AirTerminalSingleDuctVAVReheat::maximumFlowFractionDuringReheat() {
935
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->maximumFlowFractionDuringReheat();
936 }
937
938 22 bool AirTerminalSingleDuctVAVReheat::setMaximumFlowFractionDuringReheat(double value) {
939
1/1
✓ Branch 3 taken 22 times.
22 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->setMaximumFlowFractionDuringReheat(value);
940 }
941
942 31 void AirTerminalSingleDuctVAVReheat::autosizeMaximumFlowFractionDuringReheat() {
943
1/1
✓ Branch 3 taken 31 times.
31 getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->autosizeMaximumFlowFractionDuringReheat();
944 31 }
945
946 2 bool AirTerminalSingleDuctVAVReheat::isMaximumFlowFractionDuringReheatAutosized() const {
947
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->isMaximumFlowFractionDuringReheatAutosized();
948 }
949
950 ✗ void AirTerminalSingleDuctVAVReheat::resetMaximumFlowFractionDuringReheat() {
951 ✗ getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->resetMaximumFlowFractionDuringReheat();
952 ✗ }
953
954 3 double AirTerminalSingleDuctVAVReheat::maximumReheatAirTemperature() {
955
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->maximumReheatAirTemperature();
956 }
957
958 32 bool AirTerminalSingleDuctVAVReheat::setMaximumReheatAirTemperature(double value) {
959
1/1
✓ Branch 3 taken 32 times.
32 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->setMaximumReheatAirTemperature(value);
960 }
961
962 242 HVACComponent AirTerminalSingleDuctVAVReheat::reheatCoil() const {
963
1/1
✓ Branch 3 taken 242 times.
242 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->reheatCoil();
964 }
965
966 35 bool AirTerminalSingleDuctVAVReheat::setReheatCoil(HVACComponent& coil) {
967
1/1
✓ Branch 3 taken 35 times.
35 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->setReheatCoil(coil);
968 }
969
970 3 bool AirTerminalSingleDuctVAVReheat::controlForOutdoorAir() const {
971
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->controlForOutdoorAir();
972 }
973
974 32 bool AirTerminalSingleDuctVAVReheat::setControlForOutdoorAir(bool controlForOutdoorAir) {
975
1/1
✓ Branch 3 taken 32 times.
32 return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->setControlForOutdoorAir(controlForOutdoorAir);
976 }
977
978 ✗ AirflowNetworkEquivalentDuct AirTerminalSingleDuctVAVReheat::getAirflowNetworkEquivalentDuct(double length, double diameter) {
979 ✗ return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->getAirflowNetworkEquivalentDuct(length, diameter);
980 }
981
982 ✗ boost::optional<AirflowNetworkEquivalentDuct> AirTerminalSingleDuctVAVReheat::airflowNetworkEquivalentDuct() const {
983 ✗ return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->airflowNetworkEquivalentDuct();
984 }
985
986 ✗ boost::optional<double> AirTerminalSingleDuctVAVReheat::autosizedMaximumAirFlowRate() const {
987 ✗ return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->autosizedMaximumAirFlowRate();
988 }
989
990 ✗ boost::optional<double> AirTerminalSingleDuctVAVReheat::autosizedConstantMinimumAirFlowFraction() const {
991 ✗ return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->autosizedConstantMinimumAirFlowFraction();
992 }
993
994 ✗ boost::optional<double> AirTerminalSingleDuctVAVReheat::autosizedFixedMinimumAirFlowRate() const {
995 ✗ return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->autosizedFixedMinimumAirFlowRate();
996 }
997
998 ✗ boost::optional<double> AirTerminalSingleDuctVAVReheat::autosizedMaximumHotWaterOrSteamFlowRate() const {
999 ✗ return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->autosizedMaximumHotWaterOrSteamFlowRate();
1000 }
1001
1002 ✗ boost::optional<double> AirTerminalSingleDuctVAVReheat::autosizedMaximumFlowPerZoneFloorAreaDuringReheat() const {
1003 ✗ return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->autosizedMaximumFlowPerZoneFloorAreaDuringReheat();
1004 }
1005
1006 ✗ boost::optional<double> AirTerminalSingleDuctVAVReheat::autosizedMaximumFlowFractionDuringReheat() const {
1007 ✗ return getImpl<detail::AirTerminalSingleDuctVAVReheat_Impl>()->autosizedMaximumFlowFractionDuringReheat();
1008 }
1009
1010 } // namespace model
1011
1012 } // namespace openstudio
1013