src/model/RefractionExtinctionGlazing.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 "RefractionExtinctionGlazing.hpp" | ||
| 7 | #include "RefractionExtinctionGlazing_Impl.hpp" | ||
| 8 | |||
| 9 | #include <utilities/idd/OS_WindowMaterial_Glazing_RefractionExtinctionMethod_FieldEnums.hxx> | ||
| 10 | #include <utilities/idd/IddEnums.hxx> | ||
| 11 | |||
| 12 | #include "../utilities/units/Unit.hpp" | ||
| 13 | |||
| 14 | #include "../utilities/core/Assert.hpp" | ||
| 15 | |||
| 16 | namespace openstudio { | ||
| 17 | namespace model { | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | 3 | RefractionExtinctionGlazing_Impl::RefractionExtinctionGlazing_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 22 | 3 | : Glazing_Impl(idfObject, model, keepHandle) { | |
| 23 |
4/6✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 3 times.
✗ Branch 13 not taken.
|
3 | OS_ASSERT(idfObject.iddObject().type() == RefractionExtinctionGlazing::iddObjectType()); |
| 24 | 3 | } | |
| 25 | |||
| 26 | ✗ | RefractionExtinctionGlazing_Impl::RefractionExtinctionGlazing_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 27 | ✗ | bool keepHandle) | |
| 28 | ✗ | : Glazing_Impl(other, model, keepHandle) { | |
| 29 | ✗ | OS_ASSERT(other.iddObject().type() == RefractionExtinctionGlazing::iddObjectType()); | |
| 30 | ✗ | } | |
| 31 | |||
| 32 | 1 | RefractionExtinctionGlazing_Impl::RefractionExtinctionGlazing_Impl(const RefractionExtinctionGlazing_Impl& other, Model_Impl* model, | |
| 33 | 1 | bool keepHandle) | |
| 34 | 1 | : Glazing_Impl(other, model, keepHandle) {} | |
| 35 | |||
| 36 | ✗ | const std::vector<std::string>& RefractionExtinctionGlazing_Impl::outputVariableNames() const { | |
| 37 | ✗ | static const std::vector<std::string> result; | |
| 38 | ✗ | return result; | |
| 39 | } | ||
| 40 | |||
| 41 | ✗ | IddObjectType RefractionExtinctionGlazing_Impl::iddObjectType() const { | |
| 42 | ✗ | return RefractionExtinctionGlazing::iddObjectType(); | |
| 43 | } | ||
| 44 | |||
| 45 | 2 | double RefractionExtinctionGlazing_Impl::thickness() const { | |
| 46 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::Thickness, true); |
| 47 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 48 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 49 | } | ||
| 50 | |||
| 51 | 2 | double RefractionExtinctionGlazing_Impl::solarIndexofRefraction() const { | |
| 52 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::SolarIndexofRefraction, true); |
| 53 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 54 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 55 | } | ||
| 56 | |||
| 57 | 2 | double RefractionExtinctionGlazing_Impl::solarExtinctionCoefficient() const { | |
| 58 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::SolarExtinctionCoefficient, true); |
| 59 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 60 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 61 | } | ||
| 62 | |||
| 63 | 2 | double RefractionExtinctionGlazing_Impl::visibleIndexofRefraction() const { | |
| 64 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::VisibleIndexofRefraction, true); |
| 65 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 66 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 67 | } | ||
| 68 | |||
| 69 | 2 | double RefractionExtinctionGlazing_Impl::visibleExtinctionCoefficient() const { | |
| 70 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::VisibleExtinctionCoefficient, true); |
| 71 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 72 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 73 | } | ||
| 74 | |||
| 75 | 3 | double RefractionExtinctionGlazing_Impl::infraredTransmittanceatNormalIncidence() const { | |
| 76 | boost::optional<double> value = | ||
| 77 |
1/1✓ Branch 1 taken 3 times.
|
3 | getDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::InfraredTransmittanceatNormalIncidence, true); |
| 78 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 79 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 80 | } | ||
| 81 | |||
| 82 | ✗ | bool RefractionExtinctionGlazing_Impl::isInfraredTransmittanceatNormalIncidenceDefaulted() const { | |
| 83 | ✗ | return isEmpty(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::InfraredTransmittanceatNormalIncidence); | |
| 84 | } | ||
| 85 | |||
| 86 | 3 | double RefractionExtinctionGlazing_Impl::infraredHemisphericalEmissivity() const { | |
| 87 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::InfraredHemisphericalEmissivity, true); |
| 88 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 89 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 90 | } | ||
| 91 | |||
| 92 | ✗ | bool RefractionExtinctionGlazing_Impl::isInfraredHemisphericalEmissivityDefaulted() const { | |
| 93 | ✗ | return isEmpty(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::InfraredHemisphericalEmissivity); | |
| 94 | } | ||
| 95 | |||
| 96 | 3 | double RefractionExtinctionGlazing_Impl::conductivity() const { | |
| 97 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::Conductivity, true); |
| 98 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 99 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 100 | } | ||
| 101 | |||
| 102 | ✗ | bool RefractionExtinctionGlazing_Impl::isConductivityDefaulted() const { | |
| 103 | ✗ | return isEmpty(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::Conductivity); | |
| 104 | } | ||
| 105 | |||
| 106 | 3 | double RefractionExtinctionGlazing_Impl::dirtCorrectionFactorforSolarandVisibleTransmittance() const { | |
| 107 | boost::optional<double> value = | ||
| 108 |
1/1✓ Branch 1 taken 3 times.
|
3 | getDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::DirtCorrectionFactorforSolarandVisibleTransmittance, true); |
| 109 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 110 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 111 | } | ||
| 112 | |||
| 113 | ✗ | bool RefractionExtinctionGlazing_Impl::isDirtCorrectionFactorforSolarandVisibleTransmittanceDefaulted() const { | |
| 114 | ✗ | return isEmpty(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::DirtCorrectionFactorforSolarandVisibleTransmittance); | |
| 115 | } | ||
| 116 | |||
| 117 | 3 | bool RefractionExtinctionGlazing_Impl::solarDiffusing() const { | |
| 118 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<std::string> value = getString(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::SolarDiffusing, true); |
| 119 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 120 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
6 | return openstudio::istringEqual(value.get(), "Yes"); |
| 121 | 3 | } | |
| 122 | |||
| 123 | ✗ | bool RefractionExtinctionGlazing_Impl::isSolarDiffusingDefaulted() const { | |
| 124 | ✗ | return isEmpty(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::SolarDiffusing); | |
| 125 | } | ||
| 126 | |||
| 127 | 4 | bool RefractionExtinctionGlazing_Impl::setThickness(double thickness) { | |
| 128 | 4 | bool result = setDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::Thickness, thickness); | |
| 129 | 4 | return result; | |
| 130 | } | ||
| 131 | |||
| 132 | ✗ | double RefractionExtinctionGlazing_Impl::thermalConductivity() const { | |
| 133 | ✗ | OptionalDouble od = getDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::Conductivity, true); | |
| 134 | ✗ | if (!od) { | |
| 135 | ✗ | LOG_AND_THROW("Thermal conductivity not yet defined for " << briefDescription() << "."); | |
| 136 | } | ||
| 137 | ✗ | return *od; | |
| 138 | } | ||
| 139 | |||
| 140 | ✗ | double RefractionExtinctionGlazing_Impl::thermalConductance() const { | |
| 141 | ✗ | return thermalConductivity() / thickness(); | |
| 142 | } | ||
| 143 | |||
| 144 | ✗ | double RefractionExtinctionGlazing_Impl::thermalResistivity() const { | |
| 145 | ✗ | return 1.0 / thermalConductivity(); | |
| 146 | } | ||
| 147 | |||
| 148 | ✗ | double RefractionExtinctionGlazing_Impl::thermalResistance() const { | |
| 149 | ✗ | return 1.0 / thermalConductance(); | |
| 150 | } | ||
| 151 | |||
| 152 | ✗ | double RefractionExtinctionGlazing_Impl::thermalTransmittance() const { | |
| 153 | ✗ | OptionalDouble od = getDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::InfraredTransmittanceatNormalIncidence, true); | |
| 154 | ✗ | if (!od) { | |
| 155 | ✗ | LOG_AND_THROW("Thermal transmittance not yet defined for " << briefDescription() << "."); | |
| 156 | } | ||
| 157 | ✗ | return *od; | |
| 158 | } | ||
| 159 | |||
| 160 | ✗ | OptionalDouble RefractionExtinctionGlazing_Impl::getVisibleTransmittance() const { | |
| 161 | ✗ | LOG_AND_THROW("Not yet implemented. Need to convert index of refraction and exinction coefficient to transmittance and absorptance, or look it " | |
| 162 | "up in the SQL file."); | ||
| 163 | return 0.0; | ||
| 164 | } | ||
| 165 | |||
| 166 | ✗ | double RefractionExtinctionGlazing_Impl::visibleAbsorptance() const { | |
| 167 | ✗ | LOG_AND_THROW("Not yet implemented. Need to convert index of refraction and exinction coefficient to transmittance and absorptance, or look it " | |
| 168 | "up in the SQL file."); | ||
| 169 | return 0.0; | ||
| 170 | } | ||
| 171 | |||
| 172 | ✗ | boost::optional<double> RefractionExtinctionGlazing_Impl::interiorVisibleAbsorptance() const { | |
| 173 | ✗ | return visibleAbsorptance(); | |
| 174 | } | ||
| 175 | |||
| 176 | ✗ | boost::optional<double> RefractionExtinctionGlazing_Impl::exteriorVisibleAbsorptance() const { | |
| 177 | ✗ | return visibleAbsorptance(); | |
| 178 | } | ||
| 179 | |||
| 180 | 4 | bool RefractionExtinctionGlazing_Impl::setSolarIndexofRefraction(double solarIndexofRefraction) { | |
| 181 | 4 | bool result = setDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::SolarIndexofRefraction, solarIndexofRefraction); | |
| 182 | 4 | return result; | |
| 183 | } | ||
| 184 | |||
| 185 | 4 | bool RefractionExtinctionGlazing_Impl::setSolarExtinctionCoefficient(double solarExtinctionCoefficient) { | |
| 186 | 4 | bool result = setDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::SolarExtinctionCoefficient, solarExtinctionCoefficient); | |
| 187 | 4 | return result; | |
| 188 | } | ||
| 189 | |||
| 190 | 4 | bool RefractionExtinctionGlazing_Impl::setVisibleIndexofRefraction(double visibleIndexofRefraction) { | |
| 191 | 4 | bool result = setDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::VisibleIndexofRefraction, visibleIndexofRefraction); | |
| 192 | 4 | return result; | |
| 193 | } | ||
| 194 | |||
| 195 | 4 | bool RefractionExtinctionGlazing_Impl::setVisibleExtinctionCoefficient(double visibleExtinctionCoefficient) { | |
| 196 | 4 | bool result = setDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::VisibleExtinctionCoefficient, visibleExtinctionCoefficient); | |
| 197 | 4 | return result; | |
| 198 | } | ||
| 199 | |||
| 200 | 1 | bool RefractionExtinctionGlazing_Impl::setInfraredTransmittanceatNormalIncidence(double infraredTransmittanceatNormalIncidence) { | |
| 201 | 1 | bool result = setDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::InfraredTransmittanceatNormalIncidence, | |
| 202 | infraredTransmittanceatNormalIncidence); | ||
| 203 | 1 | return result; | |
| 204 | } | ||
| 205 | |||
| 206 | 1 | void RefractionExtinctionGlazing_Impl::resetInfraredTransmittanceatNormalIncidence() { | |
| 207 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::InfraredTransmittanceatNormalIncidence, ""); |
| 208 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 209 | 1 | } | |
| 210 | |||
| 211 | 1 | bool RefractionExtinctionGlazing_Impl::setInfraredHemisphericalEmissivity(double infraredHemisphericalEmissivity) { | |
| 212 | bool result = | ||
| 213 | 1 | setDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::InfraredHemisphericalEmissivity, infraredHemisphericalEmissivity); | |
| 214 | 1 | return result; | |
| 215 | } | ||
| 216 | |||
| 217 | 1 | void RefractionExtinctionGlazing_Impl::resetInfraredHemisphericalEmissivity() { | |
| 218 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::InfraredHemisphericalEmissivity, ""); |
| 219 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 220 | 1 | } | |
| 221 | |||
| 222 | 1 | bool RefractionExtinctionGlazing_Impl::setConductivity(double conductivity) { | |
| 223 | 1 | bool result = setDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::Conductivity, conductivity); | |
| 224 | 1 | return result; | |
| 225 | } | ||
| 226 | |||
| 227 | 1 | void RefractionExtinctionGlazing_Impl::resetConductivity() { | |
| 228 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::Conductivity, ""); |
| 229 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 230 | 1 | } | |
| 231 | |||
| 232 | ✗ | bool RefractionExtinctionGlazing_Impl::setThermalConductivity(double value) { | |
| 233 | ✗ | return setDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::Conductivity, value); | |
| 234 | } | ||
| 235 | |||
| 236 | ✗ | bool RefractionExtinctionGlazing_Impl::setThermalConductance(double value) { | |
| 237 | ✗ | return setThickness(thermalConductivity() / value); | |
| 238 | } | ||
| 239 | |||
| 240 | ✗ | bool RefractionExtinctionGlazing_Impl::setThermalResistivity(double value) { | |
| 241 | ✗ | return setThermalConductivity(1.0 / value); | |
| 242 | } | ||
| 243 | |||
| 244 | ✗ | bool RefractionExtinctionGlazing_Impl::setThermalResistance(double value) { | |
| 245 | ✗ | return setThickness(value / thermalResistivity()); | |
| 246 | } | ||
| 247 | |||
| 248 | ✗ | bool RefractionExtinctionGlazing_Impl::setThermalTransmittance(double value) { | |
| 249 | ✗ | return setDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::InfraredTransmittanceatNormalIncidence, value); | |
| 250 | } | ||
| 251 | |||
| 252 | 1 | bool RefractionExtinctionGlazing_Impl::setDirtCorrectionFactorforSolarandVisibleTransmittance( | |
| 253 | double dirtCorrectionFactorforSolarandVisibleTransmittance) { | ||
| 254 | 1 | bool result = setDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::DirtCorrectionFactorforSolarandVisibleTransmittance, | |
| 255 | dirtCorrectionFactorforSolarandVisibleTransmittance); | ||
| 256 | 1 | return result; | |
| 257 | } | ||
| 258 | |||
| 259 | 1 | void RefractionExtinctionGlazing_Impl::resetDirtCorrectionFactorforSolarandVisibleTransmittance() { | |
| 260 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::DirtCorrectionFactorforSolarandVisibleTransmittance, ""); |
| 261 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 262 | 1 | } | |
| 263 | |||
| 264 | 2 | bool RefractionExtinctionGlazing_Impl::setSolarDiffusing(bool solarDiffusing) { | |
| 265 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
|
2 | if (solarDiffusing) { |
| 266 | 1 | return setBooleanFieldValue(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::SolarDiffusing, true); | |
| 267 | } else { | ||
| 268 | 1 | return setBooleanFieldValue(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::SolarDiffusing, false); | |
| 269 | ; | ||
| 270 | } | ||
| 271 | } | ||
| 272 | |||
| 273 | ✗ | void RefractionExtinctionGlazing_Impl::resetSolarDiffusing() { | |
| 274 | ✗ | bool result = setString(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::SolarDiffusing, ""); | |
| 275 | ✗ | OS_ASSERT(result); | |
| 276 | ✗ | } | |
| 277 | |||
| 278 | } // namespace detail | ||
| 279 | |||
| 280 | 3 | RefractionExtinctionGlazing::RefractionExtinctionGlazing(const Model& model, double thickness, double solarIndexofRefraction, | |
| 281 | double solarExtinctionCoefficient, double visibleIndexofRefraction, | ||
| 282 | 3 | double visibleExtinctionCoefficient) | |
| 283 | //double dirtCorrectionFactorforSolarandVisibleTransmittance) | ||
| 284 | 3 | : Glazing(RefractionExtinctionGlazing::iddObjectType(), model) { | |
| 285 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
✗ Branch 5 not taken.
|
3 | OS_ASSERT(getImpl<detail::RefractionExtinctionGlazing_Impl>()); |
| 286 | |||
| 287 |
1/1✓ Branch 1 taken 3 times.
|
3 | bool ok = this->setThickness(thickness); |
| 288 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
|
3 | OS_ASSERT(ok); |
| 289 |
1/1✓ Branch 1 taken 3 times.
|
3 | ok = this->setSolarIndexofRefraction(solarIndexofRefraction); |
| 290 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
|
3 | OS_ASSERT(ok); |
| 291 |
1/1✓ Branch 1 taken 3 times.
|
3 | ok = this->setSolarExtinctionCoefficient(solarExtinctionCoefficient); |
| 292 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
|
3 | OS_ASSERT(ok); |
| 293 |
1/1✓ Branch 1 taken 3 times.
|
3 | ok = this->setVisibleIndexofRefraction(visibleIndexofRefraction); |
| 294 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
|
3 | OS_ASSERT(ok); |
| 295 |
1/1✓ Branch 1 taken 3 times.
|
3 | ok = this->setVisibleExtinctionCoefficient(visibleExtinctionCoefficient); |
| 296 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
|
3 | OS_ASSERT(ok); |
| 297 | 3 | } | |
| 298 | |||
| 299 | 7736 | IddObjectType RefractionExtinctionGlazing::iddObjectType() { | |
| 300 |
1/1✓ Branch 1 taken 7736 times.
|
7736 | return {IddObjectType::OS_WindowMaterial_Glazing_RefractionExtinctionMethod}; |
| 301 | } | ||
| 302 | |||
| 303 | ✗ | double RefractionExtinctionGlazing::thermalConductivity() const { | |
| 304 | ✗ | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->thermalConductivity(); | |
| 305 | } | ||
| 306 | |||
| 307 | ✗ | double RefractionExtinctionGlazing::thermalConductance() const { | |
| 308 | ✗ | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->thermalConductance(); | |
| 309 | } | ||
| 310 | |||
| 311 | ✗ | double RefractionExtinctionGlazing::thermalResistivity() const { | |
| 312 | ✗ | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->thermalResistivity(); | |
| 313 | } | ||
| 314 | |||
| 315 | ✗ | double RefractionExtinctionGlazing::thermalResistance() const { | |
| 316 | ✗ | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->thermalResistance(); | |
| 317 | } | ||
| 318 | |||
| 319 | ✗ | double RefractionExtinctionGlazing::thermalTransmittance() const { | |
| 320 | ✗ | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->thermalTransmittance(); | |
| 321 | } | ||
| 322 | |||
| 323 | ✗ | bool RefractionExtinctionGlazing::setThermalConductivity(double value) { | |
| 324 | ✗ | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->setThermalConductivity(value); | |
| 325 | } | ||
| 326 | |||
| 327 | ✗ | bool RefractionExtinctionGlazing::setThermalConductance(double value) { | |
| 328 | ✗ | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->setThermalConductance(value); | |
| 329 | } | ||
| 330 | |||
| 331 | ✗ | bool RefractionExtinctionGlazing::setThermalResistivity(double value) { | |
| 332 | ✗ | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->setThermalResistivity(value); | |
| 333 | } | ||
| 334 | |||
| 335 | ✗ | bool RefractionExtinctionGlazing::setThermalResistance(double value) { | |
| 336 | ✗ | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->setThermalResistance(value); | |
| 337 | } | ||
| 338 | |||
| 339 | ✗ | bool RefractionExtinctionGlazing::setThermalTransmittance(double value) { | |
| 340 | ✗ | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->setThermalTransmittance(value); | |
| 341 | } | ||
| 342 | |||
| 343 | // cppcheck-suppress [duplInheritedMember] for documentation purposes | ||
| 344 | 2 | double RefractionExtinctionGlazing::thickness() const { | |
| 345 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->thickness(); |
| 346 | } | ||
| 347 | |||
| 348 | 2 | double RefractionExtinctionGlazing::solarIndexofRefraction() const { | |
| 349 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->solarIndexofRefraction(); |
| 350 | } | ||
| 351 | |||
| 352 | 2 | double RefractionExtinctionGlazing::solarExtinctionCoefficient() const { | |
| 353 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->solarExtinctionCoefficient(); |
| 354 | } | ||
| 355 | |||
| 356 | 2 | double RefractionExtinctionGlazing::visibleIndexofRefraction() const { | |
| 357 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->visibleIndexofRefraction(); |
| 358 | } | ||
| 359 | |||
| 360 | 2 | double RefractionExtinctionGlazing::visibleExtinctionCoefficient() const { | |
| 361 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->visibleExtinctionCoefficient(); |
| 362 | } | ||
| 363 | |||
| 364 | 3 | double RefractionExtinctionGlazing::infraredTransmittanceatNormalIncidence() const { | |
| 365 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->infraredTransmittanceatNormalIncidence(); |
| 366 | } | ||
| 367 | |||
| 368 | ✗ | bool RefractionExtinctionGlazing::isInfraredTransmittanceatNormalIncidenceDefaulted() const { | |
| 369 | ✗ | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->isInfraredTransmittanceatNormalIncidenceDefaulted(); | |
| 370 | } | ||
| 371 | |||
| 372 | 3 | double RefractionExtinctionGlazing::infraredHemisphericalEmissivity() const { | |
| 373 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->infraredHemisphericalEmissivity(); |
| 374 | } | ||
| 375 | |||
| 376 | ✗ | bool RefractionExtinctionGlazing::isInfraredHemisphericalEmissivityDefaulted() const { | |
| 377 | ✗ | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->isInfraredHemisphericalEmissivityDefaulted(); | |
| 378 | } | ||
| 379 | |||
| 380 | 3 | double RefractionExtinctionGlazing::conductivity() const { | |
| 381 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->conductivity(); |
| 382 | } | ||
| 383 | |||
| 384 | ✗ | bool RefractionExtinctionGlazing::isConductivityDefaulted() const { | |
| 385 | ✗ | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->isConductivityDefaulted(); | |
| 386 | } | ||
| 387 | |||
| 388 | 3 | double RefractionExtinctionGlazing::dirtCorrectionFactorforSolarandVisibleTransmittance() const { | |
| 389 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->dirtCorrectionFactorforSolarandVisibleTransmittance(); |
| 390 | } | ||
| 391 | |||
| 392 | ✗ | bool RefractionExtinctionGlazing::isDirtCorrectionFactorforSolarandVisibleTransmittanceDefaulted() const { | |
| 393 | ✗ | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->isDirtCorrectionFactorforSolarandVisibleTransmittanceDefaulted(); | |
| 394 | } | ||
| 395 | |||
| 396 | 3 | bool RefractionExtinctionGlazing::solarDiffusing() const { | |
| 397 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->solarDiffusing(); |
| 398 | } | ||
| 399 | |||
| 400 | ✗ | bool RefractionExtinctionGlazing::isSolarDiffusingDefaulted() const { | |
| 401 | ✗ | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->isSolarDiffusingDefaulted(); | |
| 402 | } | ||
| 403 | |||
| 404 | // cppcheck-suppress [duplInheritedMember] for documentation purposes | ||
| 405 | 4 | bool RefractionExtinctionGlazing::setThickness(double thickness) { | |
| 406 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->setThickness(thickness); |
| 407 | } | ||
| 408 | |||
| 409 | 4 | bool RefractionExtinctionGlazing::setSolarIndexofRefraction(double solarIndexofRefraction) { | |
| 410 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->setSolarIndexofRefraction(solarIndexofRefraction); |
| 411 | } | ||
| 412 | |||
| 413 | 4 | bool RefractionExtinctionGlazing::setSolarExtinctionCoefficient(double solarExtinctionCoefficient) { | |
| 414 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->setSolarExtinctionCoefficient(solarExtinctionCoefficient); |
| 415 | } | ||
| 416 | |||
| 417 | 4 | bool RefractionExtinctionGlazing::setVisibleIndexofRefraction(double visibleIndexofRefraction) { | |
| 418 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->setVisibleIndexofRefraction(visibleIndexofRefraction); |
| 419 | } | ||
| 420 | |||
| 421 | 4 | bool RefractionExtinctionGlazing::setVisibleExtinctionCoefficient(double visibleExtinctionCoefficient) { | |
| 422 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->setVisibleExtinctionCoefficient(visibleExtinctionCoefficient); |
| 423 | } | ||
| 424 | |||
| 425 | 1 | bool RefractionExtinctionGlazing::setInfraredTransmittanceatNormalIncidence(double infraredTransmittanceatNormalIncidence) { | |
| 426 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->setInfraredTransmittanceatNormalIncidence(infraredTransmittanceatNormalIncidence); |
| 427 | } | ||
| 428 | |||
| 429 | 1 | void RefractionExtinctionGlazing::resetInfraredTransmittanceatNormalIncidence() { | |
| 430 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefractionExtinctionGlazing_Impl>()->resetInfraredTransmittanceatNormalIncidence(); |
| 431 | 1 | } | |
| 432 | |||
| 433 | 1 | bool RefractionExtinctionGlazing::setInfraredHemisphericalEmissivity(double infraredHemisphericalEmissivity) { | |
| 434 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->setInfraredHemisphericalEmissivity(infraredHemisphericalEmissivity); |
| 435 | } | ||
| 436 | |||
| 437 | 1 | void RefractionExtinctionGlazing::resetInfraredHemisphericalEmissivity() { | |
| 438 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefractionExtinctionGlazing_Impl>()->resetInfraredHemisphericalEmissivity(); |
| 439 | 1 | } | |
| 440 | |||
| 441 | 1 | bool RefractionExtinctionGlazing::setConductivity(double conductivity) { | |
| 442 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->setConductivity(conductivity); |
| 443 | } | ||
| 444 | |||
| 445 | 1 | void RefractionExtinctionGlazing::resetConductivity() { | |
| 446 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefractionExtinctionGlazing_Impl>()->resetConductivity(); |
| 447 | 1 | } | |
| 448 | |||
| 449 | bool | ||
| 450 | 1 | RefractionExtinctionGlazing::setDirtCorrectionFactorforSolarandVisibleTransmittance(double dirtCorrectionFactorforSolarandVisibleTransmittance) { | |
| 451 |
1/1✓ Branch 3 taken 1 time.
|
2 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->setDirtCorrectionFactorforSolarandVisibleTransmittance( |
| 452 | 2 | dirtCorrectionFactorforSolarandVisibleTransmittance); | |
| 453 | } | ||
| 454 | |||
| 455 | 1 | void RefractionExtinctionGlazing::resetDirtCorrectionFactorforSolarandVisibleTransmittance() { | |
| 456 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefractionExtinctionGlazing_Impl>()->resetDirtCorrectionFactorforSolarandVisibleTransmittance(); |
| 457 | 1 | } | |
| 458 | |||
| 459 | 2 | bool RefractionExtinctionGlazing::setSolarDiffusing(bool solarDiffusing) { | |
| 460 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefractionExtinctionGlazing_Impl>()->setSolarDiffusing(solarDiffusing); |
| 461 | } | ||
| 462 | |||
| 463 | ✗ | void RefractionExtinctionGlazing::setSolarDiffusingNoFail(bool solarDiffusing) { | |
| 464 | ✗ | bool result = getImpl<detail::RefractionExtinctionGlazing_Impl>()->setSolarDiffusing(solarDiffusing); | |
| 465 | ✗ | OS_ASSERT(result); | |
| 466 | ✗ | } | |
| 467 | |||
| 468 | ✗ | void RefractionExtinctionGlazing::resetSolarDiffusing() { | |
| 469 | ✗ | getImpl<detail::RefractionExtinctionGlazing_Impl>()->resetSolarDiffusing(); | |
| 470 | ✗ | } | |
| 471 | |||
| 472 | /// @cond | ||
| 473 | 2 | RefractionExtinctionGlazing::RefractionExtinctionGlazing(std::shared_ptr<detail::RefractionExtinctionGlazing_Impl> impl) | |
| 474 |
1/1✓ Branch 3 taken 2 times.
|
2 | : Glazing(std::move(impl)) {} |
| 475 | /// @endcond | ||
| 476 | |||
| 477 | } // namespace model | ||
| 478 | } // namespace openstudio | ||
| 479 |