GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 74.0% 376 / 0 / 508
Functions: 73.6% 89 / 0 / 121
Branches: 64.2% 247 / 0 / 385

src/model/GroundHeatExchangerVertical.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 "GroundHeatExchangerVertical.hpp"
7 #include "GroundHeatExchangerVertical_Impl.hpp"
8 #include "Node.hpp"
9 #include "Node_Impl.hpp"
10 #include "Model.hpp"
11 #include "Model_Impl.hpp"
12 #include "SiteGroundTemperatureUndisturbedKusudaAchenbach.hpp"
13 #include "SiteGroundTemperatureUndisturbedKusudaAchenbach_Impl.hpp"
14
15 #include "../utilities/core/Assert.hpp"
16 #include "../utilities/data/DataEnums.hpp"
17 #include "../utilities/idf/WorkspaceExtensibleGroup.hpp"
18
19 #include <utilities/idd/OS_GroundHeatExchanger_Vertical_FieldEnums.hxx>
20 #include <utilities/idd/IddEnums.hxx>
21
22 namespace openstudio {
23 namespace model {
24
25 namespace detail {
26
27 17 GroundHeatExchangerVertical_Impl::GroundHeatExchangerVertical_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
28 17 : StraightComponent_Impl(idfObject, model, keepHandle) {
29
4/6
✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
✓ Branch 7 taken 17 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 17 times.
✗ Branch 13 not taken.
17 OS_ASSERT(idfObject.iddObject().type() == GroundHeatExchangerVertical::iddObjectType());
30 17 }
31
32 3 GroundHeatExchangerVertical_Impl::GroundHeatExchangerVertical_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model,
33 3 bool keepHandle)
34 3 : StraightComponent_Impl(other, model, keepHandle) {
35
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(other.iddObject().type() == GroundHeatExchangerVertical::iddObjectType());
36 3 }
37
38 7 GroundHeatExchangerVertical_Impl::GroundHeatExchangerVertical_Impl(const GroundHeatExchangerVertical_Impl& other, Model_Impl* model,
39 7 bool keepHandle)
40 7 : StraightComponent_Impl(other, model, keepHandle) {}
41
42 ✗ const std::vector<std::string>& GroundHeatExchangerVertical_Impl::outputVariableNames() const {
43 static const std::vector<std::string> result{"Ground Heat Exchanger Average Borehole Temperature",
44 "Ground Heat Exchanger Heat Transfer Rate",
45 "Ground Heat Exchanger Inlet Temperature",
46 "Ground Heat Exchanger Outlet Temperature",
47 "Ground Heat Exchanger Mass Flow Rate",
48 ✗ "Ground Heat Exchanger Average Fluid Temperature"};
49 ✗ return result;
50 ✗ }
51
52 ✗ IddObjectType GroundHeatExchangerVertical_Impl::iddObjectType() const {
53 ✗ return GroundHeatExchangerVertical::iddObjectType();
54 }
55
56 9 boost::optional<int> GroundHeatExchangerVertical_Impl::numberofBoreHoles() const {
57 9 return getInt(OS_GroundHeatExchanger_VerticalFields::NumberofBoreHoles, true);
58 }
59
60 5 double GroundHeatExchangerVertical_Impl::boreHoleTopDepth() const {
61
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_GroundHeatExchanger_VerticalFields::BoreHoleTopDepth, true);
62
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
63
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
64 }
65
66 9 boost::optional<double> GroundHeatExchangerVertical_Impl::boreHoleLength() const {
67 9 return getDouble(OS_GroundHeatExchanger_VerticalFields::BoreHoleLength, true);
68 }
69
70 9 boost::optional<double> GroundHeatExchangerVertical_Impl::boreHoleRadius() const {
71 9 return getDouble(OS_GroundHeatExchanger_VerticalFields::BoreHoleRadius, true);
72 }
73
74 22 boost::optional<double> GroundHeatExchangerVertical_Impl::groundThermalConductivity() const {
75 22 return getDouble(OS_GroundHeatExchanger_VerticalFields::GroundThermalConductivity, true);
76 }
77
78 22 boost::optional<double> GroundHeatExchangerVertical_Impl::groundThermalHeatCapacity() const {
79 22 return getDouble(OS_GroundHeatExchanger_VerticalFields::GroundThermalHeatCapacity, true);
80 }
81
82 21 boost::optional<double> GroundHeatExchangerVertical_Impl::groundTemperature() const {
83 21 return getDouble(OS_GroundHeatExchanger_VerticalFields::GroundTemperature, true);
84 }
85
86 11 boost::optional<double> GroundHeatExchangerVertical_Impl::designFlowRate() const {
87 11 return getDouble(OS_GroundHeatExchanger_VerticalFields::DesignFlowRate, true);
88 }
89
90 9 boost::optional<double> GroundHeatExchangerVertical_Impl::groutThermalConductivity() const {
91 9 return getDouble(OS_GroundHeatExchanger_VerticalFields::GroutThermalConductivity, true);
92 }
93
94 9 boost::optional<double> GroundHeatExchangerVertical_Impl::pipeThermalConductivity() const {
95 9 return getDouble(OS_GroundHeatExchanger_VerticalFields::PipeThermalConductivity, true);
96 }
97
98 9 boost::optional<double> GroundHeatExchangerVertical_Impl::pipeOutDiameter() const {
99 9 return getDouble(OS_GroundHeatExchanger_VerticalFields::PipeOutDiameter, true);
100 }
101
102 9 boost::optional<double> GroundHeatExchangerVertical_Impl::uTubeDistance() const {
103 9 return getDouble(OS_GroundHeatExchanger_VerticalFields::UTubeDistance, true);
104 }
105
106 9 boost::optional<double> GroundHeatExchangerVertical_Impl::pipeThickness() const {
107 9 return getDouble(OS_GroundHeatExchanger_VerticalFields::PipeThickness, true);
108 }
109
110 8 boost::optional<double> GroundHeatExchangerVertical_Impl::maximumLengthofSimulation() const {
111 8 return getDouble(OS_GroundHeatExchanger_VerticalFields::MaximumLengthofSimulation, true);
112 }
113
114 5 double GroundHeatExchangerVertical_Impl::gFunctionReferenceRatio() const {
115
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_GroundHeatExchanger_VerticalFields::GFunctionReferenceRatio, true);
116
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
117
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
118 }
119
120 4 bool GroundHeatExchangerVertical_Impl::isGFunctionReferenceRatioDefaulted() const {
121 4 return isEmpty(OS_GroundHeatExchanger_VerticalFields::GFunctionReferenceRatio);
122 }
123
124 5 ModelObject GroundHeatExchangerVertical_Impl::undisturbedGroundTemperatureModel() const {
125 5 boost::optional<ModelObject> modelObject;
126 modelObject =
127
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 getObject<ModelObject>().getModelObjectTarget<ModelObject>(OS_GroundHeatExchanger_VerticalFields::UndisturbedGroundTemperatureModel);
128
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(modelObject);
129
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
10 return modelObject.get();
130 5 }
131
132 16 bool GroundHeatExchangerVertical_Impl::setNumberofBoreHoles(boost::optional<int> numberofBoreHoles) {
133 16 bool result(false);
134
1/2
✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
16 if (numberofBoreHoles) {
135 16 result = setInt(OS_GroundHeatExchanger_VerticalFields::NumberofBoreHoles, numberofBoreHoles.get());
136 } else {
137 ✗ resetNumberofBoreHoles();
138 ✗ result = true;
139 }
140 16 return result;
141 }
142
143 ✗ void GroundHeatExchangerVertical_Impl::resetNumberofBoreHoles() {
144 ✗ bool result = setString(OS_GroundHeatExchanger_VerticalFields::NumberofBoreHoles, "");
145 ✗ OS_ASSERT(result);
146 ✗ }
147
148 16 bool GroundHeatExchangerVertical_Impl::setBoreHoleTopDepth(double boreHoleTopDepth) {
149 16 bool result = setDouble(OS_GroundHeatExchanger_VerticalFields::BoreHoleTopDepth, boreHoleTopDepth);
150 16 return result;
151 }
152
153 16 bool GroundHeatExchangerVertical_Impl::setBoreHoleLength(boost::optional<double> boreHoleLength) {
154 16 bool result(false);
155
1/2
✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
16 if (boreHoleLength) {
156 16 result = setDouble(OS_GroundHeatExchanger_VerticalFields::BoreHoleLength, boreHoleLength.get());
157 } else {
158 ✗ resetBoreHoleLength();
159 ✗ result = true;
160 }
161 16 return result;
162 }
163
164 ✗ void GroundHeatExchangerVertical_Impl::resetBoreHoleLength() {
165 ✗ bool result = setString(OS_GroundHeatExchanger_VerticalFields::BoreHoleLength, "");
166 ✗ OS_ASSERT(result);
167 ✗ }
168
169 16 bool GroundHeatExchangerVertical_Impl::setBoreHoleRadius(boost::optional<double> boreHoleRadius) {
170 16 bool result(false);
171
1/2
✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
16 if (boreHoleRadius) {
172 16 result = setDouble(OS_GroundHeatExchanger_VerticalFields::BoreHoleRadius, boreHoleRadius.get());
173 } else {
174 ✗ resetBoreHoleRadius();
175 ✗ result = true;
176 }
177 16 return result;
178 }
179
180 ✗ void GroundHeatExchangerVertical_Impl::resetBoreHoleRadius() {
181 ✗ bool result = setString(OS_GroundHeatExchanger_VerticalFields::BoreHoleRadius, "");
182 ✗ OS_ASSERT(result);
183 ✗ }
184
185 16 bool GroundHeatExchangerVertical_Impl::setGroundThermalConductivity(boost::optional<double> groundThermalConductivity) {
186 16 bool result(false);
187
1/2
✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
16 if (groundThermalConductivity) {
188 16 result = setDouble(OS_GroundHeatExchanger_VerticalFields::GroundThermalConductivity, groundThermalConductivity.get());
189 } else {
190 ✗ resetGroundThermalConductivity();
191 ✗ result = true;
192 }
193 16 return result;
194 }
195
196 ✗ void GroundHeatExchangerVertical_Impl::resetGroundThermalConductivity() {
197 ✗ bool result = setString(OS_GroundHeatExchanger_VerticalFields::GroundThermalConductivity, "");
198 ✗ OS_ASSERT(result);
199 ✗ }
200
201 16 bool GroundHeatExchangerVertical_Impl::setGroundThermalHeatCapacity(boost::optional<double> groundThermalHeatCapacity) {
202 16 bool result(false);
203
1/2
✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
16 if (groundThermalHeatCapacity) {
204 16 result = setDouble(OS_GroundHeatExchanger_VerticalFields::GroundThermalHeatCapacity, groundThermalHeatCapacity.get());
205 } else {
206 ✗ resetGroundThermalHeatCapacity();
207 ✗ result = true;
208 }
209 16 return result;
210 }
211
212 ✗ void GroundHeatExchangerVertical_Impl::resetGroundThermalHeatCapacity() {
213 ✗ bool result = setString(OS_GroundHeatExchanger_VerticalFields::GroundThermalHeatCapacity, "");
214 ✗ OS_ASSERT(result);
215 ✗ }
216
217 16 bool GroundHeatExchangerVertical_Impl::setGroundTemperature(boost::optional<double> groundTemperature) {
218 16 bool result(false);
219
1/2
✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
16 if (groundTemperature) {
220 16 result = setDouble(OS_GroundHeatExchanger_VerticalFields::GroundTemperature, groundTemperature.get());
221 } else {
222 ✗ resetGroundTemperature();
223 ✗ result = true;
224 }
225 16 return result;
226 }
227
228 ✗ void GroundHeatExchangerVertical_Impl::resetGroundTemperature() {
229 ✗ bool result = setString(OS_GroundHeatExchanger_VerticalFields::GroundTemperature, "");
230 ✗ OS_ASSERT(result);
231 ✗ }
232
233 17 bool GroundHeatExchangerVertical_Impl::setDesignFlowRate(double designFlowRate) {
234 17 bool result = setDouble(OS_GroundHeatExchanger_VerticalFields::DesignFlowRate, designFlowRate);
235 17 return result;
236 }
237
238 16 bool GroundHeatExchangerVertical_Impl::setGroutThermalConductivity(boost::optional<double> groutThermalConductivity) {
239 16 bool result(false);
240
1/2
✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
16 if (groutThermalConductivity) {
241 16 result = setDouble(OS_GroundHeatExchanger_VerticalFields::GroutThermalConductivity, groutThermalConductivity.get());
242 } else {
243 ✗ resetGroutThermalConductivity();
244 ✗ result = true;
245 }
246 16 return result;
247 }
248
249 ✗ void GroundHeatExchangerVertical_Impl::resetGroutThermalConductivity() {
250 ✗ bool result = setString(OS_GroundHeatExchanger_VerticalFields::GroutThermalConductivity, "");
251 ✗ OS_ASSERT(result);
252 ✗ }
253
254 16 bool GroundHeatExchangerVertical_Impl::setPipeThermalConductivity(boost::optional<double> pipeThermalConductivity) {
255 16 bool result(false);
256
1/2
✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
16 if (pipeThermalConductivity) {
257 16 result = setDouble(OS_GroundHeatExchanger_VerticalFields::PipeThermalConductivity, pipeThermalConductivity.get());
258 } else {
259 ✗ resetPipeThermalConductivity();
260 ✗ result = true;
261 }
262 16 return result;
263 }
264
265 ✗ void GroundHeatExchangerVertical_Impl::resetPipeThermalConductivity() {
266 ✗ bool result = setString(OS_GroundHeatExchanger_VerticalFields::PipeThermalConductivity, "");
267 ✗ OS_ASSERT(result);
268 ✗ }
269
270 16 bool GroundHeatExchangerVertical_Impl::setPipeOutDiameter(boost::optional<double> pipeOutDiameter) {
271 16 bool result(false);
272
1/2
✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
16 if (pipeOutDiameter) {
273 16 result = setDouble(OS_GroundHeatExchanger_VerticalFields::PipeOutDiameter, pipeOutDiameter.get());
274 } else {
275 ✗ resetPipeOutDiameter();
276 ✗ result = true;
277 }
278 16 return result;
279 }
280
281 ✗ void GroundHeatExchangerVertical_Impl::resetPipeOutDiameter() {
282 ✗ bool result = setString(OS_GroundHeatExchanger_VerticalFields::PipeOutDiameter, "");
283 ✗ OS_ASSERT(result);
284 ✗ }
285
286 16 bool GroundHeatExchangerVertical_Impl::setUTubeDistance(boost::optional<double> uTubeDistance) {
287 16 bool result(false);
288
1/2
✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
16 if (uTubeDistance) {
289 16 result = setDouble(OS_GroundHeatExchanger_VerticalFields::UTubeDistance, uTubeDistance.get());
290 } else {
291 ✗ resetUTubeDistance();
292 ✗ result = true;
293 }
294 16 return result;
295 }
296 ✗ void GroundHeatExchangerVertical_Impl::resetUTubeDistance() {
297 ✗ bool result = setString(OS_GroundHeatExchanger_VerticalFields::UTubeDistance, "");
298 ✗ OS_ASSERT(result);
299 ✗ }
300
301 16 bool GroundHeatExchangerVertical_Impl::setPipeThickness(boost::optional<double> pipeThickness) {
302 16 bool result(false);
303
1/2
✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
16 if (pipeThickness) {
304 16 result = setDouble(OS_GroundHeatExchanger_VerticalFields::PipeThickness, pipeThickness.get());
305 } else {
306 ✗ resetPipeThickness();
307 ✗ result = true;
308 }
309 16 return result;
310 }
311
312 ✗ void GroundHeatExchangerVertical_Impl::resetPipeThickness() {
313 ✗ bool result = setString(OS_GroundHeatExchanger_VerticalFields::PipeThickness, "");
314 ✗ OS_ASSERT(result);
315 ✗ }
316
317 16 bool GroundHeatExchangerVertical_Impl::setMaximumLengthofSimulation(boost::optional<double> maximumLengthofSimulation) {
318 16 bool result(false);
319
1/2
✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
16 if (maximumLengthofSimulation) {
320 16 result = setDouble(OS_GroundHeatExchanger_VerticalFields::MaximumLengthofSimulation, maximumLengthofSimulation.get());
321 } else {
322 ✗ resetMaximumLengthofSimulation();
323 ✗ result = true;
324 }
325 16 return result;
326 }
327
328 ✗ void GroundHeatExchangerVertical_Impl::resetMaximumLengthofSimulation() {
329 ✗ bool result = setString(OS_GroundHeatExchanger_VerticalFields::MaximumLengthofSimulation, "");
330 ✗ OS_ASSERT(result);
331 ✗ }
332
333 16 bool GroundHeatExchangerVertical_Impl::setGFunctionReferenceRatio(double gFunctionReferenceRatio) {
334 16 bool result = setDouble(OS_GroundHeatExchanger_VerticalFields::GFunctionReferenceRatio, gFunctionReferenceRatio);
335 16 return result;
336 }
337
338 ✗ void GroundHeatExchangerVertical_Impl::resetGFunctionReferenceRatio() {
339 ✗ bool result = setString(OS_GroundHeatExchanger_VerticalFields::GFunctionReferenceRatio, "");
340 ✗ OS_ASSERT(result);
341 ✗ }
342
343 16 bool GroundHeatExchangerVertical_Impl::setUndisturbedGroundTemperatureModel(const ModelObject& undisturbedGroundTemperatureModel) {
344
2/2
✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
16 bool result = setPointer(OS_GroundHeatExchanger_VerticalFields::UndisturbedGroundTemperatureModel, undisturbedGroundTemperatureModel.handle());
345 16 return result;
346 }
347
348 21 unsigned GroundHeatExchangerVertical_Impl::inletPort() const {
349 21 return OS_GroundHeatExchanger_VerticalFields::InletNodeName;
350 }
351
352 51 unsigned GroundHeatExchangerVertical_Impl::outletPort() const {
353 51 return OS_GroundHeatExchanger_VerticalFields::OutletNodeName;
354 }
355
356 11 bool GroundHeatExchangerVertical_Impl::addToNode(Node& node) {
357
3/3
✓ Branch 1 taken 11 times.
✓ Branch 3 taken 9 times.
✓ Branch 4 taken 2 times.
22 if (auto plant = node.plantLoop()) {
358
5/5
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
✓ Branch 11 taken 7 times.
✓ Branch 12 taken 2 times.
9 if (!plant->demandComponent(node.handle())) {
359
1/1
✓ Branch 1 taken 7 times.
7 return StraightComponent_Impl::addToNode(node);
360 }
361 11 }
362
363 4 return false;
364 }
365
366 //clone object
367 3 ModelObject GroundHeatExchangerVertical_Impl::clone(Model model) const {
368
3/3
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
3 auto newGroundHeatExchanger = StraightComponent_Impl::clone(model).cast<GroundHeatExchangerVertical>();
369
370 6 return std::move(newGroundHeatExchanger);
371 3 }
372
373 593 bool GroundHeatExchangerVertical_Impl::addGFunction(double gFunctionLN, double gFunctionGValue) {
374
3/3
✓ Branch 1 taken 593 times.
✓ Branch 4 taken 593 times.
✓ Branch 7 taken 593 times.
593 auto eg = getObject<ModelObject>().pushExtensibleGroup().cast<WorkspaceExtensibleGroup>();
375
376
1/1
✓ Branch 1 taken 593 times.
593 bool temp = eg.setDouble(OS_GroundHeatExchanger_VerticalExtensibleFields::GFunctionLn_T_Ts_Value, gFunctionLN);
377
1/1
✓ Branch 1 taken 593 times.
593 bool ok = eg.setDouble(OS_GroundHeatExchanger_VerticalExtensibleFields::GFunctionGValue, gFunctionGValue);
378
379
2/2
✓ Branch 0 taken 592 times.
✓ Branch 1 taken 1 time.
593 if (temp) {
380 592 temp = ok;
381 }
382
383
2/2
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 592 times.
593 if (!temp) {
384
1/3
✓ Branch 1 taken 1 time.
✗ Branch 4 not taken.
✗ Branch 7 not taken.
2 getObject<ModelObject>().eraseExtensibleGroup(eg.groupIndex());
385 ✗ return temp;
386 }
387 592 return temp;
388 593 }
389
390 1 void GroundHeatExchangerVertical_Impl::removeGFunction(unsigned groupIndex) {
391 1 unsigned numberofDataPairs = numExtensibleGroups();
392
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (groupIndex < numberofDataPairs) {
393
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 getObject<ModelObject>().eraseExtensibleGroup(groupIndex);
394 }
395 1 }
396
397 2 void GroundHeatExchangerVertical_Impl::removeAllGFunctions() {
398
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 getObject<ModelObject>().clearExtensibleGroups();
399 2 }
400
401 6 std::vector<std::pair<double, double>> GroundHeatExchangerVertical_Impl::gFunctions() {
402 6 std::vector<std::pair<double, double>> result;
403
404
1/1
✓ Branch 1 taken 6 times.
6 std::vector<IdfExtensibleGroup> groups = extensibleGroups();
405
406
2/2
✓ Branch 5 taken 172 times.
✓ Branch 6 taken 6 times.
178 for (const auto& group : groups) {
407 boost::optional<double> gFunctionLN =
408
2/2
✓ Branch 1 taken 172 times.
✓ Branch 4 taken 172 times.
172 group.cast<WorkspaceExtensibleGroup>().getDouble(OS_GroundHeatExchanger_VerticalExtensibleFields::GFunctionLn_T_Ts_Value);
409 boost::optional<double> gFunctionGValue =
410
2/2
✓ Branch 1 taken 172 times.
✓ Branch 4 taken 172 times.
172 group.cast<WorkspaceExtensibleGroup>().getDouble(OS_GroundHeatExchanger_VerticalExtensibleFields::GFunctionGValue);
411
412
3/6
✓ Branch 0 taken 172 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 172 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 172 times.
✗ Branch 5 not taken.
344 if (gFunctionLN && gFunctionGValue) {
413
3/3
✓ Branch 1 taken 172 times.
✓ Branch 4 taken 172 times.
✓ Branch 8 taken 172 times.
172 result.push_back(std::make_pair(gFunctionLN.get(), gFunctionGValue.get()));
414 }
415 }
416
417 12 return result;
418 6 }
419
420 4 ComponentType GroundHeatExchangerVertical_Impl::componentType() const {
421
1/1
✓ Branch 1 taken 4 times.
4 return ComponentType::Both;
422 }
423
424 ✗ std::vector<FuelType> GroundHeatExchangerVertical_Impl::coolingFuelTypes() const {
425 ✗ return {FuelType::Geothermal};
426 }
427
428 ✗ std::vector<FuelType> GroundHeatExchangerVertical_Impl::heatingFuelTypes() const {
429 ✗ return {FuelType::Geothermal};
430 }
431
432 ✗ std::vector<AppGFuelType> GroundHeatExchangerVertical_Impl::appGHeatingFuelTypes() const {
433 ✗ return {AppGFuelType::Geothermal};
434 }
435
436 } // namespace detail
437
438 172 GFunction::GFunction(double lnValue, double gValue) : m_lnValue(lnValue), m_gValue(gValue) {}
439
440 36 double GFunction::lnValue() const {
441 36 return m_lnValue;
442 }
443
444 36 double GFunction::gValue() const {
445 36 return m_gValue;
446 }
447
448 13 GroundHeatExchangerVertical::GroundHeatExchangerVertical(const Model& model)
449 13 : StraightComponent(GroundHeatExchangerVertical::iddObjectType(), model) {
450
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 13 times.
✗ Branch 5 not taken.
13 OS_ASSERT(getImpl<detail::GroundHeatExchangerVertical_Impl>());
451
452
1/1
✓ Branch 1 taken 13 times.
13 setNumberofBoreHoles(120);
453
1/1
✓ Branch 1 taken 13 times.
13 setBoreHoleTopDepth(1);
454
1/1
✓ Branch 1 taken 13 times.
13 setBoreHoleLength(76.2);
455
1/1
✓ Branch 1 taken 13 times.
13 setBoreHoleRadius(0.635080E-01);
456
1/1
✓ Branch 1 taken 13 times.
13 setGroundThermalConductivity(0.692626);
457
1/1
✓ Branch 1 taken 13 times.
13 setGroundThermalHeatCapacity(0.234700E+07);
458
1/1
✓ Branch 1 taken 13 times.
13 setGroundTemperature(13.375);
459
1/1
✓ Branch 1 taken 13 times.
13 setDesignFlowRate(0.0033);
460
1/1
✓ Branch 1 taken 13 times.
13 setGroutThermalConductivity(0.692626);
461
1/1
✓ Branch 1 taken 13 times.
13 setPipeThermalConductivity(0.391312);
462
1/1
✓ Branch 1 taken 13 times.
13 setPipeOutDiameter(2.66667E-02);
463
1/1
✓ Branch 1 taken 13 times.
13 setUTubeDistance(2.53977E-02);
464
1/1
✓ Branch 1 taken 13 times.
13 setPipeThickness(2.41285E-03);
465
1/1
✓ Branch 1 taken 13 times.
13 setMaximumLengthofSimulation(2);
466
1/1
✓ Branch 1 taken 13 times.
13 setGFunctionReferenceRatio(0.0005);
467
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-15.2996, -0.348322);
468
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-14.201, 0.022208);
469
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-13.2202, 0.412345);
470
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-12.2086, 0.867498);
471
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-11.1888, 1.357839);
472
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-10.1816, 1.852024);
473
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-9.1815, 2.345656);
474
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-8.6809, 2.593958);
475
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-8.5, 2.679);
476
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-7.8, 3.023);
477
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-7.2, 3.32);
478
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-6.5, 3.681);
479
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-5.9, 4.071);
480
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-5.2, 4.828);
481
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-4.5, 6.253);
482
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-3.963, 7.894);
483
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-3.27, 11.82);
484
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-2.864, 15.117);
485
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-2.577, 18.006);
486
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-2.171, 22.887);
487
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-1.884, 26.924);
488
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-1.191, 38.004);
489
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-0.497, 49.919);
490
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-0.274, 53.407);
491
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(-0.051, 56.632);
492
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(0.196, 59.825);
493
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(0.419, 62.349);
494
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(0.642, 64.524);
495
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(0.873, 66.412);
496
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(1.112, 67.993);
497
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(1.335, 69.162);
498
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(1.679, 70.476);
499
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(2.028, 71.361);
500
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(2.275, 71.79);
501
1/1
✓ Branch 1 taken 13 times.
13 addGFunction(3.003, 72.511);
502
503
1/1
✓ Branch 1 taken 13 times.
13 SiteGroundTemperatureUndisturbedKusudaAchenbach undisturbedGroundTemperatureModel(model);
504
3/3
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
13 undisturbedGroundTemperatureModel.setSoilThermalConductivity(groundThermalConductivity().get());
505
1/1
✓ Branch 1 taken 13 times.
13 undisturbedGroundTemperatureModel.setSoilDensity(920.0);
506
3/3
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
13 undisturbedGroundTemperatureModel.setSoilSpecificHeat(groundThermalHeatCapacity().get() / 920.0);
507
3/3
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
13 undisturbedGroundTemperatureModel.setAverageSoilSurfaceTemperature(groundTemperature().get());
508
1/1
✓ Branch 1 taken 13 times.
13 undisturbedGroundTemperatureModel.setAverageAmplitudeofSurfaceTemperature(3.2);
509
1/1
✓ Branch 1 taken 13 times.
13 undisturbedGroundTemperatureModel.setPhaseShiftofMinimumSurfaceTemperature(8.0);
510
1/1
✓ Branch 1 taken 13 times.
13 setUndisturbedGroundTemperatureModel(undisturbedGroundTemperatureModel);
511 13 }
512
513 1 GroundHeatExchangerVertical::GroundHeatExchangerVertical(const Model& model, const ModelObject& undisturbedGroundTemperatureModel)
514 1 : StraightComponent(GroundHeatExchangerVertical::iddObjectType(), model) {
515
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 5 not taken.
1 OS_ASSERT(getImpl<detail::GroundHeatExchangerVertical_Impl>());
516
517
1/1
✓ Branch 1 taken 1 time.
1 bool ok = setUndisturbedGroundTemperatureModel(undisturbedGroundTemperatureModel);
518
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (!ok) {
519 ✗ remove();
520 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s Undisturbed Ground Temperature Model to "
521 << undisturbedGroundTemperatureModel.briefDescription() << ".");
522 }
523
1/1
✓ Branch 1 taken 1 time.
1 setNumberofBoreHoles(120);
524
1/1
✓ Branch 1 taken 1 time.
1 setBoreHoleTopDepth(1);
525
1/1
✓ Branch 1 taken 1 time.
1 setBoreHoleLength(76.2);
526
1/1
✓ Branch 1 taken 1 time.
1 setBoreHoleRadius(0.635080E-01);
527
1/1
✓ Branch 1 taken 1 time.
1 setGroundThermalConductivity(0.692626);
528
1/1
✓ Branch 1 taken 1 time.
1 setGroundThermalHeatCapacity(0.234700E+07);
529
1/1
✓ Branch 1 taken 1 time.
1 setGroundTemperature(13.375);
530
1/1
✓ Branch 1 taken 1 time.
1 setDesignFlowRate(0.0033);
531
1/1
✓ Branch 1 taken 1 time.
1 setGroutThermalConductivity(0.692626);
532
1/1
✓ Branch 1 taken 1 time.
1 setPipeThermalConductivity(0.391312);
533
1/1
✓ Branch 1 taken 1 time.
1 setPipeOutDiameter(2.66667E-02);
534
1/1
✓ Branch 1 taken 1 time.
1 setUTubeDistance(2.53977E-02);
535
1/1
✓ Branch 1 taken 1 time.
1 setPipeThickness(2.41285E-03);
536
1/1
✓ Branch 1 taken 1 time.
1 setMaximumLengthofSimulation(2);
537
1/1
✓ Branch 1 taken 1 time.
1 setGFunctionReferenceRatio(0.0005);
538
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-15.2996, -0.348322);
539
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-14.201, 0.022208);
540
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-13.2202, 0.412345);
541
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-12.2086, 0.867498);
542
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-11.1888, 1.357839);
543
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-10.1816, 1.852024);
544
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-9.1815, 2.345656);
545
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-8.6809, 2.593958);
546
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-8.5, 2.679);
547
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-7.8, 3.023);
548
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-7.2, 3.32);
549
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-6.5, 3.681);
550
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-5.9, 4.071);
551
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-5.2, 4.828);
552
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-4.5, 6.253);
553
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-3.963, 7.894);
554
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-3.27, 11.82);
555
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-2.864, 15.117);
556
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-2.577, 18.006);
557
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-2.171, 22.887);
558
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-1.884, 26.924);
559
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-1.191, 38.004);
560
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-0.497, 49.919);
561
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-0.274, 53.407);
562
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(-0.051, 56.632);
563
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(0.196, 59.825);
564
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(0.419, 62.349);
565
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(0.642, 64.524);
566
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(0.873, 66.412);
567
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(1.112, 67.993);
568
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(1.335, 69.162);
569
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(1.679, 70.476);
570
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(2.028, 71.361);
571
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(2.275, 71.79);
572
1/1
✓ Branch 1 taken 1 time.
1 addGFunction(3.003, 72.511);
573 1 }
574
575 7762 IddObjectType GroundHeatExchangerVertical::iddObjectType() {
576
1/1
✓ Branch 1 taken 7762 times.
7762 return {IddObjectType::OS_GroundHeatExchanger_Vertical};
577 }
578
579 593 bool GroundHeatExchangerVertical::addGFunction(double gFunctionLN, double gFunctionGValue) {
580
1/1
✓ Branch 3 taken 592 times.
593 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->addGFunction(gFunctionLN, gFunctionGValue);
581 }
582
583 ✗ bool GroundHeatExchangerVertical::addGFunction(GFunction gFunc) {
584 ✗ return addGFunction(gFunc.lnValue(), gFunc.gValue());
585 }
586
587 1 void GroundHeatExchangerVertical::removeGFunction(int groupIndex) {
588
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->removeGFunction(groupIndex);
589 }
590
591 2 void GroundHeatExchangerVertical::removeAllGFunctions() {
592
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->removeAllGFunctions();
593 }
594
595 6 std::vector<GFunction> GroundHeatExchangerVertical::gFunctions() {
596
1/1
✓ Branch 3 taken 6 times.
6 auto const gFunctionPairs(getImpl<detail::GroundHeatExchangerVertical_Impl>()->gFunctions());
597 6 std::vector<GFunction> gFuncs;
598
2/2
✓ Branch 4 taken 172 times.
✓ Branch 5 taken 6 times.
178 for (auto const& gFuncPair : gFunctionPairs) {
599
2/2
✓ Branch 1 taken 172 times.
✓ Branch 4 taken 172 times.
172 gFuncs.push_back(GFunction(gFuncPair.first, gFuncPair.second));
600 }
601 12 return gFuncs;
602 6 }
603
604 9 boost::optional<int> GroundHeatExchangerVertical::numberofBoreHoles() const {
605
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->numberofBoreHoles();
606 }
607
608 5 double GroundHeatExchangerVertical::boreHoleTopDepth() const {
609
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->boreHoleTopDepth();
610 }
611
612 9 boost::optional<double> GroundHeatExchangerVertical::boreHoleLength() const {
613
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->boreHoleLength();
614 }
615
616 9 boost::optional<double> GroundHeatExchangerVertical::boreHoleRadius() const {
617
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->boreHoleRadius();
618 }
619
620 22 boost::optional<double> GroundHeatExchangerVertical::groundThermalConductivity() const {
621
1/1
✓ Branch 3 taken 22 times.
22 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->groundThermalConductivity();
622 }
623
624 22 boost::optional<double> GroundHeatExchangerVertical::groundThermalHeatCapacity() const {
625
1/1
✓ Branch 3 taken 22 times.
22 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->groundThermalHeatCapacity();
626 }
627
628 21 boost::optional<double> GroundHeatExchangerVertical::groundTemperature() const {
629
1/1
✓ Branch 3 taken 21 times.
21 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->groundTemperature();
630 }
631
632 11 boost::optional<double> GroundHeatExchangerVertical::designFlowRate() const {
633
1/1
✓ Branch 3 taken 11 times.
11 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->designFlowRate();
634 }
635
636 9 boost::optional<double> GroundHeatExchangerVertical::groutThermalConductivity() const {
637
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->groutThermalConductivity();
638 }
639
640 9 boost::optional<double> GroundHeatExchangerVertical::pipeThermalConductivity() const {
641
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->pipeThermalConductivity();
642 }
643
644 9 boost::optional<double> GroundHeatExchangerVertical::pipeOutDiameter() const {
645
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->pipeOutDiameter();
646 }
647
648 9 boost::optional<double> GroundHeatExchangerVertical::uTubeDistance() const {
649
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->uTubeDistance();
650 }
651
652 9 boost::optional<double> GroundHeatExchangerVertical::pipeThickness() const {
653
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->pipeThickness();
654 }
655
656 8 boost::optional<double> GroundHeatExchangerVertical::maximumLengthofSimulation() const {
657
1/1
✓ Branch 3 taken 8 times.
8 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->maximumLengthofSimulation();
658 }
659
660 5 double GroundHeatExchangerVertical::gFunctionReferenceRatio() const {
661
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->gFunctionReferenceRatio();
662 }
663
664 4 bool GroundHeatExchangerVertical::isGFunctionReferenceRatioDefaulted() const {
665
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->isGFunctionReferenceRatioDefaulted();
666 }
667
668 5 ModelObject GroundHeatExchangerVertical::undisturbedGroundTemperatureModel() const {
669
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->undisturbedGroundTemperatureModel();
670 }
671
672 16 bool GroundHeatExchangerVertical::setNumberofBoreHoles(int numberofBoreHoles) {
673
2/2
✓ Branch 3 taken 16 times.
✓ Branch 6 taken 16 times.
16 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->setNumberofBoreHoles(numberofBoreHoles);
674 }
675
676 ✗ void GroundHeatExchangerVertical::resetNumberofBoreHoles() {
677 ✗ getImpl<detail::GroundHeatExchangerVertical_Impl>()->resetNumberofBoreHoles();
678 ✗ }
679
680 16 bool GroundHeatExchangerVertical::setBoreHoleTopDepth(double boreHoleTopDepth) {
681
1/1
✓ Branch 3 taken 16 times.
16 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->setBoreHoleTopDepth(boreHoleTopDepth);
682 }
683
684 16 bool GroundHeatExchangerVertical::setBoreHoleLength(double boreHoleLength) {
685
2/2
✓ Branch 3 taken 16 times.
✓ Branch 6 taken 16 times.
16 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->setBoreHoleLength(boreHoleLength);
686 }
687
688 ✗ void GroundHeatExchangerVertical::resetBoreHoleLength() {
689 ✗ getImpl<detail::GroundHeatExchangerVertical_Impl>()->resetBoreHoleLength();
690 ✗ }
691
692 16 bool GroundHeatExchangerVertical::setBoreHoleRadius(double boreHoleRadius) {
693
2/2
✓ Branch 3 taken 16 times.
✓ Branch 6 taken 16 times.
16 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->setBoreHoleRadius(boreHoleRadius);
694 }
695
696 ✗ void GroundHeatExchangerVertical::resetBoreHoleRadius() {
697 ✗ getImpl<detail::GroundHeatExchangerVertical_Impl>()->resetBoreHoleRadius();
698 ✗ }
699
700 16 bool GroundHeatExchangerVertical::setGroundThermalConductivity(double groundThermalConductivity) {
701
2/2
✓ Branch 3 taken 16 times.
✓ Branch 6 taken 16 times.
16 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->setGroundThermalConductivity(groundThermalConductivity);
702 }
703
704 ✗ void GroundHeatExchangerVertical::resetGroundThermalConductivity() {
705 ✗ getImpl<detail::GroundHeatExchangerVertical_Impl>()->resetGroundThermalConductivity();
706 ✗ }
707
708 16 bool GroundHeatExchangerVertical::setGroundThermalHeatCapacity(double groundThermalHeatCapacity) {
709
2/2
✓ Branch 3 taken 16 times.
✓ Branch 6 taken 16 times.
16 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->setGroundThermalHeatCapacity(groundThermalHeatCapacity);
710 }
711
712 ✗ void GroundHeatExchangerVertical::resetGroundThermalHeatCapacity() {
713 ✗ getImpl<detail::GroundHeatExchangerVertical_Impl>()->resetGroundThermalHeatCapacity();
714 ✗ }
715
716 16 bool GroundHeatExchangerVertical::setGroundTemperature(double groundTemperature) {
717
2/2
✓ Branch 3 taken 16 times.
✓ Branch 6 taken 16 times.
16 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->setGroundTemperature(groundTemperature);
718 }
719
720 ✗ void GroundHeatExchangerVertical::resetGroundTemperature() {
721 ✗ getImpl<detail::GroundHeatExchangerVertical_Impl>()->resetGroundTemperature();
722 ✗ }
723
724 17 bool GroundHeatExchangerVertical::setDesignFlowRate(double designFlowRate) {
725
1/1
✓ Branch 3 taken 17 times.
17 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->setDesignFlowRate(designFlowRate);
726 }
727
728 16 bool GroundHeatExchangerVertical::setGroutThermalConductivity(double groutThermalConductivity) {
729
2/2
✓ Branch 3 taken 16 times.
✓ Branch 6 taken 16 times.
16 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->setGroutThermalConductivity(groutThermalConductivity);
730 }
731
732 ✗ void GroundHeatExchangerVertical::resetGroutThermalConductivity() {
733 ✗ getImpl<detail::GroundHeatExchangerVertical_Impl>()->resetGroutThermalConductivity();
734 ✗ }
735
736 16 bool GroundHeatExchangerVertical::setPipeThermalConductivity(double pipeThermalConductivity) {
737
2/2
✓ Branch 3 taken 16 times.
✓ Branch 6 taken 16 times.
16 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->setPipeThermalConductivity(pipeThermalConductivity);
738 }
739
740 ✗ void GroundHeatExchangerVertical::resetPipeThermalConductivity() {
741 ✗ getImpl<detail::GroundHeatExchangerVertical_Impl>()->resetPipeThermalConductivity();
742 ✗ }
743
744 16 bool GroundHeatExchangerVertical::setPipeOutDiameter(double pipeOutDiameter) {
745
2/2
✓ Branch 3 taken 16 times.
✓ Branch 6 taken 16 times.
16 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->setPipeOutDiameter(pipeOutDiameter);
746 }
747
748 ✗ void GroundHeatExchangerVertical::resetPipeOutDiameter() {
749 ✗ getImpl<detail::GroundHeatExchangerVertical_Impl>()->resetPipeOutDiameter();
750 ✗ }
751
752 16 bool GroundHeatExchangerVertical::setUTubeDistance(double uTubeDistance) {
753
2/2
✓ Branch 3 taken 16 times.
✓ Branch 6 taken 16 times.
16 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->setUTubeDistance(uTubeDistance);
754 }
755
756 ✗ void GroundHeatExchangerVertical::resetUTubeDistance() {
757 ✗ getImpl<detail::GroundHeatExchangerVertical_Impl>()->resetUTubeDistance();
758 ✗ }
759
760 16 bool GroundHeatExchangerVertical::setPipeThickness(double pipeThickness) {
761
2/2
✓ Branch 3 taken 16 times.
✓ Branch 6 taken 16 times.
16 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->setPipeThickness(pipeThickness);
762 }
763
764 ✗ void GroundHeatExchangerVertical::resetPipeThickness() {
765 ✗ getImpl<detail::GroundHeatExchangerVertical_Impl>()->resetPipeThickness();
766 ✗ }
767
768 16 bool GroundHeatExchangerVertical::setMaximumLengthofSimulation(double maximumLengthofSimulation) {
769
2/2
✓ Branch 3 taken 16 times.
✓ Branch 6 taken 16 times.
16 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->setMaximumLengthofSimulation(maximumLengthofSimulation);
770 }
771
772 ✗ void GroundHeatExchangerVertical::resetMaximumLengthofSimulation() {
773 ✗ getImpl<detail::GroundHeatExchangerVertical_Impl>()->resetMaximumLengthofSimulation();
774 ✗ }
775
776 16 bool GroundHeatExchangerVertical::setGFunctionReferenceRatio(double gFunctionReferenceRatio) {
777
1/1
✓ Branch 3 taken 16 times.
16 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->setGFunctionReferenceRatio(gFunctionReferenceRatio);
778 }
779
780 ✗ void GroundHeatExchangerVertical::resetGFunctionReferenceRatio() {
781 ✗ getImpl<detail::GroundHeatExchangerVertical_Impl>()->resetGFunctionReferenceRatio();
782 ✗ }
783
784 16 bool GroundHeatExchangerVertical::setUndisturbedGroundTemperatureModel(const ModelObject& undisturbedGroundTemperatureModel) {
785
1/1
✓ Branch 3 taken 16 times.
16 return getImpl<detail::GroundHeatExchangerVertical_Impl>()->setUndisturbedGroundTemperatureModel(undisturbedGroundTemperatureModel);
786 }
787
788 /// @cond
789 7 GroundHeatExchangerVertical::GroundHeatExchangerVertical(std::shared_ptr<detail::GroundHeatExchangerVertical_Impl> impl)
790
1/1
✓ Branch 3 taken 7 times.
7 : StraightComponent(std::move(impl)) {}
791
792 /// @endcond
793
794 } // namespace model
795 } // namespace openstudio
796