GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 75.2% 231 / 0 / 307
Functions: 80.2% 69 / 0 / 86
Branches: 52.3% 134 / 0 / 256

src/model/CoilCoolingWaterPanelRadiant.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 "CoilCoolingWaterPanelRadiant.hpp"
7 #include "CoilCoolingWaterPanelRadiant_Impl.hpp"
8 #include "Node.hpp"
9 #include "Node_Impl.hpp"
10 #include "Model.hpp"
11 #include "Model_Impl.hpp"
12 #include "PlantLoop.hpp"
13 #include "PlantLoop_Impl.hpp"
14 #include "ZoneHVACCoolingPanelRadiantConvectiveWater.hpp"
15 #include "ZoneHVACCoolingPanelRadiantConvectiveWater_Impl.hpp"
16 #include "Schedule.hpp"
17 #include "Schedule_Impl.hpp"
18 #include "ScheduleTypeLimits.hpp"
19 #include "ScheduleTypeRegistry.hpp"
20
21 #include <utilities/idd/IddFactory.hxx>
22 #include <utilities/idd/IddEnums.hxx>
23 #include <utilities/idd/OS_Coil_Cooling_Water_Panel_Radiant_FieldEnums.hxx>
24
25 #include "../utilities/core/Assert.hpp"
26 #include "../utilities/data/DataEnums.hpp"
27
28 namespace openstudio {
29 namespace model {
30
31 namespace detail {
32
33 9 CoilCoolingWaterPanelRadiant_Impl::CoilCoolingWaterPanelRadiant_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
34 9 : StraightComponent_Impl(idfObject, model, keepHandle) {
35
4/6
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 9 times.
✗ Branch 13 not taken.
9 OS_ASSERT(idfObject.iddObject().type() == CoilCoolingWaterPanelRadiant::iddObjectType());
36 9 }
37
38 ✗ CoilCoolingWaterPanelRadiant_Impl::CoilCoolingWaterPanelRadiant_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model,
39 ✗ bool keepHandle)
40 ✗ : StraightComponent_Impl(other, model, keepHandle) {
41 ✗ OS_ASSERT(other.iddObject().type() == CoilCoolingWaterPanelRadiant::iddObjectType());
42 ✗ }
43
44 ✗ CoilCoolingWaterPanelRadiant_Impl::CoilCoolingWaterPanelRadiant_Impl(const CoilCoolingWaterPanelRadiant_Impl& other, Model_Impl* model,
45 ✗ bool keepHandle)
46 ✗ : StraightComponent_Impl(other, model, keepHandle) {}
47
48 ✗ const std::vector<std::string>& CoilCoolingWaterPanelRadiant_Impl::outputVariableNames() const {
49 ✗ static const std::vector<std::string> result;
50 ✗ return result;
51 }
52
53 ✗ IddObjectType CoilCoolingWaterPanelRadiant_Impl::iddObjectType() const {
54 ✗ return CoilCoolingWaterPanelRadiant::iddObjectType();
55 }
56
57 ✗ std::vector<ScheduleTypeKey> CoilCoolingWaterPanelRadiant_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
58 ✗ std::vector<ScheduleTypeKey> result;
59 ✗ UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
60 ✗ UnsignedVector::const_iterator b(fieldIndices.begin());
61 ✗ UnsignedVector::const_iterator e(fieldIndices.end());
62 ✗ if (std::find(b, e, OS_Coil_Cooling_Water_Panel_RadiantFields::CoolingControlTemperatureScheduleName) != e) {
63 ✗ result.emplace_back("CoilCoolingWaterPanelRadiant", "Cooling Control Temperature Schedule");
64 }
65 ✗ return result;
66 ✗ }
67
68 2 unsigned CoilCoolingWaterPanelRadiant_Impl::inletPort() const {
69 2 return OS_Coil_Cooling_Water_Panel_RadiantFields::WaterInletNodeName;
70 }
71
72 9 unsigned CoilCoolingWaterPanelRadiant_Impl::outletPort() const {
73 9 return OS_Coil_Cooling_Water_Panel_RadiantFields::WaterOutletNodeName;
74 }
75
76 ✗ boost::optional<ZoneHVACComponent> CoilCoolingWaterPanelRadiant_Impl::containingZoneHVACComponent() const {
77 // this coil can only be found in a ZoneHVACCoolingPanelRadiantConvectiveWater
78 // check all ZoneHVACCoolingPanelRadiantConvectiveWaters in the model, seeing if this coil
79 // is inside of one of them. Return the one it is inside of
80
81 ✗ auto const zoneHVACCoolingPanelRadiantConvectiveWaters = this->model().getConcreteModelObjects<ZoneHVACCoolingPanelRadiantConvectiveWater>();
82 // loop through each one, seeing if the coil is contained by the zonehvaccoolingpanel
83 ✗ for (const auto& zoneHVACCoolingPanelRadiantConvectiveWater : zoneHVACCoolingPanelRadiantConvectiveWaters) {
84 ✗ if (boost::optional<HVACComponent> coil = zoneHVACCoolingPanelRadiantConvectiveWater.coolingCoil()) {
85 ✗ if (coil->handle() == this->handle()) { //if the handles match, this coil is inside of a zonehvaccoolingpanel
86 ✗ return zoneHVACCoolingPanelRadiantConvectiveWater;
87 }
88 ✗ }
89 }
90
91 // if the coil isn't inside any zonehvaccoolingpanels (which currently should never happen), return nothing
92 ✗ return boost::none;
93 ✗ }
94
95 5 bool CoilCoolingWaterPanelRadiant_Impl::addToNode(Node& node) {
96
3/3
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 2 times.
10 if (boost::optional<PlantLoop> plant = node.plantLoop()) {
97
5/5
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 2 times.
✓ Branch 11 taken 1 time.
6 if (plant->demandComponent(node.handle())) {
98
1/1
✓ Branch 1 taken 2 times.
2 return StraightComponent_Impl::addToNode(node);
99 }
100 5 }
101
102 3 return false;
103 }
104
105 2 double CoilCoolingWaterPanelRadiant_Impl::ratedInletWaterTemperature() const {
106
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::RatedInletWaterTemperature, true);
107
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
108
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
109 }
110
111 2 double CoilCoolingWaterPanelRadiant_Impl::ratedInletSpaceTemperature() const {
112
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::RatedInletSpaceTemperature, true);
113
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
114
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
115 }
116
117 2 double CoilCoolingWaterPanelRadiant_Impl::ratedWaterMassFlowRate() const {
118
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::RatedWaterMassFlowRate, true);
119
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
120
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
121 }
122
123 2 std::string CoilCoolingWaterPanelRadiant_Impl::coolingDesignCapacityMethod() const {
124
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<std::string> value = getString(OS_Coil_Cooling_Water_Panel_RadiantFields::CoolingDesignCapacityMethod, true);
125
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
126
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 return value.get();
127 2 }
128
129 3 boost::optional<double> CoilCoolingWaterPanelRadiant_Impl::coolingDesignCapacity() const {
130 3 return getDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::CoolingDesignCapacity, true);
131 }
132
133 2 bool CoilCoolingWaterPanelRadiant_Impl::isCoolingDesignCapacityAutosized() const {
134 2 bool result = false;
135
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<std::string> value = getString(OS_Coil_Cooling_Water_Panel_RadiantFields::CoolingDesignCapacity, true);
136
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (value) {
137
3/3
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
4 result = openstudio::istringEqual(value.get(), "autosize");
138 }
139 2 return result;
140 2 }
141
142 2 double CoilCoolingWaterPanelRadiant_Impl::coolingDesignCapacityPerFloorArea() const {
143
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::CoolingDesignCapacityPerFloorArea, true);
144
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
145
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
146 }
147
148 2 double CoilCoolingWaterPanelRadiant_Impl::fractionofAutosizedCoolingDesignCapacity() const {
149
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::FractionofAutosizedCoolingDesignCapacity, true);
150
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
151
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
152 }
153
154 3 boost::optional<double> CoilCoolingWaterPanelRadiant_Impl::maximumChilledWaterFlowRate() const {
155 3 return getDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::MaximumChilledWaterFlowRate, true);
156 }
157
158 2 bool CoilCoolingWaterPanelRadiant_Impl::isMaximumChilledWaterFlowRateAutosized() const {
159 2 bool result = false;
160
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<std::string> value = getString(OS_Coil_Cooling_Water_Panel_RadiantFields::MaximumChilledWaterFlowRate, true);
161
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (value) {
162
3/3
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
4 result = openstudio::istringEqual(value.get(), "autosize");
163 }
164 2 return result;
165 2 }
166
167 2 std::string CoilCoolingWaterPanelRadiant_Impl::controlType() const {
168
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<std::string> value = getString(OS_Coil_Cooling_Water_Panel_RadiantFields::ControlType, true);
169
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
170
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 return value.get();
171 2 }
172
173 2 double CoilCoolingWaterPanelRadiant_Impl::coolingControlThrottlingRange() const {
174
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::CoolingControlThrottlingRange, true);
175
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
176
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
177 }
178
179 3 boost::optional<Schedule> CoilCoolingWaterPanelRadiant_Impl::coolingControlTemperatureSchedule() const {
180
1/1
✓ Branch 1 taken 3 times.
6 return getObject<ModelObject>().getModelObjectTarget<Schedule>(
181
1/1
✓ Branch 1 taken 3 times.
6 OS_Coil_Cooling_Water_Panel_RadiantFields::CoolingControlTemperatureScheduleName);
182 }
183
184 2 std::string CoilCoolingWaterPanelRadiant_Impl::condensationControlType() const {
185
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<std::string> value = getString(OS_Coil_Cooling_Water_Panel_RadiantFields::CondensationControlType, true);
186
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
187
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 return value.get();
188 2 }
189
190 2 double CoilCoolingWaterPanelRadiant_Impl::condensationControlDewpointOffset() const {
191
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::CondensationControlDewpointOffset, true);
192
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
193
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
194 }
195
196 10 bool CoilCoolingWaterPanelRadiant_Impl::setRatedInletWaterTemperature(double ratedInletWaterTemperature) {
197 10 bool result = setDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::RatedInletWaterTemperature, ratedInletWaterTemperature);
198 10 return result;
199 }
200
201 10 bool CoilCoolingWaterPanelRadiant_Impl::setRatedInletSpaceTemperature(double ratedInletSpaceTemperature) {
202 10 bool result = setDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::RatedInletSpaceTemperature, ratedInletSpaceTemperature);
203 10 return result;
204 }
205
206 10 bool CoilCoolingWaterPanelRadiant_Impl::setRatedWaterMassFlowRate(double ratedWaterMassFlowRate) {
207 10 bool result = setDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::RatedWaterMassFlowRate, ratedWaterMassFlowRate);
208 10 return result;
209 }
210
211 10 bool CoilCoolingWaterPanelRadiant_Impl::setCoolingDesignCapacityMethod(const std::string& coolingDesignCapacityMethod) {
212 10 bool result = setString(OS_Coil_Cooling_Water_Panel_RadiantFields::CoolingDesignCapacityMethod, coolingDesignCapacityMethod);
213 10 return result;
214 }
215
216 1 bool CoilCoolingWaterPanelRadiant_Impl::setCoolingDesignCapacity(boost::optional<double> coolingDesignCapacity) {
217 1 bool result(false);
218
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (coolingDesignCapacity) {
219 1 result = setDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::CoolingDesignCapacity, coolingDesignCapacity.get());
220 }
221 1 return result;
222 }
223
224 9 void CoilCoolingWaterPanelRadiant_Impl::autosizeCoolingDesignCapacity() {
225
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
18 bool result = setString(OS_Coil_Cooling_Water_Panel_RadiantFields::CoolingDesignCapacity, "autosize");
226
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
9 OS_ASSERT(result);
227 9 }
228
229 10 bool CoilCoolingWaterPanelRadiant_Impl::setCoolingDesignCapacityPerFloorArea(double coolingDesignCapacityPerFloorArea) {
230 10 bool result = setDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::CoolingDesignCapacityPerFloorArea, coolingDesignCapacityPerFloorArea);
231 10 return result;
232 }
233
234 10 bool CoilCoolingWaterPanelRadiant_Impl::setFractionofAutosizedCoolingDesignCapacity(double fractionofAutosizedCoolingDesignCapacity) {
235 bool result =
236 10 setDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::FractionofAutosizedCoolingDesignCapacity, fractionofAutosizedCoolingDesignCapacity);
237 10 return result;
238 }
239
240 1 bool CoilCoolingWaterPanelRadiant_Impl::setMaximumChilledWaterFlowRate(boost::optional<double> maximumChilledWaterFlowRate) {
241 1 bool result(false);
242
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (maximumChilledWaterFlowRate) {
243 1 result = setDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::MaximumChilledWaterFlowRate, maximumChilledWaterFlowRate.get());
244 }
245
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
246 1 return result;
247 }
248
249 9 void CoilCoolingWaterPanelRadiant_Impl::autosizeMaximumChilledWaterFlowRate() {
250
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
18 bool result = setString(OS_Coil_Cooling_Water_Panel_RadiantFields::MaximumChilledWaterFlowRate, "autosize");
251
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
9 OS_ASSERT(result);
252 9 }
253
254 10 bool CoilCoolingWaterPanelRadiant_Impl::setControlType(const std::string& controlType) {
255 10 bool result = setString(OS_Coil_Cooling_Water_Panel_RadiantFields::ControlType, controlType);
256 10 return result;
257 }
258
259 10 bool CoilCoolingWaterPanelRadiant_Impl::setCoolingControlThrottlingRange(double coolingControlThrottlingRange) {
260 10 bool result = setDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::CoolingControlThrottlingRange, coolingControlThrottlingRange);
261 10 return result;
262 }
263
264 2 bool CoilCoolingWaterPanelRadiant_Impl::setCoolingControlTemperatureSchedule(Schedule& coolingControlTemperatureSchedule) {
265
3/3
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
8 bool result = setSchedule(OS_Coil_Cooling_Water_Panel_RadiantFields::CoolingControlTemperatureScheduleName, "CoilCoolingWaterPanelRadiant",
266 "Cooling Control Temperature Schedule", coolingControlTemperatureSchedule);
267 2 return result;
268 }
269
270 1 void CoilCoolingWaterPanelRadiant_Impl::resetCoolingControlTemperatureSchedule() {
271
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Coil_Cooling_Water_Panel_RadiantFields::CoolingControlTemperatureScheduleName, "");
272
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
273 1 }
274
275 10 bool CoilCoolingWaterPanelRadiant_Impl::setCondensationControlType(const std::string& condensationControlType) {
276 10 bool result = setString(OS_Coil_Cooling_Water_Panel_RadiantFields::CondensationControlType, condensationControlType);
277 10 return result;
278 }
279
280 10 bool CoilCoolingWaterPanelRadiant_Impl::setCondensationControlDewpointOffset(double condensationControlDewpointOffset) {
281 10 bool result = setDouble(OS_Coil_Cooling_Water_Panel_RadiantFields::CondensationControlDewpointOffset, condensationControlDewpointOffset);
282 10 return result;
283 }
284
285 ✗ boost::optional<double> CoilCoolingWaterPanelRadiant_Impl::autosizedCoolingDesignCapacity() const {
286 ✗ boost::optional<double> result;
287 // Get the containing ZoneHVAC equipment and get its autosized value
288 ✗ auto parentHVAC = containingZoneHVACComponent();
289 ✗ if (!parentHVAC) {
290 ✗ return result;
291 }
292 ✗ return parentHVAC->getAutosizedValue("Design Size Cooling Design Capacity", "W");
293 ✗ }
294
295 ✗ boost::optional<double> CoilCoolingWaterPanelRadiant_Impl::autosizedMaximumChilledWaterFlowRate() const {
296 ✗ boost::optional<double> result;
297 // Get the containing ZoneHVAC equipment and get its autosized value
298 ✗ auto parentHVAC = containingZoneHVACComponent();
299 ✗ if (!parentHVAC) {
300 ✗ return result;
301 }
302 ✗ return parentHVAC->getAutosizedValue("Design Size Maximum Cold Water Flow", "m3/s");
303 ✗ }
304
305 ✗ void CoilCoolingWaterPanelRadiant_Impl::autosize() {
306 ✗ autosizeCoolingDesignCapacity();
307 ✗ autosizeMaximumChilledWaterFlowRate();
308 ✗ }
309
310 ✗ void CoilCoolingWaterPanelRadiant_Impl::applySizingValues() {
311 ✗ boost::optional<double> val;
312 ✗ val = autosizedCoolingDesignCapacity();
313 ✗ if (val) {
314 ✗ setCoolingDesignCapacity(val.get());
315 }
316
317 ✗ val = autosizedMaximumChilledWaterFlowRate();
318 ✗ if (val) {
319 ✗ setMaximumChilledWaterFlowRate(val.get());
320 }
321 ✗ }
322
323 ✗ ComponentType CoilCoolingWaterPanelRadiant_Impl::componentType() const {
324 ✗ return ComponentType::Cooling;
325 }
326
327 ✗ std::vector<FuelType> CoilCoolingWaterPanelRadiant_Impl::coolingFuelTypes() const {
328 ✗ if (auto p_ = plantLoop()) {
329 ✗ return p_->coolingFuelTypes();
330 ✗ }
331 ✗ return {};
332 }
333
334 ✗ std::vector<FuelType> CoilCoolingWaterPanelRadiant_Impl::heatingFuelTypes() const {
335 ✗ return {};
336 }
337
338 ✗ std::vector<AppGFuelType> CoilCoolingWaterPanelRadiant_Impl::appGHeatingFuelTypes() const {
339 ✗ return {};
340 }
341
342 } // namespace detail
343
344 9 CoilCoolingWaterPanelRadiant::CoilCoolingWaterPanelRadiant(const Model& model)
345 9 : StraightComponent(CoilCoolingWaterPanelRadiant::iddObjectType(), model) {
346
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 9 times.
✗ Branch 5 not taken.
9 OS_ASSERT(getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>());
347
348 9 bool ok = true;
349
1/1
✓ Branch 1 taken 9 times.
9 ok = setRatedInletWaterTemperature(5.0);
350
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
✗ Branch 3 not taken.
9 OS_ASSERT(ok);
351
1/1
✓ Branch 1 taken 9 times.
9 ok = setRatedInletSpaceTemperature(24.0);
352
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
✗ Branch 3 not taken.
9 OS_ASSERT(ok);
353
1/1
✓ Branch 1 taken 9 times.
9 ok = setRatedWaterMassFlowRate(0.063);
354
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
✗ Branch 3 not taken.
9 OS_ASSERT(ok);
355
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
9 ok = setCoolingDesignCapacityMethod("CoolingDesignCapacity");
356
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
✗ Branch 3 not taken.
9 OS_ASSERT(ok);
357
1/1
✓ Branch 1 taken 9 times.
9 autosizeCoolingDesignCapacity();
358
1/1
✓ Branch 1 taken 9 times.
9 ok = setCoolingDesignCapacityPerFloorArea(0);
359
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
✗ Branch 3 not taken.
9 OS_ASSERT(ok);
360
1/1
✓ Branch 1 taken 9 times.
9 ok = setFractionofAutosizedCoolingDesignCapacity(1.0);
361
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
✗ Branch 3 not taken.
9 OS_ASSERT(ok);
362
1/1
✓ Branch 1 taken 9 times.
9 autosizeMaximumChilledWaterFlowRate();
363
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
9 ok = setControlType("MeanAirTemperature");
364
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
✗ Branch 3 not taken.
9 OS_ASSERT(ok);
365
1/1
✓ Branch 1 taken 9 times.
9 ok = setCoolingControlThrottlingRange(0.5);
366
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
✗ Branch 3 not taken.
9 OS_ASSERT(ok);
367
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
9 ok = setCondensationControlType("SimpleOff");
368
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
✗ Branch 3 not taken.
9 OS_ASSERT(ok);
369
1/1
✓ Branch 1 taken 9 times.
9 ok = setCondensationControlDewpointOffset(1.0);
370
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
✗ Branch 3 not taken.
9 OS_ASSERT(ok);
371 9 }
372
373 7746 IddObjectType CoilCoolingWaterPanelRadiant::iddObjectType() {
374
1/1
✓ Branch 1 taken 7746 times.
7746 return {IddObjectType::OS_Coil_Cooling_Water_Panel_Radiant};
375 }
376
377 ✗ std::vector<std::string> CoilCoolingWaterPanelRadiant::coolingDesignCapacityMethodValues() {
378 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
379 ✗ OS_Coil_Cooling_Water_Panel_RadiantFields::CoolingDesignCapacityMethod);
380 }
381
382 2 double CoilCoolingWaterPanelRadiant::ratedInletWaterTemperature() const {
383
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->ratedInletWaterTemperature();
384 }
385
386 2 double CoilCoolingWaterPanelRadiant::ratedInletSpaceTemperature() const {
387
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->ratedInletSpaceTemperature();
388 }
389
390 2 double CoilCoolingWaterPanelRadiant::ratedWaterMassFlowRate() const {
391
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->ratedWaterMassFlowRate();
392 }
393
394 2 std::string CoilCoolingWaterPanelRadiant::coolingDesignCapacityMethod() const {
395
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->coolingDesignCapacityMethod();
396 }
397
398 3 boost::optional<double> CoilCoolingWaterPanelRadiant::coolingDesignCapacity() const {
399
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->coolingDesignCapacity();
400 }
401
402 2 bool CoilCoolingWaterPanelRadiant::isCoolingDesignCapacityAutosized() const {
403
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->isCoolingDesignCapacityAutosized();
404 }
405
406 2 double CoilCoolingWaterPanelRadiant::coolingDesignCapacityPerFloorArea() const {
407
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->coolingDesignCapacityPerFloorArea();
408 }
409
410 2 double CoilCoolingWaterPanelRadiant::fractionofAutosizedCoolingDesignCapacity() const {
411
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->fractionofAutosizedCoolingDesignCapacity();
412 }
413
414 3 boost::optional<double> CoilCoolingWaterPanelRadiant::maximumChilledWaterFlowRate() const {
415
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->maximumChilledWaterFlowRate();
416 }
417
418 2 bool CoilCoolingWaterPanelRadiant::isMaximumChilledWaterFlowRateAutosized() const {
419
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->isMaximumChilledWaterFlowRateAutosized();
420 }
421
422 2 std::string CoilCoolingWaterPanelRadiant::controlType() const {
423
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->controlType();
424 }
425
426 2 double CoilCoolingWaterPanelRadiant::coolingControlThrottlingRange() const {
427
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->coolingControlThrottlingRange();
428 }
429
430 3 boost::optional<Schedule> CoilCoolingWaterPanelRadiant::coolingControlTemperatureSchedule() const {
431
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->coolingControlTemperatureSchedule();
432 }
433
434 2 std::string CoilCoolingWaterPanelRadiant::condensationControlType() const {
435
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->condensationControlType();
436 }
437
438 2 double CoilCoolingWaterPanelRadiant::condensationControlDewpointOffset() const {
439
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->condensationControlDewpointOffset();
440 }
441
442 10 bool CoilCoolingWaterPanelRadiant::setRatedInletWaterTemperature(double ratedInletWaterTemperature) {
443
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->setRatedInletWaterTemperature(ratedInletWaterTemperature);
444 }
445
446 10 bool CoilCoolingWaterPanelRadiant::setRatedInletSpaceTemperature(double ratedInletSpaceTemperature) {
447
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->setRatedInletSpaceTemperature(ratedInletSpaceTemperature);
448 }
449
450 10 bool CoilCoolingWaterPanelRadiant::setRatedWaterMassFlowRate(double ratedWaterMassFlowRate) {
451
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->setRatedWaterMassFlowRate(ratedWaterMassFlowRate);
452 }
453
454 10 bool CoilCoolingWaterPanelRadiant::setCoolingDesignCapacityMethod(const std::string& coolingDesignCapacityMethod) {
455
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->setCoolingDesignCapacityMethod(coolingDesignCapacityMethod);
456 }
457
458 1 bool CoilCoolingWaterPanelRadiant::setCoolingDesignCapacity(double coolingDesignCapacity) {
459
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->setCoolingDesignCapacity(coolingDesignCapacity);
460 }
461
462 9 void CoilCoolingWaterPanelRadiant::autosizeCoolingDesignCapacity() {
463
1/1
✓ Branch 3 taken 9 times.
9 getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->autosizeCoolingDesignCapacity();
464 9 }
465
466 10 bool CoilCoolingWaterPanelRadiant::setCoolingDesignCapacityPerFloorArea(double coolingDesignCapacityPerFloorArea) {
467
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->setCoolingDesignCapacityPerFloorArea(coolingDesignCapacityPerFloorArea);
468 }
469
470 10 bool CoilCoolingWaterPanelRadiant::setFractionofAutosizedCoolingDesignCapacity(double fractionofAutosizedCoolingDesignCapacity) {
471
1/1
✓ Branch 3 taken 10 times.
20 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->setFractionofAutosizedCoolingDesignCapacity(
472 20 fractionofAutosizedCoolingDesignCapacity);
473 }
474
475 1 bool CoilCoolingWaterPanelRadiant::setMaximumChilledWaterFlowRate(double maximumChilledWaterFlowRate) {
476
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->setMaximumChilledWaterFlowRate(maximumChilledWaterFlowRate);
477 }
478
479 9 void CoilCoolingWaterPanelRadiant::autosizeMaximumChilledWaterFlowRate() {
480
1/1
✓ Branch 3 taken 9 times.
9 getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->autosizeMaximumChilledWaterFlowRate();
481 9 }
482
483 10 bool CoilCoolingWaterPanelRadiant::setControlType(const std::string& controlType) {
484
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->setControlType(controlType);
485 }
486
487 10 bool CoilCoolingWaterPanelRadiant::setCoolingControlThrottlingRange(double coolingControlThrottlingRange) {
488
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->setCoolingControlThrottlingRange(coolingControlThrottlingRange);
489 }
490
491 2 bool CoilCoolingWaterPanelRadiant::setCoolingControlTemperatureSchedule(Schedule& coolingControlTemperatureSchedule) {
492
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->setCoolingControlTemperatureSchedule(coolingControlTemperatureSchedule);
493 }
494
495 1 void CoilCoolingWaterPanelRadiant::resetCoolingControlTemperatureSchedule() {
496
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->resetCoolingControlTemperatureSchedule();
497 1 }
498
499 10 bool CoilCoolingWaterPanelRadiant::setCondensationControlType(const std::string& condensationControlType) {
500
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->setCondensationControlType(condensationControlType);
501 }
502
503 10 bool CoilCoolingWaterPanelRadiant::setCondensationControlDewpointOffset(double condensationControlDewpointOffset) {
504
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->setCondensationControlDewpointOffset(condensationControlDewpointOffset);
505 }
506
507 /// @cond
508 3 CoilCoolingWaterPanelRadiant::CoilCoolingWaterPanelRadiant(std::shared_ptr<detail::CoilCoolingWaterPanelRadiant_Impl> impl)
509
1/1
✓ Branch 3 taken 3 times.
3 : StraightComponent(std::move(impl)) {}
510 /// @endcond
511
512 ✗ boost::optional<double> CoilCoolingWaterPanelRadiant::autosizedCoolingDesignCapacity() const {
513 ✗ return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->autosizedCoolingDesignCapacity();
514 }
515
516 ✗ boost::optional<double> CoilCoolingWaterPanelRadiant::autosizedMaximumChilledWaterFlowRate() const {
517 ✗ return getImpl<detail::CoilCoolingWaterPanelRadiant_Impl>()->autosizedMaximumChilledWaterFlowRate();
518 }
519
520 } // namespace model
521 } // namespace openstudio
522