GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 42.6% 104 / 0 / 244
Functions: 39.4% 26 / 0 / 66
Branches: 28.8% 68 / 0 / 236

src/model/ZoneHVACBaseboardRadiantConvectiveElectric.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 "ZoneHVACBaseboardRadiantConvectiveElectric.hpp"
7 #include "ZoneHVACBaseboardRadiantConvectiveElectric_Impl.hpp"
8
9 #include "Schedule.hpp"
10 #include "Schedule_Impl.hpp"
11 #include "Surface.hpp"
12 #include "Surface_Impl.hpp"
13 #include "ThermalZone.hpp"
14 #include "ThermalZone_Impl.hpp"
15 #include "Model.hpp"
16 #include "Space.hpp"
17 #include "ScheduleTypeLimits.hpp"
18 #include "ScheduleTypeRegistry.hpp"
19
20 #include <utilities/idd/IddFactory.hxx>
21 #include <utilities/idd/OS_ZoneHVAC_Baseboard_RadiantConvective_Electric_FieldEnums.hxx>
22
23 #include "../utilities/core/Assert.hpp"
24 #include "../utilities/data/DataEnums.hpp"
25
26 namespace openstudio {
27 namespace model {
28
29 namespace detail {
30
31 3 ZoneHVACBaseboardRadiantConvectiveElectric_Impl::ZoneHVACBaseboardRadiantConvectiveElectric_Impl(const IdfObject& idfObject, Model_Impl* model,
32 3 bool keepHandle)
33 3 : ZoneHVACComponent_Impl(idfObject, model, keepHandle) {
34
4/6
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 3 times.
✗ Branch 13 not taken.
3 OS_ASSERT(idfObject.iddObject().type() == ZoneHVACBaseboardRadiantConvectiveElectric::iddObjectType());
35 3 }
36
37 ✗ ZoneHVACBaseboardRadiantConvectiveElectric_Impl::ZoneHVACBaseboardRadiantConvectiveElectric_Impl(
38 ✗ const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
39 ✗ : ZoneHVACComponent_Impl(other, model, keepHandle) {
40 ✗ OS_ASSERT(other.iddObject().type() == ZoneHVACBaseboardRadiantConvectiveElectric::iddObjectType());
41 ✗ }
42
43 ✗ ZoneHVACBaseboardRadiantConvectiveElectric_Impl::ZoneHVACBaseboardRadiantConvectiveElectric_Impl(
44 ✗ const ZoneHVACBaseboardRadiantConvectiveElectric_Impl& other, Model_Impl* model, bool keepHandle)
45 ✗ : ZoneHVACComponent_Impl(other, model, keepHandle) {}
46
47 ✗ const std::vector<std::string>& ZoneHVACBaseboardRadiantConvectiveElectric_Impl::outputVariableNames() const {
48 static const std::vector<std::string> result{"Baseboard Total Heating Rate", "Baseboard Total Heating Energy", "Baseboard Electricity Energy",
49 ✗ "Baseboard Electricity Rate"};
50 ✗ return result;
51 ✗ }
52
53 ✗ IddObjectType ZoneHVACBaseboardRadiantConvectiveElectric_Impl::iddObjectType() const {
54 ✗ return ZoneHVACBaseboardRadiantConvectiveElectric::iddObjectType();
55 }
56
57 ✗ std::vector<ScheduleTypeKey> ZoneHVACBaseboardRadiantConvectiveElectric_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_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::AvailabilityScheduleName) != e) {
63 ✗ result.push_back(ScheduleTypeKey("ZoneHVACBaseboardRadiantConvectiveElectric", "Availability"));
64 }
65 ✗ return result;
66 ✗ }
67
68 2 unsigned ZoneHVACBaseboardRadiantConvectiveElectric_Impl::inletPort() const {
69 2 return 0; // this object has no inlet or outlet node
70 }
71
72 ✗ unsigned ZoneHVACBaseboardRadiantConvectiveElectric_Impl::outletPort() const {
73 ✗ return 0; // this object has no inlet or outlet node
74 }
75
76 6 boost::optional<ThermalZone> ZoneHVACBaseboardRadiantConvectiveElectric_Impl::thermalZone() const {
77
1/1
✓ Branch 1 taken 6 times.
6 auto thisObject = this->getObject<ModelObject>();
78
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
6 auto const thermalZones = this->model().getConcreteModelObjects<ThermalZone>();
79
2/2
✓ Branch 5 taken 6 times.
✓ Branch 6 taken 2 times.
8 for (auto const& thermalZone : thermalZones) {
80
1/1
✓ Branch 1 taken 6 times.
6 std::vector<ModelObject> equipment = thermalZone.equipment();
81
82
3/3
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 4 times.
✓ Branch 8 taken 2 times.
6 if (std::find(equipment.begin(), equipment.end(), thisObject) != equipment.end()) {
83
1/1
✓ Branch 1 taken 4 times.
4 return thermalZone;
84 }
85 6 }
86 2 return boost::none;
87 6 }
88
89 2 bool ZoneHVACBaseboardRadiantConvectiveElectric_Impl::addToThermalZone(ThermalZone& thermalZone) {
90
1/1
✓ Branch 1 taken 2 times.
2 Model m = this->model();
91
92
7/13
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 6 taken 2 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 2 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 2 times.
✓ Branch 13 taken 2 times.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✓ Branch 17 taken 2 times.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
2 if (thermalZone.model() != m || thermalZone.isPlenum()) {
93 ✗ return false;
94 }
95
96
1/1
✓ Branch 1 taken 2 times.
2 removeFromThermalZone();
97
98
1/1
✓ Branch 1 taken 2 times.
2 thermalZone.setUseIdealAirLoads(false);
99
100
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 thermalZone.addEquipment(this->getObject<ZoneHVACComponent>());
101
102 2 return true;
103 2 }
104
105 4 void ZoneHVACBaseboardRadiantConvectiveElectric_Impl::removeFromThermalZone() {
106
3/3
✓ Branch 1 taken 4 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 2 times.
8 if (auto thermalZone = this->thermalZone()) {
107
3/3
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
2 thermalZone->removeEquipment(this->getObject<ZoneHVACComponent>());
108 4 }
109 4 }
110
111 ✗ std::vector<Surface> ZoneHVACBaseboardRadiantConvectiveElectric_Impl::surfaces() const {
112
113 //vector to hold all of the surfaces that this radiant system is attached to
114 ✗ std::vector<Surface> surfaces;
115
116 //get the thermal zone this equipment belongs to
117 ✗ if (auto const thermalZone = this->thermalZone()) {
118
119 //loop through all the spaces in this zone
120 ✗ for (auto const& space : thermalZone->spaces()) {
121
122 //loop through all the surfaces in this space
123 ✗ for (auto const& surface : space.surfaces()) {
124 ✗ surfaces.push_back(surface);
125 ✗ }
126 ✗ }
127 ✗ }
128
129 ✗ return surfaces;
130 ✗ }
131
132 ✗ Schedule ZoneHVACBaseboardRadiantConvectiveElectric_Impl::availabilitySchedule() const {
133 ✗ boost::optional<Schedule> value = optionalAvailabilitySchedule();
134 ✗ if (!value) {
135 ✗ LOG_AND_THROW(briefDescription() << " does not have an Availability Schedule attached.");
136 }
137 ✗ return value.get();
138 ✗ }
139
140 ✗ std::string ZoneHVACBaseboardRadiantConvectiveElectric_Impl::heatingDesignCapacityMethod() const {
141 ✗ boost::optional<std::string> value = getString(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::HeatingDesignCapacityMethod, true);
142 ✗ OS_ASSERT(value);
143 ✗ return value.get();
144 ✗ }
145
146 ✗ boost::optional<double> ZoneHVACBaseboardRadiantConvectiveElectric_Impl::heatingDesignCapacity() const {
147 ✗ return getDouble(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::HeatingDesignCapacity, true);
148 }
149
150 ✗ bool ZoneHVACBaseboardRadiantConvectiveElectric_Impl::isHeatingDesignCapacityAutosized() const {
151 ✗ bool result = false;
152 ✗ boost::optional<std::string> value = getString(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::HeatingDesignCapacity, true);
153 ✗ if (value) {
154 ✗ result = openstudio::istringEqual(value.get(), "autosize");
155 }
156 ✗ return result;
157 ✗ }
158
159 ✗ double ZoneHVACBaseboardRadiantConvectiveElectric_Impl::heatingDesignCapacityPerFloorArea() const {
160 ✗ boost::optional<double> value = getDouble(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::HeatingDesignCapacityPerFloorArea, true);
161 ✗ OS_ASSERT(value);
162 ✗ return value.get();
163 }
164
165 ✗ double ZoneHVACBaseboardRadiantConvectiveElectric_Impl::fractionofAutosizedHeatingDesignCapacity() const {
166 boost::optional<double> value =
167 ✗ getDouble(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::FractionofAutosizedHeatingDesignCapacity, true);
168 ✗ OS_ASSERT(value);
169 ✗ return value.get();
170 }
171
172 ✗ double ZoneHVACBaseboardRadiantConvectiveElectric_Impl::efficiency() const {
173 ✗ boost::optional<double> value = getDouble(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::Efficiency, true);
174 ✗ OS_ASSERT(value);
175 ✗ return value.get();
176 }
177
178 ✗ double ZoneHVACBaseboardRadiantConvectiveElectric_Impl::fractionRadiant() const {
179 ✗ boost::optional<double> value = getDouble(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::FractionRadiant, true);
180 ✗ OS_ASSERT(value);
181 ✗ return value.get();
182 }
183
184 ✗ double ZoneHVACBaseboardRadiantConvectiveElectric_Impl::fractionofRadiantEnergyIncidentonPeople() const {
185 boost::optional<double> value =
186 ✗ getDouble(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::FractionofRadiantEnergyIncidentonPeople, true);
187 ✗ OS_ASSERT(value);
188 ✗ return value.get();
189 }
190
191 3 bool ZoneHVACBaseboardRadiantConvectiveElectric_Impl::setAvailabilitySchedule(Schedule& schedule) {
192
3/3
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
12 bool result = setSchedule(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::AvailabilityScheduleName,
193 "ZoneHVACBaseboardRadiantConvectiveElectric", "Availability", schedule);
194 3 return result;
195 }
196
197 3 bool ZoneHVACBaseboardRadiantConvectiveElectric_Impl::setHeatingDesignCapacityMethod(const std::string& heatingDesignCapacityMethod) {
198 3 bool result = setString(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::HeatingDesignCapacityMethod, heatingDesignCapacityMethod);
199 3 return result;
200 }
201
202 ✗ bool ZoneHVACBaseboardRadiantConvectiveElectric_Impl::setHeatingDesignCapacity(boost::optional<double> heatingDesignCapacity) {
203 ✗ bool result(false);
204 ✗ if (heatingDesignCapacity) {
205 ✗ result = setDouble(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::HeatingDesignCapacity, heatingDesignCapacity.get());
206 }
207 ✗ return result;
208 }
209
210 3 void ZoneHVACBaseboardRadiantConvectiveElectric_Impl::autosizeHeatingDesignCapacity() {
211
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 bool result = setString(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::HeatingDesignCapacity, "autosize");
212
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
213 3 }
214
215 3 bool ZoneHVACBaseboardRadiantConvectiveElectric_Impl::setHeatingDesignCapacityPerFloorArea(double heatingDesignCapacityPerFloorArea) {
216 bool result =
217 3 setDouble(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::HeatingDesignCapacityPerFloorArea, heatingDesignCapacityPerFloorArea);
218 3 return result;
219 }
220
221 bool
222 3 ZoneHVACBaseboardRadiantConvectiveElectric_Impl::setFractionofAutosizedHeatingDesignCapacity(double fractionofAutosizedHeatingDesignCapacity) {
223 3 bool result = setDouble(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::FractionofAutosizedHeatingDesignCapacity,
224 fractionofAutosizedHeatingDesignCapacity);
225 3 return result;
226 }
227
228 3 bool ZoneHVACBaseboardRadiantConvectiveElectric_Impl::setEfficiency(double efficiency) {
229 3 bool result = setDouble(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::Efficiency, efficiency);
230 3 return result;
231 }
232
233 3 bool ZoneHVACBaseboardRadiantConvectiveElectric_Impl::setFractionRadiant(double fractionRadiant) {
234 3 bool result = setDouble(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::FractionRadiant, fractionRadiant);
235 3 return result;
236 }
237
238 3 bool ZoneHVACBaseboardRadiantConvectiveElectric_Impl::setFractionofRadiantEnergyIncidentonPeople(double fractionofRadiantEnergyIncidentonPeople) {
239 3 bool result = setDouble(OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::FractionofRadiantEnergyIncidentonPeople,
240 fractionofRadiantEnergyIncidentonPeople);
241 3 return result;
242 }
243
244 ✗ boost::optional<Schedule> ZoneHVACBaseboardRadiantConvectiveElectric_Impl::optionalAvailabilitySchedule() const {
245 ✗ return getObject<ModelObject>().getModelObjectTarget<Schedule>(
246 ✗ OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::AvailabilityScheduleName);
247 }
248
249 ✗ boost::optional<double> ZoneHVACBaseboardRadiantConvectiveElectric_Impl::autosizedHeatingDesignCapacity() const {
250 ✗ return getAutosizedValue("Design Size Heating Design Capacity", "W");
251 }
252
253 ✗ void ZoneHVACBaseboardRadiantConvectiveElectric_Impl::autosize() {
254 ✗ autosizeHeatingDesignCapacity();
255 ✗ }
256
257 ✗ void ZoneHVACBaseboardRadiantConvectiveElectric_Impl::applySizingValues() {
258 ✗ boost::optional<double> val;
259 ✗ val = autosizedHeatingDesignCapacity();
260 ✗ if (val) {
261 ✗ setHeatingDesignCapacity(val.get());
262 }
263 ✗ }
264
265 ✗ std::vector<EMSActuatorNames> ZoneHVACBaseboardRadiantConvectiveElectric_Impl::emsActuatorNames() const {
266 ✗ std::vector<EMSActuatorNames> actuators{{"ZoneBaseboard:OutdoorTemperatureControlled", "Power Level"}};
267 ✗ return actuators;
268 ✗ }
269
270 ✗ std::vector<std::string> ZoneHVACBaseboardRadiantConvectiveElectric_Impl::emsInternalVariableNames() const {
271 ✗ std::vector<std::string> types{"Simple Zone Baseboard Capacity At Low Temperature", "Simple Zone Baseboard Capacity At High Temperature"};
272 ✗ return types;
273 ✗ }
274
275 ✗ ComponentType ZoneHVACBaseboardRadiantConvectiveElectric_Impl::componentType() const {
276 ✗ return ComponentType::Heating;
277 }
278
279 ✗ std::vector<FuelType> ZoneHVACBaseboardRadiantConvectiveElectric_Impl::coolingFuelTypes() const {
280 ✗ return {};
281 }
282
283 ✗ std::vector<FuelType> ZoneHVACBaseboardRadiantConvectiveElectric_Impl::heatingFuelTypes() const {
284 ✗ return {FuelType::Electricity};
285 }
286
287 ✗ std::vector<AppGFuelType> ZoneHVACBaseboardRadiantConvectiveElectric_Impl::appGHeatingFuelTypes() const {
288 ✗ return {AppGFuelType::Electric};
289 }
290
291 } // namespace detail
292
293 3 ZoneHVACBaseboardRadiantConvectiveElectric::ZoneHVACBaseboardRadiantConvectiveElectric(const Model& model)
294 3 : ZoneHVACComponent(ZoneHVACBaseboardRadiantConvectiveElectric::iddObjectType(), model) {
295
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
✗ Branch 5 not taken.
3 OS_ASSERT(getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>());
296
297 3 bool ok = true;
298
1/1
✓ Branch 1 taken 3 times.
3 auto alwaysOn = model.alwaysOnDiscreteSchedule();
299
1/1
✓ Branch 1 taken 3 times.
3 ok = setAvailabilitySchedule(alwaysOn);
300
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
301
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 ok = setHeatingDesignCapacityMethod("HeatingDesignCapacity");
302
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
303
1/1
✓ Branch 1 taken 3 times.
3 autosizeHeatingDesignCapacity();
304
1/1
✓ Branch 1 taken 3 times.
3 ok = setHeatingDesignCapacityPerFloorArea(0);
305
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
306
1/1
✓ Branch 1 taken 3 times.
3 ok = setFractionofAutosizedHeatingDesignCapacity(1.0);
307
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
308
1/1
✓ Branch 1 taken 3 times.
3 ok = setEfficiency(1.0);
309
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
310
1/1
✓ Branch 1 taken 3 times.
3 ok = setFractionRadiant(0.2);
311
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
312
1/1
✓ Branch 1 taken 3 times.
3 ok = setFractionofRadiantEnergyIncidentonPeople(0.3);
313
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
314 3 }
315
316 7604 IddObjectType ZoneHVACBaseboardRadiantConvectiveElectric::iddObjectType() {
317
1/1
✓ Branch 1 taken 7604 times.
7604 return {IddObjectType::OS_ZoneHVAC_Baseboard_RadiantConvective_Electric};
318 }
319
320 ✗ std::vector<std::string> ZoneHVACBaseboardRadiantConvectiveElectric::heatingDesignCapacityMethodValues() {
321 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
322 ✗ OS_ZoneHVAC_Baseboard_RadiantConvective_ElectricFields::HeatingDesignCapacityMethod);
323 }
324
325 ✗ Schedule ZoneHVACBaseboardRadiantConvectiveElectric::availabilitySchedule() const {
326 ✗ return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->availabilitySchedule();
327 }
328
329 ✗ std::string ZoneHVACBaseboardRadiantConvectiveElectric::heatingDesignCapacityMethod() const {
330 ✗ return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->heatingDesignCapacityMethod();
331 }
332
333 ✗ boost::optional<double> ZoneHVACBaseboardRadiantConvectiveElectric::heatingDesignCapacity() const {
334 ✗ return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->heatingDesignCapacity();
335 }
336
337 ✗ bool ZoneHVACBaseboardRadiantConvectiveElectric::isHeatingDesignCapacityAutosized() const {
338 ✗ return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->isHeatingDesignCapacityAutosized();
339 }
340
341 ✗ double ZoneHVACBaseboardRadiantConvectiveElectric::heatingDesignCapacityPerFloorArea() const {
342 ✗ return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->heatingDesignCapacityPerFloorArea();
343 }
344
345 ✗ double ZoneHVACBaseboardRadiantConvectiveElectric::fractionofAutosizedHeatingDesignCapacity() const {
346 ✗ return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->fractionofAutosizedHeatingDesignCapacity();
347 }
348
349 ✗ double ZoneHVACBaseboardRadiantConvectiveElectric::efficiency() const {
350 ✗ return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->efficiency();
351 }
352
353 ✗ double ZoneHVACBaseboardRadiantConvectiveElectric::fractionRadiant() const {
354 ✗ return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->fractionRadiant();
355 }
356
357 ✗ double ZoneHVACBaseboardRadiantConvectiveElectric::fractionofRadiantEnergyIncidentonPeople() const {
358 ✗ return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->fractionofRadiantEnergyIncidentonPeople();
359 }
360
361 3 bool ZoneHVACBaseboardRadiantConvectiveElectric::setAvailabilitySchedule(Schedule& schedule) {
362
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->setAvailabilitySchedule(schedule);
363 }
364
365 3 bool ZoneHVACBaseboardRadiantConvectiveElectric::setHeatingDesignCapacityMethod(const std::string& heatingDesignCapacityMethod) {
366
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->setHeatingDesignCapacityMethod(heatingDesignCapacityMethod);
367 }
368
369 ✗ bool ZoneHVACBaseboardRadiantConvectiveElectric::setHeatingDesignCapacity(double heatingDesignCapacity) {
370 ✗ return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->setHeatingDesignCapacity(heatingDesignCapacity);
371 }
372
373 3 void ZoneHVACBaseboardRadiantConvectiveElectric::autosizeHeatingDesignCapacity() {
374
1/1
✓ Branch 3 taken 3 times.
3 getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->autosizeHeatingDesignCapacity();
375 3 }
376
377 3 bool ZoneHVACBaseboardRadiantConvectiveElectric::setHeatingDesignCapacityPerFloorArea(double heatingDesignCapacityPerFloorArea) {
378
1/1
✓ Branch 3 taken 3 times.
6 return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->setHeatingDesignCapacityPerFloorArea(
379 6 heatingDesignCapacityPerFloorArea);
380 }
381
382 3 bool ZoneHVACBaseboardRadiantConvectiveElectric::setFractionofAutosizedHeatingDesignCapacity(double fractionofAutosizedHeatingDesignCapacity) {
383
1/1
✓ Branch 3 taken 3 times.
6 return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->setFractionofAutosizedHeatingDesignCapacity(
384 6 fractionofAutosizedHeatingDesignCapacity);
385 }
386
387 3 bool ZoneHVACBaseboardRadiantConvectiveElectric::setEfficiency(double efficiency) {
388
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->setEfficiency(efficiency);
389 }
390
391 3 bool ZoneHVACBaseboardRadiantConvectiveElectric::setFractionRadiant(double fractionRadiant) {
392
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->setFractionRadiant(fractionRadiant);
393 }
394
395 3 bool ZoneHVACBaseboardRadiantConvectiveElectric::setFractionofRadiantEnergyIncidentonPeople(double fractionofRadiantEnergyIncidentonPeople) {
396
1/1
✓ Branch 3 taken 3 times.
6 return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->setFractionofRadiantEnergyIncidentonPeople(
397 6 fractionofRadiantEnergyIncidentonPeople);
398 }
399
400 2 boost::optional<ThermalZone> ZoneHVACBaseboardRadiantConvectiveElectric::thermalZone() const {
401
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->thermalZone();
402 }
403
404 2 bool ZoneHVACBaseboardRadiantConvectiveElectric::addToThermalZone(ThermalZone& thermalZone) {
405
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->addToThermalZone(thermalZone);
406 }
407
408 1 void ZoneHVACBaseboardRadiantConvectiveElectric::removeFromThermalZone() {
409
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->removeFromThermalZone();
410 }
411
412 /// @cond
413 ✗ ZoneHVACBaseboardRadiantConvectiveElectric::ZoneHVACBaseboardRadiantConvectiveElectric(
414 ✗ std::shared_ptr<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl> impl)
415 ✗ : ZoneHVACComponent(std::move(impl)) {}
416 /// @endcond
417
418 ✗ boost::optional<double> ZoneHVACBaseboardRadiantConvectiveElectric::autosizedHeatingDesignCapacity() const {
419 ✗ return getImpl<detail::ZoneHVACBaseboardRadiantConvectiveElectric_Impl>()->autosizedHeatingDesignCapacity();
420 }
421
422 } // namespace model
423 } // namespace openstudio
424