GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 91.2% 404 / 0 / 443
Functions: 92.8% 129 / 0 / 139
Branches: 70.1% 255 / 0 / 364

src/model/StandardOpaqueMaterial.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 "StandardOpaqueMaterial.hpp"
7 #include "StandardOpaqueMaterial_Impl.hpp"
8 #include "StandardsInformationMaterial.hpp"
9 #include "StandardsInformationMaterial_Impl.hpp"
10 #include "MaterialPropertyMoisturePenetrationDepthSettings.hpp"
11 #include "MaterialPropertyMoisturePenetrationDepthSettings_Impl.hpp"
12 #include "MaterialPropertyPhaseChange.hpp"
13 #include "MaterialPropertyPhaseChange_Impl.hpp"
14 #include "MaterialPropertyPhaseChangeHysteresis.hpp"
15 #include "MaterialPropertyPhaseChangeHysteresis_Impl.hpp"
16
17 #include <utilities/idd/IddFactory.hxx>
18
19 #include <utilities/idd/OS_Material_FieldEnums.hxx>
20 #include <utilities/idd/IddEnums.hxx>
21
22 #include "../utilities/units/Unit.hpp"
23
24 #include "../utilities/core/Assert.hpp"
25
26 namespace openstudio {
27 namespace model {
28
29 namespace detail {
30
31 2995 StandardOpaqueMaterial_Impl::StandardOpaqueMaterial_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
32 2995 : OpaqueMaterial_Impl(idfObject, model, keepHandle) {
33
4/6
✓ Branch 1 taken 2995 times.
✓ Branch 4 taken 2995 times.
✓ Branch 7 taken 2995 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 2995 times.
✗ Branch 13 not taken.
2995 OS_ASSERT(idfObject.iddObject().type() == StandardOpaqueMaterial::iddObjectType());
34 2995 }
35
36 762 StandardOpaqueMaterial_Impl::StandardOpaqueMaterial_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model,
37 762 bool keepHandle)
38 762 : OpaqueMaterial_Impl(other, model, keepHandle) {
39
4/6
✓ Branch 1 taken 762 times.
✓ Branch 4 taken 762 times.
✓ Branch 7 taken 762 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 762 times.
✗ Branch 13 not taken.
762 OS_ASSERT(other.iddObject().type() == StandardOpaqueMaterial::iddObjectType());
40 762 }
41
42 1774 StandardOpaqueMaterial_Impl::StandardOpaqueMaterial_Impl(const StandardOpaqueMaterial_Impl& other, Model_Impl* model, bool keepHandle)
43 1774 : OpaqueMaterial_Impl(other, model, keepHandle) {}
44
45 ✗ IddObjectType StandardOpaqueMaterial_Impl::iddObjectType() const {
46 ✗ return StandardOpaqueMaterial::iddObjectType();
47 }
48
49 804 std::vector<ModelObject> StandardOpaqueMaterial_Impl::children() const {
50
3/3
✓ Branch 1 taken 804 times.
✓ Branch 4 taken 804 times.
✓ Branch 7 taken 804 times.
804 std::vector<ModelObject> results(castVector<ModelObject>(getObject<Material>().getModelObjectSources<StandardsInformationMaterial>()));
51
52
3/3
✓ Branch 1 taken 804 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 802 times.
1608 if (boost::optional<MaterialPropertyMoisturePenetrationDepthSettings> empd = this->materialPropertyMoisturePenetrationDepthSettings()) {
53
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 results.push_back(empd.get());
54 804 }
55
56
3/3
✓ Branch 1 taken 804 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 802 times.
1608 if (boost::optional<MaterialPropertyPhaseChange> phaseChange = this->materialPropertyPhaseChange()) {
57
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 results.push_back(phaseChange.get());
58 804 }
59
60
3/3
✓ Branch 1 taken 804 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 803 times.
1608 if (boost::optional<MaterialPropertyPhaseChangeHysteresis> phaseChangeHysteresis = this->materialPropertyPhaseChangeHysteresis()) {
61
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 results.push_back(phaseChangeHysteresis.get());
62 804 }
63
64 804 return results;
65 ✗ }
66
67 ✗ boost::optional<double> StandardOpaqueMaterial_Impl::getVisibleTransmittance() const {
68 ✗ return 0.0;
69 }
70
71 81 boost::optional<double> StandardOpaqueMaterial_Impl::interiorVisibleAbsorptance() const {
72
2/2
✓ Branch 1 taken 81 times.
✓ Branch 4 taken 81 times.
81 return this->visibleAbsorptance();
73 }
74
75 105 boost::optional<double> StandardOpaqueMaterial_Impl::exteriorVisibleAbsorptance() const {
76
2/2
✓ Branch 1 taken 105 times.
✓ Branch 4 taken 105 times.
105 return this->visibleAbsorptance();
77 }
78
79 1 boost::optional<double> StandardOpaqueMaterial_Impl::heatCapacity() const {
80 1 return boost::none;
81 }
82
83 736 std::string StandardOpaqueMaterial_Impl::roughness() const {
84
1/1
✓ Branch 1 taken 736 times.
736 boost::optional<std::string> value = getString(OS_MaterialFields::Roughness, true);
85
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 736 times.
✗ Branch 4 not taken.
736 OS_ASSERT(value);
86
2/2
✓ Branch 1 taken 736 times.
✓ Branch 4 taken 736 times.
1472 return value.get();
87 736 }
88
89 1775 double StandardOpaqueMaterial_Impl::thickness() const {
90
1/1
✓ Branch 1 taken 1775 times.
1775 boost::optional<double> value = getDouble(OS_MaterialFields::Thickness, true);
91
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1775 times.
✗ Branch 4 not taken.
1775 OS_ASSERT(value);
92
1/1
✓ Branch 1 taken 1775 times.
3550 return value.get();
93 }
94
95 157 double StandardOpaqueMaterial_Impl::conductivity() const {
96
1/1
✓ Branch 1 taken 157 times.
157 boost::optional<double> value = getDouble(OS_MaterialFields::Conductivity, true);
97
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 157 times.
✗ Branch 4 not taken.
157 OS_ASSERT(value);
98
1/1
✓ Branch 1 taken 157 times.
314 return value.get();
99 }
100
101 1614 double StandardOpaqueMaterial_Impl::thermalConductivity() const {
102
1/1
✓ Branch 1 taken 1614 times.
1614 OptionalDouble od = getDouble(OS_MaterialFields::Conductivity, true);
103
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 1614 times.
1614 if (!od) {
104 ✗ LOG_AND_THROW("Thermal conductivity is not set for StandardOpaqueMaterial " << briefDescription() << ".");
105 }
106
1/1
✓ Branch 1 taken 1614 times.
3228 return *od;
107 }
108
109 6 double StandardOpaqueMaterial_Impl::thermalConductance() const {
110 6 return thermalConductivity() / thickness();
111 }
112
113 1022 double StandardOpaqueMaterial_Impl::thermalResistivity() const {
114 1022 return 1.0 / thermalConductivity();
115 }
116
117 1012 double StandardOpaqueMaterial_Impl::thermalResistance() const {
118 1012 return thermalResistivity() * thickness();
119 }
120
121 732 double StandardOpaqueMaterial_Impl::density() const {
122
1/1
✓ Branch 1 taken 732 times.
732 boost::optional<double> value = getDouble(OS_MaterialFields::Density, true);
123
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 732 times.
✗ Branch 4 not taken.
732 OS_ASSERT(value);
124
1/1
✓ Branch 1 taken 732 times.
1464 return value.get();
125 }
126
127 732 double StandardOpaqueMaterial_Impl::specificHeat() const {
128
1/1
✓ Branch 1 taken 732 times.
732 boost::optional<double> value = getDouble(OS_MaterialFields::SpecificHeat, true);
129
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 732 times.
✗ Branch 4 not taken.
732 OS_ASSERT(value);
130
1/1
✓ Branch 1 taken 732 times.
1464 return value.get();
131 }
132
133 902 double StandardOpaqueMaterial_Impl::thermalAbsorptance() const {
134
1/1
✓ Branch 1 taken 902 times.
902 boost::optional<double> value = getDouble(OS_MaterialFields::ThermalAbsorptance, true);
135
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 902 times.
✗ Branch 4 not taken.
902 OS_ASSERT(value);
136
1/1
✓ Branch 1 taken 902 times.
1804 return value.get();
137 }
138
139 156 boost::optional<double> StandardOpaqueMaterial_Impl::thermalReflectance() const {
140 156 OptionalDouble result;
141
2/2
✓ Branch 1 taken 156 times.
✓ Branch 4 taken 156 times.
156 OptionalDouble od = thermalAbsorptance();
142
1/2
✓ Branch 0 taken 156 times.
✗ Branch 1 not taken.
156 if (od) {
143
2/2
✓ Branch 1 taken 156 times.
✓ Branch 4 taken 156 times.
156 result = (1.0 - *od);
144 }
145 156 return result;
146 }
147
148 3 bool StandardOpaqueMaterial_Impl::isThermalAbsorptanceDefaulted() const {
149 3 return isEmpty(OS_MaterialFields::ThermalAbsorptance);
150 }
151
152 902 double StandardOpaqueMaterial_Impl::solarAbsorptance() const {
153
1/1
✓ Branch 1 taken 902 times.
902 boost::optional<double> value = getDouble(OS_MaterialFields::SolarAbsorptance, true);
154
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 902 times.
✗ Branch 4 not taken.
902 OS_ASSERT(value);
155
1/1
✓ Branch 1 taken 902 times.
1804 return value.get();
156 }
157
158 3 bool StandardOpaqueMaterial_Impl::isSolarAbsorptanceDefaulted() const {
159 3 return isEmpty(OS_MaterialFields::SolarAbsorptance);
160 }
161
162 156 boost::optional<double> StandardOpaqueMaterial_Impl::solarReflectance() const {
163 156 OptionalDouble result;
164
2/2
✓ Branch 1 taken 156 times.
✓ Branch 4 taken 156 times.
156 OptionalDouble od = solarAbsorptance();
165
1/2
✓ Branch 0 taken 156 times.
✗ Branch 1 not taken.
156 if (od) {
166
2/2
✓ Branch 1 taken 156 times.
✓ Branch 4 taken 156 times.
156 result = (1.0 - *od);
167 }
168 156 return result;
169 }
170
171 1088 double StandardOpaqueMaterial_Impl::visibleAbsorptance() const {
172
1/1
✓ Branch 1 taken 1088 times.
1088 boost::optional<double> value = getDouble(OS_MaterialFields::VisibleAbsorptance, true);
173
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1088 times.
✗ Branch 4 not taken.
1088 OS_ASSERT(value);
174
1/1
✓ Branch 1 taken 1088 times.
2176 return value.get();
175 }
176 156 boost::optional<double> StandardOpaqueMaterial_Impl::visibleReflectance() const {
177 156 OptionalDouble result;
178
2/2
✓ Branch 1 taken 156 times.
✓ Branch 4 taken 156 times.
156 OptionalDouble od = visibleAbsorptance();
179
1/2
✓ Branch 0 taken 156 times.
✗ Branch 1 not taken.
156 if (od) {
180
2/2
✓ Branch 1 taken 156 times.
✓ Branch 4 taken 156 times.
156 result = (1.0 - *od);
181 }
182 156 return result;
183 }
184
185 10 const std::vector<std::string>& StandardOpaqueMaterial_Impl::outputVariableNames() const {
186
3/4
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 9 times.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
10 static const std::vector<std::string> result;
187 10 return result;
188 }
189
190 3 bool StandardOpaqueMaterial_Impl::isVisibleAbsorptanceDefaulted() const {
191 3 return isEmpty(OS_MaterialFields::VisibleAbsorptance);
192 }
193
194 6 double StandardOpaqueMaterial_Impl::thermalAbsorptanceInsideFace() const {
195
3/3
✓ Branch 1 taken 6 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 3 times.
12 if (boost::optional<double> value = getDouble(OS_MaterialFields::ThermalAbsorptanceInsideFace)) {
196
1/1
✓ Branch 1 taken 3 times.
3 return value.get();
197 }
198 3 return thermalAbsorptance();
199 }
200
201 583 bool StandardOpaqueMaterial_Impl::isThermalAbsorptanceInsideFaceDefaulted() const {
202 583 return isEmpty(OS_MaterialFields::ThermalAbsorptanceInsideFace);
203 }
204
205 6 double StandardOpaqueMaterial_Impl::solarAbsorptanceInsideFace() const {
206
3/3
✓ Branch 1 taken 6 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 3 times.
12 if (boost::optional<double> value = getDouble(OS_MaterialFields::SolarAbsorptanceInsideFace)) {
207
1/1
✓ Branch 1 taken 3 times.
3 return value.get();
208 }
209 3 return solarAbsorptance();
210 }
211
212 583 bool StandardOpaqueMaterial_Impl::isSolarAbsorptanceInsideFaceDefaulted() const {
213 583 return isEmpty(OS_MaterialFields::SolarAbsorptanceInsideFace);
214 }
215
216 6 double StandardOpaqueMaterial_Impl::visibleAbsorptanceInsideFace() const {
217
3/3
✓ Branch 1 taken 6 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 3 times.
12 if (boost::optional<double> value = getDouble(OS_MaterialFields::VisibleAbsorptanceInsideFace)) {
218
1/1
✓ Branch 1 taken 3 times.
3 return value.get();
219 }
220 3 return visibleAbsorptance();
221 }
222
223 583 bool StandardOpaqueMaterial_Impl::isVisibleAbsorptanceInsideFaceDefaulted() const {
224 583 return isEmpty(OS_MaterialFields::VisibleAbsorptanceInsideFace);
225 }
226
227 4325 bool StandardOpaqueMaterial_Impl::setRoughness(const std::string& roughness) {
228 4325 bool result = setString(OS_MaterialFields::Roughness, roughness);
229 4325 return result;
230 }
231
232 4352 bool StandardOpaqueMaterial_Impl::setThickness(double thickness) {
233 4352 bool result = setDouble(OS_MaterialFields::Thickness, thickness);
234 4352 return result;
235 }
236
237 2220 bool StandardOpaqueMaterial_Impl::setConductivity(double conductivity) {
238 2220 bool result = setDouble(OS_MaterialFields::Conductivity, conductivity);
239 2220 return result;
240 }
241
242 2112 bool StandardOpaqueMaterial_Impl::setThermalConductivity(double value) {
243 2112 return setDouble(OS_MaterialFields::Conductivity, value);
244 }
245
246 1 bool StandardOpaqueMaterial_Impl::setThermalConductance(double value) {
247 1 return setThickness(thermalConductivity() / value);
248 }
249
250 1 bool StandardOpaqueMaterial_Impl::setThermalResistivity(double value) {
251 1 return setThermalConductivity(1.0 / value);
252 }
253
254 4 bool StandardOpaqueMaterial_Impl::setThermalResistance(double value) {
255
7/7
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 13 taken 4 times.
✓ Branch 16 taken 4 times.
✓ Branch 19 taken 4 times.
4 LOG(Trace, "Attempt to set thermal resistance to " << value << " by setting thickness.");
256 4 return setThickness(value / thermalResistivity());
257 }
258
259 4330 bool StandardOpaqueMaterial_Impl::setDensity(double density) {
260 4330 bool result = setDouble(OS_MaterialFields::Density, density);
261 4330 return result;
262 }
263
264 4330 bool StandardOpaqueMaterial_Impl::setSpecificHeat(double specificHeat) {
265 4330 bool result = setDouble(OS_MaterialFields::SpecificHeat, specificHeat);
266 4330 return result;
267 }
268
269 1 bool StandardOpaqueMaterial_Impl::setThermalReflectance(boost::optional<double> value) {
270
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
1 if (!value) {
271 ✗ return setThermalAbsorptance(value.get());
272 }
273
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 OptionalDouble od = (1.0 - *value);
274
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 return setThermalAbsorptance(od.get());
275 }
276
277 192 bool StandardOpaqueMaterial_Impl::setSolarAbsorptance(boost::optional<double> value) {
278
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 192 times.
192 if (!value) {
279 ✗ return setString(OS_MaterialFields::SolarAbsorptance, "");
280 }
281 192 return setDouble(OS_MaterialFields::SolarAbsorptance, *value);
282 }
283
284 1 bool StandardOpaqueMaterial_Impl::setSolarReflectance(boost::optional<double> value) {
285
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
1 if (!value) {
286 ✗ return setSolarAbsorptance(value);
287 }
288
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 OptionalDouble od = (1.0 - *value);
289
1/1
✓ Branch 1 taken 1 time.
1 return setSolarAbsorptance(od);
290 }
291
292 192 bool StandardOpaqueMaterial_Impl::setVisibleAbsorptance(boost::optional<double> value) {
293
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 192 times.
192 if (!value) {
294 ✗ return setString(OS_MaterialFields::VisibleAbsorptance, "");
295 }
296 192 return setDouble(OS_MaterialFields::VisibleAbsorptance, *value);
297 }
298
299 1 bool StandardOpaqueMaterial_Impl::setVisibleReflectance(boost::optional<double> value) {
300
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
1 if (!value) {
301 ✗ return setVisibleAbsorptance(value);
302 }
303
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 OptionalDouble od = (1.0 - *value);
304
1/1
✓ Branch 1 taken 1 time.
1 return setVisibleAbsorptance(od);
305 }
306
307 529 bool StandardOpaqueMaterial_Impl::setThermalAbsorptance(double thermalAbsorptance) {
308 529 bool result = setDouble(OS_MaterialFields::ThermalAbsorptance, thermalAbsorptance);
309 529 return result;
310 }
311
312 1 void StandardOpaqueMaterial_Impl::resetThermalAbsorptance() {
313
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_MaterialFields::ThermalAbsorptance, "");
314
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
315 1 }
316
317 267 bool StandardOpaqueMaterial_Impl::setSolarAbsorptance(double solarAbsorptance) {
318 267 bool result = setDouble(OS_MaterialFields::SolarAbsorptance, solarAbsorptance);
319 267 return result;
320 }
321
322 1 void StandardOpaqueMaterial_Impl::resetSolarAbsorptance() {
323
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_MaterialFields::SolarAbsorptance, "");
324
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
325 1 }
326
327 267 bool StandardOpaqueMaterial_Impl::setVisibleAbsorptance(double visibleAbsorptance) {
328 267 bool result = setDouble(OS_MaterialFields::VisibleAbsorptance, visibleAbsorptance);
329 267 return result;
330 }
331
332 1 void StandardOpaqueMaterial_Impl::resetVisibleAbsorptance() {
333
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_MaterialFields::VisibleAbsorptance, "");
334
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
335 1 }
336
337 4 bool StandardOpaqueMaterial_Impl::setThermalAbsorptanceInsideFace(double thermalAbsorptanceInsideFace) {
338 4 return setDouble(OS_MaterialFields::ThermalAbsorptanceInsideFace, thermalAbsorptanceInsideFace);
339 }
340
341 1 void StandardOpaqueMaterial_Impl::resetThermalAbsorptanceInsideFace() {
342
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_MaterialFields::ThermalAbsorptanceInsideFace, "");
343
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
344 1 }
345
346 4 bool StandardOpaqueMaterial_Impl::setSolarAbsorptanceInsideFace(double solarAbsorptanceInsideFace) {
347 4 return setDouble(OS_MaterialFields::SolarAbsorptanceInsideFace, solarAbsorptanceInsideFace);
348 }
349
350 1 void StandardOpaqueMaterial_Impl::resetSolarAbsorptanceInsideFace() {
351
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_MaterialFields::SolarAbsorptanceInsideFace, "");
352
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
353 1 }
354
355 4 bool StandardOpaqueMaterial_Impl::setVisibleAbsorptanceInsideFace(double visibleAbsorptanceInsideFace) {
356 4 return setDouble(OS_MaterialFields::VisibleAbsorptanceInsideFace, visibleAbsorptanceInsideFace);
357 }
358
359 1 void StandardOpaqueMaterial_Impl::resetVisibleAbsorptanceInsideFace() {
360
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_MaterialFields::VisibleAbsorptanceInsideFace, "");
361
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
362 1 }
363
364 ✗ std::vector<std::string> StandardOpaqueMaterial_Impl::roughnessValues() const {
365 ✗ return StandardOpaqueMaterial::roughnessValues();
366 }
367
368 ✗ std::vector<EMSActuatorNames> StandardOpaqueMaterial_Impl::emsActuatorNames() const {
369 std::vector<EMSActuatorNames> actuators{{"Material", "Surface Property Solar Absorptance"},
370 {"Material", "Surface Property Thermal Absorptance"},
371 ✗ {"Material", "Surface Property Visible Absorptance"}};
372 ✗ return actuators;
373 ✗ }
374
375 ✗ std::vector<std::string> StandardOpaqueMaterial_Impl::emsInternalVariableNames() const {
376 ✗ std::vector<std::string> types;
377 ✗ return types;
378 }
379
380 boost::optional<MaterialPropertyMoisturePenetrationDepthSettings>
381 9 StandardOpaqueMaterial_Impl::createMaterialPropertyMoisturePenetrationDepthSettings(
382 double waterVaporDiffusionResistanceFactor, double moistureEquationCoefficientA, double moistureEquationCoefficientB,
383 double moistureEquationCoefficientC, double moistureEquationCoefficientD, double coatingLayerThickness,
384 double coatingLayerWaterVaporDiffusionResistanceFactor) {
385
1/1
✓ Branch 1 taken 9 times.
9 auto thisMaterial = getObject<StandardOpaqueMaterial>();
386 std::vector<MaterialPropertyMoisturePenetrationDepthSettings> empds =
387 thisMaterial.getModelObjectSources<MaterialPropertyMoisturePenetrationDepthSettings>(
388
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
9 MaterialPropertyMoisturePenetrationDepthSettings::iddObjectType());
389
2/2
✓ Branch 1 taken 1 time.
✓ Branch 2 taken 8 times.
9 if (!empds.empty()) {
390 1 return boost::none;
391 }
392
393 MaterialPropertyMoisturePenetrationDepthSettings empd(thisMaterial, waterVaporDiffusionResistanceFactor, moistureEquationCoefficientA,
394 moistureEquationCoefficientB, moistureEquationCoefficientC, moistureEquationCoefficientD,
395
1/1
✓ Branch 1 taken 8 times.
8 coatingLayerThickness, coatingLayerWaterVaporDiffusionResistanceFactor);
396
1/1
✓ Branch 1 taken 8 times.
8 return empd;
397 9 }
398
399 boost::optional<MaterialPropertyMoisturePenetrationDepthSettings>
400 1398 StandardOpaqueMaterial_Impl::materialPropertyMoisturePenetrationDepthSettings() const {
401 std::vector<MaterialPropertyMoisturePenetrationDepthSettings> empds =
402
1/1
✓ Branch 1 taken 1398 times.
2796 getObject<ModelObject>().getModelObjectSources<MaterialPropertyMoisturePenetrationDepthSettings>(
403
2/2
✓ Branch 1 taken 1398 times.
✓ Branch 4 taken 1398 times.
1398 MaterialPropertyMoisturePenetrationDepthSettings::iddObjectType());
404
2/2
✓ Branch 1 taken 8 times.
✓ Branch 2 taken 1390 times.
1398 if (empds.empty()) {
405 // no error
406
1/2
✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
8 } else if (empds.size() == 1) {
407
1/1
✓ Branch 2 taken 8 times.
8 return empds[0];
408 } else {
409 // error
410 }
411 1390 return boost::none;
412 1398 }
413
414 1 void StandardOpaqueMaterial_Impl::resetMaterialPropertyMoisturePenetrationDepthSettings() {
415
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<MaterialPropertyMoisturePenetrationDepthSettings> empd = this->materialPropertyMoisturePenetrationDepthSettings();
416
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (empd) {
417
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 empd->remove();
418 }
419 1 }
420
421 5 boost::optional<MaterialPropertyPhaseChange> StandardOpaqueMaterial_Impl::createMaterialPropertyPhaseChange() {
422
1/1
✓ Branch 1 taken 5 times.
5 auto thisMaterial = getObject<StandardOpaqueMaterial>();
423 std::vector<MaterialPropertyPhaseChange> phaseChanges =
424
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 thisMaterial.getModelObjectSources<MaterialPropertyPhaseChange>(MaterialPropertyPhaseChange::iddObjectType());
425
2/2
✓ Branch 1 taken 1 time.
✓ Branch 2 taken 4 times.
5 if (!phaseChanges.empty()) {
426 1 return boost::none;
427 }
428
429
1/1
✓ Branch 1 taken 4 times.
4 MaterialPropertyPhaseChange phaseChange(thisMaterial);
430
1/1
✓ Branch 1 taken 4 times.
4 return phaseChange;
431 5 }
432
433 boost::optional<MaterialPropertyPhaseChange>
434 2 StandardOpaqueMaterial_Impl::createMaterialPropertyPhaseChange(const std::vector<TemperatureEnthalpy>& temperatureEnthalpys) {
435
1/1
✓ Branch 1 taken 2 times.
2 auto thisMaterial = getObject<StandardOpaqueMaterial>();
436 std::vector<MaterialPropertyPhaseChange> phaseChanges =
437
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 thisMaterial.getModelObjectSources<MaterialPropertyPhaseChange>(MaterialPropertyPhaseChange::iddObjectType());
438
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
2 if (!phaseChanges.empty()) {
439 ✗ return boost::none;
440 }
441
442
1/1
✓ Branch 1 taken 2 times.
2 MaterialPropertyPhaseChange phaseChange(thisMaterial, temperatureEnthalpys);
443
1/1
✓ Branch 1 taken 2 times.
2 return phaseChange;
444 2 }
445
446 1394 boost::optional<MaterialPropertyPhaseChange> StandardOpaqueMaterial_Impl::materialPropertyPhaseChange() const {
447 std::vector<MaterialPropertyPhaseChange> phaseChanges =
448
3/3
✓ Branch 1 taken 1394 times.
✓ Branch 4 taken 1394 times.
✓ Branch 7 taken 1394 times.
1394 getObject<ModelObject>().getModelObjectSources<MaterialPropertyPhaseChange>(MaterialPropertyPhaseChange::iddObjectType());
449
2/2
✓ Branch 1 taken 8 times.
✓ Branch 2 taken 1386 times.
1394 if (phaseChanges.empty()) {
450 // no error
451
1/2
✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
8 } else if (phaseChanges.size() == 1) {
452
1/1
✓ Branch 2 taken 8 times.
8 return phaseChanges[0];
453 } else {
454 // error
455 }
456 1386 return boost::none;
457 1394 }
458
459 ✗ void StandardOpaqueMaterial_Impl::resetMaterialPropertyPhaseChange() {
460 ✗ boost::optional<MaterialPropertyPhaseChange> phaseChange = this->materialPropertyPhaseChange();
461 ✗ if (phaseChange) {
462 ✗ phaseChange->remove();
463 }
464 ✗ }
465
466 4 boost::optional<MaterialPropertyPhaseChangeHysteresis> StandardOpaqueMaterial_Impl::createMaterialPropertyPhaseChangeHysteresis() {
467
1/1
✓ Branch 1 taken 4 times.
4 auto thisMaterial = getObject<StandardOpaqueMaterial>();
468 std::vector<MaterialPropertyPhaseChangeHysteresis> phaseChangeHysteresiss =
469
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
4 thisMaterial.getModelObjectSources<MaterialPropertyPhaseChangeHysteresis>(MaterialPropertyPhaseChangeHysteresis::iddObjectType());
470
2/2
✓ Branch 1 taken 1 time.
✓ Branch 2 taken 3 times.
4 if (!phaseChangeHysteresiss.empty()) {
471 1 return boost::none;
472 }
473
474
1/1
✓ Branch 1 taken 3 times.
3 MaterialPropertyPhaseChangeHysteresis phaseChangeHysteresis(thisMaterial);
475
1/1
✓ Branch 1 taken 3 times.
3 return phaseChangeHysteresis;
476 4 }
477
478 1391 boost::optional<MaterialPropertyPhaseChangeHysteresis> StandardOpaqueMaterial_Impl::materialPropertyPhaseChangeHysteresis() const {
479 std::vector<MaterialPropertyPhaseChangeHysteresis> phaseChangeHysteresiss =
480
3/3
✓ Branch 1 taken 1391 times.
✓ Branch 4 taken 1391 times.
✓ Branch 7 taken 1391 times.
1391 getObject<ModelObject>().getModelObjectSources<MaterialPropertyPhaseChangeHysteresis>(MaterialPropertyPhaseChangeHysteresis::iddObjectType());
481
2/2
✓ Branch 1 taken 6 times.
✓ Branch 2 taken 1385 times.
1391 if (phaseChangeHysteresiss.empty()) {
482 // no error
483
1/2
✓ Branch 1 taken 6 times.
✗ Branch 2 not taken.
6 } else if (phaseChangeHysteresiss.size() == 1) {
484
1/1
✓ Branch 2 taken 6 times.
6 return phaseChangeHysteresiss[0];
485 } else {
486 // error
487 }
488 1385 return boost::none;
489 1391 }
490
491 ✗ void StandardOpaqueMaterial_Impl::resetMaterialPropertyPhaseChangeHysteresis() {
492 ✗ boost::optional<MaterialPropertyPhaseChangeHysteresis> phaseChangeHysteresis = this->materialPropertyPhaseChangeHysteresis();
493 ✗ if (phaseChangeHysteresis) {
494 ✗ phaseChangeHysteresis->remove();
495 }
496 ✗ }
497
498 } // namespace detail
499
500 2219 StandardOpaqueMaterial::StandardOpaqueMaterial(const Model& model, const std::string& roughness, double thickness, double conductivity,
501 2219 double density, double specificHeat)
502 2219 : OpaqueMaterial(StandardOpaqueMaterial::iddObjectType(), model) {
503
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 2219 times.
✗ Branch 5 not taken.
2219 OS_ASSERT(getImpl<detail::StandardOpaqueMaterial_Impl>());
504
505 // TODO: Appropriately handle the following required object-list fields.
506 2219 bool ok = true;
507 // ok = setHandle();
508
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2219 times.
✗ Branch 3 not taken.
2219 OS_ASSERT(ok);
509
1/1
✓ Branch 1 taken 2219 times.
2219 ok = setRoughness(roughness);
510
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2219 times.
✗ Branch 3 not taken.
2219 OS_ASSERT(ok);
511
1/1
✓ Branch 1 taken 2219 times.
2219 ok = setThickness(thickness);
512
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2219 times.
✗ Branch 3 not taken.
2219 OS_ASSERT(ok);
513
1/1
✓ Branch 1 taken 2219 times.
2219 ok = setConductivity(conductivity);
514
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2219 times.
✗ Branch 3 not taken.
2219 OS_ASSERT(ok);
515
1/1
✓ Branch 1 taken 2219 times.
2219 ok = setDensity(density);
516
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2219 times.
✗ Branch 3 not taken.
2219 OS_ASSERT(ok);
517
1/1
✓ Branch 1 taken 2219 times.
2219 ok = setSpecificHeat(specificHeat);
518
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2219 times.
✗ Branch 3 not taken.
2219 OS_ASSERT(ok);
519 2219 }
520
521 13718 IddObjectType StandardOpaqueMaterial::iddObjectType() {
522
1/1
✓ Branch 1 taken 13718 times.
13718 return {IddObjectType::OS_Material};
523 }
524
525 // cppcheck-suppress [duplInheritedMember] for documentation purposes
526 585 double StandardOpaqueMaterial::thermalConductivity() const {
527
1/1
✓ Branch 3 taken 585 times.
585 return getImpl<detail::StandardOpaqueMaterial_Impl>()->thermalConductivity();
528 }
529
530 // cppcheck-suppress [duplInheritedMember] for documentation purposes
531 6 double StandardOpaqueMaterial::thermalConductance() const {
532
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::StandardOpaqueMaterial_Impl>()->thermalConductance();
533 }
534
535 // cppcheck-suppress [duplInheritedMember] for documentation purposes
536 6 double StandardOpaqueMaterial::thermalResistivity() const {
537
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::StandardOpaqueMaterial_Impl>()->thermalResistivity();
538 }
539
540 // cppcheck-suppress [duplInheritedMember] for documentation purposes
541 9 double StandardOpaqueMaterial::thermalResistance() const {
542
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::StandardOpaqueMaterial_Impl>()->thermalResistance();
543 }
544
545 // cppcheck-suppress [duplInheritedMember] for documentation purposes
546 156 boost::optional<double> StandardOpaqueMaterial::thermalReflectance() const {
547
1/1
✓ Branch 3 taken 156 times.
156 return getImpl<detail::StandardOpaqueMaterial_Impl>()->thermalReflectance();
548 }
549
550 // cppcheck-suppress [duplInheritedMember] for documentation purposes
551 156 boost::optional<double> StandardOpaqueMaterial::solarReflectance() const {
552
1/1
✓ Branch 3 taken 156 times.
156 return getImpl<detail::StandardOpaqueMaterial_Impl>()->solarReflectance();
553 }
554
555 // cppcheck-suppress [duplInheritedMember] for documentation purposes
556 156 boost::optional<double> StandardOpaqueMaterial::visibleReflectance() const {
557
1/1
✓ Branch 3 taken 156 times.
156 return getImpl<detail::StandardOpaqueMaterial_Impl>()->visibleReflectance();
558 }
559
560 // cppcheck-suppress [duplInheritedMember] for documentation purposes
561 2111 bool StandardOpaqueMaterial::setThermalConductivity(double value) {
562
1/1
✓ Branch 3 taken 2111 times.
2111 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setThermalConductivity(value);
563 }
564
565 // cppcheck-suppress [duplInheritedMember] for documentation purposes
566 1 bool StandardOpaqueMaterial::setThermalConductance(double value) {
567
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setThermalConductance(value);
568 }
569
570 // cppcheck-suppress [duplInheritedMember] for documentation purposes
571 1 bool StandardOpaqueMaterial::setThermalResistivity(double value) {
572
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setThermalResistivity(value);
573 }
574
575 // cppcheck-suppress [duplInheritedMember] for documentation purposes
576 1 bool StandardOpaqueMaterial::setThermalResistance(double value) {
577
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setThermalResistance(value);
578 }
579
580 191 bool StandardOpaqueMaterial::setThermalAbsorptance(boost::optional<double> value) {
581
2/2
✓ Branch 3 taken 191 times.
✓ Branch 6 taken 191 times.
191 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setThermalAbsorptance(value.get());
582 }
583
584 // cppcheck-suppress [duplInheritedMember] for documentation purposes
585 1 bool StandardOpaqueMaterial::setThermalReflectance(boost::optional<double> value) {
586
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setThermalReflectance(value);
587 }
588
589 // cppcheck-suppress [duplInheritedMember] for documentation purposes
590 191 bool StandardOpaqueMaterial::setSolarAbsorptance(boost::optional<double> value) {
591
1/1
✓ Branch 3 taken 191 times.
191 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setSolarAbsorptance(value);
592 }
593
594 // cppcheck-suppress [duplInheritedMember] for documentation purposes
595 1 bool StandardOpaqueMaterial::setSolarReflectance(boost::optional<double> value) {
596
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setSolarReflectance(value);
597 }
598
599 // cppcheck-suppress [duplInheritedMember] for documentation purposes
600 191 bool StandardOpaqueMaterial::setVisibleAbsorptance(boost::optional<double> value) {
601
1/1
✓ Branch 3 taken 191 times.
191 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setVisibleAbsorptance(value);
602 }
603
604 // cppcheck-suppress [duplInheritedMember] for documentation purposes
605 1 bool StandardOpaqueMaterial::setVisibleReflectance(boost::optional<double> value) {
606
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setVisibleReflectance(value);
607 }
608
609 // cppcheck-suppress [duplInheritedMember] for documentation purposes
610 1 boost::optional<double> StandardOpaqueMaterial::heatCapacity() const {
611
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::StandardOpaqueMaterial_Impl>()->heatCapacity();
612 }
613
614 ✗ std::vector<std::string> StandardOpaqueMaterial::roughnessValues() {
615 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_MaterialFields::Roughness);
616 }
617
618 736 std::string StandardOpaqueMaterial::roughness() const {
619
1/1
✓ Branch 3 taken 736 times.
736 return getImpl<detail::StandardOpaqueMaterial_Impl>()->roughness();
620 }
621
622 // cppcheck-suppress [duplInheritedMember] for documentation purposes
623 742 double StandardOpaqueMaterial::thickness() const {
624
1/1
✓ Branch 3 taken 742 times.
742 return getImpl<detail::StandardOpaqueMaterial_Impl>()->thickness();
625 }
626
627 157 double StandardOpaqueMaterial::conductivity() const {
628
1/1
✓ Branch 3 taken 157 times.
157 return getImpl<detail::StandardOpaqueMaterial_Impl>()->conductivity();
629 }
630
631 732 double StandardOpaqueMaterial::density() const {
632
1/1
✓ Branch 3 taken 732 times.
732 return getImpl<detail::StandardOpaqueMaterial_Impl>()->density();
633 }
634
635 732 double StandardOpaqueMaterial::specificHeat() const {
636
1/1
✓ Branch 3 taken 732 times.
732 return getImpl<detail::StandardOpaqueMaterial_Impl>()->specificHeat();
637 }
638
639 // cppcheck-suppress [duplInheritedMember] for documentation purposes
640 743 double StandardOpaqueMaterial::thermalAbsorptance() const {
641
1/1
✓ Branch 3 taken 743 times.
743 return getImpl<detail::StandardOpaqueMaterial_Impl>()->thermalAbsorptance();
642 }
643
644 3 bool StandardOpaqueMaterial::isThermalAbsorptanceDefaulted() const {
645
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::StandardOpaqueMaterial_Impl>()->isThermalAbsorptanceDefaulted();
646 }
647
648 // cppcheck-suppress [duplInheritedMember] for documentation purposes
649 743 double StandardOpaqueMaterial::solarAbsorptance() const {
650
1/1
✓ Branch 3 taken 743 times.
743 return getImpl<detail::StandardOpaqueMaterial_Impl>()->solarAbsorptance();
651 }
652
653 3 bool StandardOpaqueMaterial::isSolarAbsorptanceDefaulted() const {
654
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::StandardOpaqueMaterial_Impl>()->isSolarAbsorptanceDefaulted();
655 }
656
657 // cppcheck-suppress [duplInheritedMember] for documentation purposes
658 743 double StandardOpaqueMaterial::visibleAbsorptance() const {
659
1/1
✓ Branch 3 taken 743 times.
743 return getImpl<detail::StandardOpaqueMaterial_Impl>()->visibleAbsorptance();
660 }
661
662 3 bool StandardOpaqueMaterial::isVisibleAbsorptanceDefaulted() const {
663
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::StandardOpaqueMaterial_Impl>()->isVisibleAbsorptanceDefaulted();
664 }
665
666 6 double StandardOpaqueMaterial::thermalAbsorptanceInsideFace() const {
667
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::StandardOpaqueMaterial_Impl>()->thermalAbsorptanceInsideFace();
668 }
669
670 583 bool StandardOpaqueMaterial::isThermalAbsorptanceInsideFaceDefaulted() const {
671
1/1
✓ Branch 3 taken 583 times.
583 return getImpl<detail::StandardOpaqueMaterial_Impl>()->isThermalAbsorptanceInsideFaceDefaulted();
672 }
673
674 6 double StandardOpaqueMaterial::solarAbsorptanceInsideFace() const {
675
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::StandardOpaqueMaterial_Impl>()->solarAbsorptanceInsideFace();
676 }
677
678 583 bool StandardOpaqueMaterial::isSolarAbsorptanceInsideFaceDefaulted() const {
679
1/1
✓ Branch 3 taken 583 times.
583 return getImpl<detail::StandardOpaqueMaterial_Impl>()->isSolarAbsorptanceInsideFaceDefaulted();
680 }
681
682 6 double StandardOpaqueMaterial::visibleAbsorptanceInsideFace() const {
683
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::StandardOpaqueMaterial_Impl>()->visibleAbsorptanceInsideFace();
684 }
685
686 583 bool StandardOpaqueMaterial::isVisibleAbsorptanceInsideFaceDefaulted() const {
687
1/1
✓ Branch 3 taken 583 times.
583 return getImpl<detail::StandardOpaqueMaterial_Impl>()->isVisibleAbsorptanceInsideFaceDefaulted();
688 }
689
690 4325 bool StandardOpaqueMaterial::setRoughness(const std::string& roughness) {
691
1/1
✓ Branch 3 taken 4325 times.
4325 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setRoughness(roughness);
692 }
693
694 // cppcheck-suppress [duplInheritedMember] for documentation purposes
695 4332 bool StandardOpaqueMaterial::setThickness(double thickness) {
696
1/1
✓ Branch 3 taken 4332 times.
4332 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setThickness(thickness);
697 }
698
699 2220 bool StandardOpaqueMaterial::setConductivity(double conductivity) {
700
1/1
✓ Branch 3 taken 2220 times.
2220 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setConductivity(conductivity);
701 }
702
703 4330 bool StandardOpaqueMaterial::setDensity(double density) {
704
1/1
✓ Branch 3 taken 4330 times.
4330 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setDensity(density);
705 }
706
707 4330 bool StandardOpaqueMaterial::setSpecificHeat(double specificHeat) {
708
1/1
✓ Branch 3 taken 4330 times.
4330 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setSpecificHeat(specificHeat);
709 }
710
711 // cppcheck-suppress [duplInheritedMember] for documentation purposes
712 267 bool StandardOpaqueMaterial::setThermalAbsorptance(double thermalAbsorptance) {
713
1/1
✓ Branch 3 taken 267 times.
267 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setThermalAbsorptance(thermalAbsorptance);
714 }
715
716 1 void StandardOpaqueMaterial::resetThermalAbsorptance() {
717
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::StandardOpaqueMaterial_Impl>()->resetThermalAbsorptance();
718 1 }
719
720 267 bool StandardOpaqueMaterial::setSolarAbsorptance(double solarAbsorptance) {
721
1/1
✓ Branch 3 taken 267 times.
267 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setSolarAbsorptance(solarAbsorptance);
722 }
723
724 1 void StandardOpaqueMaterial::resetSolarAbsorptance() {
725
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::StandardOpaqueMaterial_Impl>()->resetSolarAbsorptance();
726 1 }
727
728 267 bool StandardOpaqueMaterial::setVisibleAbsorptance(double visibleAbsorptance) {
729
1/1
✓ Branch 3 taken 267 times.
267 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setVisibleAbsorptance(visibleAbsorptance);
730 }
731
732 1 void StandardOpaqueMaterial::resetVisibleAbsorptance() {
733
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::StandardOpaqueMaterial_Impl>()->resetVisibleAbsorptance();
734 1 }
735
736 4 bool StandardOpaqueMaterial::setThermalAbsorptanceInsideFace(double thermalAbsorptanceInsideFace) {
737
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setThermalAbsorptanceInsideFace(thermalAbsorptanceInsideFace);
738 }
739
740 1 void StandardOpaqueMaterial::resetThermalAbsorptanceInsideFace() {
741
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::StandardOpaqueMaterial_Impl>()->resetThermalAbsorptanceInsideFace();
742 1 }
743
744 4 bool StandardOpaqueMaterial::setSolarAbsorptanceInsideFace(double solarAbsorptanceInsideFace) {
745
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setSolarAbsorptanceInsideFace(solarAbsorptanceInsideFace);
746 }
747
748 1 void StandardOpaqueMaterial::resetSolarAbsorptanceInsideFace() {
749
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::StandardOpaqueMaterial_Impl>()->resetSolarAbsorptanceInsideFace();
750 1 }
751
752 4 bool StandardOpaqueMaterial::setVisibleAbsorptanceInsideFace(double visibleAbsorptanceInsideFace) {
753
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::StandardOpaqueMaterial_Impl>()->setVisibleAbsorptanceInsideFace(visibleAbsorptanceInsideFace);
754 }
755
756 1 void StandardOpaqueMaterial::resetVisibleAbsorptanceInsideFace() {
757
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::StandardOpaqueMaterial_Impl>()->resetVisibleAbsorptanceInsideFace();
758 1 }
759
760 9 boost::optional<MaterialPropertyMoisturePenetrationDepthSettings> StandardOpaqueMaterial::createMaterialPropertyMoisturePenetrationDepthSettings(
761 double waterVaporDiffusionResistanceFactor, double moistureEquationCoefficientA, double moistureEquationCoefficientB,
762 double moistureEquationCoefficientC, double moistureEquationCoefficientD, double coatingLayerThickness,
763 double coatingLayerWaterVaporDiffusionResistanceFactor) {
764 18 return getImpl<detail::StandardOpaqueMaterial_Impl>()->createMaterialPropertyMoisturePenetrationDepthSettings(
765 waterVaporDiffusionResistanceFactor, moistureEquationCoefficientA, moistureEquationCoefficientB, moistureEquationCoefficientC,
766
1/1
✓ Branch 2 taken 9 times.
18 moistureEquationCoefficientD, coatingLayerThickness, coatingLayerWaterVaporDiffusionResistanceFactor);
767 }
768
769 593 boost::optional<MaterialPropertyMoisturePenetrationDepthSettings> StandardOpaqueMaterial::materialPropertyMoisturePenetrationDepthSettings() const {
770
1/1
✓ Branch 3 taken 593 times.
593 return getImpl<detail::StandardOpaqueMaterial_Impl>()->materialPropertyMoisturePenetrationDepthSettings();
771 }
772
773 1 void StandardOpaqueMaterial::resetMaterialPropertyMoisturePenetrationDepthSettings() {
774
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::StandardOpaqueMaterial_Impl>()->resetMaterialPropertyMoisturePenetrationDepthSettings();
775 1 }
776
777 5 boost::optional<MaterialPropertyPhaseChange> StandardOpaqueMaterial::createMaterialPropertyPhaseChange() {
778
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::StandardOpaqueMaterial_Impl>()->createMaterialPropertyPhaseChange();
779 }
780
781 boost::optional<MaterialPropertyPhaseChange>
782 2 StandardOpaqueMaterial::createMaterialPropertyPhaseChange(const std::vector<TemperatureEnthalpy>& temperatureEnthalpys) {
783
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::StandardOpaqueMaterial_Impl>()->createMaterialPropertyPhaseChange(temperatureEnthalpys);
784 }
785
786 590 boost::optional<MaterialPropertyPhaseChange> StandardOpaqueMaterial::materialPropertyPhaseChange() const {
787
1/1
✓ Branch 3 taken 590 times.
590 return getImpl<detail::StandardOpaqueMaterial_Impl>()->materialPropertyPhaseChange();
788 }
789
790 ✗ void StandardOpaqueMaterial::resetMaterialPropertyPhaseChange() {
791 ✗ getImpl<detail::StandardOpaqueMaterial_Impl>()->resetMaterialPropertyPhaseChange();
792 ✗ }
793
794 4 boost::optional<MaterialPropertyPhaseChangeHysteresis> StandardOpaqueMaterial::createMaterialPropertyPhaseChangeHysteresis() {
795
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::StandardOpaqueMaterial_Impl>()->createMaterialPropertyPhaseChangeHysteresis();
796 }
797
798 587 boost::optional<MaterialPropertyPhaseChangeHysteresis> StandardOpaqueMaterial::materialPropertyPhaseChangeHysteresis() const {
799
1/1
✓ Branch 3 taken 587 times.
587 return getImpl<detail::StandardOpaqueMaterial_Impl>()->materialPropertyPhaseChangeHysteresis();
800 }
801
802 ✗ void StandardOpaqueMaterial::resetMaterialPropertyPhaseChangeHysteresis() {
803 ✗ getImpl<detail::StandardOpaqueMaterial_Impl>()->resetMaterialPropertyPhaseChangeHysteresis();
804 ✗ }
805
806 /// @cond
807
1/1
✓ Branch 3 taken 967 times.
967 StandardOpaqueMaterial::StandardOpaqueMaterial(std::shared_ptr<detail::StandardOpaqueMaterial_Impl> impl) : OpaqueMaterial(std::move(impl)) {}
808 /// @endcond
809
810 } // namespace model
811 } // namespace openstudio
812