GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 81.0% 204 / 0 / 252
Functions: 81.7% 58 / 0 / 71
Branches: 54.8% 132 / 0 / 241

src/model/ThermalStorageIceDetailed.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 "ThermalStorageIceDetailed.hpp"
7 #include "ThermalStorageIceDetailed_Impl.hpp"
8 #include "Schedule.hpp"
9 #include "Schedule_Impl.hpp"
10 #include "PlantLoop.hpp"
11 #include "PlantLoop_Impl.hpp"
12 #include "Node.hpp"
13 #include "Node_Impl.hpp"
14 #include "Model.hpp"
15 #include "Model_Impl.hpp"
16 #include "Curve.hpp"
17 #include "Curve_Impl.hpp"
18 #include "CurveQuadraticLinear.hpp"
19 #include "CurveQuadraticLinear_Impl.hpp"
20 #include "ScheduleTypeLimits.hpp"
21 #include "ScheduleTypeRegistry.hpp"
22
23 #include "../utilities/core/Assert.hpp"
24 #include "../utilities/data/DataEnums.hpp"
25
26 #include <utilities/idd/IddFactory.hxx>
27 #include <utilities/idd/OS_ThermalStorage_Ice_Detailed_FieldEnums.hxx>
28
29 namespace openstudio {
30 namespace model {
31
32 namespace detail {
33
34 3 ThermalStorageIceDetailed_Impl::ThermalStorageIceDetailed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
35 3 : StraightComponent_Impl(idfObject, model, keepHandle) {
36
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() == ThermalStorageIceDetailed::iddObjectType());
37 3 }
38
39 ✗ ThermalStorageIceDetailed_Impl::ThermalStorageIceDetailed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model,
40 ✗ bool keepHandle)
41 ✗ : StraightComponent_Impl(other, model, keepHandle) {
42 ✗ OS_ASSERT(other.iddObject().type() == ThermalStorageIceDetailed::iddObjectType());
43 ✗ }
44
45 1 ThermalStorageIceDetailed_Impl::ThermalStorageIceDetailed_Impl(const ThermalStorageIceDetailed_Impl& other, Model_Impl* model, bool keepHandle)
46 1 : StraightComponent_Impl(other, model, keepHandle) {}
47
48 ✗ const std::vector<std::string>& ThermalStorageIceDetailed_Impl::outputVariableNames() const {
49 static const std::vector<std::string> result{"Ice Thermal Storage Cooling Rate",
50 "Ice Thermal Storage Change Fraction",
51 "Ice Thermal Storage End Fraction",
52 "Ice Thermal Storage Mass Flow Rate",
53 "Ice Thermal Storage Bypass Mass Flow Rate",
54 "Ice Thermal Storage Tank Mass Flow Rate",
55 "Ice Thermal Storage Fluid Inlet Temperature",
56 "Ice Thermal Storage Blended Outlet Temperature",
57 "Ice Thermal Storage Tank Outlet Temperature",
58 "Ice Thermal Storage Cooling Discharge Rate",
59 "Ice Thermal Storage Cooling Discharge Energy",
60 "Ice Thermal Storage Cooling Charge Rate",
61 "Ice Thermal Storage Cooling Charge Energy",
62 "Ice Thermal Storage Ancillary Electricity Rate",
63 "Ice Thermal Storage Ancillary Electricity Energy",
64 ✗ "Ice Thermal Storage On Coil Fraction"};
65 ✗ return result;
66 ✗ }
67
68 ✗ IddObjectType ThermalStorageIceDetailed_Impl::iddObjectType() const {
69 ✗ return ThermalStorageIceDetailed::iddObjectType();
70 }
71
72 ✗ std::vector<ScheduleTypeKey> ThermalStorageIceDetailed_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
73 ✗ std::vector<ScheduleTypeKey> result;
74 ✗ UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
75 ✗ UnsignedVector::const_iterator b(fieldIndices.begin());
76 ✗ UnsignedVector::const_iterator e(fieldIndices.end());
77 ✗ if (std::find(b, e, OS_ThermalStorage_Ice_DetailedFields::AvailabilitySchedule) != e) {
78 ✗ result.push_back(ScheduleTypeKey("ThermalStorageIceDetailed", "Availability Schedule"));
79 }
80 ✗ return result;
81 ✗ }
82
83 1 boost::optional<Schedule> ThermalStorageIceDetailed_Impl::availabilitySchedule() const {
84
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_ThermalStorage_Ice_DetailedFields::AvailabilitySchedule);
85 }
86
87 1 double ThermalStorageIceDetailed_Impl::capacity() const {
88
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<double> value = getDouble(OS_ThermalStorage_Ice_DetailedFields::Capacity, true);
89
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
90
1/1
✓ Branch 1 taken 1 time.
2 return value.get();
91 }
92
93 1 std::string ThermalStorageIceDetailed_Impl::dischargingCurveVariableSpecifications() const {
94
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_ThermalStorage_Ice_DetailedFields::DischargingCurveVariableSpecifications, true);
95
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
96
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 return value.get();
97 1 }
98
99 3 bool ThermalStorageIceDetailed_Impl::setDischargingCurveVariableSpecifications(const std::string& dischargingCurveVariableSpecifications) {
100 3 bool result = setString(OS_ThermalStorage_Ice_DetailedFields::DischargingCurveVariableSpecifications, dischargingCurveVariableSpecifications);
101 3 return result;
102 }
103
104 2 Curve ThermalStorageIceDetailed_Impl::dischargingCurve() const {
105
1/1
✓ Branch 1 taken 2 times.
2 auto value = optionalDischargingCurve();
106
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
2 if (!value) {
107 ✗ LOG_AND_THROW(briefDescription() << " does not have an Discharging Curve attached.");
108 }
109
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 return value.get();
110 2 }
111
112 1 std::string ThermalStorageIceDetailed_Impl::chargingCurveVariableSpecifications() const {
113
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_ThermalStorage_Ice_DetailedFields::ChargingCurveVariableSpecifications, true);
114
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
115
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 return value.get();
116 1 }
117
118 3 bool ThermalStorageIceDetailed_Impl::setChargingCurveVariableSpecifications(const std::string& chargingCurveVariableSpecifications) {
119 3 bool result = setString(OS_ThermalStorage_Ice_DetailedFields::ChargingCurveVariableSpecifications, chargingCurveVariableSpecifications);
120 3 return result;
121 }
122
123 2 Curve ThermalStorageIceDetailed_Impl::chargingCurve() const {
124
1/1
✓ Branch 1 taken 2 times.
2 auto value = optionalChargingCurve();
125
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
2 if (!value) {
126 ✗ LOG_AND_THROW(briefDescription() << " does not have an Charging Curve attached.");
127 }
128
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 return value.get();
129 2 }
130
131 1 double ThermalStorageIceDetailed_Impl::timestepoftheCurveData() const {
132
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<double> value = getDouble(OS_ThermalStorage_Ice_DetailedFields::TimestepoftheCurveData, true);
133
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
134
1/1
✓ Branch 1 taken 1 time.
2 return value.get();
135 }
136
137 1 double ThermalStorageIceDetailed_Impl::parasiticElectricLoadDuringDischarging() const {
138
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<double> value = getDouble(OS_ThermalStorage_Ice_DetailedFields::ParasiticElectricLoadDuringDischarging, true);
139
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
140
1/1
✓ Branch 1 taken 1 time.
2 return value.get();
141 }
142
143 1 double ThermalStorageIceDetailed_Impl::parasiticElectricLoadDuringCharging() const {
144
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<double> value = getDouble(OS_ThermalStorage_Ice_DetailedFields::ParasiticElectricLoadDuringCharging, true);
145
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
146
1/1
✓ Branch 1 taken 1 time.
2 return value.get();
147 }
148
149 1 double ThermalStorageIceDetailed_Impl::tankLossCoefficient() const {
150
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<double> value = getDouble(OS_ThermalStorage_Ice_DetailedFields::TankLossCoefficient, true);
151
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
152
1/1
✓ Branch 1 taken 1 time.
2 return value.get();
153 }
154
155 1 double ThermalStorageIceDetailed_Impl::freezingTemperatureofStorageMedium() const {
156
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<double> value = getDouble(OS_ThermalStorage_Ice_DetailedFields::FreezingTemperatureofStorageMedium, true);
157
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
158
1/1
✓ Branch 1 taken 1 time.
2 return value.get();
159 }
160
161 1 std::string ThermalStorageIceDetailed_Impl::thawProcessIndicator() const {
162
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_ThermalStorage_Ice_DetailedFields::ThawProcessIndicator, true);
163
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
164
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 return value.get();
165 1 }
166
167 ✗ bool ThermalStorageIceDetailed_Impl::setAvailabilitySchedule(Schedule& schedule) {
168 bool result =
169 ✗ setSchedule(OS_ThermalStorage_Ice_DetailedFields::AvailabilitySchedule, "ThermalStorageIceDetailed", "Availability Schedule", schedule);
170 ✗ return result;
171 }
172
173 ✗ void ThermalStorageIceDetailed_Impl::resetAvailabilitySchedule() {
174 ✗ bool result = setString(OS_ThermalStorage_Ice_DetailedFields::AvailabilitySchedule, "");
175 ✗ OS_ASSERT(result);
176 ✗ }
177
178 3 bool ThermalStorageIceDetailed_Impl::setCapacity(double capacity) {
179 3 bool result = setDouble(OS_ThermalStorage_Ice_DetailedFields::Capacity, capacity);
180
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
181 3 return result;
182 }
183
184 3 bool ThermalStorageIceDetailed_Impl::setDischargingCurve(const Curve& dischargingCurve) {
185
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 bool result = setPointer(OS_ThermalStorage_Ice_DetailedFields::DischargingCurve, dischargingCurve.handle());
186 3 return result;
187 }
188
189 3 bool ThermalStorageIceDetailed_Impl::setChargingCurve(const Curve& chargingCurve) {
190
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 bool result = setPointer(OS_ThermalStorage_Ice_DetailedFields::ChargingCurve, chargingCurve.handle());
191 3 return result;
192 }
193
194 3 bool ThermalStorageIceDetailed_Impl::setTimestepoftheCurveData(double timestepoftheCurveData) {
195 3 bool result = setDouble(OS_ThermalStorage_Ice_DetailedFields::TimestepoftheCurveData, timestepoftheCurveData);
196
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
197 3 return result;
198 }
199
200 3 bool ThermalStorageIceDetailed_Impl::setParasiticElectricLoadDuringDischarging(double parasiticElectricLoadDuringDischarging) {
201 3 bool result = setDouble(OS_ThermalStorage_Ice_DetailedFields::ParasiticElectricLoadDuringDischarging, parasiticElectricLoadDuringDischarging);
202
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
203 3 return result;
204 }
205
206 3 bool ThermalStorageIceDetailed_Impl::setParasiticElectricLoadDuringCharging(double parasiticElectricLoadDuringCharging) {
207 3 bool result = setDouble(OS_ThermalStorage_Ice_DetailedFields::ParasiticElectricLoadDuringCharging, parasiticElectricLoadDuringCharging);
208
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
209 3 return result;
210 }
211
212 3 bool ThermalStorageIceDetailed_Impl::setTankLossCoefficient(double tankLossCoefficient) {
213 3 bool result = setDouble(OS_ThermalStorage_Ice_DetailedFields::TankLossCoefficient, tankLossCoefficient);
214
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
215 3 return result;
216 }
217
218 3 bool ThermalStorageIceDetailed_Impl::setFreezingTemperatureofStorageMedium(double freezingTemperatureofStorageMedium) {
219 3 bool result = setDouble(OS_ThermalStorage_Ice_DetailedFields::FreezingTemperatureofStorageMedium, freezingTemperatureofStorageMedium);
220
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
221 3 return result;
222 }
223
224 3 bool ThermalStorageIceDetailed_Impl::setThawProcessIndicator(const std::string& thawProcessIndicator) {
225 3 bool result = setString(OS_ThermalStorage_Ice_DetailedFields::ThawProcessIndicator, thawProcessIndicator);
226 3 return result;
227 }
228
229 2 boost::optional<Curve> ThermalStorageIceDetailed_Impl::optionalDischargingCurve() const {
230
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_ThermalStorage_Ice_DetailedFields::DischargingCurve);
231 }
232
233 2 boost::optional<Curve> ThermalStorageIceDetailed_Impl::optionalChargingCurve() const {
234
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_ThermalStorage_Ice_DetailedFields::ChargingCurve);
235 }
236
237 3 unsigned ThermalStorageIceDetailed_Impl::inletPort() const {
238 3 return OS_ThermalStorage_Ice_DetailedFields::InletNodeName;
239 }
240
241 17 unsigned ThermalStorageIceDetailed_Impl::outletPort() const {
242 17 return OS_ThermalStorage_Ice_DetailedFields::OutletNodeName;
243 }
244
245 1 bool ThermalStorageIceDetailed_Impl::addToNode(Node& node) {
246
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (auto plant = node.plantLoop()) {
247
4/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 11 taken 1 time.
✗ Branch 12 not taken.
1 if (!plant->demandComponent(node.handle())) {
248
1/1
✓ Branch 1 taken 1 time.
1 return StraightComponent_Impl::addToNode(node);
249 }
250 1 }
251
252 ✗ return false;
253 }
254
255 ✗ ModelObject ThermalStorageIceDetailed_Impl::clone(Model model) const {
256 ✗ auto newMo = StraightComponent_Impl::clone(model).cast<ThermalStorageIceDetailed>();
257
258 ✗ return std::move(newMo);
259 ✗ }
260
261 1 std::vector<ModelObject> ThermalStorageIceDetailed_Impl::children() const {
262 1 std::vector<ModelObject> result;
263
264
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 result.push_back(dischargingCurve());
265
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 result.push_back(chargingCurve());
266
267 1 return result;
268 ✗ }
269
270 4 ComponentType ThermalStorageIceDetailed_Impl::componentType() const {
271
1/1
✓ Branch 1 taken 4 times.
4 return ComponentType::Both;
272 }
273
274 ✗ std::vector<FuelType> ThermalStorageIceDetailed_Impl::coolingFuelTypes() const {
275 ✗ return {};
276 }
277
278 ✗ std::vector<FuelType> ThermalStorageIceDetailed_Impl::heatingFuelTypes() const {
279 ✗ return {};
280 }
281
282 ✗ std::vector<AppGFuelType> ThermalStorageIceDetailed_Impl::appGHeatingFuelTypes() const {
283 ✗ return {};
284 }
285
286 } // namespace detail
287
288 3 ThermalStorageIceDetailed::ThermalStorageIceDetailed(const Model& model) : StraightComponent(ThermalStorageIceDetailed::iddObjectType(), model) {
289
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
✗ Branch 5 not taken.
3 OS_ASSERT(getImpl<detail::ThermalStorageIceDetailed_Impl>());
290
291 {
292
1/1
✓ Branch 1 taken 3 times.
3 CurveQuadraticLinear curve(model);
293
1/1
✓ Branch 1 taken 3 times.
3 curve.setCoefficient1Constant(0.0);
294
1/1
✓ Branch 1 taken 3 times.
3 curve.setCoefficient2x(0.09);
295
1/1
✓ Branch 1 taken 3 times.
3 curve.setCoefficient3xPOW2(-0.15);
296
1/1
✓ Branch 1 taken 3 times.
3 curve.setCoefficient4y(0.612);
297
1/1
✓ Branch 1 taken 3 times.
3 curve.setCoefficient5xTIMESY(-0.324);
298
1/1
✓ Branch 1 taken 3 times.
3 curve.setCoefficient6xPOW2TIMESY(-0.216);
299
1/1
✓ Branch 1 taken 3 times.
3 curve.setMinimumValueofx(0.0);
300
1/1
✓ Branch 1 taken 3 times.
3 curve.setMaximumValueofx(1.0);
301
1/1
✓ Branch 1 taken 3 times.
3 curve.setMinimumValueofy(0.0);
302
1/1
✓ Branch 1 taken 3 times.
3 curve.setMaximumValueofy(9.9);
303
304
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 setDischargingCurveVariableSpecifications("FractionDischargedLMTD");
305
1/1
✓ Branch 1 taken 3 times.
3 setDischargingCurve(curve);
306 3 }
307
308 {
309
1/1
✓ Branch 1 taken 3 times.
3 CurveQuadraticLinear curve(model);
310
1/1
✓ Branch 1 taken 3 times.
3 curve.setCoefficient1Constant(0.0);
311
1/1
✓ Branch 1 taken 3 times.
3 curve.setCoefficient2x(0.09);
312
1/1
✓ Branch 1 taken 3 times.
3 curve.setCoefficient3xPOW2(-0.15);
313
1/1
✓ Branch 1 taken 3 times.
3 curve.setCoefficient4y(0.612);
314
1/1
✓ Branch 1 taken 3 times.
3 curve.setCoefficient5xTIMESY(-0.324);
315
1/1
✓ Branch 1 taken 3 times.
3 curve.setCoefficient6xPOW2TIMESY(-0.216);
316
1/1
✓ Branch 1 taken 3 times.
3 curve.setMinimumValueofx(0.0);
317
1/1
✓ Branch 1 taken 3 times.
3 curve.setMaximumValueofx(1.0);
318
1/1
✓ Branch 1 taken 3 times.
3 curve.setMinimumValueofy(0.0);
319
1/1
✓ Branch 1 taken 3 times.
3 curve.setMaximumValueofy(9.9);
320
321
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 setChargingCurveVariableSpecifications("FractionChargedLMTD");
322
1/1
✓ Branch 1 taken 3 times.
3 setChargingCurve(curve);
323 3 }
324
325
1/1
✓ Branch 1 taken 3 times.
3 setCapacity(0.5);
326
1/1
✓ Branch 1 taken 3 times.
3 setTimestepoftheCurveData(1.0);
327
1/1
✓ Branch 1 taken 3 times.
3 setParasiticElectricLoadDuringDischarging(0.0001);
328
1/1
✓ Branch 1 taken 3 times.
3 setParasiticElectricLoadDuringCharging(0.0002);
329
1/1
✓ Branch 1 taken 3 times.
3 setTankLossCoefficient(0.0003);
330
1/1
✓ Branch 1 taken 3 times.
3 setFreezingTemperatureofStorageMedium(0.0);
331
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 setThawProcessIndicator("OutsideMelt");
332 3 }
333
334 7734 IddObjectType ThermalStorageIceDetailed::iddObjectType() {
335
1/1
✓ Branch 1 taken 7734 times.
7734 return {IddObjectType::OS_ThermalStorage_Ice_Detailed};
336 }
337
338 ✗ std::vector<std::string> ThermalStorageIceDetailed::thawProcessIndicatorValues() {
339 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_ThermalStorage_Ice_DetailedFields::ThawProcessIndicator);
340 }
341
342 1 boost::optional<Schedule> ThermalStorageIceDetailed::availabilitySchedule() const {
343
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->availabilitySchedule();
344 }
345
346 1 double ThermalStorageIceDetailed::capacity() const {
347
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->capacity();
348 }
349
350 1 std::string ThermalStorageIceDetailed::dischargingCurveVariableSpecifications() const {
351
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->dischargingCurveVariableSpecifications();
352 }
353
354 3 bool ThermalStorageIceDetailed::setDischargingCurveVariableSpecifications(const std::string& dischargingCurveVariableSpecifications) {
355
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->setDischargingCurveVariableSpecifications(dischargingCurveVariableSpecifications);
356 }
357
358 1 Curve ThermalStorageIceDetailed::dischargingCurve() const {
359
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->dischargingCurve();
360 }
361
362 3 bool ThermalStorageIceDetailed::setChargingCurveVariableSpecifications(const std::string& chargingCurveVariableSpecifications) {
363
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->setChargingCurveVariableSpecifications(chargingCurveVariableSpecifications);
364 }
365
366 1 std::string ThermalStorageIceDetailed::chargingCurveVariableSpecifications() const {
367
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->chargingCurveVariableSpecifications();
368 }
369
370 1 Curve ThermalStorageIceDetailed::chargingCurve() const {
371
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->chargingCurve();
372 }
373
374 1 double ThermalStorageIceDetailed::timestepoftheCurveData() const {
375
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->timestepoftheCurveData();
376 }
377
378 1 double ThermalStorageIceDetailed::parasiticElectricLoadDuringDischarging() const {
379
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->parasiticElectricLoadDuringDischarging();
380 }
381
382 1 double ThermalStorageIceDetailed::parasiticElectricLoadDuringCharging() const {
383
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->parasiticElectricLoadDuringCharging();
384 }
385
386 1 double ThermalStorageIceDetailed::tankLossCoefficient() const {
387
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->tankLossCoefficient();
388 }
389
390 1 double ThermalStorageIceDetailed::freezingTemperatureofStorageMedium() const {
391
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->freezingTemperatureofStorageMedium();
392 }
393
394 1 std::string ThermalStorageIceDetailed::thawProcessIndicator() const {
395
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->thawProcessIndicator();
396 }
397
398 ✗ bool ThermalStorageIceDetailed::setAvailabilitySchedule(Schedule& schedule) {
399 ✗ return getImpl<detail::ThermalStorageIceDetailed_Impl>()->setAvailabilitySchedule(schedule);
400 }
401
402 ✗ void ThermalStorageIceDetailed::resetAvailabilitySchedule() {
403 ✗ getImpl<detail::ThermalStorageIceDetailed_Impl>()->resetAvailabilitySchedule();
404 ✗ }
405
406 3 bool ThermalStorageIceDetailed::setCapacity(double capacity) {
407
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->setCapacity(capacity);
408 }
409
410 3 bool ThermalStorageIceDetailed::setDischargingCurve(const Curve& dischargingCurve) {
411
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->setDischargingCurve(dischargingCurve);
412 }
413
414 3 bool ThermalStorageIceDetailed::setChargingCurve(const Curve& chargingCurve) {
415
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->setChargingCurve(chargingCurve);
416 }
417
418 3 bool ThermalStorageIceDetailed::setTimestepoftheCurveData(double timestepoftheCurveData) {
419
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->setTimestepoftheCurveData(timestepoftheCurveData);
420 }
421
422 3 bool ThermalStorageIceDetailed::setParasiticElectricLoadDuringDischarging(double parasiticElectricLoadDuringDischarging) {
423
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->setParasiticElectricLoadDuringDischarging(parasiticElectricLoadDuringDischarging);
424 }
425
426 3 bool ThermalStorageIceDetailed::setParasiticElectricLoadDuringCharging(double parasiticElectricLoadDuringCharging) {
427
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->setParasiticElectricLoadDuringCharging(parasiticElectricLoadDuringCharging);
428 }
429
430 3 bool ThermalStorageIceDetailed::setTankLossCoefficient(double tankLossCoefficient) {
431
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->setTankLossCoefficient(tankLossCoefficient);
432 }
433
434 3 bool ThermalStorageIceDetailed::setFreezingTemperatureofStorageMedium(double freezingTemperatureofStorageMedium) {
435
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->setFreezingTemperatureofStorageMedium(freezingTemperatureofStorageMedium);
436 }
437
438 3 bool ThermalStorageIceDetailed::setThawProcessIndicator(const std::string& thawProcessIndicator) {
439
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::ThermalStorageIceDetailed_Impl>()->setThawProcessIndicator(thawProcessIndicator);
440 }
441
442 /// @cond
443 1 ThermalStorageIceDetailed::ThermalStorageIceDetailed(std::shared_ptr<detail::ThermalStorageIceDetailed_Impl> impl)
444
1/1
✓ Branch 3 taken 1 time.
1 : StraightComponent(std::move(impl)) {}
445 /// @endcond
446
447 } // namespace model
448 } // namespace openstudio
449