src/model/MasslessOpaqueMaterial.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 "MasslessOpaqueMaterial.hpp" | ||
| 7 | #include "MasslessOpaqueMaterial_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_NoMass_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 | 341 | MasslessOpaqueMaterial_Impl::MasslessOpaqueMaterial_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 32 | 341 | : OpaqueMaterial_Impl(idfObject, model, keepHandle) { | |
| 33 |
4/6✓ Branch 1 taken 341 times.
✓ Branch 4 taken 341 times.
✓ Branch 7 taken 341 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 341 times.
✗ Branch 13 not taken.
|
341 | OS_ASSERT(idfObject.iddObject().type() == MasslessOpaqueMaterial::iddObjectType()); |
| 34 | 341 | } | |
| 35 | |||
| 36 | 85 | MasslessOpaqueMaterial_Impl::MasslessOpaqueMaterial_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 37 | 85 | bool keepHandle) | |
| 38 | 85 | : OpaqueMaterial_Impl(other, model, keepHandle) { | |
| 39 |
4/6✓ Branch 1 taken 85 times.
✓ Branch 4 taken 85 times.
✓ Branch 7 taken 85 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 85 times.
✗ Branch 13 not taken.
|
85 | OS_ASSERT(other.iddObject().type() == MasslessOpaqueMaterial::iddObjectType()); |
| 40 | 85 | } | |
| 41 | |||
| 42 | 80 | MasslessOpaqueMaterial_Impl::MasslessOpaqueMaterial_Impl(const MasslessOpaqueMaterial_Impl& other, Model_Impl* model, bool keepHandle) | |
| 43 | 80 | : OpaqueMaterial_Impl(other, model, keepHandle) {} | |
| 44 | |||
| 45 | 56 | std::vector<ModelObject> MasslessOpaqueMaterial_Impl::children() const { | |
| 46 |
3/3✓ Branch 1 taken 56 times.
✓ Branch 4 taken 56 times.
✓ Branch 7 taken 56 times.
|
56 | std::vector<ModelObject> results(castVector<ModelObject>(getObject<Material>().getModelObjectSources<StandardsInformationMaterial>())); |
| 47 | |||
| 48 |
2/3✓ Branch 1 taken 56 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 56 times.
|
112 | if (boost::optional<MaterialPropertyMoisturePenetrationDepthSettings> empd = this->materialPropertyMoisturePenetrationDepthSettings()) { |
| 49 | ✗ | results.push_back(empd.get()); | |
| 50 | 56 | } | |
| 51 | |||
| 52 |
2/3✓ Branch 1 taken 56 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 56 times.
|
112 | if (boost::optional<MaterialPropertyPhaseChange> phaseChange = this->materialPropertyPhaseChange()) { |
| 53 | ✗ | results.push_back(phaseChange.get()); | |
| 54 | 56 | } | |
| 55 | |||
| 56 |
2/3✓ Branch 1 taken 56 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 56 times.
|
112 | if (boost::optional<MaterialPropertyPhaseChangeHysteresis> phaseChangeHysteresis = this->materialPropertyPhaseChangeHysteresis()) { |
| 57 | ✗ | results.push_back(phaseChangeHysteresis.get()); | |
| 58 | 56 | } | |
| 59 | |||
| 60 | 56 | return results; | |
| 61 | ✗ | } | |
| 62 | |||
| 63 | 77 | std::string MasslessOpaqueMaterial_Impl::roughness() const { | |
| 64 |
1/1✓ Branch 1 taken 77 times.
|
77 | boost::optional<std::string> value = getString(OS_Material_NoMassFields::Roughness, true); |
| 65 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 77 times.
✗ Branch 4 not taken.
|
77 | OS_ASSERT(value); |
| 66 |
2/2✓ Branch 1 taken 77 times.
✓ Branch 4 taken 77 times.
|
154 | return value.get(); |
| 67 | 77 | } | |
| 68 | |||
| 69 | ✗ | double MasslessOpaqueMaterial_Impl::thermalConductivity() const { | |
| 70 | ✗ | LOG_AND_THROW("Unable to convert thermal resistance to thermal conductivity for " << "MasslessOpaqueMaterial " << briefDescription() << "."); | |
| 71 | return 0.0; | ||
| 72 | } | ||
| 73 | |||
| 74 | 1 | double MasslessOpaqueMaterial_Impl::thermalConductance() const { | |
| 75 | 1 | return 1.0 / thermalResistance(); | |
| 76 | } | ||
| 77 | |||
| 78 | ✗ | double MasslessOpaqueMaterial_Impl::thermalResistivity() const { | |
| 79 | ✗ | LOG_AND_THROW("Unable to convert thermal resistance to thermal resistivity for " << "MasslessOpaqueMaterial " << briefDescription() << "."); | |
| 80 | return 0.0; | ||
| 81 | } | ||
| 82 | |||
| 83 | 83 | double MasslessOpaqueMaterial_Impl::thermalAbsorptance() const { | |
| 84 |
1/1✓ Branch 1 taken 83 times.
|
83 | boost::optional<double> value = getDouble(OS_Material_NoMassFields::ThermalAbsorptance, true); |
| 85 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 83 times.
✗ Branch 4 not taken.
|
83 | OS_ASSERT(value); |
| 86 |
1/1✓ Branch 1 taken 83 times.
|
166 | return value.get(); |
| 87 | } | ||
| 88 | |||
| 89 | ✗ | OptionalDouble MasslessOpaqueMaterial_Impl::thermalReflectance() const { | |
| 90 | ✗ | OptionalDouble result; | |
| 91 | ✗ | OptionalDouble od = thermalAbsorptance(); | |
| 92 | ✗ | if (od) { | |
| 93 | ✗ | result = (1.0 - *od); | |
| 94 | } | ||
| 95 | ✗ | return result; | |
| 96 | } | ||
| 97 | |||
| 98 | ✗ | OptionalDouble MasslessOpaqueMaterial_Impl::solarReflectance() const { | |
| 99 | ✗ | OptionalDouble result; | |
| 100 | ✗ | OptionalDouble od = solarAbsorptance(); | |
| 101 | ✗ | if (od) { | |
| 102 | ✗ | result = (1.0 - *od); | |
| 103 | } | ||
| 104 | ✗ | return result; | |
| 105 | } | ||
| 106 | |||
| 107 | 107 | double MasslessOpaqueMaterial_Impl::visibleAbsorptance() const { | |
| 108 |
1/1✓ Branch 1 taken 107 times.
|
107 | boost::optional<double> value = getDouble(OS_Material_NoMassFields::VisibleAbsorptance, true); |
| 109 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 107 times.
✗ Branch 4 not taken.
|
107 | OS_ASSERT(value); |
| 110 |
1/1✓ Branch 1 taken 107 times.
|
214 | return value.get(); |
| 111 | } | ||
| 112 | |||
| 113 | ✗ | OptionalDouble MasslessOpaqueMaterial_Impl::visibleReflectance() const { | |
| 114 | ✗ | OptionalDouble result; | |
| 115 | ✗ | OptionalDouble od = visibleAbsorptance(); | |
| 116 | ✗ | if (od) { | |
| 117 | ✗ | result = (1.0 - *od); | |
| 118 | } | ||
| 119 | ✗ | return result; | |
| 120 | } | ||
| 121 | |||
| 122 | 1 | const std::vector<std::string>& MasslessOpaqueMaterial_Impl::outputVariableNames() const { | |
| 123 |
2/4✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
1 | static const std::vector<std::string> result; |
| 124 | 1 | return result; | |
| 125 | } | ||
| 126 | |||
| 127 | ✗ | IddObjectType MasslessOpaqueMaterial_Impl::iddObjectType() const { | |
| 128 | ✗ | return MasslessOpaqueMaterial::iddObjectType(); | |
| 129 | } | ||
| 130 | |||
| 131 | ✗ | bool MasslessOpaqueMaterial_Impl::setThickness(double /*value*/) { | |
| 132 | ✗ | return false; | |
| 133 | } | ||
| 134 | |||
| 135 | ✗ | bool MasslessOpaqueMaterial_Impl::setThermalConductivity(double /*value*/) { | |
| 136 | ✗ | return false; | |
| 137 | } | ||
| 138 | |||
| 139 | ✗ | bool MasslessOpaqueMaterial_Impl::setThermalConductance(double value) { | |
| 140 | ✗ | return setThermalResistance(1.0 / value); | |
| 141 | } | ||
| 142 | |||
| 143 | ✗ | bool MasslessOpaqueMaterial_Impl::setThermalResistivity(double /*value*/) { | |
| 144 | ✗ | return false; | |
| 145 | } | ||
| 146 | |||
| 147 | ✗ | bool MasslessOpaqueMaterial_Impl::setThermalAbsorptance(OptionalDouble value) { | |
| 148 | ✗ | if (!value) { | |
| 149 | ✗ | return setString(OS_Material_NoMassFields::ThermalAbsorptance, ""); | |
| 150 | } | ||
| 151 | ✗ | return setDouble(OS_Material_NoMassFields::ThermalAbsorptance, *value); | |
| 152 | } | ||
| 153 | |||
| 154 | ✗ | bool MasslessOpaqueMaterial_Impl::setThermalReflectance(OptionalDouble value) { | |
| 155 | ✗ | if (!value) { | |
| 156 | ✗ | return setThermalAbsorptance(value); | |
| 157 | } | ||
| 158 | ✗ | OptionalDouble od = (1.0 - *value); | |
| 159 | ✗ | return setThermalAbsorptance(od); | |
| 160 | } | ||
| 161 | |||
| 162 | ✗ | bool MasslessOpaqueMaterial_Impl::setSolarAbsorptance(OptionalDouble value) { | |
| 163 | ✗ | if (!value) { | |
| 164 | ✗ | return setString(OS_Material_NoMassFields::SolarAbsorptance, ""); | |
| 165 | } | ||
| 166 | ✗ | return setDouble(OS_Material_NoMassFields::SolarAbsorptance, *value); | |
| 167 | } | ||
| 168 | |||
| 169 | ✗ | bool MasslessOpaqueMaterial_Impl::setSolarReflectance(OptionalDouble value) { | |
| 170 | ✗ | if (!value) { | |
| 171 | ✗ | return setSolarAbsorptance(value); | |
| 172 | } | ||
| 173 | ✗ | OptionalDouble od = (1.0 - *value); | |
| 174 | ✗ | return setSolarAbsorptance(od); | |
| 175 | } | ||
| 176 | |||
| 177 | ✗ | bool MasslessOpaqueMaterial_Impl::setVisibleAbsorptance(OptionalDouble value) { | |
| 178 | ✗ | if (!value) { | |
| 179 | ✗ | return setString(OS_Material_NoMassFields::VisibleAbsorptance, ""); | |
| 180 | } | ||
| 181 | ✗ | return setDouble(OS_Material_NoMassFields::VisibleAbsorptance, *value); | |
| 182 | } | ||
| 183 | |||
| 184 | ✗ | bool MasslessOpaqueMaterial_Impl::setVisibleReflectance(OptionalDouble value) { | |
| 185 | ✗ | if (!value) { | |
| 186 | ✗ | return setVisibleAbsorptance(value); | |
| 187 | } | ||
| 188 | ✗ | OptionalDouble od = (1.0 - *value); | |
| 189 | ✗ | return setVisibleAbsorptance(od); | |
| 190 | } | ||
| 191 | |||
| 192 | 81 | double MasslessOpaqueMaterial_Impl::thermalResistance() const { | |
| 193 |
1/1✓ Branch 1 taken 81 times.
|
81 | boost::optional<double> value = getDouble(OS_Material_NoMassFields::ThermalResistance, true); |
| 194 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 81 times.
✗ Branch 4 not taken.
|
81 | OS_ASSERT(value); |
| 195 |
1/1✓ Branch 1 taken 81 times.
|
162 | return value.get(); |
| 196 | } | ||
| 197 | |||
| 198 | ✗ | bool MasslessOpaqueMaterial_Impl::isThermalAbsorptanceDefaulted() const { | |
| 199 | ✗ | return isEmpty(OS_Material_NoMassFields::ThermalAbsorptance); | |
| 200 | } | ||
| 201 | |||
| 202 | 83 | double MasslessOpaqueMaterial_Impl::solarAbsorptance() const { | |
| 203 |
1/1✓ Branch 1 taken 83 times.
|
83 | boost::optional<double> value = getDouble(OS_Material_NoMassFields::SolarAbsorptance, true); |
| 204 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 83 times.
✗ Branch 4 not taken.
|
83 | OS_ASSERT(value); |
| 205 |
1/1✓ Branch 1 taken 83 times.
|
166 | return value.get(); |
| 206 | } | ||
| 207 | |||
| 208 | ✗ | bool MasslessOpaqueMaterial_Impl::isSolarAbsorptanceDefaulted() const { | |
| 209 | ✗ | return isEmpty(OS_Material_NoMassFields::SolarAbsorptance); | |
| 210 | } | ||
| 211 | |||
| 212 | ✗ | bool MasslessOpaqueMaterial_Impl::isVisibleAbsorptanceDefaulted() const { | |
| 213 | ✗ | return isEmpty(OS_Material_NoMassFields::VisibleAbsorptance); | |
| 214 | } | ||
| 215 | |||
| 216 | 6 | double MasslessOpaqueMaterial_Impl::thermalAbsorptanceInsideFace() 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_Material_NoMassFields::ThermalAbsorptanceInsideFace)) { |
| 218 |
1/1✓ Branch 1 taken 3 times.
|
3 | return value.get(); |
| 219 | } | ||
| 220 | 3 | return thermalAbsorptance(); | |
| 221 | } | ||
| 222 | |||
| 223 | 49 | bool MasslessOpaqueMaterial_Impl::isThermalAbsorptanceInsideFaceDefaulted() const { | |
| 224 | 49 | return isEmpty(OS_Material_NoMassFields::ThermalAbsorptanceInsideFace); | |
| 225 | } | ||
| 226 | |||
| 227 | 6 | double MasslessOpaqueMaterial_Impl::solarAbsorptanceInsideFace() const { | |
| 228 |
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_Material_NoMassFields::SolarAbsorptanceInsideFace)) { |
| 229 |
1/1✓ Branch 1 taken 3 times.
|
3 | return value.get(); |
| 230 | } | ||
| 231 | 3 | return solarAbsorptance(); | |
| 232 | } | ||
| 233 | |||
| 234 | 49 | bool MasslessOpaqueMaterial_Impl::isSolarAbsorptanceInsideFaceDefaulted() const { | |
| 235 | 49 | return isEmpty(OS_Material_NoMassFields::SolarAbsorptanceInsideFace); | |
| 236 | } | ||
| 237 | |||
| 238 | 6 | double MasslessOpaqueMaterial_Impl::visibleAbsorptanceInsideFace() const { | |
| 239 |
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_Material_NoMassFields::VisibleAbsorptanceInsideFace)) { |
| 240 |
1/1✓ Branch 1 taken 3 times.
|
3 | return value.get(); |
| 241 | } | ||
| 242 | 3 | return visibleAbsorptance(); | |
| 243 | } | ||
| 244 | |||
| 245 | 49 | bool MasslessOpaqueMaterial_Impl::isVisibleAbsorptanceInsideFaceDefaulted() const { | |
| 246 | 49 | return isEmpty(OS_Material_NoMassFields::VisibleAbsorptanceInsideFace); | |
| 247 | } | ||
| 248 | |||
| 249 | 456 | bool MasslessOpaqueMaterial_Impl::setRoughness(const std::string& roughness) { | |
| 250 | 456 | bool result = setString(OS_Material_NoMassFields::Roughness, roughness); | |
| 251 | 456 | return result; | |
| 252 | } | ||
| 253 | |||
| 254 | 500 | bool MasslessOpaqueMaterial_Impl::setThermalResistance(double thermalResistance) { | |
| 255 | 500 | bool result = setDouble(OS_Material_NoMassFields::ThermalResistance, thermalResistance); | |
| 256 | 500 | return result; | |
| 257 | } | ||
| 258 | |||
| 259 | 206 | bool MasslessOpaqueMaterial_Impl::setThermalAbsorptance(double thermalAbsorptance) { | |
| 260 | 206 | bool result = setDouble(OS_Material_NoMassFields::ThermalAbsorptance, thermalAbsorptance); | |
| 261 | 206 | return result; | |
| 262 | } | ||
| 263 | |||
| 264 | 1 | void MasslessOpaqueMaterial_Impl::resetThermalAbsorptance() { | |
| 265 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Material_NoMassFields::ThermalAbsorptance, ""); |
| 266 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 267 | 1 | } | |
| 268 | |||
| 269 | 200 | bool MasslessOpaqueMaterial_Impl::setSolarAbsorptance(double solarAbsorptance) { | |
| 270 | 200 | bool result = setDouble(OS_Material_NoMassFields::SolarAbsorptance, solarAbsorptance); | |
| 271 | 200 | return result; | |
| 272 | } | ||
| 273 | |||
| 274 | 1 | void MasslessOpaqueMaterial_Impl::resetSolarAbsorptance() { | |
| 275 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Material_NoMassFields::SolarAbsorptance, ""); |
| 276 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 277 | 1 | } | |
| 278 | |||
| 279 | 197 | bool MasslessOpaqueMaterial_Impl::setVisibleAbsorptance(double visibleAbsorptance) { | |
| 280 | 197 | bool result = setDouble(OS_Material_NoMassFields::VisibleAbsorptance, visibleAbsorptance); | |
| 281 | 197 | return result; | |
| 282 | } | ||
| 283 | |||
| 284 | 1 | void MasslessOpaqueMaterial_Impl::resetVisibleAbsorptance() { | |
| 285 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Material_NoMassFields::VisibleAbsorptance, ""); |
| 286 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 287 | 1 | } | |
| 288 | |||
| 289 | 4 | bool MasslessOpaqueMaterial_Impl::setThermalAbsorptanceInsideFace(double thermalAbsorptanceInsideFace) { | |
| 290 | 4 | return setDouble(OS_Material_NoMassFields::ThermalAbsorptanceInsideFace, thermalAbsorptanceInsideFace); | |
| 291 | } | ||
| 292 | |||
| 293 | 1 | void MasslessOpaqueMaterial_Impl::resetThermalAbsorptanceInsideFace() { | |
| 294 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Material_NoMassFields::ThermalAbsorptanceInsideFace, ""); |
| 295 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 296 | 1 | } | |
| 297 | |||
| 298 | 4 | bool MasslessOpaqueMaterial_Impl::setSolarAbsorptanceInsideFace(double solarAbsorptanceInsideFace) { | |
| 299 | 4 | return setDouble(OS_Material_NoMassFields::SolarAbsorptanceInsideFace, solarAbsorptanceInsideFace); | |
| 300 | } | ||
| 301 | |||
| 302 | 1 | void MasslessOpaqueMaterial_Impl::resetSolarAbsorptanceInsideFace() { | |
| 303 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Material_NoMassFields::SolarAbsorptanceInsideFace, ""); |
| 304 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 305 | 1 | } | |
| 306 | |||
| 307 | 4 | bool MasslessOpaqueMaterial_Impl::setVisibleAbsorptanceInsideFace(double visibleAbsorptanceInsideFace) { | |
| 308 | 4 | return setDouble(OS_Material_NoMassFields::VisibleAbsorptanceInsideFace, visibleAbsorptanceInsideFace); | |
| 309 | } | ||
| 310 | |||
| 311 | 1 | void MasslessOpaqueMaterial_Impl::resetVisibleAbsorptanceInsideFace() { | |
| 312 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Material_NoMassFields::VisibleAbsorptanceInsideFace, ""); |
| 313 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 314 | 1 | } | |
| 315 | |||
| 316 | ✗ | std::vector<std::string> MasslessOpaqueMaterial_Impl::roughnessValues() const { | |
| 317 | ✗ | return MasslessOpaqueMaterial::roughnessValues(); | |
| 318 | } | ||
| 319 | |||
| 320 | boost::optional<MaterialPropertyMoisturePenetrationDepthSettings> | ||
| 321 | ✗ | MasslessOpaqueMaterial_Impl::createMaterialPropertyMoisturePenetrationDepthSettings( | |
| 322 | double waterVaporDiffusionResistanceFactor, double moistureEquationCoefficientA, double moistureEquationCoefficientB, | ||
| 323 | double moistureEquationCoefficientC, double moistureEquationCoefficientD, double coatingLayerThickness, | ||
| 324 | double coatingLayerWaterVaporDiffusionResistanceFactor) { | ||
| 325 | ✗ | auto thisMaterial = getObject<MasslessOpaqueMaterial>(); | |
| 326 | std::vector<MaterialPropertyMoisturePenetrationDepthSettings> empds = | ||
| 327 | thisMaterial.getModelObjectSources<MaterialPropertyMoisturePenetrationDepthSettings>( | ||
| 328 | ✗ | MaterialPropertyMoisturePenetrationDepthSettings::iddObjectType()); | |
| 329 | ✗ | if (!empds.empty()) { | |
| 330 | ✗ | return boost::none; | |
| 331 | } | ||
| 332 | |||
| 333 | MaterialPropertyMoisturePenetrationDepthSettings empd(thisMaterial, waterVaporDiffusionResistanceFactor, moistureEquationCoefficientA, | ||
| 334 | moistureEquationCoefficientB, moistureEquationCoefficientC, moistureEquationCoefficientD, | ||
| 335 | ✗ | coatingLayerThickness, coatingLayerWaterVaporDiffusionResistanceFactor); | |
| 336 | ✗ | return empd; | |
| 337 | ✗ | } | |
| 338 | |||
| 339 | boost::optional<MaterialPropertyMoisturePenetrationDepthSettings> | ||
| 340 | 100 | MasslessOpaqueMaterial_Impl::materialPropertyMoisturePenetrationDepthSettings() const { | |
| 341 | std::vector<MaterialPropertyMoisturePenetrationDepthSettings> empds = | ||
| 342 |
1/1✓ Branch 1 taken 100 times.
|
200 | getObject<ModelObject>().getModelObjectSources<MaterialPropertyMoisturePenetrationDepthSettings>( |
| 343 |
2/2✓ Branch 1 taken 100 times.
✓ Branch 4 taken 100 times.
|
100 | MaterialPropertyMoisturePenetrationDepthSettings::iddObjectType()); |
| 344 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 100 times.
|
100 | if (empds.empty()) { |
| 345 | // no error | ||
| 346 | ✗ | } else if (empds.size() == 1) { | |
| 347 | ✗ | return empds[0]; | |
| 348 | } else { | ||
| 349 | // error | ||
| 350 | } | ||
| 351 | 100 | return boost::none; | |
| 352 | 100 | } | |
| 353 | |||
| 354 | ✗ | void MasslessOpaqueMaterial_Impl::resetMaterialPropertyMoisturePenetrationDepthSettings() { | |
| 355 | ✗ | boost::optional<MaterialPropertyMoisturePenetrationDepthSettings> empd = this->materialPropertyMoisturePenetrationDepthSettings(); | |
| 356 | ✗ | if (empd) { | |
| 357 | ✗ | empd->remove(); | |
| 358 | } | ||
| 359 | ✗ | } | |
| 360 | |||
| 361 | ✗ | boost::optional<MaterialPropertyPhaseChange> MasslessOpaqueMaterial_Impl::createMaterialPropertyPhaseChange() { | |
| 362 | ✗ | auto thisMaterial = getObject<MasslessOpaqueMaterial>(); | |
| 363 | std::vector<MaterialPropertyPhaseChange> phaseChanges = | ||
| 364 | ✗ | thisMaterial.getModelObjectSources<MaterialPropertyPhaseChange>(MaterialPropertyPhaseChange::iddObjectType()); | |
| 365 | ✗ | if (!phaseChanges.empty()) { | |
| 366 | ✗ | return boost::none; | |
| 367 | } | ||
| 368 | |||
| 369 | ✗ | MaterialPropertyPhaseChange phaseChange(thisMaterial); | |
| 370 | ✗ | return phaseChange; | |
| 371 | ✗ | } | |
| 372 | |||
| 373 | boost::optional<MaterialPropertyPhaseChange> | ||
| 374 | ✗ | MasslessOpaqueMaterial_Impl::createMaterialPropertyPhaseChange(const std::vector<TemperatureEnthalpy>& temperatureEnthalpys) { | |
| 375 | ✗ | auto thisMaterial = getObject<MasslessOpaqueMaterial>(); | |
| 376 | std::vector<MaterialPropertyPhaseChange> phaseChanges = | ||
| 377 | ✗ | thisMaterial.getModelObjectSources<MaterialPropertyPhaseChange>(MaterialPropertyPhaseChange::iddObjectType()); | |
| 378 | ✗ | if (!phaseChanges.empty()) { | |
| 379 | ✗ | return boost::none; | |
| 380 | } | ||
| 381 | |||
| 382 | ✗ | MaterialPropertyPhaseChange phaseChange(thisMaterial, temperatureEnthalpys); | |
| 383 | ✗ | return phaseChange; | |
| 384 | ✗ | } | |
| 385 | |||
| 386 | 100 | boost::optional<MaterialPropertyPhaseChange> MasslessOpaqueMaterial_Impl::materialPropertyPhaseChange() const { | |
| 387 | std::vector<MaterialPropertyPhaseChange> phaseChanges = | ||
| 388 |
3/3✓ Branch 1 taken 100 times.
✓ Branch 4 taken 100 times.
✓ Branch 7 taken 100 times.
|
100 | getObject<ModelObject>().getModelObjectSources<MaterialPropertyPhaseChange>(MaterialPropertyPhaseChange::iddObjectType()); |
| 389 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 100 times.
|
100 | if (phaseChanges.empty()) { |
| 390 | // no error | ||
| 391 | ✗ | } else if (phaseChanges.size() == 1) { | |
| 392 | ✗ | return phaseChanges[0]; | |
| 393 | } else { | ||
| 394 | // error | ||
| 395 | } | ||
| 396 | 100 | return boost::none; | |
| 397 | 100 | } | |
| 398 | |||
| 399 | ✗ | void MasslessOpaqueMaterial_Impl::resetMaterialPropertyPhaseChange() { | |
| 400 | ✗ | boost::optional<MaterialPropertyPhaseChange> phaseChange = this->materialPropertyPhaseChange(); | |
| 401 | ✗ | if (phaseChange) { | |
| 402 | ✗ | phaseChange->remove(); | |
| 403 | } | ||
| 404 | ✗ | } | |
| 405 | |||
| 406 | ✗ | boost::optional<MaterialPropertyPhaseChangeHysteresis> MasslessOpaqueMaterial_Impl::createMaterialPropertyPhaseChangeHysteresis() { | |
| 407 | ✗ | auto thisMaterial = getObject<MasslessOpaqueMaterial>(); | |
| 408 | std::vector<MaterialPropertyPhaseChangeHysteresis> phaseChangeHysteresiss = | ||
| 409 | ✗ | thisMaterial.getModelObjectSources<MaterialPropertyPhaseChangeHysteresis>(MaterialPropertyPhaseChangeHysteresis::iddObjectType()); | |
| 410 | ✗ | if (!phaseChangeHysteresiss.empty()) { | |
| 411 | ✗ | return boost::none; | |
| 412 | } | ||
| 413 | |||
| 414 | ✗ | MaterialPropertyPhaseChangeHysteresis phaseChangeHysteresis(thisMaterial); | |
| 415 | ✗ | return phaseChangeHysteresis; | |
| 416 | ✗ | } | |
| 417 | |||
| 418 | 100 | boost::optional<MaterialPropertyPhaseChangeHysteresis> MasslessOpaqueMaterial_Impl::materialPropertyPhaseChangeHysteresis() const { | |
| 419 | std::vector<MaterialPropertyPhaseChangeHysteresis> phaseChangeHysteresiss = | ||
| 420 |
3/3✓ Branch 1 taken 100 times.
✓ Branch 4 taken 100 times.
✓ Branch 7 taken 100 times.
|
100 | getObject<ModelObject>().getModelObjectSources<MaterialPropertyPhaseChangeHysteresis>(MaterialPropertyPhaseChangeHysteresis::iddObjectType()); |
| 421 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 100 times.
|
100 | if (phaseChangeHysteresiss.empty()) { |
| 422 | // no error | ||
| 423 | ✗ | } else if (phaseChangeHysteresiss.size() == 1) { | |
| 424 | ✗ | return phaseChangeHysteresiss[0]; | |
| 425 | } else { | ||
| 426 | // error | ||
| 427 | } | ||
| 428 | 100 | return boost::none; | |
| 429 | 100 | } | |
| 430 | |||
| 431 | ✗ | void MasslessOpaqueMaterial_Impl::resetMaterialPropertyPhaseChangeHysteresis() { | |
| 432 | ✗ | boost::optional<MaterialPropertyPhaseChangeHysteresis> phaseChangeHysteresis = this->materialPropertyPhaseChangeHysteresis(); | |
| 433 | ✗ | if (phaseChangeHysteresis) { | |
| 434 | ✗ | phaseChangeHysteresis->remove(); | |
| 435 | } | ||
| 436 | ✗ | } | |
| 437 | |||
| 438 | } // namespace detail | ||
| 439 | |||
| 440 | 255 | MasslessOpaqueMaterial::MasslessOpaqueMaterial(const Model& model, const std::string& roughness, double thermalResistance) | |
| 441 | 255 | : OpaqueMaterial(MasslessOpaqueMaterial::iddObjectType(), model) { | |
| 442 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 255 times.
✗ Branch 5 not taken.
|
255 | OS_ASSERT(getImpl<detail::MasslessOpaqueMaterial_Impl>()); |
| 443 | |||
| 444 | // TODO: Appropriately handle the following required object-list fields. | ||
| 445 | 255 | bool ok = true; | |
| 446 | //ok = setHandle(); | ||
| 447 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 255 times.
✗ Branch 3 not taken.
|
255 | OS_ASSERT(ok); |
| 448 |
1/1✓ Branch 1 taken 255 times.
|
255 | ok = setRoughness(roughness); |
| 449 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 255 times.
✗ Branch 3 not taken.
|
255 | OS_ASSERT(ok); |
| 450 |
1/1✓ Branch 1 taken 255 times.
|
255 | ok = setThermalResistance(thermalResistance); |
| 451 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 255 times.
✗ Branch 3 not taken.
|
255 | OS_ASSERT(ok); |
| 452 | 255 | } | |
| 453 | |||
| 454 | 8414 | IddObjectType MasslessOpaqueMaterial::iddObjectType() { | |
| 455 |
1/1✓ Branch 1 taken 8414 times.
|
8414 | return {IddObjectType::OS_Material_NoMass}; |
| 456 | } | ||
| 457 | |||
| 458 | ✗ | std::vector<std::string> MasslessOpaqueMaterial::roughnessValues() { | |
| 459 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Material_NoMassFields::Roughness); | |
| 460 | } | ||
| 461 | |||
| 462 | 77 | std::string MasslessOpaqueMaterial::roughness() const { | |
| 463 |
1/1✓ Branch 3 taken 77 times.
|
77 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->roughness(); |
| 464 | } | ||
| 465 | |||
| 466 | // cppcheck-suppress [duplInheritedMember] for documentation purposes | ||
| 467 | 80 | boost::optional<double> MasslessOpaqueMaterial::thermalAbsorptance() const { | |
| 468 |
2/2✓ Branch 3 taken 80 times.
✓ Branch 6 taken 80 times.
|
80 | OptionalDouble result = getImpl<detail::MasslessOpaqueMaterial_Impl>()->thermalAbsorptance(); |
| 469 | 80 | return result; | |
| 470 | } | ||
| 471 | |||
| 472 | // cppcheck-suppress [duplInheritedMember] for documentation purposes | ||
| 473 | 80 | boost::optional<double> MasslessOpaqueMaterial::solarAbsorptance() const { | |
| 474 |
2/2✓ Branch 3 taken 80 times.
✓ Branch 6 taken 80 times.
|
80 | OptionalDouble result = getImpl<detail::MasslessOpaqueMaterial_Impl>()->solarAbsorptance(); |
| 475 | 80 | return result; | |
| 476 | } | ||
| 477 | |||
| 478 | // cppcheck-suppress [duplInheritedMember] for documentation purposes | ||
| 479 | 80 | boost::optional<double> MasslessOpaqueMaterial::visibleAbsorptance() const { | |
| 480 |
2/2✓ Branch 3 taken 80 times.
✓ Branch 6 taken 80 times.
|
80 | OptionalDouble result = getImpl<detail::MasslessOpaqueMaterial_Impl>()->visibleAbsorptance(); |
| 481 | 80 | return result; | |
| 482 | } | ||
| 483 | |||
| 484 | 6 | boost::optional<double> MasslessOpaqueMaterial::thermalAbsorptanceInsideFace() const { | |
| 485 |
2/2✓ Branch 3 taken 6 times.
✓ Branch 6 taken 6 times.
|
6 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->thermalAbsorptanceInsideFace(); |
| 486 | } | ||
| 487 | |||
| 488 | 49 | bool MasslessOpaqueMaterial::isThermalAbsorptanceInsideFaceDefaulted() const { | |
| 489 |
1/1✓ Branch 3 taken 49 times.
|
49 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->isThermalAbsorptanceInsideFaceDefaulted(); |
| 490 | } | ||
| 491 | |||
| 492 | 6 | boost::optional<double> MasslessOpaqueMaterial::solarAbsorptanceInsideFace() const { | |
| 493 |
2/2✓ Branch 3 taken 6 times.
✓ Branch 6 taken 6 times.
|
6 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->solarAbsorptanceInsideFace(); |
| 494 | } | ||
| 495 | |||
| 496 | 49 | bool MasslessOpaqueMaterial::isSolarAbsorptanceInsideFaceDefaulted() const { | |
| 497 |
1/1✓ Branch 3 taken 49 times.
|
49 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->isSolarAbsorptanceInsideFaceDefaulted(); |
| 498 | } | ||
| 499 | |||
| 500 | 6 | boost::optional<double> MasslessOpaqueMaterial::visibleAbsorptanceInsideFace() const { | |
| 501 |
2/2✓ Branch 3 taken 6 times.
✓ Branch 6 taken 6 times.
|
6 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->visibleAbsorptanceInsideFace(); |
| 502 | } | ||
| 503 | |||
| 504 | 49 | bool MasslessOpaqueMaterial::isVisibleAbsorptanceInsideFaceDefaulted() const { | |
| 505 |
1/1✓ Branch 3 taken 49 times.
|
49 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->isVisibleAbsorptanceInsideFaceDefaulted(); |
| 506 | } | ||
| 507 | |||
| 508 | // cppcheck-suppress [duplInheritedMember] for documentation purposes | ||
| 509 | 76 | double MasslessOpaqueMaterial::thermalResistance() const { | |
| 510 |
1/1✓ Branch 3 taken 76 times.
|
76 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->thermalResistance(); |
| 511 | } | ||
| 512 | |||
| 513 | ✗ | bool MasslessOpaqueMaterial::isThermalAbsorptanceDefaulted() const { | |
| 514 | ✗ | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->isThermalAbsorptanceDefaulted(); | |
| 515 | } | ||
| 516 | |||
| 517 | ✗ | bool MasslessOpaqueMaterial::isSolarAbsorptanceDefaulted() const { | |
| 518 | ✗ | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->isSolarAbsorptanceDefaulted(); | |
| 519 | } | ||
| 520 | |||
| 521 | ✗ | bool MasslessOpaqueMaterial::isVisibleAbsorptanceDefaulted() const { | |
| 522 | ✗ | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->isVisibleAbsorptanceDefaulted(); | |
| 523 | } | ||
| 524 | |||
| 525 | 456 | bool MasslessOpaqueMaterial::setRoughness(const std::string& roughness) { | |
| 526 |
1/1✓ Branch 3 taken 456 times.
|
456 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->setRoughness(roughness); |
| 527 | } | ||
| 528 | |||
| 529 | // cppcheck-suppress [duplInheritedMember] for documentation purposes | ||
| 530 | 500 | bool MasslessOpaqueMaterial::setThermalResistance(double thermalResistance) { | |
| 531 |
1/1✓ Branch 3 taken 500 times.
|
500 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->setThermalResistance(thermalResistance); |
| 532 | } | ||
| 533 | |||
| 534 | // cppcheck-suppress [duplInheritedMember] for documentation purposes | ||
| 535 | 200 | bool MasslessOpaqueMaterial::setThermalAbsorptance(double thermalAbsorptance) { | |
| 536 |
1/1✓ Branch 3 taken 200 times.
|
200 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->setThermalAbsorptance(thermalAbsorptance); |
| 537 | } | ||
| 538 | |||
| 539 | 1 | void MasslessOpaqueMaterial::resetThermalAbsorptance() { | |
| 540 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::MasslessOpaqueMaterial_Impl>()->resetThermalAbsorptance(); |
| 541 | 1 | } | |
| 542 | |||
| 543 | 200 | bool MasslessOpaqueMaterial::setSolarAbsorptance(double solarAbsorptance) { | |
| 544 |
1/1✓ Branch 3 taken 200 times.
|
200 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->setSolarAbsorptance(solarAbsorptance); |
| 545 | } | ||
| 546 | |||
| 547 | 1 | void MasslessOpaqueMaterial::resetSolarAbsorptance() { | |
| 548 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::MasslessOpaqueMaterial_Impl>()->resetSolarAbsorptance(); |
| 549 | 1 | } | |
| 550 | |||
| 551 | 197 | bool MasslessOpaqueMaterial::setVisibleAbsorptance(double visibleAbsorptance) { | |
| 552 |
1/1✓ Branch 3 taken 197 times.
|
197 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->setVisibleAbsorptance(visibleAbsorptance); |
| 553 | } | ||
| 554 | |||
| 555 | 1 | void MasslessOpaqueMaterial::resetVisibleAbsorptance() { | |
| 556 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::MasslessOpaqueMaterial_Impl>()->resetVisibleAbsorptance(); |
| 557 | 1 | } | |
| 558 | |||
| 559 | 4 | bool MasslessOpaqueMaterial::setThermalAbsorptanceInsideFace(double thermalAbsorptanceInsideFace) { | |
| 560 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->setThermalAbsorptanceInsideFace(thermalAbsorptanceInsideFace); |
| 561 | } | ||
| 562 | |||
| 563 | 1 | void MasslessOpaqueMaterial::resetThermalAbsorptanceInsideFace() { | |
| 564 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::MasslessOpaqueMaterial_Impl>()->resetThermalAbsorptanceInsideFace(); |
| 565 | 1 | } | |
| 566 | |||
| 567 | 4 | bool MasslessOpaqueMaterial::setSolarAbsorptanceInsideFace(double solarAbsorptanceInsideFace) { | |
| 568 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->setSolarAbsorptanceInsideFace(solarAbsorptanceInsideFace); |
| 569 | } | ||
| 570 | |||
| 571 | 1 | void MasslessOpaqueMaterial::resetSolarAbsorptanceInsideFace() { | |
| 572 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::MasslessOpaqueMaterial_Impl>()->resetSolarAbsorptanceInsideFace(); |
| 573 | 1 | } | |
| 574 | |||
| 575 | 4 | bool MasslessOpaqueMaterial::setVisibleAbsorptanceInsideFace(double visibleAbsorptanceInsideFace) { | |
| 576 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->setVisibleAbsorptanceInsideFace(visibleAbsorptanceInsideFace); |
| 577 | } | ||
| 578 | |||
| 579 | 1 | void MasslessOpaqueMaterial::resetVisibleAbsorptanceInsideFace() { | |
| 580 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::MasslessOpaqueMaterial_Impl>()->resetVisibleAbsorptanceInsideFace(); |
| 581 | 1 | } | |
| 582 | |||
| 583 | ✗ | boost::optional<MaterialPropertyMoisturePenetrationDepthSettings> MasslessOpaqueMaterial::createMaterialPropertyMoisturePenetrationDepthSettings( | |
| 584 | double waterVaporDiffusionResistanceFactor, double moistureEquationCoefficientA, double moistureEquationCoefficientB, | ||
| 585 | double moistureEquationCoefficientC, double moistureEquationCoefficientD, double coatingLayerThickness, | ||
| 586 | double coatingLayerWaterVaporDiffusionResistanceFactor) { | ||
| 587 | ✗ | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->createMaterialPropertyMoisturePenetrationDepthSettings( | |
| 588 | waterVaporDiffusionResistanceFactor, moistureEquationCoefficientA, moistureEquationCoefficientB, moistureEquationCoefficientC, | ||
| 589 | ✗ | moistureEquationCoefficientD, coatingLayerThickness, coatingLayerWaterVaporDiffusionResistanceFactor); | |
| 590 | } | ||
| 591 | |||
| 592 | 44 | boost::optional<MaterialPropertyMoisturePenetrationDepthSettings> MasslessOpaqueMaterial::materialPropertyMoisturePenetrationDepthSettings() const { | |
| 593 |
1/1✓ Branch 3 taken 44 times.
|
44 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->materialPropertyMoisturePenetrationDepthSettings(); |
| 594 | } | ||
| 595 | |||
| 596 | ✗ | void MasslessOpaqueMaterial::resetMaterialPropertyMoisturePenetrationDepthSettings() { | |
| 597 | ✗ | getImpl<detail::MasslessOpaqueMaterial_Impl>()->resetMaterialPropertyMoisturePenetrationDepthSettings(); | |
| 598 | ✗ | } | |
| 599 | |||
| 600 | ✗ | boost::optional<MaterialPropertyPhaseChange> MasslessOpaqueMaterial::createMaterialPropertyPhaseChange() { | |
| 601 | ✗ | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->createMaterialPropertyPhaseChange(); | |
| 602 | } | ||
| 603 | |||
| 604 | boost::optional<MaterialPropertyPhaseChange> | ||
| 605 | ✗ | MasslessOpaqueMaterial::createMaterialPropertyPhaseChange(const std::vector<TemperatureEnthalpy>& temperatureEnthalpys) { | |
| 606 | ✗ | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->createMaterialPropertyPhaseChange(temperatureEnthalpys); | |
| 607 | } | ||
| 608 | |||
| 609 | 44 | boost::optional<MaterialPropertyPhaseChange> MasslessOpaqueMaterial::materialPropertyPhaseChange() const { | |
| 610 |
1/1✓ Branch 3 taken 44 times.
|
44 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->materialPropertyPhaseChange(); |
| 611 | } | ||
| 612 | |||
| 613 | ✗ | void MasslessOpaqueMaterial::resetMaterialPropertyPhaseChange() { | |
| 614 | ✗ | getImpl<detail::MasslessOpaqueMaterial_Impl>()->resetMaterialPropertyPhaseChange(); | |
| 615 | ✗ | } | |
| 616 | |||
| 617 | ✗ | boost::optional<MaterialPropertyPhaseChangeHysteresis> MasslessOpaqueMaterial::createMaterialPropertyPhaseChangeHysteresis() { | |
| 618 | ✗ | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->createMaterialPropertyPhaseChangeHysteresis(); | |
| 619 | } | ||
| 620 | |||
| 621 | 44 | boost::optional<MaterialPropertyPhaseChangeHysteresis> MasslessOpaqueMaterial::materialPropertyPhaseChangeHysteresis() const { | |
| 622 |
1/1✓ Branch 3 taken 44 times.
|
44 | return getImpl<detail::MasslessOpaqueMaterial_Impl>()->materialPropertyPhaseChangeHysteresis(); |
| 623 | } | ||
| 624 | |||
| 625 | ✗ | void MasslessOpaqueMaterial::resetMaterialPropertyPhaseChangeHysteresis() { | |
| 626 | ✗ | getImpl<detail::MasslessOpaqueMaterial_Impl>()->resetMaterialPropertyPhaseChangeHysteresis(); | |
| 627 | ✗ | } | |
| 628 | |||
| 629 | /// @cond | ||
| 630 |
1/1✓ Branch 3 taken 115 times.
|
115 | MasslessOpaqueMaterial::MasslessOpaqueMaterial(std::shared_ptr<detail::MasslessOpaqueMaterial_Impl> impl) : OpaqueMaterial(std::move(impl)) {} |
| 631 | /// @endcond | ||
| 632 | |||
| 633 | } // namespace model | ||
| 634 | } // namespace openstudio | ||
| 635 |