GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 86.2% 138 / 0 / 160
Functions: 100.0% 1 / 0 / 1
Branches: 71.4% 230 / 0 / 322

src/energyplus/ForwardTranslator/ForwardTranslateZoneHVACLowTempRadiantConstFlow.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/ModelObject.hpp"
11 #include "../../model/ModelObject_Impl.hpp"
12 #include "../../model/Node.hpp"
13 #include "../../model/Node_Impl.hpp"
14 #include "../../model/ThermalZone.hpp"
15 #include "../../model/ThermalZone_Impl.hpp"
16 #include "../../model/Surface.hpp"
17 #include "../../model/Surface_Impl.hpp"
18 #include "../../model/Space.hpp"
19 #include "../../model/Space_Impl.hpp"
20 #include "../../model/ConstructionWithInternalSource.hpp"
21 #include "../../model/ConstructionWithInternalSource_Impl.hpp"
22 #include "../../model/Construction.hpp"
23 #include "../../model/Construction_Impl.hpp"
24 #include "../../model/ZoneHVACLowTempRadiantConstFlow.hpp"
25 #include "../../model/ZoneHVACLowTempRadiantConstFlow_Impl.hpp"
26 #include "../../model/ZoneHVACEquipmentList.hpp"
27 #include "../../model/ZoneHVACEquipmentList_Impl.hpp"
28 #include "../../model/StraightComponent.hpp"
29 #include "../../model/StraightComponent_Impl.hpp"
30 #include "../../model/CoilHeatingLowTempRadiantConstFlow.hpp"
31 #include "../../model/CoilHeatingLowTempRadiantConstFlow_Impl.hpp"
32 #include "../../model/CoilCoolingLowTempRadiantConstFlow.hpp"
33 #include "../../model/CoilCoolingLowTempRadiantConstFlow_Impl.hpp"
34 #include "../../model/ZoneHVACComponent.hpp"
35 #include "../../model/ZoneHVACComponent_Impl.hpp"
36
37 #include "../../utilities/idf/IdfExtensibleGroup.hpp"
38
39 #include <utilities/idd/ZoneHVAC_LowTemperatureRadiant_ConstantFlow_FieldEnums.hxx>
40 #include <utilities/idd/ZoneHVAC_LowTemperatureRadiant_ConstantFlow_Design_FieldEnums.hxx>
41 #include "../../utilities/idd/IddEnums.hpp"
42 #include <utilities/idd/IddEnums.hxx>
43 #include <utilities/idd/IddFactory.hxx>
44
45 using namespace openstudio::model;
46
47 namespace openstudio {
48
49 namespace energyplus {
50
51 5 boost::optional<IdfObject> ForwardTranslator::translateZoneHVACLowTempRadiantConstFlow(ZoneHVACLowTempRadiantConstFlow& modelObject) {
52 5 boost::optional<std::string> s;
53 5 boost::optional<double> value;
54 5 boost::optional<ModelObject> temp;
55
56 // If it doesn't have any surfaces, then don't bother translating it, E+ will crash
57
3/3
✓ Branch 1 taken 5 times.
✓ Branch 5 taken 4 times.
✓ Branch 6 taken 1 time.
5 if (modelObject.surfaces().empty()) {
58
7/7
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 14 taken 4 times.
✓ Branch 17 taken 4 times.
✓ Branch 20 taken 4 times.
4 LOG(Info,
59 modelObject.briefDescription() << " does not have any target surfaces with ConstructionWithInternalSource, it will not be translated");
60 4 return boost::none;
61 }
62
63
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 IdfObject idfObject(IddObjectType::ZoneHVAC_LowTemperatureRadiant_ConstantFlow);
64
1/1
✓ Branch 1 taken 1 time.
1 m_idfObjects.push_back(idfObject);
65
66 //Name
67
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
1 std::string baseName = modelObject.name().get();
68
1/1
✓ Branch 1 taken 1 time.
1 idfObject.setName(baseName);
69
70 // Design Object
71 // E+ 9.5.0: This object got broken into two: a zonehvac object, and a design object
72
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 IdfObject designObject(openstudio::IddObjectType::ZoneHVAC_LowTemperatureRadiant_ConstantFlow_Design);
73
1/1
✓ Branch 1 taken 1 time.
1 m_idfObjects.push_back(designObject);
74
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 designObject.setName(baseName + " Design");
75
76
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 idfObject.setString(ZoneHVAC_LowTemperatureRadiant_ConstantFlowFields::DesignObject, designObject.nameString());
77
78 // AvailabilityScheduleName
79
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
2 if (boost::optional<Schedule> schedule = modelObject.availabilitySchedule()) {
80
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
2 if (boost::optional<IdfObject> _schedule = translateAndMapModelObject(schedule.get())) {
81
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_LowTemperatureRadiant_ConstantFlowFields::AvailabilityScheduleName, _schedule->name().get());
82 1 }
83 1 }
84
85 //field Zone Name
86 1 boost::optional<std::string> thermalZoneName;
87
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<ThermalZone> zone = modelObject.thermalZone()) {
88
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
2 if ((s = zone->name())) {
89
1/1
✓ Branch 1 taken 1 time.
1 thermalZoneName = s;
90
91
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 idfObject.setString(ZoneHVAC_LowTemperatureRadiant_ConstantFlowFields::ZoneName, thermalZoneName.get());
92 }
93 1 }
94
95 //field Surface Name or Radiant Surface Type
96
97 //create a new surface group object
98
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 IdfObject _surfaceGroup(IddObjectType::ZoneHVAC_LowTemperatureRadiant_SurfaceGroup);
99
100 //create a name for the surface group
101
4/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
1 std::string sname = baseName + "" + modelObject.radiantSurfaceType().get();
102
1/1
✓ Branch 1 taken 1 time.
1 _surfaceGroup.setName(sname);
103
104 //attach the surface group to the zone low temp radiant object
105
1/1
✓ Branch 1 taken 1 time.
1 idfObject.setString(ZoneHVAC_LowTemperatureRadiant_ConstantFlowFields::SurfaceNameorRadiantSurfaceGroupName, sname);
106
107 //get rid of any existing surface (just to be safe)
108
1/1
✓ Branch 1 taken 1 time.
1 idfObject.clearExtensibleGroups();
109
110 //aggregator for total area; will be used to create weighted area
111 1 double totalAreaOfSurfaces = 0;
112
113 //loop through all surfaces, adding up their area
114
3/3
✓ Branch 1 taken 1 time.
✓ Branch 7 taken 4 times.
✓ Branch 8 taken 1 time.
5 for (const Surface& surface : modelObject.surfaces()) {
115
1/1
✓ Branch 1 taken 4 times.
4 totalAreaOfSurfaces = totalAreaOfSurfaces + surface.grossArea();
116 1 }
117
118 //loop through all the surfaces, adding them and their flow fractions (weighted per-area)
119
3/3
✓ Branch 1 taken 1 time.
✓ Branch 8 taken 4 times.
✓ Branch 9 taken 1 time.
5 for (const Surface& surface : modelObject.surfaces()) {
120
1/1
✓ Branch 1 taken 4 times.
4 IdfExtensibleGroup group = _surfaceGroup.pushExtensibleGroup();
121
2/4
✓ Branch 1 taken 4 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 4 times.
✗ Branch 6 not taken.
4 OS_ASSERT(group.numFields() == 2);
122
3/3
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
4 group.setString(0, surface.name().get());
123
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
4 group.setDouble(1, (surface.grossArea() / totalAreaOfSurfaces));
124 5 }
125
126 //add the surface group to the list of idf objects
127
1/1
✓ Branch 1 taken 1 time.
1 m_idfObjects.push_back(_surfaceGroup);
128
129 //field Hydronic Tubing Length
130
2/3
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
1 if (modelObject.isHydronicTubingLengthAutosized()) {
131 ✗ idfObject.setString(ZoneHVAC_LowTemperatureRadiant_ConstantFlowFields::HydronicTubingLength, "Autosize");
132
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 } else if ((value = modelObject.hydronicTubingLength())) {
133
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 idfObject.setDouble(ZoneHVAC_LowTemperatureRadiant_ConstantFlowFields::HydronicTubingLength, value.get());
134 }
135
136 //field Rated Flow Rate
137
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
1 if (modelObject.isRatedFlowRateAutosized()) {
138
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 idfObject.setString(ZoneHVAC_LowTemperatureRadiant_ConstantFlowFields::RatedFlowRate, "Autosize");
139 ✗ } else if ((value = modelObject.ratedFlowRate())) {
140 ✗ idfObject.setDouble(ZoneHVAC_LowTemperatureRadiant_ConstantFlowFields::RatedFlowRate, value.get());
141 }
142
143 //field Pump Flow Rate Schedule Name
144
2/3
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
2 if (boost::optional<Schedule> schedule = modelObject.pumpFlowRateSchedule()) {
145 ✗ if (boost::optional<IdfObject> _schedule = translateAndMapModelObject(schedule.get())) {
146 ✗ idfObject.setString(ZoneHVAC_LowTemperatureRadiant_ConstantFlowFields::PumpFlowRateScheduleName, _schedule->name().get());
147 ✗ }
148 1 }
149
150 //field Rated Pump Head
151
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
2 if ((value = modelObject.ratedPumpHead())) {
152
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 idfObject.setDouble(ZoneHVAC_LowTemperatureRadiant_ConstantFlowFields::RatedPumpHead, value.get());
153 }
154
155 //field Rated Power Consumption
156
2/3
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
2 if ((value = modelObject.ratedPowerConsumption())) {
157 ✗ idfObject.setDouble(ZoneHVAC_LowTemperatureRadiant_ConstantFlowFields::RatedPowerConsumption, value.get());
158 }
159
160
1/1
✓ Branch 1 taken 1 time.
1 HVACComponent heatingCoil = modelObject.heatingCoil();
161
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<CoilHeatingLowTempRadiantConstFlow> coilOptionalHeating = heatingCoil.optionalCast<CoilHeatingLowTempRadiantConstFlow>();
162
163 // field Heating Water Inlet Node Name
164
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (coilOptionalHeating) {
165
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 CoilHeatingLowTempRadiantConstFlow coilHeat = *coilOptionalHeating;
166
167
1/1
✓ Branch 1 taken 1 time.
1 temp = coilHeat.inletModelObject();
168
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (temp) {
169 ✗ s = temp->name();
170 ✗ if (s) {
171 ✗ idfObject.setString(openstudio::ZoneHVAC_LowTemperatureRadiant_ConstantFlowFields::HeatingWaterInletNodeName, *s);
172 }
173 }
174
175 //field Heating Water Outlet Node Name
176
1/1
✓ Branch 1 taken 1 time.
1 temp = coilHeat.outletModelObject();
177
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (temp) {
178 ✗ s = temp->name();
179 ✗ if (s) {
180 ✗ idfObject.setString(openstudio::ZoneHVAC_LowTemperatureRadiant_ConstantFlowFields::HeatingWaterOutletNodeName, *s);
181 }
182 }
183
184 //field Heating High Water Temperature Schedule Name
185
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<Schedule> schedule = coilHeat.heatingHighWaterTemperatureSchedule()) {
186
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
2 if (boost::optional<IdfObject> _schedule = translateAndMapModelObject(schedule.get())) {
187
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_LowTemperatureRadiant_ConstantFlowFields::HeatingHighWaterTemperatureScheduleName, _schedule->name().get());
188 1 }
189 1 }
190
191 //field Heating Low Water Temperature Schedule Name
192
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<Schedule> schedule = coilHeat.heatingLowWaterTemperatureSchedule()) {
193
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
2 if (boost::optional<IdfObject> _schedule = translateAndMapModelObject(schedule.get())) {
194
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_LowTemperatureRadiant_ConstantFlowFields::HeatingLowWaterTemperatureScheduleName, _schedule->name().get());
195 1 }
196 1 }
197
198 //field Heating High Control Temperature Schedule Name
199
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<Schedule> schedule = coilHeat.heatingHighControlTemperatureSchedule()) {
200
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
2 if (boost::optional<IdfObject> _schedule = translateAndMapModelObject(schedule.get())) {
201
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_LowTemperatureRadiant_ConstantFlowFields::HeatingHighControlTemperatureScheduleName, _schedule->name().get());
202 1 }
203 1 }
204
205 //field Heating Low Control Temperature Schedule Name
206
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<Schedule> schedule = coilHeat.heatingLowControlTemperatureSchedule()) {
207
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
2 if (boost::optional<IdfObject> _schedule = translateAndMapModelObject(schedule.get())) {
208
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_LowTemperatureRadiant_ConstantFlowFields::HeatingLowControlTemperatureScheduleName, _schedule->name().get());
209 1 }
210 1 }
211 1 }
212
213
1/1
✓ Branch 1 taken 1 time.
1 HVACComponent coolingCoil = modelObject.coolingCoil();
214
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<CoilCoolingLowTempRadiantConstFlow> coilOptionalCooling = coolingCoil.optionalCast<CoilCoolingLowTempRadiantConstFlow>();
215
216 // field Cooling Water Inlet Node Name
217
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (coilOptionalCooling) {
218
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 CoilCoolingLowTempRadiantConstFlow coilCool = *coilOptionalCooling;
219
220
1/1
✓ Branch 1 taken 1 time.
1 temp = coilCool.inletModelObject();
221
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (temp) {
222 ✗ s = temp->name();
223 ✗ if (s) {
224 ✗ idfObject.setString(openstudio::ZoneHVAC_LowTemperatureRadiant_ConstantFlowFields::CoolingWaterInletNodeName, *s);
225 }
226 }
227
228 //field Cooling Water Outlet Node Name
229
1/1
✓ Branch 1 taken 1 time.
1 temp = coilCool.outletModelObject();
230
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (temp) {
231 ✗ s = temp->name();
232 ✗ if (s) {
233 ✗ idfObject.setString(openstudio::ZoneHVAC_LowTemperatureRadiant_ConstantFlowFields::CoolingWaterOutletNodeName, *s);
234 }
235 }
236
237 //field Cooling High Water Temperature Schedule Name
238
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<Schedule> schedule = coilCool.coolingHighWaterTemperatureSchedule()) {
239
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
2 if (boost::optional<IdfObject> _schedule = translateAndMapModelObject(schedule.get())) {
240
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_LowTemperatureRadiant_ConstantFlowFields::CoolingHighWaterTemperatureScheduleName, _schedule->name().get());
241 1 }
242 1 }
243
244 //field Cooling Low Water Temperature Schedule Name
245
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<Schedule> schedule = coilCool.coolingLowWaterTemperatureSchedule()) {
246
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
2 if (boost::optional<IdfObject> _schedule = translateAndMapModelObject(schedule.get())) {
247
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_LowTemperatureRadiant_ConstantFlowFields::CoolingLowWaterTemperatureScheduleName, _schedule->name().get());
248 1 }
249 1 }
250
251 //field Cooling High Control Temperature Schedule Name
252
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<Schedule> schedule = coilCool.coolingHighControlTemperatureSchedule()) {
253
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
2 if (boost::optional<IdfObject> _schedule = translateAndMapModelObject(schedule.get())) {
254
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_LowTemperatureRadiant_ConstantFlowFields::CoolingHighControlTemperatureScheduleName, _schedule->name().get());
255 1 }
256 1 }
257
258 //field Cooling Low Control Temperature Schedule Name
259
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<Schedule> schedule = coilCool.coolingLowControlTemperatureSchedule()) {
260
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
2 if (boost::optional<IdfObject> _schedule = translateAndMapModelObject(schedule.get())) {
261
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_LowTemperatureRadiant_ConstantFlowFields::CoolingLowControlTemperatureScheduleName, _schedule->name().get());
262 1 }
263 1 }
264
265 //field Condensation Control Type: Design Object
266
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 designObject.setString(ZoneHVAC_LowTemperatureRadiant_ConstantFlow_DesignFields::CondensationControlType, coilCool.condensationControlType());
267
268 //field Condensation Control Dewpoint Offset: Design Object
269
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
2 if ((value = coilCool.condensationControlDewpointOffset())) {
270
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 designObject.setDouble(ZoneHVAC_LowTemperatureRadiant_ConstantFlow_DesignFields::CondensationControlDewpointOffset, value.get());
271 }
272 1 }
273
274 //field Number of Circuits
275
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 idfObject.setString(ZoneHVAC_LowTemperatureRadiant_ConstantFlowFields::NumberofCircuits, modelObject.numberofCircuits());
276
277 //field Circuit Length
278
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 idfObject.setDouble(ZoneHVAC_LowTemperatureRadiant_ConstantFlowFields::CircuitLength, modelObject.circuitLength());
279
280 // All these fields are now on the Design object
281
282 //field Fluid to Radiant Surface Heat Transfer Model
283
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
2 if (boost::optional<std::string> modelType = modelObject.fluidtoRadiantSurfaceHeatTransferModel()) {
284
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 designObject.setString(ZoneHVAC_LowTemperatureRadiant_ConstantFlow_DesignFields::FluidtoRadiantSurfaceHeatTransferModel, modelType.get());
285 1 }
286
287 //field Hydronic Tubing Inside Diameter
288
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
2 if ((value = modelObject.hydronicTubingInsideDiameter())) {
289
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 designObject.setDouble(ZoneHVAC_LowTemperatureRadiant_ConstantFlow_DesignFields::HydronicTubingInsideDiameter, value.get());
290 }
291
292 //field Hydronic Tubing Outside Diameter
293
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
2 if ((value = modelObject.hydronicTubingOutsideDiameter())) {
294
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 designObject.setDouble(ZoneHVAC_LowTemperatureRadiant_ConstantFlow_DesignFields::HydronicTubingOutsideDiameter, value.get());
295 }
296
297 //field Hydronic Tubing Conductivity
298
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
2 if ((value = modelObject.hydronicTubingConductivity())) {
299
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 designObject.setDouble(ZoneHVAC_LowTemperatureRadiant_ConstantFlow_DesignFields::HydronicTubingConductivity, value.get());
300 }
301
302 //field Temperature Control Type
303
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
2 if (boost::optional<std::string> tempCtrlType = modelObject.temperatureControlType()) {
304
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 designObject.setString(ZoneHVAC_LowTemperatureRadiant_ConstantFlow_DesignFields::TemperatureControlType, tempCtrlType.get());
305 1 }
306
307 //field Running Mean Outdoor Drybulb Temperature Weighting Factor
308
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
2 if ((value = modelObject.runningMeanOutdoorDryBulbTemperatureWeightingFactor())) {
309 1 designObject.setDouble(ZoneHVAC_LowTemperatureRadiant_ConstantFlow_DesignFields::RunningMeanOutdoorDryBulbTemperatureWeightingFactor,
310
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 value.get());
311 }
312
313 //field Motor Efficiency
314
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
2 if ((value = modelObject.motorEfficiency())) {
315
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 designObject.setDouble(ZoneHVAC_LowTemperatureRadiant_ConstantFlow_DesignFields::MotorEfficiency, value.get());
316 }
317
318 //field Fraction of Motor Inefficiencies to Fluid Stream
319
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
2 if ((value = modelObject.fractionofMotorInefficienciestoFluidStream())) {
320
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 designObject.setDouble(ZoneHVAC_LowTemperatureRadiant_ConstantFlow_DesignFields::FractionofMotorInefficienciestoFluidStream, value.get());
321 }
322
323 //field Changeover Delay Time Period Schedule
324
2/3
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
2 if (auto _changeoverDelayTimePeriodSchedule = modelObject.changeoverDelayTimePeriodSchedule()) {
325 ✗ if (auto _sch = translateAndMapModelObject(_changeoverDelayTimePeriodSchedule.get())) {
326 ✗ designObject.setString(ZoneHVAC_LowTemperatureRadiant_ConstantFlow_DesignFields::ChangeoverDelayTimePeriodSchedule, _sch->nameString());
327 ✗ }
328 1 }
329
330
1/1
✓ Branch 1 taken 1 time.
1 return idfObject;
331 5 }
332
333 } // namespace energyplus
334
335 } // namespace openstudio
336