GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 98.4% 306 / 0 / 311
Functions: 98.1% 103 / 0 / 105
Branches: 72.9% 159 / 0 / 218

src/model/FoundationKivaSettings.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 <vector>
7 #include <string>
8 #include "FoundationKivaSettings.hpp"
9 #include "FoundationKivaSettings_Impl.hpp"
10
11 #include "Model.hpp"
12 #include "Model_Impl.hpp"
13 #include "Site.hpp"
14 #include "Site_Impl.hpp"
15
16 #include <utilities/idd/IddEnums.hxx>
17 #include <utilities/idd/OS_Foundation_Kiva_Settings_FieldEnums.hxx>
18
19 #include "../utilities/core/Assert.hpp"
20
21 namespace openstudio {
22 namespace model {
23
24 namespace detail {
25
26 10 FoundationKivaSettings_Impl::FoundationKivaSettings_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
27 10 : ModelObject_Impl(idfObject, model, keepHandle) {
28
4/6
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
✓ Branch 7 taken 10 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 10 times.
✗ Branch 13 not taken.
10 OS_ASSERT(idfObject.iddObject().type() == FoundationKivaSettings::iddObjectType());
29 10 }
30
31 1 FoundationKivaSettings_Impl::FoundationKivaSettings_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model,
32 1 bool keepHandle)
33 1 : ModelObject_Impl(other, model, keepHandle) {
34
4/6
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
✗ Branch 13 not taken.
1 OS_ASSERT(other.iddObject().type() == FoundationKivaSettings::iddObjectType());
35 1 }
36
37 6 FoundationKivaSettings_Impl::FoundationKivaSettings_Impl(const FoundationKivaSettings_Impl& other, Model_Impl* model, bool keepHandle)
38 6 : ModelObject_Impl(other, model, keepHandle) {}
39
40 3 boost::optional<ParentObject> FoundationKivaSettings_Impl::parent() const {
41
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 boost::optional<Site> result = this->model().getOptionalUniqueModelObject<Site>();
42
1/1
✓ Branch 1 taken 3 times.
6 return boost::optional<ParentObject>(result);
43 3 }
44
45 ✗ const std::vector<std::string>& FoundationKivaSettings_Impl::outputVariableNames() const {
46 ✗ static const std::vector<std::string> result;
47 ✗ return result;
48 }
49
50 ✗ IddObjectType FoundationKivaSettings_Impl::iddObjectType() const {
51 ✗ return FoundationKivaSettings::iddObjectType();
52 }
53
54 5 double FoundationKivaSettings_Impl::soilConductivity() const {
55
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_Foundation_Kiva_SettingsFields::SoilConductivity, true);
56
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
57
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
58 }
59
60 5 bool FoundationKivaSettings_Impl::isSoilConductivityDefaulted() const {
61 5 return isEmpty(OS_Foundation_Kiva_SettingsFields::SoilConductivity);
62 }
63
64 3 double FoundationKivaSettings_Impl::soilDensity() const {
65
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Foundation_Kiva_SettingsFields::SoilDensity, true);
66
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
67
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
68 }
69
70 5 bool FoundationKivaSettings_Impl::isSoilDensityDefaulted() const {
71 5 return isEmpty(OS_Foundation_Kiva_SettingsFields::SoilDensity);
72 }
73
74 3 double FoundationKivaSettings_Impl::soilSpecificHeat() const {
75
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Foundation_Kiva_SettingsFields::SoilSpecificHeat, true);
76
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
77
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
78 }
79
80 3 bool FoundationKivaSettings_Impl::isSoilSpecificHeatDefaulted() const {
81 3 return isEmpty(OS_Foundation_Kiva_SettingsFields::SoilSpecificHeat);
82 }
83
84 3 double FoundationKivaSettings_Impl::groundSolarAbsorptivity() const {
85
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Foundation_Kiva_SettingsFields::GroundSolarAbsorptivity, true);
86
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
87
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
88 }
89
90 3 bool FoundationKivaSettings_Impl::isGroundSolarAbsorptivityDefaulted() const {
91 3 return isEmpty(OS_Foundation_Kiva_SettingsFields::GroundSolarAbsorptivity);
92 }
93
94 3 double FoundationKivaSettings_Impl::groundThermalAbsorptivity() const {
95
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Foundation_Kiva_SettingsFields::GroundThermalAbsorptivity, true);
96
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
97
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
98 }
99
100 3 bool FoundationKivaSettings_Impl::isGroundThermalAbsorptivityDefaulted() const {
101 3 return isEmpty(OS_Foundation_Kiva_SettingsFields::GroundThermalAbsorptivity);
102 }
103
104 3 double FoundationKivaSettings_Impl::groundSurfaceRoughness() const {
105
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Foundation_Kiva_SettingsFields::GroundSurfaceRoughness, true);
106
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
107
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
108 }
109
110 3 bool FoundationKivaSettings_Impl::isGroundSurfaceRoughnessDefaulted() const {
111 3 return isEmpty(OS_Foundation_Kiva_SettingsFields::GroundSurfaceRoughness);
112 }
113
114 3 double FoundationKivaSettings_Impl::farFieldWidth() const {
115
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Foundation_Kiva_SettingsFields::FarFieldWidth, true);
116
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
117
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
118 }
119
120 3 bool FoundationKivaSettings_Impl::isFarFieldWidthDefaulted() const {
121 3 return isEmpty(OS_Foundation_Kiva_SettingsFields::FarFieldWidth);
122 }
123
124 3 std::string FoundationKivaSettings_Impl::deepGroundBoundaryCondition() const {
125
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_Foundation_Kiva_SettingsFields::DeepGroundBoundaryCondition, true);
126
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
127
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return value.get();
128 3 }
129
130 3 bool FoundationKivaSettings_Impl::isDeepGroundBoundaryConditionAutoselected() {
131
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_Foundation_Kiva_SettingsFields::DeepGroundBoundaryCondition, true);
132
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
133
3/3
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
6 return openstudio::istringEqual(value.get(), "Autoselect");
134 3 }
135
136 3 boost::optional<double> FoundationKivaSettings_Impl::deepGroundDepth() {
137 3 return getDouble(OS_Foundation_Kiva_SettingsFields::DeepGroundDepth, true);
138 }
139
140 3 bool FoundationKivaSettings_Impl::isDeepGroundDepthAutocalculated() {
141 3 bool result = false;
142
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_Foundation_Kiva_SettingsFields::DeepGroundDepth, true);
143
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 if (value) {
144
3/3
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
6 result = openstudio::istringEqual(value.get(), "Autocalculate");
145 }
146 3 return result;
147 3 }
148
149 3 double FoundationKivaSettings_Impl::minimumCellDimension() const {
150
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Foundation_Kiva_SettingsFields::MinimumCellDimension, true);
151
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
152
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
153 }
154
155 3 bool FoundationKivaSettings_Impl::isMinimumCellDimensionDefaulted() const {
156 3 return isEmpty(OS_Foundation_Kiva_SettingsFields::MinimumCellDimension);
157 }
158
159 3 double FoundationKivaSettings_Impl::maximumCellGrowthCoefficient() const {
160
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_Foundation_Kiva_SettingsFields::MaximumCellGrowthCoefficient, true);
161
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
162
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
163 }
164
165 3 bool FoundationKivaSettings_Impl::isMaximumCellGrowthCoefficientDefaulted() const {
166 3 return isEmpty(OS_Foundation_Kiva_SettingsFields::MaximumCellGrowthCoefficient);
167 }
168
169 3 std::string FoundationKivaSettings_Impl::simulationTimestep() const {
170
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_Foundation_Kiva_SettingsFields::SimulationTimestep, true);
171
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
172
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return value.get();
173 3 }
174
175 3 bool FoundationKivaSettings_Impl::isSimulationTimestepDefaulted() const {
176
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_Foundation_Kiva_SettingsFields::SimulationTimestep, true);
177
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
178
3/3
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
6 return openstudio::istringEqual(value.get(), "Hourly");
179 3 }
180
181 4 bool FoundationKivaSettings_Impl::setSoilConductivity(double soilConductivity) {
182 4 bool result = setDouble(OS_Foundation_Kiva_SettingsFields::SoilConductivity, soilConductivity);
183
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 OS_ASSERT(result);
184 4 return result;
185 }
186
187 1 void FoundationKivaSettings_Impl::resetSoilConductivity() {
188
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Foundation_Kiva_SettingsFields::SoilConductivity, "");
189
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
190 1 }
191
192 3 bool FoundationKivaSettings_Impl::setSoilDensity(double soilDensity) {
193 3 bool result = setDouble(OS_Foundation_Kiva_SettingsFields::SoilDensity, soilDensity);
194
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
195 3 return result;
196 }
197
198 1 void FoundationKivaSettings_Impl::resetSoilDensity() {
199
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Foundation_Kiva_SettingsFields::SoilDensity, "");
200
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
201 1 }
202
203 3 bool FoundationKivaSettings_Impl::setSoilSpecificHeat(double soilSpecificHeat) {
204 3 bool result = setDouble(OS_Foundation_Kiva_SettingsFields::SoilSpecificHeat, soilSpecificHeat);
205
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
206 3 return result;
207 }
208
209 1 void FoundationKivaSettings_Impl::resetSoilSpecificHeat() {
210
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Foundation_Kiva_SettingsFields::SoilSpecificHeat, "");
211
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
212 1 }
213
214 3 bool FoundationKivaSettings_Impl::setGroundSolarAbsorptivity(double groundSolarAbsorptivity) {
215 3 bool result = setDouble(OS_Foundation_Kiva_SettingsFields::GroundSolarAbsorptivity, groundSolarAbsorptivity);
216
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
217 3 return result;
218 }
219
220 1 void FoundationKivaSettings_Impl::resetGroundSolarAbsorptivity() {
221
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Foundation_Kiva_SettingsFields::GroundSolarAbsorptivity, "");
222
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
223 1 }
224
225 3 bool FoundationKivaSettings_Impl::setGroundThermalAbsorptivity(double groundThermalAbsorptivity) {
226 3 bool result = setDouble(OS_Foundation_Kiva_SettingsFields::GroundThermalAbsorptivity, groundThermalAbsorptivity);
227
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
228 3 return result;
229 }
230
231 1 void FoundationKivaSettings_Impl::resetGroundThermalAbsorptivity() {
232
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Foundation_Kiva_SettingsFields::GroundThermalAbsorptivity, "");
233
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
234 1 }
235
236 3 bool FoundationKivaSettings_Impl::setGroundSurfaceRoughness(double groundSurfaceRoughness) {
237 3 bool result = setDouble(OS_Foundation_Kiva_SettingsFields::GroundSurfaceRoughness, groundSurfaceRoughness);
238
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
239 3 return result;
240 }
241
242 1 void FoundationKivaSettings_Impl::resetGroundSurfaceRoughness() {
243
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Foundation_Kiva_SettingsFields::GroundSurfaceRoughness, "");
244
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
245 1 }
246
247 3 bool FoundationKivaSettings_Impl::setFarFieldWidth(double farFieldWidth) {
248 3 bool result = setDouble(OS_Foundation_Kiva_SettingsFields::FarFieldWidth, farFieldWidth);
249
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
250 3 return result;
251 }
252
253 1 void FoundationKivaSettings_Impl::resetFarFieldWidth() {
254
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Foundation_Kiva_SettingsFields::FarFieldWidth, "");
255
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
256 1 }
257
258 3 bool FoundationKivaSettings_Impl::setDeepGroundBoundaryCondition(const std::string& deepGroundBoundaryCondition) {
259 3 bool result = setString(OS_Foundation_Kiva_SettingsFields::DeepGroundBoundaryCondition, deepGroundBoundaryCondition);
260
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
261 3 return result;
262 }
263
264 1 void FoundationKivaSettings_Impl::resetDeepGroundBoundaryCondition() {
265
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Foundation_Kiva_SettingsFields::DeepGroundBoundaryCondition, "");
266
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
267 1 }
268
269 3 bool FoundationKivaSettings_Impl::setDeepGroundDepth(double deepGroundDepth) {
270 3 bool result = setDouble(OS_Foundation_Kiva_SettingsFields::DeepGroundDepth, deepGroundDepth);
271
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
272 3 return result;
273 }
274
275 1 void FoundationKivaSettings_Impl::autocalculateDeepGroundDepth() {
276
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Foundation_Kiva_SettingsFields::DeepGroundDepth, "");
277
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
278 1 }
279
280 3 bool FoundationKivaSettings_Impl::setMinimumCellDimension(double minimumCellDimension) {
281 3 bool result = setDouble(OS_Foundation_Kiva_SettingsFields::MinimumCellDimension, minimumCellDimension);
282
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
283 3 return result;
284 }
285
286 1 void FoundationKivaSettings_Impl::resetMinimumCellDimension() {
287
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Foundation_Kiva_SettingsFields::MinimumCellDimension, "");
288
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
289 1 }
290
291 3 bool FoundationKivaSettings_Impl::setMaximumCellGrowthCoefficient(double maximumCellGrowthCoefficient) {
292 3 bool result = setDouble(OS_Foundation_Kiva_SettingsFields::MaximumCellGrowthCoefficient, maximumCellGrowthCoefficient);
293
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
294 3 return result;
295 }
296
297 1 void FoundationKivaSettings_Impl::resetMaximumCellGrowthCoefficient() {
298
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Foundation_Kiva_SettingsFields::MaximumCellGrowthCoefficient, "");
299
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
300 1 }
301
302 3 bool FoundationKivaSettings_Impl::setSimulationTimestep(const std::string& simulationTimestep) {
303 3 bool result = setString(OS_Foundation_Kiva_SettingsFields::SimulationTimestep, simulationTimestep);
304
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
305 3 return result;
306 }
307
308 1 void FoundationKivaSettings_Impl::resetSimulationTimestep() {
309
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Foundation_Kiva_SettingsFields::SimulationTimestep, "");
310
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
311 1 }
312
313 } // namespace detail
314
315 7640 IddObjectType FoundationKivaSettings::iddObjectType() {
316
1/1
✓ Branch 1 taken 7640 times.
7640 return {IddObjectType::OS_Foundation_Kiva_Settings};
317 }
318
319 5 double FoundationKivaSettings::soilConductivity() const {
320
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::FoundationKivaSettings_Impl>()->soilConductivity();
321 }
322
323 5 bool FoundationKivaSettings::isSoilConductivityDefaulted() const {
324
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::FoundationKivaSettings_Impl>()->isSoilConductivityDefaulted();
325 }
326
327 3 double FoundationKivaSettings::soilDensity() const {
328
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->soilDensity();
329 }
330
331 5 bool FoundationKivaSettings::isSoilDensityDefaulted() const {
332
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::FoundationKivaSettings_Impl>()->isSoilDensityDefaulted();
333 }
334
335 3 double FoundationKivaSettings::soilSpecificHeat() const {
336
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->soilSpecificHeat();
337 }
338
339 3 bool FoundationKivaSettings::isSoilSpecificHeatDefaulted() const {
340
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->isSoilSpecificHeatDefaulted();
341 }
342
343 3 double FoundationKivaSettings::groundSolarAbsorptivity() const {
344
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->groundSolarAbsorptivity();
345 }
346
347 3 bool FoundationKivaSettings::isGroundSolarAbsorptivityDefaulted() const {
348
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->isGroundSolarAbsorptivityDefaulted();
349 }
350
351 3 double FoundationKivaSettings::groundThermalAbsorptivity() const {
352
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->groundThermalAbsorptivity();
353 }
354
355 3 bool FoundationKivaSettings::isGroundThermalAbsorptivityDefaulted() const {
356
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->isGroundThermalAbsorptivityDefaulted();
357 }
358
359 3 double FoundationKivaSettings::groundSurfaceRoughness() const {
360
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->groundSurfaceRoughness();
361 }
362
363 3 bool FoundationKivaSettings::isGroundSurfaceRoughnessDefaulted() const {
364
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->isGroundSurfaceRoughnessDefaulted();
365 }
366
367 3 double FoundationKivaSettings::farFieldWidth() const {
368
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->farFieldWidth();
369 }
370
371 3 bool FoundationKivaSettings::isFarFieldWidthDefaulted() const {
372
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->isFarFieldWidthDefaulted();
373 }
374
375 3 std::string FoundationKivaSettings::deepGroundBoundaryCondition() const {
376
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->deepGroundBoundaryCondition();
377 }
378
379 3 bool FoundationKivaSettings::isDeepGroundBoundaryConditionAutoselected() {
380
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->isDeepGroundBoundaryConditionAutoselected();
381 }
382
383 3 boost::optional<double> FoundationKivaSettings::deepGroundDepth() {
384
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->deepGroundDepth();
385 }
386
387 3 bool FoundationKivaSettings::isDeepGroundDepthAutocalculated() {
388
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->isDeepGroundDepthAutocalculated();
389 }
390
391 3 double FoundationKivaSettings::minimumCellDimension() const {
392
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->minimumCellDimension();
393 }
394
395 3 bool FoundationKivaSettings::isMinimumCellDimensionDefaulted() const {
396
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->isMinimumCellDimensionDefaulted();
397 }
398
399 3 double FoundationKivaSettings::maximumCellGrowthCoefficient() const {
400
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->maximumCellGrowthCoefficient();
401 }
402
403 3 bool FoundationKivaSettings::isMaximumCellGrowthCoefficientDefaulted() const {
404
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->isMaximumCellGrowthCoefficientDefaulted();
405 }
406
407 3 std::string FoundationKivaSettings::simulationTimestep() const {
408
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->simulationTimestep();
409 }
410
411 3 bool FoundationKivaSettings::isSimulationTimestepDefaulted() const {
412
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->isSimulationTimestepDefaulted();
413 }
414
415 4 bool FoundationKivaSettings::setSoilConductivity(double soilConductivity) {
416
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::FoundationKivaSettings_Impl>()->setSoilConductivity(soilConductivity);
417 }
418
419 1 void FoundationKivaSettings::resetSoilConductivity() {
420
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::FoundationKivaSettings_Impl>()->resetSoilConductivity();
421 1 }
422
423 3 bool FoundationKivaSettings::setSoilDensity(double soilDensity) {
424
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->setSoilDensity(soilDensity);
425 }
426
427 1 void FoundationKivaSettings::resetSoilDensity() {
428
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::FoundationKivaSettings_Impl>()->resetSoilDensity();
429 1 }
430
431 3 bool FoundationKivaSettings::setSoilSpecificHeat(double soilSpecificHeat) {
432
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->setSoilSpecificHeat(soilSpecificHeat);
433 }
434
435 1 void FoundationKivaSettings::resetSoilSpecificHeat() {
436
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::FoundationKivaSettings_Impl>()->resetSoilSpecificHeat();
437 1 }
438
439 3 bool FoundationKivaSettings::setGroundSolarAbsorptivity(double groundSolarAbsorptivity) {
440
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->setGroundSolarAbsorptivity(groundSolarAbsorptivity);
441 }
442
443 1 void FoundationKivaSettings::resetGroundSolarAbsorptivity() {
444
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::FoundationKivaSettings_Impl>()->resetGroundSolarAbsorptivity();
445 1 }
446
447 3 bool FoundationKivaSettings::setGroundThermalAbsorptivity(double groundThermalAbsorptivity) {
448
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->setGroundThermalAbsorptivity(groundThermalAbsorptivity);
449 }
450
451 1 void FoundationKivaSettings::resetGroundThermalAbsorptivity() {
452
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::FoundationKivaSettings_Impl>()->resetGroundThermalAbsorptivity();
453 1 }
454
455 3 bool FoundationKivaSettings::setGroundSurfaceRoughness(double groundSurfaceRoughness) {
456
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->setGroundSurfaceRoughness(groundSurfaceRoughness);
457 }
458
459 1 void FoundationKivaSettings::resetGroundSurfaceRoughness() {
460
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::FoundationKivaSettings_Impl>()->resetGroundSurfaceRoughness();
461 1 }
462
463 3 bool FoundationKivaSettings::setFarFieldWidth(double farFieldWidth) {
464
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->setFarFieldWidth(farFieldWidth);
465 }
466
467 1 void FoundationKivaSettings::resetFarFieldWidth() {
468
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::FoundationKivaSettings_Impl>()->resetFarFieldWidth();
469 1 }
470
471 3 bool FoundationKivaSettings::setDeepGroundBoundaryCondition(const std::string& deepGroundBoundaryCondition) {
472
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->setDeepGroundBoundaryCondition(deepGroundBoundaryCondition);
473 }
474
475 1 void FoundationKivaSettings::resetDeepGroundBoundaryCondition() {
476
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::FoundationKivaSettings_Impl>()->resetDeepGroundBoundaryCondition();
477 1 }
478
479 3 bool FoundationKivaSettings::setDeepGroundDepth(double deepGroundDepth) {
480
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->setDeepGroundDepth(deepGroundDepth);
481 }
482
483 1 void FoundationKivaSettings::autocalculateDeepGroundDepth() {
484
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::FoundationKivaSettings_Impl>()->autocalculateDeepGroundDepth();
485 1 }
486
487 3 bool FoundationKivaSettings::setMinimumCellDimension(double minimumCellDimension) {
488
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->setMinimumCellDimension(minimumCellDimension);
489 }
490
491 1 void FoundationKivaSettings::resetMinimumCellDimension() {
492
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::FoundationKivaSettings_Impl>()->resetMinimumCellDimension();
493 1 }
494
495 3 bool FoundationKivaSettings::setMaximumCellGrowthCoefficient(double maximumCellGrowthCoefficient) {
496
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->setMaximumCellGrowthCoefficient(maximumCellGrowthCoefficient);
497 }
498
499 1 void FoundationKivaSettings::resetMaximumCellGrowthCoefficient() {
500
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::FoundationKivaSettings_Impl>()->resetMaximumCellGrowthCoefficient();
501 1 }
502
503 3 bool FoundationKivaSettings::setSimulationTimestep(const std::string& simulationTimestep) {
504
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::FoundationKivaSettings_Impl>()->setSimulationTimestep(simulationTimestep);
505 }
506
507 1 void FoundationKivaSettings::resetSimulationTimestep() {
508
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::FoundationKivaSettings_Impl>()->resetSimulationTimestep();
509 1 }
510
511 /// @cond
512
1/1
✓ Branch 3 taken 8 times.
8 FoundationKivaSettings::FoundationKivaSettings(std::shared_ptr<detail::FoundationKivaSettings_Impl> impl) : ModelObject(std::move(impl)) {}
513
514 9 FoundationKivaSettings::FoundationKivaSettings(Model& model) : ModelObject(FoundationKivaSettings::iddObjectType(), model) {}
515
516 /// @endcond
517
518 } // namespace model
519 } // namespace openstudio
520