GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 60.4% 84 / 0 / 139
Functions: 100.0% 1 / 0 / 1
Branches: 47.2% 145 / 0 / 307

src/energyplus/ForwardTranslator/ForwardTranslateZoneHVACFourPipeFanCoil.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/Schedule.hpp"
9 #include "../../model/Schedule_Impl.hpp"
10 #include "../../model/Node.hpp"
11 #include "../../model/Node_Impl.hpp"
12 #include "../../model/ZoneHVACFourPipeFanCoil.hpp"
13 #include "../../model/ZoneHVACFourPipeFanCoil_Impl.hpp"
14 #include "../../model/ThermalZone.hpp"
15 #include "../../model/ThermalZone_Impl.hpp"
16 #include "../../model/CoilCoolingWater.hpp"
17 #include "../../model/CoilCoolingWater_Impl.hpp"
18 #include "../../model/CoilHeatingWater.hpp"
19 #include "../../model/CoilHeatingWater_Impl.hpp"
20 #include <utilities/idd/ZoneHVAC_FourPipeFanCoil_FieldEnums.hxx>
21 #include <utilities/idd/Fan_ConstantVolume_FieldEnums.hxx>
22 #include <utilities/idd/Fan_OnOff_FieldEnums.hxx>
23 #include <utilities/idd/Fan_VariableVolume_FieldEnums.hxx>
24 #include <utilities/idd/Fan_SystemModel_FieldEnums.hxx>
25 #include <utilities/idd/Coil_Cooling_Water_FieldEnums.hxx>
26 #include <utilities/idd/Coil_Heating_Water_FieldEnums.hxx>
27 #include <utilities/idd/Coil_Heating_Electric_FieldEnums.hxx>
28 #include <utilities/idd/OutdoorAir_Mixer_FieldEnums.hxx>
29 #include "../../utilities/idd/IddEnums.hpp"
30 #include <utilities/idd/IddEnums.hxx>
31 #include <utilities/idd/IddFactory.hxx>
32
33 using namespace openstudio::model;
34
35 namespace openstudio {
36
37 namespace energyplus {
38
39 1 boost::optional<IdfObject> ForwardTranslator::translateZoneHVACFourPipeFanCoil(ZoneHVACFourPipeFanCoil& modelObject) {
40 1 boost::optional<std::string> s;
41 1 boost::optional<double> value;
42
43
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 IdfObject idfObject(IddObjectType::ZoneHVAC_FourPipeFanCoil);
44
45 // Get model object name and define node names for future use
46 // Model Name
47
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
1 std::string baseName = modelObject.name().get();
48 // Node Names
49
1/1
✓ Branch 1 taken 1 time.
1 std::string mixedAirNodeName = baseName + " Mixed Air Node";
50
1/1
✓ Branch 1 taken 1 time.
1 std::string fanOutletNodeName = baseName + " Fan Outlet Node";
51
1/1
✓ Branch 1 taken 1 time.
1 std::string coolingCoilOutletNodeName = baseName + " Cooling Coil Outlet Node";
52
1/1
✓ Branch 1 taken 1 time.
1 std::string reliefAirNodeName = baseName + " Relief Air Node";
53
1/1
✓ Branch 1 taken 1 time.
1 std::string oaNodeName = baseName + " OA Node";
54
55
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<AirLoopHVAC> t_airLoopHVAC = modelObject.airLoopHVAC();
56
57 // AirInletNodeName
58 1 boost::optional<std::string> airInletNodeName;
59
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<Node> node = modelObject.inletNode()) {
60
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
2 if ((s = node->name())) {
61
1/1
✓ Branch 1 taken 1 time.
1 airInletNodeName = s;
62
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 idfObject.setString(ZoneHVAC_FourPipeFanCoilFields::AirInletNodeName, s.get());
63 }
64 1 }
65 // AirOutletNodeName
66 1 boost::optional<std::string> airOutletNodeName;
67
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<Node> node = modelObject.outletNode()) {
68
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
2 if ((s = node->name())) {
69
1/1
✓ Branch 1 taken 1 time.
1 airOutletNodeName = s;
70
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 idfObject.setString(ZoneHVAC_FourPipeFanCoilFields::AirOutletNodeName, s.get());
71 }
72 1 }
73
74 // hook up required objects
75 try {
76 // AvailabilityScheduleName
77
1/1
✓ Branch 1 taken 1 time.
1 Schedule availabilitySchedule = modelObject.availabilitySchedule();
78
1/1
✓ Branch 1 taken 1 time.
1 translateAndMapModelObject(availabilitySchedule);
79
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
1 idfObject.setString(ZoneHVAC_FourPipeFanCoilFields::AvailabilityScheduleName, availabilitySchedule.name().get());
80
81 // Supply Air Fan
82
1/1
✓ Branch 1 taken 1 time.
1 HVACComponent supplyAirFan = modelObject.supplyAirFan();
83
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<IdfObject> _supplyAirFan = translateAndMapModelObject(supplyAirFan)) {
84 // SupplyAirFanObjectType
85
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(ZoneHVAC_FourPipeFanCoilFields::SupplyAirFanObjectType, _supplyAirFan->iddObject().name());
86
87 // SupplyAirFanName
88
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(ZoneHVAC_FourPipeFanCoilFields::SupplyAirFanName, _supplyAirFan->name().get());
89 // Supply Air Fan Inlet and Outlet Nodes
90
3/6
✓ 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.
2 if (airOutletNodeName && airInletNodeName) {
91 // If there is an AirLoopHVAC then we provide no mixer
92 1 std::string fanInletNodeName;
93
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (t_airLoopHVAC) {
94
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 fanInletNodeName = airInletNodeName.get();
95 } else {
96 ✗ fanInletNodeName = mixedAirNodeName;
97 }
98
99
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 if (_supplyAirFan->iddObject().type() == IddObjectType::Fan_ConstantVolume) {
100
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 _supplyAirFan->setString(Fan_ConstantVolumeFields::AirInletNodeName, fanInletNodeName);
101
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 _supplyAirFan->setString(Fan_ConstantVolumeFields::AirOutletNodeName, fanOutletNodeName);
102 ✗ } else if (_supplyAirFan->iddObject().type() == IddObjectType::Fan_OnOff) {
103
104 ✗ _supplyAirFan->setString(Fan_OnOffFields::AirInletNodeName, fanInletNodeName);
105 ✗ _supplyAirFan->setString(Fan_OnOffFields::AirOutletNodeName, fanOutletNodeName);
106 ✗ } else if (_supplyAirFan->iddObject().type() == IddObjectType::Fan_VariableVolume) {
107 ✗ _supplyAirFan->setString(Fan_VariableVolumeFields::AirInletNodeName, fanInletNodeName);
108 ✗ _supplyAirFan->setString(Fan_VariableVolumeFields::AirOutletNodeName, fanOutletNodeName);
109 ✗ } else if (_supplyAirFan->iddObject().type() == IddObjectType::Fan_SystemModel) {
110 ✗ _supplyAirFan->setString(Fan_SystemModelFields::AirInletNodeName, fanInletNodeName);
111 ✗ _supplyAirFan->setString(Fan_SystemModelFields::AirOutletNodeName, fanOutletNodeName);
112 }
113 1 }
114 1 }
115
116 // Cooling Coil
117
1/1
✓ Branch 1 taken 1 time.
1 HVACComponent coolingCoil = modelObject.coolingCoil();
118
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<IdfObject> _coolingCoil = translateAndMapModelObject(coolingCoil)) {
119 // CoolingCoilObjectType
120
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(ZoneHVAC_FourPipeFanCoilFields::CoolingCoilObjectType, _coolingCoil->iddObject().name());
121 // CoolingCoilName
122
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(ZoneHVAC_FourPipeFanCoilFields::CoolingCoilName, _coolingCoil->name().get());
123 // Cooling Coil Inlet and Outlet Nodes
124
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 if (_coolingCoil->iddObject().type() == IddObjectType::Coil_Cooling_Water) {
125
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 _coolingCoil->setString(Coil_Cooling_WaterFields::AirInletNodeName, fanOutletNodeName);
126
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 _coolingCoil->setString(Coil_Cooling_WaterFields::AirOutletNodeName, coolingCoilOutletNodeName);
127 }
128 1 }
129
130 // Heating Coil
131
1/1
✓ Branch 1 taken 1 time.
1 HVACComponent heatingCoil = modelObject.heatingCoil();
132
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<IdfObject> _heatingCoil = translateAndMapModelObject(heatingCoil)) {
133 // HeatingCoilObjectType
134
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(ZoneHVAC_FourPipeFanCoilFields::HeatingCoilObjectType, _heatingCoil->iddObject().name());
135 // HeatingCoilName
136
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(ZoneHVAC_FourPipeFanCoilFields::HeatingCoilName, _heatingCoil->name().get());
137 // Heating Coil Inlet and Outlet Nodes
138
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 if (_heatingCoil->iddObject().type() == IddObjectType::Coil_Heating_Water) {
139
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 _heatingCoil->setString(Coil_Heating_WaterFields::AirInletNodeName, coolingCoilOutletNodeName);
140
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
1 _heatingCoil->setString(Coil_Heating_WaterFields::AirOutletNodeName, airOutletNodeName.get());
141 ✗ } else if (_heatingCoil->iddObject().type() == IddObjectType::Coil_Heating_Electric) {
142 ✗ _heatingCoil->setString(Coil_Heating_ElectricFields::AirInletNodeName, coolingCoilOutletNodeName);
143 ✗ _heatingCoil->setString(Coil_Heating_ElectricFields::AirOutletNodeName, airOutletNodeName.get());
144 }
145 1 }
146
0/2
✗ Branch 8 not taken.
✗ Branch 9 not taken.
1 } catch (std::exception& e) {
147 ✗ LOG(Error, "Could not translate " << modelObject.briefDescription() << ", because " << e.what() << ".");
148 ✗ return boost::none;
149 ✗ }
150
151
1/1
✓ Branch 1 taken 1 time.
1 m_idfObjects.push_back(idfObject);
152
153 // Name
154
1/1
✓ Branch 1 taken 1 time.
1 idfObject.setName(baseName);
155
156 // CapacityControlMethod
157
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 idfObject.setString(ZoneHVAC_FourPipeFanCoilFields::CapacityControlMethod, modelObject.capacityControlMethod());
158
159 // MaximumSupplyAirFlowRate
160
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
1 if (modelObject.isMaximumSupplyAirFlowRateAutosized()) {
161
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 idfObject.setString(ZoneHVAC_FourPipeFanCoilFields::MaximumSupplyAirFlowRate, "Autosize");
162 ✗ } else if ((value = modelObject.maximumSupplyAirFlowRate())) {
163 ✗ idfObject.setDouble(ZoneHVAC_FourPipeFanCoilFields::MaximumSupplyAirFlowRate, value.get());
164 }
165
166 // LowSpeedSupplyAirFlowRatio
167
2/3
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
1 if (!modelObject.isLowSpeedSupplyAirFlowRatioDefaulted()) {
168 ✗ idfObject.setDouble(ZoneHVAC_FourPipeFanCoilFields::LowSpeedSupplyAirFlowRatio, modelObject.lowSpeedSupplyAirFlowRatio());
169 }
170
171 // MediumSpeedSupplyAirFlowRatio
172
2/3
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
1 if (!(modelObject.isMediumSpeedSupplyAirFlowRatioDefaulted())) {
173 ✗ idfObject.setDouble(ZoneHVAC_FourPipeFanCoilFields::MediumSpeedSupplyAirFlowRatio, modelObject.mediumSpeedSupplyAirFlowRatio());
174 }
175
176 // MaximumOutdoorAirFlowRate
177
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
1 if (modelObject.isMaximumOutdoorAirFlowRateAutosized()) {
178
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 idfObject.setString(ZoneHVAC_FourPipeFanCoilFields::MaximumOutdoorAirFlowRate, "Autosize");
179 ✗ } else if ((value = modelObject.maximumOutdoorAirFlowRate())) {
180 ✗ idfObject.setDouble(ZoneHVAC_FourPipeFanCoilFields::MaximumOutdoorAirFlowRate, value.get());
181 }
182
183 // OutdoorAirScheduleName
184
2/3
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
2 if (boost::optional<Schedule> schedule = modelObject.outdoorAirSchedule()) {
185 ✗ if (boost::optional<IdfObject> _schedule = translateAndMapModelObject(schedule.get())) {
186 ✗ idfObject.setString(ZoneHVAC_FourPipeFanCoilFields::OutdoorAirScheduleName, _schedule->name().get());
187 ✗ }
188 1 }
189
190
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
1 if (!t_airLoopHVAC) {
191 // OutdoorAirMixerObjectType
192 ✗ idfObject.setString(ZoneHVAC_FourPipeFanCoilFields::OutdoorAirMixerObjectType, modelObject.outdoorAirMixerObjectType());
193
194 // OutdoorAirMixerName
195 ✗ std::string oaMixerName = modelObject.name().get() + " OA Mixer";
196 ✗ idfObject.setString(ZoneHVAC_FourPipeFanCoilFields::OutdoorAirMixerName, oaMixerName);
197
198 // Create Outdoor Air Mixer
199 ✗ IdfObject _outdoorAirMixer(IddObjectType::OutdoorAir_Mixer);
200 ✗ _outdoorAirMixer.setName(oaMixerName);
201 ✗ m_idfObjects.push_back(_outdoorAirMixer);
202
203 ✗ _outdoorAirMixer.setString(OutdoorAir_MixerFields::MixedAirNodeName, mixedAirNodeName);
204 ✗ _outdoorAirMixer.setString(OutdoorAir_MixerFields::OutdoorAirStreamNodeName, oaNodeName);
205 ✗ _outdoorAirMixer.setString(OutdoorAir_MixerFields::ReliefAirStreamNodeName, reliefAirNodeName);
206 ✗ if (airInletNodeName) {
207 ✗ _outdoorAirMixer.setString(OutdoorAir_MixerFields::ReturnAirStreamNodeName, airInletNodeName.get());
208 }
209
210 // Create Outdoor Air Node List
211 ✗ IdfObject _oaNodeList(openstudio::IddObjectType::OutdoorAir_NodeList);
212 ✗ _oaNodeList.setString(0, oaNodeName);
213 ✗ m_idfObjects.push_back(_oaNodeList);
214 ✗ }
215
216 // MaximumColdWaterFlowRate
217
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
1 if (modelObject.isMaximumColdWaterFlowRateAutosized()) {
218
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 idfObject.setString(ZoneHVAC_FourPipeFanCoilFields::MaximumColdWaterFlowRate, "Autosize");
219 ✗ } else if ((value = modelObject.maximumColdWaterFlowRate())) {
220 ✗ idfObject.setDouble(ZoneHVAC_FourPipeFanCoilFields::MaximumColdWaterFlowRate, value.get());
221 }
222
223 // MinimumColdWaterFlowRate
224
2/3
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
1 if (!modelObject.isMinimumColdWaterFlowRateDefaulted()) {
225 ✗ idfObject.setDouble(ZoneHVAC_FourPipeFanCoilFields::MinimumColdWaterFlowRate, modelObject.minimumColdWaterFlowRate());
226 }
227
228 // CoolingConvergenceTolerance
229
2/3
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
1 if (!modelObject.isCoolingConvergenceToleranceDefaulted()) {
230 ✗ idfObject.setDouble(ZoneHVAC_FourPipeFanCoilFields::CoolingConvergenceTolerance, modelObject.coolingConvergenceTolerance());
231 }
232
233 // MaximumHotWaterFlowRate
234
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
1 if (modelObject.isMaximumHotWaterFlowRateAutosized()) {
235
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 idfObject.setString(ZoneHVAC_FourPipeFanCoilFields::MaximumHotWaterFlowRate, "Autosize");
236 ✗ } else if ((value = modelObject.maximumHotWaterFlowRate())) {
237 ✗ idfObject.setDouble(ZoneHVAC_FourPipeFanCoilFields::MaximumHotWaterFlowRate, value.get());
238 }
239
240 // MinimumHotWaterFlowRate
241
2/3
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
1 if (!modelObject.isMinimumHotWaterFlowRateDefaulted()) {
242 ✗ idfObject.setDouble(ZoneHVAC_FourPipeFanCoilFields::MinimumHotWaterFlowRate, modelObject.minimumHotWaterFlowRate());
243 }
244
245 // HeatingConvergenceTolerance
246
2/3
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
1 if (!modelObject.isHeatingConvergenceToleranceDefaulted()) {
247 ✗ idfObject.setDouble(ZoneHVAC_FourPipeFanCoilFields::HeatingConvergenceTolerance, modelObject.heatingConvergenceTolerance());
248 }
249
250 // SupplyAirFanOperatingModeScheduleName
251
2/3
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
2 if (auto schedule = modelObject.supplyAirFanOperatingModeSchedule()) {
252 ✗ if (auto _schedule = translateAndMapModelObject(schedule.get())) {
253 ✗ idfObject.setString(ZoneHVAC_FourPipeFanCoilFields::SupplyAirFanOperatingModeScheduleName, _schedule->name().get());
254 ✗ }
255 1 }
256
257 // MinimumSupplyAirTemperatureInCoolingMode
258
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
1 if (modelObject.isMinimumSupplyAirTemperatureInCoolingModeAutosized()) {
259
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 idfObject.setString(ZoneHVAC_FourPipeFanCoilFields::MinimumSupplyAirTemperatureinCoolingMode, "Autosize");
260 ✗ } else if ((value = modelObject.minimumSupplyAirTemperatureInCoolingMode())) {
261 ✗ idfObject.setDouble(ZoneHVAC_FourPipeFanCoilFields::MinimumSupplyAirTemperatureinCoolingMode, value.get());
262 }
263
264 // MaximumSupplyAirTemperatureInHeatingMode
265
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
1 if (modelObject.isMaximumSupplyAirTemperatureInHeatingModeAutosized()) {
266
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 idfObject.setString(ZoneHVAC_FourPipeFanCoilFields::MaximumSupplyAirTemperatureinHeatingMode, "Autosize");
267 ✗ } else if ((value = modelObject.maximumSupplyAirTemperatureInHeatingMode())) {
268 ✗ idfObject.setDouble(ZoneHVAC_FourPipeFanCoilFields::MaximumSupplyAirTemperatureinHeatingMode, value.get());
269 }
270
271
1/1
✓ Branch 1 taken 1 time.
1 return idfObject;
272 1 }
273
274 } // namespace energyplus
275
276 } // namespace openstudio
277