GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 95.7% 111 / 0 / 116
Functions: 100.0% 1 / 0 / 1
Branches: 78.2% 229 / 0 / 293

src/energyplus/ForwardTranslator/ForwardTranslateAirTerminalSingleDuctSeriesPIUReheat.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 "../ForwardTranslator.hpp"
7 #include "../../model/Model.hpp"
8 #include "../../model/AirTerminalSingleDuctSeriesPIUReheat.hpp"
9 #include "../../model/AirTerminalSingleDuctSeriesPIUReheat_Impl.hpp"
10 #include "../../model/HVACComponent.hpp"
11 #include "../../model/Schedule.hpp"
12 #include "../../model/Schedule_Impl.hpp"
13 #include "../../model/ThermalZone.hpp"
14 #include "../../model/ThermalZone_Impl.hpp"
15 #include "../../model/Node.hpp"
16 #include "../../model/Node_Impl.hpp"
17 #include "../../model/CoilHeatingWater.hpp"
18 #include "../../model/CoilHeatingWater_Impl.hpp"
19 #include "../../utilities/idf/IdfExtensibleGroup.hpp"
20 #include <utilities/idd/AirTerminal_SingleDuct_SeriesPIU_Reheat_FieldEnums.hxx>
21 #include <utilities/idd/ZoneHVAC_AirDistributionUnit_FieldEnums.hxx>
22 #include <utilities/idd/AirLoopHVAC_ZoneMixer_FieldEnums.hxx>
23 #include <utilities/idd/Coil_Heating_Fuel_FieldEnums.hxx>
24 #include <utilities/idd/Coil_Heating_Electric_FieldEnums.hxx>
25 #include <utilities/idd/Coil_Heating_Water_FieldEnums.hxx>
26 #include <utilities/idd/Fan_ConstantVolume_FieldEnums.hxx>
27 #include <utilities/idd/Fan_SystemModel_FieldEnums.hxx>
28 #include "../../utilities/idd/IddEnums.hpp"
29 #include <utilities/idd/IddEnums.hxx>
30 #include <utilities/idd/IddFactory.hxx>
31
32 using namespace openstudio::model;
33
34 namespace openstudio {
35
36 namespace energyplus {
37
38 5 boost::optional<IdfObject> ForwardTranslator::translateAirTerminalSingleDuctSeriesPIUReheat(AirTerminalSingleDuctSeriesPIUReheat& modelObject) {
39 5 OptionalModelObject temp;
40 5 OptionalString optS;
41 5 boost::optional<std::string> s;
42 5 boost::optional<double> value;
43
44
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 IdfObject _airDistributionUnit(openstudio::IddObjectType::ZoneHVAC_AirDistributionUnit);
45
4/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
5 _airDistributionUnit.setName(modelObject.name().get() + " Air Distribution Unit");
46
1/1
✓ Branch 1 taken 5 times.
5 m_idfObjects.push_back(_airDistributionUnit);
47
48
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 IdfObject idfObject(openstudio::IddObjectType::AirTerminal_SingleDuct_SeriesPIU_Reheat);
49
3/3
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
5 idfObject.setName(modelObject.name().get());
50
1/1
✓ Branch 1 taken 5 times.
5 m_idfObjects.push_back(idfObject);
51
52
1/1
✓ Branch 1 taken 5 times.
5 HVACComponent coil = modelObject.reheatCoil();
53
54
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<IdfObject> _reheatCoil = translateAndMapModelObject(coil);
55
56
1/1
✓ Branch 1 taken 5 times.
5 HVACComponent fan = modelObject.fan();
57
58
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<IdfObject> _fan = translateAndMapModelObject(fan);
59
60
3/3
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
5 std::string fanOutletNodeName = modelObject.name().get() + " Fan Outlet";
61
3/3
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
5 std::string mixerOutletNodeName = modelObject.name().get() + " Mixer Outlet";
62
63 5 boost::optional<std::string> inletNodeName;
64 5 boost::optional<std::string> secondaryAirInletNodeName;
65 5 boost::optional<std::string> outletNodeName;
66
67
2/3
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
10 if (boost::optional<ModelObject> inletModelObject = modelObject.inletModelObject()) {
68
3/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 6 taken 5 times.
✗ Branch 7 not taken.
10 if (boost::optional<Node> inletNode = inletModelObject->optionalCast<Node>()) {
69
4/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
5 inletNodeName = inletNode->name().get();
70 5 }
71 5 }
72
73
2/3
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
10 if (boost::optional<ModelObject> outletModelObject = modelObject.outletModelObject()) {
74
3/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 6 taken 5 times.
✗ Branch 7 not taken.
10 if (boost::optional<Node> outletNode = outletModelObject->optionalCast<Node>()) {
75
4/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
5 outletNodeName = outletNode->name().get();
76 5 }
77 5 }
78
79
2/3
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
10 if (boost::optional<Node> secondaryInletNode = modelObject.secondaryAirInletNode()) {
80
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (secondaryInletNode) {
81
4/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
5 secondaryAirInletNodeName = secondaryInletNode->name().get();
82 }
83 5 }
84
85
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (outletNodeName) {
86
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 idfObject.setString(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::OutletNodeName, outletNodeName.get());
87 }
88
89
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (inletNodeName) {
90
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 idfObject.setString(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::SupplyAirInletNodeName, inletNodeName.get());
91 }
92
93
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (secondaryAirInletNodeName) {
94
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 idfObject.setString(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::SecondaryAirInletNodeName, secondaryAirInletNodeName.get());
95 }
96
97 // Populate fields for AirDistributionUnit
98
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (outletNodeName) {
99
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 _airDistributionUnit.setString(ZoneHVAC_AirDistributionUnitFields::AirDistributionUnitOutletNodeName, outletNodeName.get());
100 }
101
3/3
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
5 _airDistributionUnit.setString(ZoneHVAC_AirDistributionUnitFields::AirTerminalObjectType, idfObject.iddObject().name());
102
3/3
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
5 _airDistributionUnit.setString(ZoneHVAC_AirDistributionUnitFields::AirTerminalName, idfObject.name().get());
103
104 // MixerName
105
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 IdfObject _mixer(IddObjectType::AirLoopHVAC_ZoneMixer);
106
4/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
5 _mixer.setName(modelObject.name().get() + " Mixer");
107
1/1
✓ Branch 1 taken 5 times.
5 m_idfObjects.push_back(_mixer);
108
1/1
✓ Branch 1 taken 5 times.
5 _mixer.clearExtensibleGroups();
109
110
1/1
✓ Branch 1 taken 5 times.
5 _mixer.setString(AirLoopHVAC_ZoneMixerFields::OutletNodeName, mixerOutletNodeName);
111
112
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (secondaryAirInletNodeName) {
113
1/1
✓ Branch 1 taken 5 times.
5 IdfExtensibleGroup eg = _mixer.pushExtensibleGroup();
114
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 eg.setString(AirLoopHVAC_ZoneMixerExtensibleFields::InletNodeName, secondaryAirInletNodeName.get());
115 5 }
116
117
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (inletNodeName) {
118
1/1
✓ Branch 1 taken 5 times.
5 IdfExtensibleGroup eg = _mixer.pushExtensibleGroup();
119
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 eg.setString(AirLoopHVAC_ZoneMixerExtensibleFields::InletNodeName, inletNodeName.get());
120 5 }
121
122
3/3
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
5 idfObject.setString(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::ZoneMixerName, _mixer.name().get());
123
124 // FanName
125
3/12
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 7 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✓ Branch 13 taken 5 times.
✓ Branch 15 taken 5 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
10 if (_fan || _fan->name()) {
126
4/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
5 idfObject.setString(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::FanName, _fan->name().get());
127
128
6/6
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
✓ Branch 14 taken 4 times.
✓ Branch 15 taken 1 time.
5 if (_fan->iddObject().type() == IddObjectType::Fan_ConstantVolume) {
129
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
4 _fan->setString(Fan_ConstantVolumeFields::AirInletNodeName, mixerOutletNodeName);
130
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
4 _fan->setString(Fan_ConstantVolumeFields::AirOutletNodeName, fanOutletNodeName);
131
5/6
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 14 taken 1 time.
✗ Branch 15 not taken.
1 } else if (_fan->iddObject().type() == IddObjectType::Fan_SystemModel) {
132
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 _fan->setString(Fan_SystemModelFields::AirInletNodeName, mixerOutletNodeName);
133
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 _fan->setString(Fan_SystemModelFields::AirOutletNodeName, fanOutletNodeName);
134 }
135 }
136
137 // ReheatCoilName
138
6/12
✓ Branch 1 taken 5 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 5 times.
✗ Branch 13 not taken.
✓ Branch 15 taken 5 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
15 if (_reheatCoil && _reheatCoil->name()) {
139 // Reheat Coil Name
140
4/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
5 idfObject.setString(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::ReheatCoilName, _reheatCoil->name().get());
141
142 // Reheat Coil Type
143
4/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
5 idfObject.setString(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::ReheatCoilObjectType, _reheatCoil->iddObject().name());
144
145
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (outletNodeName) {
146
5/6
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
✗ Branch 14 not taken.
✓ Branch 15 taken 5 times.
5 if (_reheatCoil->iddObject().type() == IddObjectType::Coil_Heating_Fuel) {
147 ✗ _reheatCoil->setString(Coil_Heating_FuelFields::AirInletNodeName, fanOutletNodeName);
148 ✗ _reheatCoil->setString(Coil_Heating_FuelFields::AirOutletNodeName, outletNodeName.get());
149
5/6
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
✓ Branch 14 taken 5 times.
✗ Branch 15 not taken.
5 } else if (_reheatCoil->iddObject().type() == IddObjectType::Coil_Heating_Electric) {
150
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 _reheatCoil->setString(Coil_Heating_ElectricFields::AirInletNodeName, fanOutletNodeName);
151
3/3
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
5 _reheatCoil->setString(Coil_Heating_ElectricFields::AirOutletNodeName, outletNodeName.get());
152 ✗ } else if (_reheatCoil->iddObject().type() == IddObjectType::Coil_Heating_Water) {
153 ✗ _reheatCoil->setString(Coil_Heating_WaterFields::AirInletNodeName, fanOutletNodeName);
154 ✗ _reheatCoil->setString(Coil_Heating_WaterFields::AirOutletNodeName, outletNodeName.get());
155 }
156 }
157 }
158
159 // AvailabilityScheduleName
160
3/3
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 4 times.
10 if (boost::optional<Schedule> availabilitySchedule = modelObject.availabilitySchedule()) {
161
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 boost::optional<IdfObject> _availabilitySchedule = translateAndMapModelObject(availabilitySchedule.get());
162
163
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 (_availabilitySchedule && _availabilitySchedule->name()) {
164
4/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
1 idfObject.setString(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::AvailabilityScheduleName, _availabilitySchedule->name().get());
165 }
166 6 }
167
168 // MaximumAirFlowRate
169
3/3
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 1 time.
5 if (modelObject.isMaximumAirFlowRateAutosized()) {
170
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 idfObject.setString(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumAirFlowRate, "Autosize");
171
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 } else if ((value = modelObject.maximumAirFlowRate())) {
172
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 idfObject.setDouble(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumAirFlowRate, value.get());
173 }
174
175 // MaximumPrimaryAirFlowRate
176
3/3
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 1 time.
5 if (modelObject.isMaximumPrimaryAirFlowRateAutosized()) {
177
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 idfObject.setString(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumPrimaryAirFlowRate, "Autosize");
178
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 } else if ((value = modelObject.maximumPrimaryAirFlowRate())) {
179
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 idfObject.setDouble(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumPrimaryAirFlowRate, value.get());
180 }
181
182 // MinimumPrimaryAirFlowFraction
183
3/3
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 1 time.
5 if (modelObject.isMinimumPrimaryAirFlowFractionAutosized()) {
184
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 idfObject.setString(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MinimumPrimaryAirFlowFraction, "Autosize");
185
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 } else if ((value = modelObject.minimumPrimaryAirFlowFraction())) {
186
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 idfObject.setDouble(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MinimumPrimaryAirFlowFraction, value.get());
187 }
188
189 // MaximumHotWaterorSteamFlowRate
190
3/3
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 1 time.
5 if (modelObject.isMaximumHotWaterorSteamFlowRateAutosized()) {
191
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 idfObject.setString(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumHotWaterorSteamFlowRate, "Autosize");
192
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 } else if ((value = modelObject.maximumHotWaterorSteamFlowRate())) {
193
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 idfObject.setDouble(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MaximumHotWaterorSteamFlowRate, value.get());
194 }
195
196 // MinimumHotWaterorSteamFlowRate
197
3/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
10 if ((value = modelObject.minimumHotWaterorSteamFlowRate())) {
198
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 idfObject.setDouble(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MinimumHotWaterorSteamFlowRate, value.get());
199 }
200
201 // ConvergenceTolerance
202
3/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
10 if ((value = modelObject.convergenceTolerance())) {
203
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 idfObject.setDouble(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::ConvergenceTolerance, value.get());
204 }
205
206 // FanControlType
207
3/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 8 taken 5 times.
✗ Branch 9 not taken.
10 if ((s = modelObject.fanControlType())) {
208
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 idfObject.setString(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::FanControlType, s.get());
209 }
210
211 // MinimumFanTurnDownRatio
212
3/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
10 if ((value = modelObject.minimumFanTurnDownRatio())) {
213
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 idfObject.setDouble(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::MinimumFanTurnDownRatio, value.get());
214 }
215
216 // HeatingControlType
217
3/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 8 taken 5 times.
✗ Branch 9 not taken.
10 if ((s = modelObject.heatingControlType())) {
218
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 idfObject.setString(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::HeatingControlType, s.get());
219 }
220
221 // DesignHeatingDischargeAirTemperature
222
3/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
10 if ((value = modelObject.designHeatingDischargeAirTemperature())) {
223
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 idfObject.setDouble(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::DesignHeatingDischargeAirTemperature, value.get());
224 }
225
226 // HighLimitHeatingDischargeAirTemperature
227
3/4
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
10 if ((value = modelObject.highLimitHeatingDischargeAirTemperature())) {
228
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 idfObject.setDouble(AirTerminal_SingleDuct_SeriesPIU_ReheatFields::HighLimitHeatingDischargeAirTemperature, value.get());
229 }
230
231
1/1
✓ Branch 1 taken 5 times.
10 return _airDistributionUnit;
232 5 }
233
234 } // namespace energyplus
235
236 } // namespace openstudio
237