-
Notifications
You must be signed in to change notification settings - Fork 229
Expand file tree
/
Copy pathGroundHeatExchangerHorizontalTrench.cpp
More file actions
583 lines (471 loc) · 27.7 KB
/
GroundHeatExchangerHorizontalTrench.cpp
File metadata and controls
583 lines (471 loc) · 27.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
* See also https://openstudio.net/license
***********************************************************************************************************************/
#include "GroundHeatExchangerHorizontalTrench.hpp"
#include "GroundHeatExchangerHorizontalTrench_Impl.hpp"
#include "PlantLoop.hpp"
#include "PlantLoop_Impl.hpp"
#include "Node.hpp"
#include "Node_Impl.hpp"
#include "Model.hpp"
#include "Model_Impl.hpp"
#include "SiteGroundTemperatureUndisturbedKusudaAchenbach.hpp"
#include "SiteGroundTemperatureUndisturbedKusudaAchenbach_Impl.hpp"
#include "../utilities/core/Assert.hpp"
#include "../utilities/core/DeprecatedHelpers.hpp"
#include "../utilities/data/DataEnums.hpp"
#include <utilities/idd/IddFactory.hxx>
#include <utilities/idd/OS_GroundHeatExchanger_HorizontalTrench_FieldEnums.hxx>
namespace openstudio {
namespace model {
namespace detail {
GroundHeatExchangerHorizontalTrench_Impl::GroundHeatExchangerHorizontalTrench_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
: StraightComponent_Impl(idfObject, model, keepHandle) {
OS_ASSERT(idfObject.iddObject().type() == GroundHeatExchangerHorizontalTrench::iddObjectType());
}
GroundHeatExchangerHorizontalTrench_Impl::GroundHeatExchangerHorizontalTrench_Impl(const openstudio::detail::WorkspaceObject_Impl& other,
Model_Impl* model, bool keepHandle)
: StraightComponent_Impl(other, model, keepHandle) {
OS_ASSERT(other.iddObject().type() == GroundHeatExchangerHorizontalTrench::iddObjectType());
}
GroundHeatExchangerHorizontalTrench_Impl::GroundHeatExchangerHorizontalTrench_Impl(const GroundHeatExchangerHorizontalTrench_Impl& other,
Model_Impl* model, bool keepHandle)
: StraightComponent_Impl(other, model, keepHandle) {}
const std::vector<std::string>& GroundHeatExchangerHorizontalTrench_Impl::outputVariableNames() const {
static const std::vector<std::string> result{"Ground Heat Exchanger Mass Flow Rate", "Ground Heat Exchanger Inlet Temperature",
"Ground Heat Exchanger Outlet Temperature", "Ground Heat Exchanger Fluid Heat Transfer Rate"};
return result;
}
IddObjectType GroundHeatExchangerHorizontalTrench_Impl::iddObjectType() const {
return GroundHeatExchangerHorizontalTrench::iddObjectType();
}
double GroundHeatExchangerHorizontalTrench_Impl::designFlowRate() const {
boost::optional<double> value = getDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::DesignFlowRate, true);
OS_ASSERT(value);
return value.get();
}
double GroundHeatExchangerHorizontalTrench_Impl::trenchLengthinPipeAxialDirection() const {
boost::optional<double> value = getDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::TrenchLengthinPipeAxialDirection, true);
OS_ASSERT(value);
return value.get();
}
int GroundHeatExchangerHorizontalTrench_Impl::numberofTrenches() const {
boost::optional<int> value = getInt(OS_GroundHeatExchanger_HorizontalTrenchFields::NumberofTrenches, true);
OS_ASSERT(value);
return value.get();
}
double GroundHeatExchangerHorizontalTrench_Impl::horizontalSpacingBetweenPipes() const {
boost::optional<double> value = getDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::HorizontalSpacingBetweenPipes, true);
OS_ASSERT(value);
return value.get();
}
double GroundHeatExchangerHorizontalTrench_Impl::pipeInnerDiameter() const {
boost::optional<double> value = getDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::PipeInnerDiameter, true);
OS_ASSERT(value);
return value.get();
}
double GroundHeatExchangerHorizontalTrench_Impl::pipeOuterDiameter() const {
boost::optional<double> value = getDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::PipeOuterDiameter, true);
OS_ASSERT(value);
return value.get();
}
double GroundHeatExchangerHorizontalTrench_Impl::burialDepth() const {
boost::optional<double> value = getDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::BurialDepth, true);
OS_ASSERT(value);
return value.get();
}
double GroundHeatExchangerHorizontalTrench_Impl::soilThermalConductivity() const {
boost::optional<double> value = getDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::SoilThermalConductivity, true);
OS_ASSERT(value);
return value.get();
}
double GroundHeatExchangerHorizontalTrench_Impl::soilDensity() const {
boost::optional<double> value = getDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::SoilDensity, true);
OS_ASSERT(value);
return value.get();
}
double GroundHeatExchangerHorizontalTrench_Impl::soilSpecificHeat() const {
boost::optional<double> value = getDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::SoilSpecificHeat, true);
OS_ASSERT(value);
return value.get();
}
double GroundHeatExchangerHorizontalTrench_Impl::pipeThermalConductivity() const {
boost::optional<double> value = getDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::PipeThermalConductivity, true);
OS_ASSERT(value);
return value.get();
}
double GroundHeatExchangerHorizontalTrench_Impl::pipeDensity() const {
boost::optional<double> value = getDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::PipeDensity, true);
OS_ASSERT(value);
return value.get();
}
double GroundHeatExchangerHorizontalTrench_Impl::pipeSpecificHeat() const {
boost::optional<double> value = getDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::PipeSpecificHeat, true);
OS_ASSERT(value);
return value.get();
}
double GroundHeatExchangerHorizontalTrench_Impl::soilMoistureContentPercent() const {
boost::optional<double> value = getDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::SoilMoistureContentPercent, true);
OS_ASSERT(value);
return value.get();
}
double GroundHeatExchangerHorizontalTrench_Impl::soilMoistureContentPercentatSaturation() const {
boost::optional<double> value = getDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::SoilMoistureContentPercentatSaturation, true);
OS_ASSERT(value);
return value.get();
}
double GroundHeatExchangerHorizontalTrench_Impl::evapotranspirationGroundCoverParameter() const {
boost::optional<double> value = getDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::EvapotranspirationGroundCoverParameter, true);
OS_ASSERT(value);
return value.get();
}
ModelObject GroundHeatExchangerHorizontalTrench_Impl::undisturbedGroundTemperatureModel() const {
boost::optional<ModelObject> modelObject;
modelObject =
getObject<ModelObject>().getModelObjectTarget<ModelObject>(OS_GroundHeatExchanger_HorizontalTrenchFields::UndisturbedGroundTemperatureModel);
OS_ASSERT(modelObject);
return modelObject.get();
}
bool GroundHeatExchangerHorizontalTrench_Impl::setDesignFlowRate(double designFlowRate) {
bool result = setDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::DesignFlowRate, designFlowRate);
return result;
}
bool GroundHeatExchangerHorizontalTrench_Impl::setTrenchLengthinPipeAxialDirection(double trenchLengthinPipeAxialDirection) {
bool result = setDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::TrenchLengthinPipeAxialDirection, trenchLengthinPipeAxialDirection);
return result;
}
bool GroundHeatExchangerHorizontalTrench_Impl::setNumberofTrenches(int numberofTrenches) {
bool result = setInt(OS_GroundHeatExchanger_HorizontalTrenchFields::NumberofTrenches, numberofTrenches);
return result;
}
bool GroundHeatExchangerHorizontalTrench_Impl::setHorizontalSpacingBetweenPipes(double horizontalSpacingBetweenPipes) {
bool result = setDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::HorizontalSpacingBetweenPipes, horizontalSpacingBetweenPipes);
return result;
}
bool GroundHeatExchangerHorizontalTrench_Impl::setPipeInnerDiameter(double pipeInnerDiameter) {
bool result = setDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::PipeInnerDiameter, pipeInnerDiameter);
return result;
}
bool GroundHeatExchangerHorizontalTrench_Impl::setPipeOuterDiameter(double pipeOuterDiameter) {
bool result = setDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::PipeOuterDiameter, pipeOuterDiameter);
return result;
}
bool GroundHeatExchangerHorizontalTrench_Impl::setBurialDepth(double burialDepth) {
bool result = setDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::BurialDepth, burialDepth);
return result;
}
bool GroundHeatExchangerHorizontalTrench_Impl::setSoilThermalConductivity(double soilThermalConductivity) {
bool result = setDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::SoilThermalConductivity, soilThermalConductivity);
return result;
}
bool GroundHeatExchangerHorizontalTrench_Impl::setSoilDensity(double soilDensity) {
bool result = setDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::SoilDensity, soilDensity);
return result;
}
bool GroundHeatExchangerHorizontalTrench_Impl::setSoilSpecificHeat(double soilSpecificHeat) {
bool result = setDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::SoilSpecificHeat, soilSpecificHeat);
return result;
}
bool GroundHeatExchangerHorizontalTrench_Impl::setPipeThermalConductivity(double pipeThermalConductivity) {
bool result = setDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::PipeThermalConductivity, pipeThermalConductivity);
return result;
}
bool GroundHeatExchangerHorizontalTrench_Impl::setPipeDensity(double pipeDensity) {
bool result = setDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::PipeDensity, pipeDensity);
return result;
}
bool GroundHeatExchangerHorizontalTrench_Impl::setPipeSpecificHeat(double pipeSpecificHeat) {
bool result = setDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::PipeSpecificHeat, pipeSpecificHeat);
return result;
}
bool GroundHeatExchangerHorizontalTrench_Impl::setSoilMoistureContentPercent(double soilMoistureContentPercent) {
bool result = setDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::SoilMoistureContentPercent, soilMoistureContentPercent);
return result;
}
bool GroundHeatExchangerHorizontalTrench_Impl::setSoilMoistureContentPercentatSaturation(double soilMoistureContentPercentatSaturation) {
bool result =
setDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::SoilMoistureContentPercentatSaturation, soilMoistureContentPercentatSaturation);
return result;
}
bool GroundHeatExchangerHorizontalTrench_Impl::setEvapotranspirationGroundCoverParameter(double evapotranspirationGroundCoverParameter) {
bool result =
setDouble(OS_GroundHeatExchanger_HorizontalTrenchFields::EvapotranspirationGroundCoverParameter, evapotranspirationGroundCoverParameter);
return result;
}
bool GroundHeatExchangerHorizontalTrench_Impl::setUndisturbedGroundTemperatureModel(const ModelObject& undisturbedGroundTemperatureModel) {
bool result =
setPointer(OS_GroundHeatExchanger_HorizontalTrenchFields::UndisturbedGroundTemperatureModel, undisturbedGroundTemperatureModel.handle());
return result;
}
unsigned GroundHeatExchangerHorizontalTrench_Impl::inletPort() const {
return OS_GroundHeatExchanger_HorizontalTrenchFields::InletNodeName;
}
unsigned GroundHeatExchangerHorizontalTrench_Impl::outletPort() const {
return OS_GroundHeatExchanger_HorizontalTrenchFields::OutletNodeName;
}
bool GroundHeatExchangerHorizontalTrench_Impl::addToNode(Node& node) {
if (auto plant = node.plantLoop()) {
if (!plant->demandComponent(node.handle())) {
return StraightComponent_Impl::addToNode(node);
}
}
return false;
}
ModelObject GroundHeatExchangerHorizontalTrench_Impl::clone(Model model) const {
auto groundHeatExchangerClone = StraightComponent_Impl::clone(model).cast<GroundHeatExchangerHorizontalTrench>();
groundHeatExchangerClone.setUndisturbedGroundTemperatureModel(undisturbedGroundTemperatureModel().clone(model));
return std::move(groundHeatExchangerClone);
}
std::vector<ModelObject> GroundHeatExchangerHorizontalTrench_Impl::children() const {
std::vector<ModelObject> result;
result.push_back(undisturbedGroundTemperatureModel());
return result;
}
ComponentType GroundHeatExchangerHorizontalTrench_Impl::componentType() const {
return ComponentType::Both;
}
std::vector<FuelType> GroundHeatExchangerHorizontalTrench_Impl::coolingFuelTypes() const {
return {FuelType::Geothermal};
}
std::vector<FuelType> GroundHeatExchangerHorizontalTrench_Impl::heatingFuelTypes() const {
return {FuelType::Geothermal};
}
std::vector<AppGFuelType> GroundHeatExchangerHorizontalTrench_Impl::appGHeatingFuelTypes() const {
return {AppGFuelType::Geothermal};
}
} // namespace detail
GroundHeatExchangerHorizontalTrench::GroundHeatExchangerHorizontalTrench(const Model& model)
: StraightComponent(GroundHeatExchangerHorizontalTrench::iddObjectType(), model) {
OS_ASSERT(getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>());
setDesignFlowRate(0.004);
setTrenchLengthinPipeAxialDirection(75);
setNumberofTrenches(2);
setHorizontalSpacingBetweenPipes(2.0);
setPipeInnerDiameter(0.016);
setPipeOuterDiameter(0.02667);
setBurialDepth(1.25);
setSoilThermalConductivity(1.08);
setSoilDensity(962);
setSoilSpecificHeat(2576);
setPipeThermalConductivity(0.3895);
setPipeDensity(641);
setPipeSpecificHeat(2405);
setSoilMoistureContentPercent(30);
setSoilMoistureContentPercentatSaturation(50);
setEvapotranspirationGroundCoverParameter(0.408);
SiteGroundTemperatureUndisturbedKusudaAchenbach undisturbedGroundTemperatureModel(model);
setUndisturbedGroundTemperatureModel(undisturbedGroundTemperatureModel);
}
GroundHeatExchangerHorizontalTrench::GroundHeatExchangerHorizontalTrench(const Model& model, const ModelObject& undisturbedGroundTemperatureModel)
: StraightComponent(GroundHeatExchangerHorizontalTrench::iddObjectType(), model) {
OS_ASSERT(getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>());
bool ok = setUndisturbedGroundTemperatureModel(undisturbedGroundTemperatureModel);
if (!ok) {
remove();
LOG_AND_THROW("Unable to set " << briefDescription() << "'s Undisturbed Ground Temperature Model to "
<< undisturbedGroundTemperatureModel.briefDescription() << ".");
}
setDesignFlowRate(0.004);
setTrenchLengthinPipeAxialDirection(75);
setNumberofTrenches(2);
setHorizontalSpacingBetweenPipes(2.0);
setPipeInnerDiameter(0.016);
setPipeOuterDiameter(0.02667);
setBurialDepth(1.25);
setSoilThermalConductivity(1.08);
setSoilDensity(962);
setSoilSpecificHeat(2576);
setPipeThermalConductivity(0.3895);
setPipeDensity(641);
setPipeSpecificHeat(2405);
setSoilMoistureContentPercent(30);
setSoilMoistureContentPercentatSaturation(50);
setEvapotranspirationGroundCoverParameter(0.408);
}
IddObjectType GroundHeatExchangerHorizontalTrench::iddObjectType() {
return {IddObjectType::OS_GroundHeatExchanger_HorizontalTrench};
}
std::vector<std::string> GroundHeatExchangerHorizontalTrench::groundTemperatureModelValues() {
DEPRECATED_AT_MSG(3, 6, 0, "Use undisturbedGroundTemperatureModel instead.");
std::vector<std::string> result{"KusudaAchenbach", "SiteGroundTemperature"};
return result;
}
double GroundHeatExchangerHorizontalTrench::designFlowRate() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->designFlowRate();
}
double GroundHeatExchangerHorizontalTrench::trenchLengthinPipeAxialDirection() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->trenchLengthinPipeAxialDirection();
}
int GroundHeatExchangerHorizontalTrench::numberofTrenches() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->numberofTrenches();
}
double GroundHeatExchangerHorizontalTrench::horizontalSpacingBetweenPipes() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->horizontalSpacingBetweenPipes();
}
double GroundHeatExchangerHorizontalTrench::pipeInnerDiameter() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->pipeInnerDiameter();
}
double GroundHeatExchangerHorizontalTrench::pipeOuterDiameter() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->pipeOuterDiameter();
}
double GroundHeatExchangerHorizontalTrench::burialDepth() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->burialDepth();
}
double GroundHeatExchangerHorizontalTrench::soilThermalConductivity() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->soilThermalConductivity();
}
double GroundHeatExchangerHorizontalTrench::soilDensity() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->soilDensity();
}
double GroundHeatExchangerHorizontalTrench::soilSpecificHeat() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->soilSpecificHeat();
}
double GroundHeatExchangerHorizontalTrench::pipeThermalConductivity() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->pipeThermalConductivity();
}
double GroundHeatExchangerHorizontalTrench::pipeDensity() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->pipeDensity();
}
double GroundHeatExchangerHorizontalTrench::pipeSpecificHeat() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->pipeSpecificHeat();
}
double GroundHeatExchangerHorizontalTrench::soilMoistureContentPercent() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->soilMoistureContentPercent();
}
double GroundHeatExchangerHorizontalTrench::soilMoistureContentPercentatSaturation() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->soilMoistureContentPercentatSaturation();
}
std::string GroundHeatExchangerHorizontalTrench::groundTemperatureModel() const {
LOG(
Warn,
"As of 3.6.0, groundTemperatureModel is deprecated. Use undisturbedGroundTemperatureModel instead. It will be removed within three releases.");
if (undisturbedGroundTemperatureModel().iddObjectType() == IddObjectType::OS_Site_GroundTemperature_Undisturbed_KusudaAchenbach) {
return "KusudaAchenbach";
} else {
return "SiteGroundTemperature";
}
}
bool GroundHeatExchangerHorizontalTrench::isGroundTemperatureModelDefaulted() const {
DEPRECATED_AT_MSG(3, 6, 0, "Use undisturbedGroundTemperatureModel instead.");
return false;
}
double GroundHeatExchangerHorizontalTrench::kusudaAchenbachAverageSurfaceTemperature() const {
DEPRECATED_AT_MSG(3, 6, 0, "Use undisturbedGroundTemperatureModel instead.");
if (undisturbedGroundTemperatureModel().iddObjectType() != IddObjectType::OS_Site_GroundTemperature_Undisturbed_KusudaAchenbach) {
LOG_AND_THROW("Undisturbed ground temperature model is not KusudaAchenbach.");
}
return undisturbedGroundTemperatureModel().cast<SiteGroundTemperatureUndisturbedKusudaAchenbach>().averageSoilSurfaceTemperature().get();
}
double GroundHeatExchangerHorizontalTrench::kusudaAchenbachAverageAmplitudeofSurfaceTemperature() const {
DEPRECATED_AT_MSG(3, 6, 0, "Use undisturbedGroundTemperatureModel instead.");
if (undisturbedGroundTemperatureModel().iddObjectType() != IddObjectType::OS_Site_GroundTemperature_Undisturbed_KusudaAchenbach) {
LOG_AND_THROW("Undisturbed ground temperature model is not KusudaAchenbach.");
}
return undisturbedGroundTemperatureModel().cast<SiteGroundTemperatureUndisturbedKusudaAchenbach>().averageAmplitudeofSurfaceTemperature().get();
}
double GroundHeatExchangerHorizontalTrench::kusudaAchenbachPhaseShiftofMinimumSurfaceTemperature() const {
DEPRECATED_AT_MSG(3, 6, 0, "Use undisturbedGroundTemperatureModel instead.");
if (undisturbedGroundTemperatureModel().iddObjectType() != IddObjectType::OS_Site_GroundTemperature_Undisturbed_KusudaAchenbach) {
LOG_AND_THROW("Undisturbed ground temperature model is not KusudaAchenbach.");
}
return undisturbedGroundTemperatureModel().cast<SiteGroundTemperatureUndisturbedKusudaAchenbach>().phaseShiftofMinimumSurfaceTemperature().get();
}
double GroundHeatExchangerHorizontalTrench::evapotranspirationGroundCoverParameter() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->evapotranspirationGroundCoverParameter();
}
ModelObject GroundHeatExchangerHorizontalTrench::undisturbedGroundTemperatureModel() const {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->undisturbedGroundTemperatureModel();
}
bool GroundHeatExchangerHorizontalTrench::setDesignFlowRate(double designFlowRate) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setDesignFlowRate(designFlowRate);
}
bool GroundHeatExchangerHorizontalTrench::setTrenchLengthinPipeAxialDirection(double trenchLengthinPipeAxialDirection) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setTrenchLengthinPipeAxialDirection(trenchLengthinPipeAxialDirection);
}
bool GroundHeatExchangerHorizontalTrench::setNumberofTrenches(int numberofTrenches) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setNumberofTrenches(numberofTrenches);
}
bool GroundHeatExchangerHorizontalTrench::setHorizontalSpacingBetweenPipes(double horizontalSpacingBetweenPipes) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setHorizontalSpacingBetweenPipes(horizontalSpacingBetweenPipes);
}
bool GroundHeatExchangerHorizontalTrench::setPipeInnerDiameter(double pipeInnerDiameter) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setPipeInnerDiameter(pipeInnerDiameter);
}
bool GroundHeatExchangerHorizontalTrench::setPipeOuterDiameter(double pipeOuterDiameter) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setPipeOuterDiameter(pipeOuterDiameter);
}
bool GroundHeatExchangerHorizontalTrench::setBurialDepth(double burialDepth) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setBurialDepth(burialDepth);
}
bool GroundHeatExchangerHorizontalTrench::setSoilThermalConductivity(double soilThermalConductivity) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setSoilThermalConductivity(soilThermalConductivity);
}
bool GroundHeatExchangerHorizontalTrench::setSoilDensity(double soilDensity) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setSoilDensity(soilDensity);
}
bool GroundHeatExchangerHorizontalTrench::setSoilSpecificHeat(double soilSpecificHeat) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setSoilSpecificHeat(soilSpecificHeat);
}
bool GroundHeatExchangerHorizontalTrench::setPipeThermalConductivity(double pipeThermalConductivity) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setPipeThermalConductivity(pipeThermalConductivity);
}
bool GroundHeatExchangerHorizontalTrench::setPipeDensity(double pipeDensity) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setPipeDensity(pipeDensity);
}
bool GroundHeatExchangerHorizontalTrench::setPipeSpecificHeat(double pipeSpecificHeat) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setPipeSpecificHeat(pipeSpecificHeat);
}
bool GroundHeatExchangerHorizontalTrench::setSoilMoistureContentPercent(double soilMoistureContentPercent) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setSoilMoistureContentPercent(soilMoistureContentPercent);
}
bool GroundHeatExchangerHorizontalTrench::setSoilMoistureContentPercentatSaturation(double soilMoistureContentPercentatSaturation) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setSoilMoistureContentPercentatSaturation(
soilMoistureContentPercentatSaturation);
}
bool GroundHeatExchangerHorizontalTrench::setGroundTemperatureModel(const std::string& groundTemperatureModel) {
DEPRECATED_AT_MSG(3, 6, 0, "Use undisturbedGroundTemperatureModel instead.");
return false;
}
void GroundHeatExchangerHorizontalTrench::resetGroundTemperatureModel() {
DEPRECATED_AT_MSG(3, 6, 0, "Use undisturbedGroundTemperatureModel instead.");
}
bool GroundHeatExchangerHorizontalTrench::setKusudaAchenbachAverageSurfaceTemperature(double kusudaAchenbachAverageSurfaceTemperature) {
DEPRECATED_AT_MSG(3, 6, 0, "Use undisturbedGroundTemperatureModel instead.");
if (undisturbedGroundTemperatureModel().iddObjectType() != IddObjectType::OS_Site_GroundTemperature_Undisturbed_KusudaAchenbach) {
LOG_AND_THROW("Undisturbed ground temperature model is not KusudaAchenbach.");
}
return undisturbedGroundTemperatureModel().cast<SiteGroundTemperatureUndisturbedKusudaAchenbach>().setAverageSoilSurfaceTemperature(
kusudaAchenbachAverageSurfaceTemperature);
}
bool GroundHeatExchangerHorizontalTrench::setKusudaAchenbachAverageAmplitudeofSurfaceTemperature(
double kusudaAchenbachAverageAmplitudeofSurfaceTemperature) {
DEPRECATED_AT_MSG(3, 6, 0, "Use undisturbedGroundTemperatureModel instead.");
if (undisturbedGroundTemperatureModel().iddObjectType() != IddObjectType::OS_Site_GroundTemperature_Undisturbed_KusudaAchenbach) {
LOG_AND_THROW("Undisturbed ground temperature model is not KusudaAchenbach.");
}
return undisturbedGroundTemperatureModel().cast<SiteGroundTemperatureUndisturbedKusudaAchenbach>().setAverageAmplitudeofSurfaceTemperature(
kusudaAchenbachAverageAmplitudeofSurfaceTemperature);
}
bool GroundHeatExchangerHorizontalTrench::setKusudaAchenbachPhaseShiftofMinimumSurfaceTemperature(
double kusudaAchenbachPhaseShiftofMinimumSurfaceTemperature) {
DEPRECATED_AT_MSG(3, 6, 0, "Use undisturbedGroundTemperatureModel instead.");
if (undisturbedGroundTemperatureModel().iddObjectType() != IddObjectType::OS_Site_GroundTemperature_Undisturbed_KusudaAchenbach) {
LOG_AND_THROW("Undisturbed ground temperature model is not KusudaAchenbach.");
}
return undisturbedGroundTemperatureModel().cast<SiteGroundTemperatureUndisturbedKusudaAchenbach>().setPhaseShiftofMinimumSurfaceTemperature(
kusudaAchenbachPhaseShiftofMinimumSurfaceTemperature);
}
bool GroundHeatExchangerHorizontalTrench::setEvapotranspirationGroundCoverParameter(double evapotranspirationGroundCoverParameter) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setEvapotranspirationGroundCoverParameter(
evapotranspirationGroundCoverParameter);
}
bool GroundHeatExchangerHorizontalTrench::setUndisturbedGroundTemperatureModel(const ModelObject& undisturbedGroundTemperatureModel) {
return getImpl<detail::GroundHeatExchangerHorizontalTrench_Impl>()->setUndisturbedGroundTemperatureModel(undisturbedGroundTemperatureModel);
}
/// @cond
GroundHeatExchangerHorizontalTrench::GroundHeatExchangerHorizontalTrench(std::shared_ptr<detail::GroundHeatExchangerHorizontalTrench_Impl> impl)
: StraightComponent(std::move(impl)) {}
/// @endcond
} // namespace model
} // namespace openstudio