GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 63.7% 304 / 0 / 477
Functions: 70.8% 97 / 0 / 137
Branches: 49.7% 181 / 0 / 364

src/model/PumpConstantSpeed.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 "PumpConstantSpeed.hpp"
7 #include "PumpConstantSpeed_Impl.hpp"
8 #include "Connection.hpp"
9 #include "Connection_Impl.hpp"
10 #include "Schedule.hpp"
11 #include "Schedule_Impl.hpp"
12 #include "Curve.hpp"
13 #include "Curve_Impl.hpp"
14 #include "ThermalZone.hpp"
15 #include "ThermalZone_Impl.hpp"
16 #include "Node.hpp"
17 #include "Node_Impl.hpp"
18 #include "ScheduleTypeLimits.hpp"
19 #include "ScheduleTypeRegistry.hpp"
20 #include <utilities/idd/IddFactory.hxx>
21
22 #include <utilities/idd/OS_Pump_ConstantSpeed_FieldEnums.hxx>
23 #include <utilities/idd/IddEnums.hxx>
24 #include "../utilities/core/Assert.hpp"
25 #include "../utilities/data/DataEnums.hpp"
26
27 namespace openstudio {
28
29 namespace model {
30
31 namespace detail {
32
33 24 PumpConstantSpeed_Impl::PumpConstantSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
34 24 : StraightComponent_Impl(idfObject, model, keepHandle) {
35
4/6
✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
✓ Branch 7 taken 24 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 24 times.
✗ Branch 13 not taken.
24 OS_ASSERT(idfObject.iddObject().type() == PumpConstantSpeed::iddObjectType());
36 24 }
37
38 11 PumpConstantSpeed_Impl::PumpConstantSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
39 11 : StraightComponent_Impl(other, model, keepHandle) {
40
4/6
✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 7 taken 11 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 11 times.
✗ Branch 13 not taken.
11 OS_ASSERT(other.iddObject().type() == PumpConstantSpeed::iddObjectType());
41 11 }
42
43 47 PumpConstantSpeed_Impl::PumpConstantSpeed_Impl(const PumpConstantSpeed_Impl& other, Model_Impl* model, bool keepHandle)
44 47 : StraightComponent_Impl(other, model, keepHandle) {}
45
46 ✗ const std::vector<std::string>& PumpConstantSpeed_Impl::outputVariableNames() const {
47 static const std::vector<std::string> result{
48 "Pump Electricity Rate", "Pump Electricity Energy", "Pump Shaft Power", "Pump Fluid Heat Gain Rate", "Pump Fluid Heat Gain Energy",
49 "Pump Outlet Temperature", "Pump Mass Flow Rate",
50 // The Key is the Pump, not the zone, so it's right to report here
51 // EnergyPlus/Pumps.cc::GetPumpInput()
52 // TODO: Implement this check and make not static above once ModelObject return type has changed
53 // if (! p.zone().empty() ) {
54 "Pump Zone Total Heating Rate", "Pump Zone Total Heating Energy", "Pump Zone Convective Heating Rate", "Pump Zone Radiative Heating Rate"
55 // }
56 ✗ };
57 ✗ return result;
58 ✗ }
59
60 60 IddObjectType PumpConstantSpeed_Impl::iddObjectType() const {
61 60 return PumpConstantSpeed::iddObjectType();
62 }
63
64 ✗ std::vector<ScheduleTypeKey> PumpConstantSpeed_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
65 ✗ std::vector<ScheduleTypeKey> result;
66 ✗ UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
67 ✗ UnsignedVector::const_iterator b(fieldIndices.begin());
68 ✗ UnsignedVector::const_iterator e(fieldIndices.end());
69 ✗ if (std::find(b, e, OS_Pump_ConstantSpeedFields::PumpFlowRateSchedule) != e) {
70 ✗ result.push_back(ScheduleTypeKey("PumpConstantSpeed", "Pump Flow Rate"));
71 }
72 ✗ return result;
73 ✗ }
74
75 8 boost::optional<double> PumpConstantSpeed_Impl::ratedFlowRate() const {
76 8 return getDouble(OS_Pump_ConstantSpeedFields::RatedFlowRate, true);
77 }
78
79 13 bool PumpConstantSpeed_Impl::isRatedFlowRateAutosized() const {
80 13 bool result = false;
81
1/1
✓ Branch 1 taken 13 times.
13 boost::optional<std::string> value = getString(OS_Pump_ConstantSpeedFields::RatedFlowRate, true);
82
1/2
✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
13 if (value) {
83
3/3
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
26 result = openstudio::istringEqual(value.get(), "autosize");
84 }
85 13 return result;
86 13 }
87
88 13 double PumpConstantSpeed_Impl::ratedPumpHead() const {
89
1/1
✓ Branch 1 taken 13 times.
13 boost::optional<double> value = getDouble(OS_Pump_ConstantSpeedFields::RatedPumpHead, true);
90
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 13 times.
✗ Branch 4 not taken.
13 OS_ASSERT(value);
91
1/1
✓ Branch 1 taken 13 times.
26 return value.get();
92 }
93
94 ✗ bool PumpConstantSpeed_Impl::isRatedPumpHeadDefaulted() const {
95 ✗ return isEmpty(OS_Pump_ConstantSpeedFields::RatedPumpHead);
96 }
97
98 3 boost::optional<double> PumpConstantSpeed_Impl::ratedPowerConsumption() const {
99 3 return getDouble(OS_Pump_ConstantSpeedFields::RatedPowerConsumption, true);
100 }
101
102 13 bool PumpConstantSpeed_Impl::isRatedPowerConsumptionAutosized() const {
103 13 bool result = false;
104
1/1
✓ Branch 1 taken 13 times.
13 boost::optional<std::string> value = getString(OS_Pump_ConstantSpeedFields::RatedPowerConsumption, true);
105
1/2
✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
13 if (value) {
106
3/3
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
26 result = openstudio::istringEqual(value.get(), "autosize");
107 }
108 13 return result;
109 13 }
110
111 13 double PumpConstantSpeed_Impl::motorEfficiency() const {
112
1/1
✓ Branch 1 taken 13 times.
13 boost::optional<double> value = getDouble(OS_Pump_ConstantSpeedFields::MotorEfficiency, true);
113
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 13 times.
✗ Branch 4 not taken.
13 OS_ASSERT(value);
114
1/1
✓ Branch 1 taken 13 times.
26 return value.get();
115 }
116
117 ✗ bool PumpConstantSpeed_Impl::isMotorEfficiencyDefaulted() const {
118 ✗ return isEmpty(OS_Pump_ConstantSpeedFields::MotorEfficiency);
119 }
120
121 13 double PumpConstantSpeed_Impl::fractionofMotorInefficienciestoFluidStream() const {
122
1/1
✓ Branch 1 taken 13 times.
13 boost::optional<double> value = getDouble(OS_Pump_ConstantSpeedFields::FractionofMotorInefficienciestoFluidStream, true);
123
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 13 times.
✗ Branch 4 not taken.
13 OS_ASSERT(value);
124
1/1
✓ Branch 1 taken 13 times.
26 return value.get();
125 }
126
127 ✗ bool PumpConstantSpeed_Impl::isFractionofMotorInefficienciestoFluidStreamDefaulted() const {
128 ✗ return isEmpty(OS_Pump_ConstantSpeedFields::FractionofMotorInefficienciestoFluidStream);
129 }
130
131 13 std::string PumpConstantSpeed_Impl::pumpControlType() const {
132
1/1
✓ Branch 1 taken 13 times.
13 boost::optional<std::string> value = getString(OS_Pump_ConstantSpeedFields::PumpControlType, true);
133
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 13 times.
✗ Branch 4 not taken.
13 OS_ASSERT(value);
134
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
26 return value.get();
135 13 }
136
137 ✗ bool PumpConstantSpeed_Impl::isPumpControlTypeDefaulted() const {
138 ✗ return isEmpty(OS_Pump_ConstantSpeedFields::PumpControlType);
139 }
140
141 14 boost::optional<Schedule> PumpConstantSpeed_Impl::pumpFlowRateSchedule() const {
142
2/2
✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
14 return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Pump_ConstantSpeedFields::PumpFlowRateSchedule);
143 }
144
145 13 boost::optional<Curve> PumpConstantSpeed_Impl::pumpCurve() const {
146
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
13 return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Pump_ConstantSpeedFields::PumpCurve);
147 }
148
149 13 boost::optional<double> PumpConstantSpeed_Impl::impellerDiameter() const {
150 13 return getDouble(OS_Pump_ConstantSpeedFields::ImpellerDiameter, true);
151 }
152
153 3 boost::optional<double> PumpConstantSpeed_Impl::rotationalSpeed() const {
154 3 return getDouble(OS_Pump_ConstantSpeedFields::RotationalSpeed, true);
155 }
156
157 3 boost::optional<ThermalZone> PumpConstantSpeed_Impl::zone() const {
158
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 return getObject<ModelObject>().getModelObjectTarget<ThermalZone>(OS_Pump_ConstantSpeedFields::Zone);
159 }
160
161 11 boost::optional<double> PumpConstantSpeed_Impl::skinLossRadiativeFraction() const {
162 11 return getDouble(OS_Pump_ConstantSpeedFields::SkinLossRadiativeFraction, true);
163 }
164
165 7 bool PumpConstantSpeed_Impl::setRatedFlowRate(boost::optional<double> ratedFlowRate) {
166 7 bool result(false);
167
1/2
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
7 if (ratedFlowRate) {
168 7 result = setDouble(OS_Pump_ConstantSpeedFields::RatedFlowRate, ratedFlowRate.get());
169 } else {
170 ✗ resetRatedFlowRate();
171 ✗ result = true;
172 }
173
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 OS_ASSERT(result);
174 7 return result;
175 }
176
177 1 void PumpConstantSpeed_Impl::resetRatedFlowRate() {
178
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Pump_ConstantSpeedFields::RatedFlowRate, "");
179
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
180 1 }
181
182 14 void PumpConstantSpeed_Impl::autosizeRatedFlowRate() {
183
2/2
✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
28 bool result = setString(OS_Pump_ConstantSpeedFields::RatedFlowRate, "autosize");
184
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
14 OS_ASSERT(result);
185 14 }
186
187 19 bool PumpConstantSpeed_Impl::setRatedPumpHead(double ratedPumpHead) {
188 19 bool result = setDouble(OS_Pump_ConstantSpeedFields::RatedPumpHead, ratedPumpHead);
189
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
19 OS_ASSERT(result);
190 19 return result;
191 }
192
193 1 void PumpConstantSpeed_Impl::resetRatedPumpHead() {
194
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Pump_ConstantSpeedFields::RatedPumpHead, "");
195
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
196 1 }
197
198 7 bool PumpConstantSpeed_Impl::setRatedPowerConsumption(boost::optional<double> ratedPowerConsumption) {
199 7 bool result(false);
200
1/2
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
7 if (ratedPowerConsumption) {
201 7 result = setDouble(OS_Pump_ConstantSpeedFields::RatedPowerConsumption, ratedPowerConsumption.get());
202 } else {
203 ✗ resetRatedPowerConsumption();
204 ✗ result = true;
205 }
206
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
7 OS_ASSERT(result);
207 7 return result;
208 }
209
210 1 void PumpConstantSpeed_Impl::resetRatedPowerConsumption() {
211
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Pump_ConstantSpeedFields::RatedPowerConsumption, "");
212
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
213 1 }
214
215 14 void PumpConstantSpeed_Impl::autosizeRatedPowerConsumption() {
216
2/2
✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
28 bool result = setString(OS_Pump_ConstantSpeedFields::RatedPowerConsumption, "autosize");
217
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
14 OS_ASSERT(result);
218 14 }
219
220 19 bool PumpConstantSpeed_Impl::setMotorEfficiency(double motorEfficiency) {
221 19 bool result = setDouble(OS_Pump_ConstantSpeedFields::MotorEfficiency, motorEfficiency);
222 19 return result;
223 }
224
225 1 void PumpConstantSpeed_Impl::resetMotorEfficiency() {
226
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Pump_ConstantSpeedFields::MotorEfficiency, "");
227
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
228 1 }
229
230 14 bool PumpConstantSpeed_Impl::setFractionofMotorInefficienciestoFluidStream(double fractionofMotorInefficienciestoFluidStream) {
231 14 bool result = setDouble(OS_Pump_ConstantSpeedFields::FractionofMotorInefficienciestoFluidStream, fractionofMotorInefficienciestoFluidStream);
232 14 return result;
233 }
234
235 1 void PumpConstantSpeed_Impl::resetFractionofMotorInefficienciestoFluidStream() {
236
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Pump_ConstantSpeedFields::FractionofMotorInefficienciestoFluidStream, "");
237
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
238 1 }
239
240 15 bool PumpConstantSpeed_Impl::setPumpControlType(const std::string& pumpControlType) {
241 15 bool result = setString(OS_Pump_ConstantSpeedFields::PumpControlType, pumpControlType);
242 15 return result;
243 }
244
245 ✗ void PumpConstantSpeed_Impl::resetPumpControlType() {
246 ✗ bool result = setString(OS_Pump_ConstantSpeedFields::PumpControlType, "");
247 ✗ OS_ASSERT(result);
248 ✗ }
249
250 2 bool PumpConstantSpeed_Impl::setPumpFlowRateSchedule(Schedule& schedule) {
251
3/3
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
8 bool result = setSchedule(OS_Pump_ConstantSpeedFields::PumpFlowRateSchedule, "PumpConstantSpeed", "Pump Flow Rate", schedule);
252 2 return result;
253 }
254
255 ✗ void PumpConstantSpeed_Impl::resetPumpFlowRateSchedule() {
256 ✗ bool result = setString(OS_Pump_ConstantSpeedFields::PumpFlowRateSchedule, "");
257 ✗ OS_ASSERT(result);
258 ✗ }
259
260 1 bool PumpConstantSpeed_Impl::setPumpCurve(const boost::optional<Curve>& curve) {
261 1 bool result(false);
262
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (curve) {
263
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
1 setPointer(OS_Pump_ConstantSpeedFields::PumpCurve, curve.get().handle());
264
265 1 result = true;
266 } else {
267 ✗ resetPumpCurve();
268 ✗ result = true;
269 }
270 1 return result;
271 }
272
273 ✗ void PumpConstantSpeed_Impl::resetPumpCurve() {
274 ✗ bool result = setString(OS_Pump_ConstantSpeedFields::PumpCurve, "");
275 ✗ OS_ASSERT(result);
276 ✗ }
277
278 1 bool PumpConstantSpeed_Impl::setImpellerDiameter(boost::optional<double> impellerDiameter) {
279 1 bool result(false);
280
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (impellerDiameter) {
281 1 result = setDouble(OS_Pump_ConstantSpeedFields::ImpellerDiameter, impellerDiameter.get());
282 } else {
283 ✗ resetImpellerDiameter();
284 ✗ result = true;
285 }
286
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
287 1 return result;
288 }
289
290 1 void PumpConstantSpeed_Impl::resetImpellerDiameter() {
291
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Pump_ConstantSpeedFields::ImpellerDiameter, "");
292
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
293 1 }
294
295 1 bool PumpConstantSpeed_Impl::setRotationalSpeed(boost::optional<double> rotationalSpeed) {
296 1 bool result(false);
297
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (rotationalSpeed) {
298 1 result = setDouble(OS_Pump_ConstantSpeedFields::RotationalSpeed, rotationalSpeed.get());
299 } else {
300 ✗ resetRotationalSpeed();
301 ✗ result = true;
302 }
303
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
304 1 return result;
305 }
306
307 1 void PumpConstantSpeed_Impl::resetRotationalSpeed() {
308
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Pump_ConstantSpeedFields::RotationalSpeed, "");
309
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
310 1 }
311
312 1 bool PumpConstantSpeed_Impl::setZone(const boost::optional<ThermalZone>& thermalZone) {
313 1 bool result(false);
314
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (thermalZone) {
315
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
1 result = setPointer(OS_Pump_ConstantSpeedFields::Zone, thermalZone.get().handle());
316 } else {
317 ✗ resetZone();
318 ✗ result = true;
319 }
320 1 return result;
321 }
322
323 ✗ void PumpConstantSpeed_Impl::resetZone() {
324 ✗ bool result = setString(OS_Pump_ConstantSpeedFields::Zone, "");
325 ✗ OS_ASSERT(result);
326 ✗ }
327
328 1 bool PumpConstantSpeed_Impl::setSkinLossRadiativeFraction(boost::optional<double> skinLossRadiativeFraction) {
329 1 bool result(false);
330
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (skinLossRadiativeFraction) {
331 1 result = setDouble(OS_Pump_ConstantSpeedFields::SkinLossRadiativeFraction, skinLossRadiativeFraction.get());
332 } else {
333 ✗ resetSkinLossRadiativeFraction();
334 ✗ result = true;
335 }
336 1 return result;
337 }
338
339 ✗ void PumpConstantSpeed_Impl::resetSkinLossRadiativeFraction() {
340 ✗ bool result = setString(OS_Pump_ConstantSpeedFields::SkinLossRadiativeFraction, "");
341 ✗ OS_ASSERT(result);
342 ✗ }
343
344 ✗ std::vector<std::string> PumpConstantSpeed_Impl::pumpControlTypeValues() const {
345 ✗ return PumpConstantSpeed::pumpControlTypeValues();
346 }
347
348 ✗ boost::optional<ModelObject> PumpConstantSpeed_Impl::pumpFlowRateScheduleAsModelObject() const {
349 ✗ OptionalModelObject result;
350 ✗ OptionalSchedule intermediate = pumpFlowRateSchedule();
351 ✗ if (intermediate) {
352 ✗ result = *intermediate;
353 }
354 ✗ return result;
355 ✗ }
356
357 ✗ boost::optional<ModelObject> PumpConstantSpeed_Impl::pumpCurveAsModelObject() const {
358 ✗ OptionalModelObject result;
359 ✗ OptionalCurve intermediate = pumpCurve();
360 ✗ if (intermediate) {
361 ✗ result = *intermediate;
362 }
363 ✗ return result;
364 ✗ }
365
366 ✗ boost::optional<ModelObject> PumpConstantSpeed_Impl::zoneAsModelObject() const {
367 ✗ OptionalModelObject result;
368 ✗ OptionalThermalZone intermediate = zone();
369 ✗ if (intermediate) {
370 ✗ result = *intermediate;
371 }
372 ✗ return result;
373 ✗ }
374
375 ✗ bool PumpConstantSpeed_Impl::setPumpFlowRateScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
376 ✗ if (modelObject) {
377 ✗ OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
378 ✗ if (intermediate) {
379 ✗ Schedule schedule(*intermediate);
380 ✗ return setPumpFlowRateSchedule(schedule);
381 ✗ } else {
382 ✗ return false;
383 }
384 ✗ } else {
385 ✗ resetPumpFlowRateSchedule();
386 }
387 ✗ return true;
388 }
389
390 ✗ bool PumpConstantSpeed_Impl::setPumpCurveAsModelObject(const boost::optional<ModelObject>& modelObject) {
391 ✗ if (modelObject) {
392 ✗ OptionalCurve intermediate = modelObject->optionalCast<Curve>();
393 ✗ if (intermediate) {
394 ✗ Curve curve(*intermediate);
395 ✗ return setPumpCurve(curve);
396 ✗ } else {
397 ✗ return false;
398 }
399 ✗ } else {
400 ✗ resetPumpCurve();
401 }
402 ✗ return true;
403 }
404
405 ✗ bool PumpConstantSpeed_Impl::setZoneAsModelObject(const boost::optional<ModelObject>& modelObject) {
406 ✗ if (modelObject) {
407 ✗ OptionalThermalZone intermediate = modelObject->optionalCast<ThermalZone>();
408 ✗ if (intermediate) {
409 ✗ ThermalZone thermalZone(*intermediate);
410 ✗ return setZone(thermalZone);
411 ✗ } else {
412 ✗ return false;
413 }
414 ✗ } else {
415 ✗ resetZone();
416 }
417 ✗ return true;
418 }
419
420 36 unsigned PumpConstantSpeed_Impl::inletPort() const {
421 36 return OS_Pump_ConstantSpeedFields::InletNodeName;
422 }
423
424 683 unsigned PumpConstantSpeed_Impl::outletPort() const {
425 683 return OS_Pump_ConstantSpeedFields::OutletNodeName;
426 }
427
428 15 bool PumpConstantSpeed_Impl::addToNode(Node& node) {
429
3/3
✓ Branch 1 taken 15 times.
✓ Branch 4 taken 13 times.
✓ Branch 5 taken 2 times.
30 if (node.plantLoop()) {
430 13 return StraightComponent_Impl::addToNode(node);
431 }
432
433 2 return false;
434 }
435
436 ✗ boost::optional<double> PumpConstantSpeed_Impl::autosizedRatedFlowRate() const {
437 ✗ return getAutosizedValue("Design Flow Rate", "m3/s");
438 }
439
440 ✗ boost::optional<double> PumpConstantSpeed_Impl::autosizedRatedPowerConsumption() const {
441 ✗ return getAutosizedValue("Design Power Consumption", "W");
442 }
443
444 ✗ void PumpConstantSpeed_Impl::autosize() {
445 ✗ autosizeRatedFlowRate();
446 ✗ autosizeRatedPowerConsumption();
447 ✗ }
448
449 ✗ void PumpConstantSpeed_Impl::applySizingValues() {
450 ✗ boost::optional<double> val;
451 ✗ val = autosizedRatedFlowRate();
452 ✗ if (val) {
453 ✗ setRatedFlowRate(val.get());
454 }
455
456 ✗ val = autosizedRatedPowerConsumption();
457 ✗ if (val) {
458 ✗ setRatedPowerConsumption(val.get());
459 }
460 ✗ }
461
462 13 std::string PumpConstantSpeed_Impl::designPowerSizingMethod() const {
463
1/1
✓ Branch 1 taken 13 times.
13 auto value = getString(OS_Pump_ConstantSpeedFields::DesignPowerSizingMethod, true);
464
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 13 times.
✗ Branch 4 not taken.
13 OS_ASSERT(value);
465
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
26 return value.get();
466 13 }
467
468 15 bool PumpConstantSpeed_Impl::setDesignPowerSizingMethod(const std::string& designPowerSizingMethod) {
469 15 return setString(OS_Pump_ConstantSpeedFields::DesignPowerSizingMethod, designPowerSizingMethod);
470 }
471
472 12 double PumpConstantSpeed_Impl::designElectricPowerPerUnitFlowRate() const {
473
1/1
✓ Branch 1 taken 12 times.
12 auto value = getDouble(OS_Pump_ConstantSpeedFields::DesignElectricPowerperUnitFlowRate, true);
474
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 12 times.
✗ Branch 4 not taken.
12 OS_ASSERT(value);
475
1/1
✓ Branch 1 taken 12 times.
24 return value.get();
476 }
477
478 14 bool PumpConstantSpeed_Impl::setDesignElectricPowerPerUnitFlowRate(double designElectricPowerPerUnitFlowRate) {
479 14 return setDouble(OS_Pump_ConstantSpeedFields::DesignElectricPowerperUnitFlowRate, designElectricPowerPerUnitFlowRate);
480 }
481
482 12 double PumpConstantSpeed_Impl::designShaftPowerPerUnitFlowRatePerUnitHead() const {
483
1/1
✓ Branch 1 taken 12 times.
12 auto value = getDouble(OS_Pump_ConstantSpeedFields::DesignShaftPowerperUnitFlowRateperUnitHead, true);
484
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 12 times.
✗ Branch 4 not taken.
12 OS_ASSERT(value);
485
1/1
✓ Branch 1 taken 12 times.
24 return value.get();
486 }
487
488 14 bool PumpConstantSpeed_Impl::setDesignShaftPowerPerUnitFlowRatePerUnitHead(double designShaftPowerPerUnitFlowRatePerUnitHead) {
489 14 return setDouble(OS_Pump_ConstantSpeedFields::DesignShaftPowerperUnitFlowRateperUnitHead, designShaftPowerPerUnitFlowRatePerUnitHead);
490 }
491
492 ✗ std::vector<EMSActuatorNames> PumpConstantSpeed_Impl::emsActuatorNames() const {
493 ✗ std::vector<EMSActuatorNames> actuators{{"Pump", "Pump Mass Flow Rate"}, {"Pump", "Pump Pressure Rise"}};
494 ✗ return actuators;
495 ✗ }
496
497 ✗ std::vector<std::string> PumpConstantSpeed_Impl::emsInternalVariableNames() const {
498 ✗ std::vector<std::string> types{"Pump Maximum Mass Flow Rate"};
499 ✗ return types;
500 ✗ }
501
502 10 std::string PumpConstantSpeed_Impl::endUseSubcategory() const {
503
1/1
✓ Branch 1 taken 10 times.
10 auto value = getString(OS_Pump_ConstantSpeedFields::EndUseSubcategory, true);
504
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 10 times.
✗ Branch 4 not taken.
10 OS_ASSERT(value);
505
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
20 return value.get();
506 10 }
507
508 13 bool PumpConstantSpeed_Impl::setEndUseSubcategory(const std::string& endUseSubcategory) {
509 13 return setString(OS_Pump_ConstantSpeedFields::EndUseSubcategory, endUseSubcategory);
510 }
511
512 30 ComponentType PumpConstantSpeed_Impl::componentType() const {
513
1/1
✓ Branch 1 taken 30 times.
30 return ComponentType::None;
514 }
515
516 ✗ std::vector<FuelType> PumpConstantSpeed_Impl::coolingFuelTypes() const {
517 ✗ return {};
518 }
519
520 ✗ std::vector<FuelType> PumpConstantSpeed_Impl::heatingFuelTypes() const {
521 ✗ return {};
522 }
523
524 ✗ std::vector<AppGFuelType> PumpConstantSpeed_Impl::appGHeatingFuelTypes() const {
525 ✗ return {};
526 }
527
528 } // namespace detail
529
530 13 PumpConstantSpeed::PumpConstantSpeed(const Model& model) : StraightComponent(PumpConstantSpeed::iddObjectType(), model) {
531
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 13 times.
✗ Branch 5 not taken.
13 OS_ASSERT(getImpl<detail::PumpConstantSpeed_Impl>());
532
533
1/1
✓ Branch 1 taken 13 times.
13 autosizeRatedFlowRate();
534
1/1
✓ Branch 1 taken 13 times.
13 autosizeRatedPowerConsumption();
535
1/1
✓ Branch 1 taken 13 times.
13 setRatedPumpHead(179352.0);
536
1/1
✓ Branch 1 taken 13 times.
13 setMotorEfficiency(0.9);
537
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
13 setPumpControlType("Intermittent");
538
1/1
✓ Branch 1 taken 13 times.
13 setFractionofMotorInefficienciestoFluidStream(0.0);
539
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
13 setDesignPowerSizingMethod("PowerPerFlowPerPressure");
540
1/1
✓ Branch 1 taken 13 times.
13 setDesignElectricPowerPerUnitFlowRate(348701.1);
541
1/1
✓ Branch 1 taken 13 times.
13 setDesignShaftPowerPerUnitFlowRatePerUnitHead(1.282051282);
542
543
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
26 setString(OS_Pump_ConstantSpeedFields::PumpFlowRateSchedule, "");
544
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
26 setString(OS_Pump_ConstantSpeedFields::PumpCurve, "");
545
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
26 setString(OS_Pump_ConstantSpeedFields::ImpellerDiameter, "");
546
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
26 setString(OS_Pump_ConstantSpeedFields::RotationalSpeed, "");
547
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
26 setString(OS_Pump_ConstantSpeedFields::Zone, "");
548
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
39 setString(OS_Pump_ConstantSpeedFields::SkinLossRadiativeFraction, "");
549
550
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
13 setEndUseSubcategory("General");
551 13 }
552
553 7843 IddObjectType PumpConstantSpeed::iddObjectType() {
554
1/1
✓ Branch 1 taken 7843 times.
7843 return {IddObjectType::OS_Pump_ConstantSpeed};
555 }
556
557 ✗ std::vector<std::string> PumpConstantSpeed::pumpControlTypeValues() {
558 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Pump_ConstantSpeedFields::PumpControlType);
559 }
560
561 ✗ std::vector<std::string> PumpConstantSpeed::designPowerSizingMethodValues() {
562 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Pump_ConstantSpeedFields::DesignPowerSizingMethod);
563 }
564
565 8 boost::optional<double> PumpConstantSpeed::ratedFlowRate() const {
566
1/1
✓ Branch 3 taken 8 times.
8 return getImpl<detail::PumpConstantSpeed_Impl>()->ratedFlowRate();
567 }
568
569 13 bool PumpConstantSpeed::isRatedFlowRateAutosized() const {
570
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::PumpConstantSpeed_Impl>()->isRatedFlowRateAutosized();
571 }
572
573 13 double PumpConstantSpeed::ratedPumpHead() const {
574
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::PumpConstantSpeed_Impl>()->ratedPumpHead();
575 }
576
577 ✗ bool PumpConstantSpeed::isRatedPumpHeadDefaulted() const {
578 ✗ return getImpl<detail::PumpConstantSpeed_Impl>()->isRatedPumpHeadDefaulted();
579 }
580
581 3 boost::optional<double> PumpConstantSpeed::ratedPowerConsumption() const {
582
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::PumpConstantSpeed_Impl>()->ratedPowerConsumption();
583 }
584
585 13 bool PumpConstantSpeed::isRatedPowerConsumptionAutosized() const {
586
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::PumpConstantSpeed_Impl>()->isRatedPowerConsumptionAutosized();
587 }
588
589 13 double PumpConstantSpeed::motorEfficiency() const {
590
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::PumpConstantSpeed_Impl>()->motorEfficiency();
591 }
592
593 ✗ bool PumpConstantSpeed::isMotorEfficiencyDefaulted() const {
594 ✗ return getImpl<detail::PumpConstantSpeed_Impl>()->isMotorEfficiencyDefaulted();
595 }
596
597 13 double PumpConstantSpeed::fractionofMotorInefficienciestoFluidStream() const {
598
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::PumpConstantSpeed_Impl>()->fractionofMotorInefficienciestoFluidStream();
599 }
600
601 ✗ bool PumpConstantSpeed::isFractionofMotorInefficienciestoFluidStreamDefaulted() const {
602 ✗ return getImpl<detail::PumpConstantSpeed_Impl>()->isFractionofMotorInefficienciestoFluidStreamDefaulted();
603 }
604
605 13 std::string PumpConstantSpeed::pumpControlType() const {
606
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::PumpConstantSpeed_Impl>()->pumpControlType();
607 }
608
609 ✗ bool PumpConstantSpeed::isPumpControlTypeDefaulted() const {
610 ✗ return getImpl<detail::PumpConstantSpeed_Impl>()->isPumpControlTypeDefaulted();
611 }
612
613 14 boost::optional<Schedule> PumpConstantSpeed::pumpFlowRateSchedule() const {
614
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::PumpConstantSpeed_Impl>()->pumpFlowRateSchedule();
615 }
616
617 13 boost::optional<Curve> PumpConstantSpeed::pumpCurve() const {
618
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::PumpConstantSpeed_Impl>()->pumpCurve();
619 }
620
621 13 boost::optional<double> PumpConstantSpeed::impellerDiameter() const {
622
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::PumpConstantSpeed_Impl>()->impellerDiameter();
623 }
624
625 3 boost::optional<double> PumpConstantSpeed::rotationalSpeed() const {
626
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::PumpConstantSpeed_Impl>()->rotationalSpeed();
627 }
628
629 3 boost::optional<ThermalZone> PumpConstantSpeed::zone() const {
630
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::PumpConstantSpeed_Impl>()->zone();
631 }
632
633 11 boost::optional<double> PumpConstantSpeed::skinLossRadiativeFraction() const {
634
1/1
✓ Branch 3 taken 11 times.
11 return getImpl<detail::PumpConstantSpeed_Impl>()->skinLossRadiativeFraction();
635 }
636
637 7 bool PumpConstantSpeed::setRatedFlowRate(double ratedFlowRate) {
638
2/2
✓ Branch 3 taken 7 times.
✓ Branch 6 taken 7 times.
7 return getImpl<detail::PumpConstantSpeed_Impl>()->setRatedFlowRate(ratedFlowRate);
639 }
640
641 1 void PumpConstantSpeed::resetRatedFlowRate() {
642
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::PumpConstantSpeed_Impl>()->resetRatedFlowRate();
643 1 }
644
645 14 void PumpConstantSpeed::autosizeRatedFlowRate() {
646
1/1
✓ Branch 3 taken 14 times.
14 getImpl<detail::PumpConstantSpeed_Impl>()->autosizeRatedFlowRate();
647 14 }
648
649 19 bool PumpConstantSpeed::setRatedPumpHead(double ratedPumpHead) {
650
1/1
✓ Branch 3 taken 19 times.
19 return getImpl<detail::PumpConstantSpeed_Impl>()->setRatedPumpHead(ratedPumpHead);
651 }
652
653 1 void PumpConstantSpeed::resetRatedPumpHead() {
654
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::PumpConstantSpeed_Impl>()->resetRatedPumpHead();
655 1 }
656
657 7 bool PumpConstantSpeed::setRatedPowerConsumption(double ratedPowerConsumption) {
658
2/2
✓ Branch 3 taken 7 times.
✓ Branch 6 taken 7 times.
7 return getImpl<detail::PumpConstantSpeed_Impl>()->setRatedPowerConsumption(ratedPowerConsumption);
659 }
660
661 1 void PumpConstantSpeed::resetRatedPowerConsumption() {
662
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::PumpConstantSpeed_Impl>()->resetRatedPowerConsumption();
663 1 }
664
665 14 void PumpConstantSpeed::autosizeRatedPowerConsumption() {
666
1/1
✓ Branch 3 taken 14 times.
14 getImpl<detail::PumpConstantSpeed_Impl>()->autosizeRatedPowerConsumption();
667 14 }
668
669 19 bool PumpConstantSpeed::setMotorEfficiency(double motorEfficiency) {
670
1/1
✓ Branch 3 taken 19 times.
19 return getImpl<detail::PumpConstantSpeed_Impl>()->setMotorEfficiency(motorEfficiency);
671 }
672
673 1 void PumpConstantSpeed::resetMotorEfficiency() {
674
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::PumpConstantSpeed_Impl>()->resetMotorEfficiency();
675 1 }
676
677 14 bool PumpConstantSpeed::setFractionofMotorInefficienciestoFluidStream(double fractionofMotorInefficienciestoFluidStream) {
678
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::PumpConstantSpeed_Impl>()->setFractionofMotorInefficienciestoFluidStream(fractionofMotorInefficienciestoFluidStream);
679 }
680
681 1 void PumpConstantSpeed::resetFractionofMotorInefficienciestoFluidStream() {
682
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::PumpConstantSpeed_Impl>()->resetFractionofMotorInefficienciestoFluidStream();
683 1 }
684
685 15 bool PumpConstantSpeed::setPumpControlType(const std::string& pumpControlType) {
686
1/1
✓ Branch 3 taken 15 times.
15 return getImpl<detail::PumpConstantSpeed_Impl>()->setPumpControlType(pumpControlType);
687 }
688
689 ✗ void PumpConstantSpeed::resetPumpControlType() {
690 ✗ getImpl<detail::PumpConstantSpeed_Impl>()->resetPumpControlType();
691 ✗ }
692
693 2 bool PumpConstantSpeed::setPumpFlowRateSchedule(Schedule& schedule) {
694
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::PumpConstantSpeed_Impl>()->setPumpFlowRateSchedule(schedule);
695 }
696
697 ✗ void PumpConstantSpeed::resetPumpFlowRateSchedule() {
698 ✗ getImpl<detail::PumpConstantSpeed_Impl>()->resetPumpFlowRateSchedule();
699 ✗ }
700
701 1 bool PumpConstantSpeed::setPumpCurve(const Curve& curve) {
702
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::PumpConstantSpeed_Impl>()->setPumpCurve(curve);
703 }
704
705 ✗ void PumpConstantSpeed::resetPumpCurve() {
706 ✗ getImpl<detail::PumpConstantSpeed_Impl>()->resetPumpCurve();
707 ✗ }
708
709 1 bool PumpConstantSpeed::setImpellerDiameter(double impellerDiameter) {
710
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::PumpConstantSpeed_Impl>()->setImpellerDiameter(impellerDiameter);
711 }
712
713 1 void PumpConstantSpeed::resetImpellerDiameter() {
714
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::PumpConstantSpeed_Impl>()->resetImpellerDiameter();
715 1 }
716
717 1 bool PumpConstantSpeed::setRotationalSpeed(double rotationalSpeed) {
718
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::PumpConstantSpeed_Impl>()->setRotationalSpeed(rotationalSpeed);
719 }
720
721 1 void PumpConstantSpeed::resetRotationalSpeed() {
722
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::PumpConstantSpeed_Impl>()->resetRotationalSpeed();
723 1 }
724
725 1 bool PumpConstantSpeed::setZone(const ThermalZone& thermalZone) {
726
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::PumpConstantSpeed_Impl>()->setZone(thermalZone);
727 }
728
729 ✗ void PumpConstantSpeed::resetZone() {
730 ✗ getImpl<detail::PumpConstantSpeed_Impl>()->resetZone();
731 ✗ }
732
733 1 bool PumpConstantSpeed::setSkinLossRadiativeFraction(double skinLossRadiativeFraction) {
734
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::PumpConstantSpeed_Impl>()->setSkinLossRadiativeFraction(skinLossRadiativeFraction);
735 }
736
737 ✗ void PumpConstantSpeed::resetSkinLossRadiativeFraction() {
738 ✗ getImpl<detail::PumpConstantSpeed_Impl>()->resetSkinLossRadiativeFraction();
739 ✗ }
740
741 13 std::string PumpConstantSpeed::designPowerSizingMethod() const {
742
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::PumpConstantSpeed_Impl>()->designPowerSizingMethod();
743 }
744
745 15 bool PumpConstantSpeed::setDesignPowerSizingMethod(const std::string& designPowerSizingMethod) {
746
1/1
✓ Branch 3 taken 15 times.
15 return getImpl<detail::PumpConstantSpeed_Impl>()->setDesignPowerSizingMethod(designPowerSizingMethod);
747 }
748
749 12 double PumpConstantSpeed::designElectricPowerPerUnitFlowRate() const {
750
1/1
✓ Branch 3 taken 12 times.
12 return getImpl<detail::PumpConstantSpeed_Impl>()->designElectricPowerPerUnitFlowRate();
751 }
752
753 14 bool PumpConstantSpeed::setDesignElectricPowerPerUnitFlowRate(double designElectricPowerPerUnitFlowRate) {
754
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::PumpConstantSpeed_Impl>()->setDesignElectricPowerPerUnitFlowRate(designElectricPowerPerUnitFlowRate);
755 }
756
757 12 double PumpConstantSpeed::designShaftPowerPerUnitFlowRatePerUnitHead() const {
758
1/1
✓ Branch 3 taken 12 times.
12 return getImpl<detail::PumpConstantSpeed_Impl>()->designShaftPowerPerUnitFlowRatePerUnitHead();
759 }
760
761 14 bool PumpConstantSpeed::setDesignShaftPowerPerUnitFlowRatePerUnitHead(double designShaftPowerPerUnitFlowRatePerUnitHead) {
762
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::PumpConstantSpeed_Impl>()->setDesignShaftPowerPerUnitFlowRatePerUnitHead(designShaftPowerPerUnitFlowRatePerUnitHead);
763 }
764
765 10 std::string PumpConstantSpeed::endUseSubcategory() const {
766
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::PumpConstantSpeed_Impl>()->endUseSubcategory();
767 }
768
769 13 bool PumpConstantSpeed::setEndUseSubcategory(const std::string& endUseSubcategory) {
770
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::PumpConstantSpeed_Impl>()->setEndUseSubcategory(endUseSubcategory);
771 }
772
773 /// @cond
774
1/1
✓ Branch 3 taken 20 times.
20 PumpConstantSpeed::PumpConstantSpeed(std::shared_ptr<detail::PumpConstantSpeed_Impl> impl) : StraightComponent(std::move(impl)) {}
775 /// @endcond
776
777 ✗ boost::optional<double> PumpConstantSpeed::autosizedRatedFlowRate() const {
778 ✗ return getImpl<detail::PumpConstantSpeed_Impl>()->autosizedRatedFlowRate();
779 }
780
781 ✗ boost::optional<double> PumpConstantSpeed::autosizedRatedPowerConsumption() const {
782 ✗ return getImpl<detail::PumpConstantSpeed_Impl>()->autosizedRatedPowerConsumption();
783 }
784
785 } // namespace model
786 } // namespace openstudio
787