GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 69.6% 160 / 0 / 230
Functions: 71.4% 45 / 0 / 63
Branches: 50.8% 99 / 0 / 195

src/model/CoilHeatingWaterBaseboardRadiant.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 "CoilHeatingWaterBaseboardRadiant.hpp"
7 #include "CoilHeatingWaterBaseboardRadiant_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 "ZoneHVACBaseboardRadiantConvectiveWater.hpp"
15 #include "ZoneHVACBaseboardRadiantConvectiveWater_Impl.hpp"
16
17 #include <utilities/idd/IddFactory.hxx>
18 #include <utilities/idd/IddEnums.hxx>
19 #include <utilities/idd/OS_Coil_Heating_Water_Baseboard_Radiant_FieldEnums.hxx>
20
21 #include "../utilities/core/Assert.hpp"
22 #include "../utilities/data/DataEnums.hpp"
23
24 namespace openstudio {
25 namespace model {
26
27 namespace detail {
28
29 6 CoilHeatingWaterBaseboardRadiant_Impl::CoilHeatingWaterBaseboardRadiant_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
30 6 : StraightComponent_Impl(idfObject, model, keepHandle) {
31
4/6
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 6 times.
✗ Branch 13 not taken.
6 OS_ASSERT(idfObject.iddObject().type() == CoilHeatingWaterBaseboardRadiant::iddObjectType());
32 6 }
33
34 ✗ CoilHeatingWaterBaseboardRadiant_Impl::CoilHeatingWaterBaseboardRadiant_Impl(const openstudio::detail::WorkspaceObject_Impl& other,
35 ✗ Model_Impl* model, bool keepHandle)
36 ✗ : StraightComponent_Impl(other, model, keepHandle) {
37 ✗ OS_ASSERT(other.iddObject().type() == CoilHeatingWaterBaseboardRadiant::iddObjectType());
38 ✗ }
39
40 1 CoilHeatingWaterBaseboardRadiant_Impl::CoilHeatingWaterBaseboardRadiant_Impl(const CoilHeatingWaterBaseboardRadiant_Impl& other,
41 1 Model_Impl* model, bool keepHandle)
42 1 : StraightComponent_Impl(other, model, keepHandle) {}
43
44 ✗ const std::vector<std::string>& CoilHeatingWaterBaseboardRadiant_Impl::outputVariableNames() const {
45 ✗ static const std::vector<std::string> result;
46 ✗ return result;
47 }
48
49 ✗ IddObjectType CoilHeatingWaterBaseboardRadiant_Impl::iddObjectType() const {
50 ✗ return CoilHeatingWaterBaseboardRadiant::iddObjectType();
51 }
52
53 5 unsigned CoilHeatingWaterBaseboardRadiant_Impl::inletPort() const {
54 5 return OS_Coil_Heating_Water_Baseboard_RadiantFields::InletNodeName;
55 }
56
57 14 unsigned CoilHeatingWaterBaseboardRadiant_Impl::outletPort() const {
58 14 return OS_Coil_Heating_Water_Baseboard_RadiantFields::OutletNodeName;
59 }
60
61 1 boost::optional<ZoneHVACComponent> CoilHeatingWaterBaseboardRadiant_Impl::containingZoneHVACComponent() const {
62 // this coil can only be found in a ZoneHVACBaseboardRadiantConvectiveWater
63 // check all ZoneHVACBaseboardRadiantConvectiveWaters in the model, seeing if this coil
64 // is inside of one of them. Return the one it is inside of
65
66
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 auto const zoneHVACBaseboardRadiantConvectiveWaters = this->model().getConcreteModelObjects<ZoneHVACBaseboardRadiantConvectiveWater>();
67 // loop through each one, seeing if the coil is contained by the zonehvacbaseboard
68
1/2
✓ Branch 5 taken 1 time.
✗ Branch 6 not taken.
1 for (const auto& zoneHVACBaseboardRadiantConvectiveWater : zoneHVACBaseboardRadiantConvectiveWaters) {
69
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<HVACComponent> coil = zoneHVACBaseboardRadiantConvectiveWater.heatingCoil()) {
70
5/6
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 12 taken 1 time.
✗ Branch 13 not taken.
1 if (coil->handle() == this->handle()) { //if the handles match, this coil is inside of a zonehvacbaseboard
71
1/1
✓ Branch 1 taken 1 time.
1 return zoneHVACBaseboardRadiantConvectiveWater;
72 }
73 1 }
74 }
75
76 // if the coil isn't inside any zonehvacbaseboards (which currently should never happen), return nothing
77 ✗ return boost::none;
78 1 }
79
80 6 bool CoilHeatingWaterBaseboardRadiant_Impl::addToNode(Node& node) {
81
3/3
✓ Branch 1 taken 6 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 2 times.
12 if (boost::optional<PlantLoop> plant = node.plantLoop()) {
82
5/5
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 3 times.
✓ Branch 11 taken 1 time.
8 if (plant->demandComponent(node.handle())) {
83
1/1
✓ Branch 1 taken 3 times.
3 return StraightComponent_Impl::addToNode(node);
84 }
85 6 }
86
87 3 return false;
88 }
89
90 2 double CoilHeatingWaterBaseboardRadiant_Impl::ratedAverageWaterTemperature() const {
91
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_Coil_Heating_Water_Baseboard_RadiantFields::RatedAverageWaterTemperature, true);
92
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
93
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
94 }
95
96 2 double CoilHeatingWaterBaseboardRadiant_Impl::ratedWaterMassFlowRate() const {
97
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_Coil_Heating_Water_Baseboard_RadiantFields::RatedWaterMassFlowRate, true);
98
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
99
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
100 }
101
102 2 std::string CoilHeatingWaterBaseboardRadiant_Impl::heatingDesignCapacityMethod() const {
103
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<std::string> value = getString(OS_Coil_Heating_Water_Baseboard_RadiantFields::HeatingDesignCapacityMethod, true);
104
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
105
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 return value.get();
106 2 }
107
108 ✗ boost::optional<double> CoilHeatingWaterBaseboardRadiant_Impl::heatingDesignCapacity() const {
109 ✗ return getDouble(OS_Coil_Heating_Water_Baseboard_RadiantFields::HeatingDesignCapacity, true);
110 }
111
112 1 bool CoilHeatingWaterBaseboardRadiant_Impl::isHeatingDesignCapacityAutosized() const {
113 1 bool result = false;
114
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_Coil_Heating_Water_Baseboard_RadiantFields::HeatingDesignCapacity, true);
115
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
116
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "autosize");
117 }
118 1 return result;
119 1 }
120
121 2 double CoilHeatingWaterBaseboardRadiant_Impl::heatingDesignCapacityPerFloorArea() const {
122
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_Coil_Heating_Water_Baseboard_RadiantFields::HeatingDesignCapacityPerFloorArea, true);
123
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
124
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
125 }
126
127 2 double CoilHeatingWaterBaseboardRadiant_Impl::fractionofAutosizedHeatingDesignCapacity() const {
128
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_Coil_Heating_Water_Baseboard_RadiantFields::FractionofAutosizedHeatingDesignCapacity, true);
129
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
130
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
131 }
132
133 2 boost::optional<double> CoilHeatingWaterBaseboardRadiant_Impl::maximumWaterFlowRate() const {
134 2 return getDouble(OS_Coil_Heating_Water_Baseboard_RadiantFields::MaximumWaterFlowRate, true);
135 }
136
137 1 bool CoilHeatingWaterBaseboardRadiant_Impl::isMaximumWaterFlowRateAutosized() const {
138 1 bool result = false;
139
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_Coil_Heating_Water_Baseboard_RadiantFields::MaximumWaterFlowRate, true);
140
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
141
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "autosize");
142 }
143 1 return result;
144 1 }
145
146 2 double CoilHeatingWaterBaseboardRadiant_Impl::convergenceTolerance() const {
147
1/1
✓ Branch 1 taken 2 times.
2 boost::optional<double> value = getDouble(OS_Coil_Heating_Water_Baseboard_RadiantFields::ConvergenceTolerance, true);
148
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
2 OS_ASSERT(value);
149
1/1
✓ Branch 1 taken 2 times.
4 return value.get();
150 }
151
152 6 bool CoilHeatingWaterBaseboardRadiant_Impl::setRatedAverageWaterTemperature(double ratedAverageWaterTemperature) {
153 6 bool result = setDouble(OS_Coil_Heating_Water_Baseboard_RadiantFields::RatedAverageWaterTemperature, ratedAverageWaterTemperature);
154 6 return result;
155 }
156
157 6 bool CoilHeatingWaterBaseboardRadiant_Impl::setRatedWaterMassFlowRate(double ratedWaterMassFlowRate) {
158 6 bool result = setDouble(OS_Coil_Heating_Water_Baseboard_RadiantFields::RatedWaterMassFlowRate, ratedWaterMassFlowRate);
159 6 return result;
160 }
161
162 6 bool CoilHeatingWaterBaseboardRadiant_Impl::setHeatingDesignCapacityMethod(const std::string& heatingDesignCapacityMethod) {
163 6 bool result = setString(OS_Coil_Heating_Water_Baseboard_RadiantFields::HeatingDesignCapacityMethod, heatingDesignCapacityMethod);
164 6 return result;
165 }
166
167 ✗ bool CoilHeatingWaterBaseboardRadiant_Impl::setHeatingDesignCapacity(boost::optional<double> heatingDesignCapacity) {
168 ✗ bool result(false);
169 ✗ if (heatingDesignCapacity) {
170 ✗ result = setDouble(OS_Coil_Heating_Water_Baseboard_RadiantFields::HeatingDesignCapacity, heatingDesignCapacity.get());
171 }
172 ✗ return result;
173 }
174
175 6 void CoilHeatingWaterBaseboardRadiant_Impl::autosizeHeatingDesignCapacity() {
176
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
12 bool result = setString(OS_Coil_Heating_Water_Baseboard_RadiantFields::HeatingDesignCapacity, "autosize");
177
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
6 OS_ASSERT(result);
178 6 }
179
180 6 bool CoilHeatingWaterBaseboardRadiant_Impl::setHeatingDesignCapacityPerFloorArea(double heatingDesignCapacityPerFloorArea) {
181 6 bool result = setDouble(OS_Coil_Heating_Water_Baseboard_RadiantFields::HeatingDesignCapacityPerFloorArea, heatingDesignCapacityPerFloorArea);
182 6 return result;
183 }
184
185 6 bool CoilHeatingWaterBaseboardRadiant_Impl::setFractionofAutosizedHeatingDesignCapacity(double fractionofAutosizedHeatingDesignCapacity) {
186 bool result =
187 6 setDouble(OS_Coil_Heating_Water_Baseboard_RadiantFields::FractionofAutosizedHeatingDesignCapacity, fractionofAutosizedHeatingDesignCapacity);
188 6 return result;
189 }
190
191 1 bool CoilHeatingWaterBaseboardRadiant_Impl::setMaximumWaterFlowRate(boost::optional<double> maximumWaterFlowRate) {
192 1 bool result(false);
193
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (maximumWaterFlowRate) {
194 1 result = setDouble(OS_Coil_Heating_Water_Baseboard_RadiantFields::MaximumWaterFlowRate, maximumWaterFlowRate.get());
195 }
196
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
197 1 return result;
198 }
199
200 6 void CoilHeatingWaterBaseboardRadiant_Impl::autosizeMaximumWaterFlowRate() {
201
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
12 bool result = setString(OS_Coil_Heating_Water_Baseboard_RadiantFields::MaximumWaterFlowRate, "autosize");
202
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
6 OS_ASSERT(result);
203 6 }
204
205 6 bool CoilHeatingWaterBaseboardRadiant_Impl::setConvergenceTolerance(double convergenceTolerance) {
206 6 bool result = setDouble(OS_Coil_Heating_Water_Baseboard_RadiantFields::ConvergenceTolerance, convergenceTolerance);
207 6 return result;
208 }
209
210 ✗ boost::optional<double> CoilHeatingWaterBaseboardRadiant_Impl::autosizedHeatingDesignCapacity() const {
211 ✗ boost::optional<double> result;
212 // Get the containing ZoneHVAC equipment and get its autosized value
213 ✗ auto parentHVAC = containingZoneHVACComponent();
214 ✗ if (!parentHVAC) {
215 ✗ return result;
216 }
217 ✗ return parentHVAC->getAutosizedValue("Design Size Heating Design Capacity", "W");
218 ✗ }
219
220 ✗ boost::optional<double> CoilHeatingWaterBaseboardRadiant_Impl::autosizedMaximumWaterFlowRate() const {
221 ✗ boost::optional<double> result;
222 // Get the containing ZoneHVAC equipment and get its autosized value
223 ✗ auto parentHVAC = containingZoneHVACComponent();
224 ✗ if (!parentHVAC) {
225 ✗ return result;
226 }
227 ✗ return parentHVAC->getAutosizedValue("Design Size Maximum Water Flow Rate", "m3/s");
228 ✗ }
229
230 ✗ void CoilHeatingWaterBaseboardRadiant_Impl::autosize() {
231 ✗ autosizeHeatingDesignCapacity();
232 ✗ autosizeMaximumWaterFlowRate();
233 ✗ }
234
235 ✗ void CoilHeatingWaterBaseboardRadiant_Impl::applySizingValues() {
236 ✗ boost::optional<double> val;
237 ✗ val = autosizedHeatingDesignCapacity();
238 ✗ if (val) {
239 ✗ setHeatingDesignCapacity(val.get());
240 }
241
242 ✗ val = autosizedMaximumWaterFlowRate();
243 ✗ if (val) {
244 ✗ setMaximumWaterFlowRate(val.get());
245 }
246 ✗ }
247
248 ✗ ComponentType CoilHeatingWaterBaseboardRadiant_Impl::componentType() const {
249 ✗ return ComponentType::Heating;
250 }
251
252 ✗ std::vector<FuelType> CoilHeatingWaterBaseboardRadiant_Impl::coolingFuelTypes() const {
253 ✗ return {};
254 }
255
256 ✗ std::vector<FuelType> CoilHeatingWaterBaseboardRadiant_Impl::heatingFuelTypes() const {
257 ✗ if (auto p_ = plantLoop()) {
258 ✗ return p_->heatingFuelTypes();
259 ✗ }
260 ✗ return {};
261 }
262
263 ✗ std::vector<AppGFuelType> CoilHeatingWaterBaseboardRadiant_Impl::appGHeatingFuelTypes() const {
264 ✗ if (auto p_ = plantLoop()) {
265 ✗ return p_->appGHeatingFuelTypes();
266 ✗ }
267 ✗ return {};
268 }
269
270 } // namespace detail
271
272 6 CoilHeatingWaterBaseboardRadiant::CoilHeatingWaterBaseboardRadiant(const Model& model)
273 6 : StraightComponent(CoilHeatingWaterBaseboardRadiant::iddObjectType(), model) {
274
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 6 times.
✗ Branch 5 not taken.
6 OS_ASSERT(getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>());
275
276 6 bool ok = true;
277
1/1
✓ Branch 1 taken 6 times.
6 ok = setRatedAverageWaterTemperature(87.78);
278
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
6 OS_ASSERT(ok);
279
1/1
✓ Branch 1 taken 6 times.
6 ok = setRatedWaterMassFlowRate(0.063);
280
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
6 OS_ASSERT(ok);
281
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
6 ok = setHeatingDesignCapacityMethod("HeatingDesignCapacity");
282
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
6 OS_ASSERT(ok);
283
1/1
✓ Branch 1 taken 6 times.
6 autosizeHeatingDesignCapacity();
284
1/1
✓ Branch 1 taken 6 times.
6 ok = setHeatingDesignCapacityPerFloorArea(0);
285
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
6 OS_ASSERT(ok);
286
1/1
✓ Branch 1 taken 6 times.
6 ok = setFractionofAutosizedHeatingDesignCapacity(1.0);
287
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
6 OS_ASSERT(ok);
288
1/1
✓ Branch 1 taken 6 times.
6 autosizeMaximumWaterFlowRate();
289
1/1
✓ Branch 1 taken 6 times.
6 ok = setConvergenceTolerance(0.001);
290
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
6 OS_ASSERT(ok);
291 6 }
292
293 7610 IddObjectType CoilHeatingWaterBaseboardRadiant::iddObjectType() {
294
1/1
✓ Branch 1 taken 7610 times.
7610 return {IddObjectType::OS_Coil_Heating_Water_Baseboard_Radiant};
295 }
296
297 ✗ std::vector<std::string> CoilHeatingWaterBaseboardRadiant::heatingDesignCapacityMethodValues() {
298 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
299 ✗ OS_Coil_Heating_Water_Baseboard_RadiantFields::HeatingDesignCapacityMethod);
300 }
301
302 2 double CoilHeatingWaterBaseboardRadiant::ratedAverageWaterTemperature() const {
303
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->ratedAverageWaterTemperature();
304 }
305
306 2 double CoilHeatingWaterBaseboardRadiant::ratedWaterMassFlowRate() const {
307
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->ratedWaterMassFlowRate();
308 }
309
310 2 std::string CoilHeatingWaterBaseboardRadiant::heatingDesignCapacityMethod() const {
311
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->heatingDesignCapacityMethod();
312 }
313
314 ✗ boost::optional<double> CoilHeatingWaterBaseboardRadiant::heatingDesignCapacity() const {
315 ✗ return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->heatingDesignCapacity();
316 }
317
318 1 bool CoilHeatingWaterBaseboardRadiant::isHeatingDesignCapacityAutosized() const {
319
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->isHeatingDesignCapacityAutosized();
320 }
321
322 2 double CoilHeatingWaterBaseboardRadiant::heatingDesignCapacityPerFloorArea() const {
323
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->heatingDesignCapacityPerFloorArea();
324 }
325
326 2 double CoilHeatingWaterBaseboardRadiant::fractionofAutosizedHeatingDesignCapacity() const {
327
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->fractionofAutosizedHeatingDesignCapacity();
328 }
329
330 2 boost::optional<double> CoilHeatingWaterBaseboardRadiant::maximumWaterFlowRate() const {
331
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->maximumWaterFlowRate();
332 }
333
334 1 bool CoilHeatingWaterBaseboardRadiant::isMaximumWaterFlowRateAutosized() const {
335
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->isMaximumWaterFlowRateAutosized();
336 }
337
338 2 double CoilHeatingWaterBaseboardRadiant::convergenceTolerance() const {
339
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->convergenceTolerance();
340 }
341
342 6 bool CoilHeatingWaterBaseboardRadiant::setRatedAverageWaterTemperature(double ratedAverageWaterTemperature) {
343
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->setRatedAverageWaterTemperature(ratedAverageWaterTemperature);
344 }
345
346 6 bool CoilHeatingWaterBaseboardRadiant::setRatedWaterMassFlowRate(double ratedWaterMassFlowRate) {
347
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->setRatedWaterMassFlowRate(ratedWaterMassFlowRate);
348 }
349
350 6 bool CoilHeatingWaterBaseboardRadiant::setHeatingDesignCapacityMethod(const std::string& heatingDesignCapacityMethod) {
351
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->setHeatingDesignCapacityMethod(heatingDesignCapacityMethod);
352 }
353
354 ✗ bool CoilHeatingWaterBaseboardRadiant::setHeatingDesignCapacity(double heatingDesignCapacity) {
355 ✗ return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->setHeatingDesignCapacity(heatingDesignCapacity);
356 }
357
358 6 void CoilHeatingWaterBaseboardRadiant::autosizeHeatingDesignCapacity() {
359
1/1
✓ Branch 3 taken 6 times.
6 getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->autosizeHeatingDesignCapacity();
360 6 }
361
362 6 bool CoilHeatingWaterBaseboardRadiant::setHeatingDesignCapacityPerFloorArea(double heatingDesignCapacityPerFloorArea) {
363
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->setHeatingDesignCapacityPerFloorArea(heatingDesignCapacityPerFloorArea);
364 }
365
366 6 bool CoilHeatingWaterBaseboardRadiant::setFractionofAutosizedHeatingDesignCapacity(double fractionofAutosizedHeatingDesignCapacity) {
367
1/1
✓ Branch 3 taken 6 times.
12 return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->setFractionofAutosizedHeatingDesignCapacity(
368 12 fractionofAutosizedHeatingDesignCapacity);
369 }
370
371 1 bool CoilHeatingWaterBaseboardRadiant::setMaximumWaterFlowRate(double maximumWaterFlowRate) {
372
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->setMaximumWaterFlowRate(maximumWaterFlowRate);
373 }
374
375 6 void CoilHeatingWaterBaseboardRadiant::autosizeMaximumWaterFlowRate() {
376
1/1
✓ Branch 3 taken 6 times.
6 getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->autosizeMaximumWaterFlowRate();
377 6 }
378
379 6 bool CoilHeatingWaterBaseboardRadiant::setConvergenceTolerance(double convergenceTolerance) {
380
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->setConvergenceTolerance(convergenceTolerance);
381 }
382
383 /// @cond
384 4 CoilHeatingWaterBaseboardRadiant::CoilHeatingWaterBaseboardRadiant(std::shared_ptr<detail::CoilHeatingWaterBaseboardRadiant_Impl> impl)
385
1/1
✓ Branch 3 taken 4 times.
4 : StraightComponent(std::move(impl)) {}
386 /// @endcond
387
388 ✗ boost::optional<double> CoilHeatingWaterBaseboardRadiant::autosizedHeatingDesignCapacity() const {
389 ✗ return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->autosizedHeatingDesignCapacity();
390 }
391
392 ✗ boost::optional<double> CoilHeatingWaterBaseboardRadiant::autosizedMaximumWaterFlowRate() const {
393 ✗ return getImpl<detail::CoilHeatingWaterBaseboardRadiant_Impl>()->autosizedMaximumWaterFlowRate();
394 }
395
396 } // namespace model
397 } // namespace openstudio
398