src/model/StandardGlazing.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 "StandardGlazing.hpp" | ||
| 7 | #include "StandardGlazing_Impl.hpp" | ||
| 8 | |||
| 9 | #include <utilities/idd/IddFactory.hxx> | ||
| 10 | |||
| 11 | #include "MaterialPropertyGlazingSpectralData.hpp" | ||
| 12 | #include "MaterialPropertyGlazingSpectralData_Impl.hpp" | ||
| 13 | |||
| 14 | #include <utilities/idd/OS_WindowMaterial_Glazing_FieldEnums.hxx> | ||
| 15 | #include <utilities/idd/IddEnums.hxx> | ||
| 16 | |||
| 17 | #include "../utilities/core/Assert.hpp" | ||
| 18 | |||
| 19 | namespace openstudio { | ||
| 20 | namespace model { | ||
| 21 | |||
| 22 | namespace detail { | ||
| 23 | |||
| 24 | 304 | StandardGlazing_Impl::StandardGlazing_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 25 | 304 | : Glazing_Impl(idfObject, model, keepHandle) { | |
| 26 |
4/6✓ Branch 1 taken 304 times.
✓ Branch 4 taken 304 times.
✓ Branch 7 taken 304 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 304 times.
✗ Branch 13 not taken.
|
304 | OS_ASSERT(idfObject.iddObject().type() == StandardGlazing::iddObjectType()); |
| 27 | 304 | } | |
| 28 | |||
| 29 | 79 | StandardGlazing_Impl::StandardGlazing_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 30 | 79 | : Glazing_Impl(other, model, keepHandle) { | |
| 31 |
4/6✓ Branch 1 taken 79 times.
✓ Branch 4 taken 79 times.
✓ Branch 7 taken 79 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 79 times.
✗ Branch 13 not taken.
|
79 | OS_ASSERT(other.iddObject().type() == StandardGlazing::iddObjectType()); |
| 32 | 79 | } | |
| 33 | |||
| 34 | 74 | StandardGlazing_Impl::StandardGlazing_Impl(const StandardGlazing_Impl& other, Model_Impl* model, bool keepHandle) | |
| 35 | 74 | : Glazing_Impl(other, model, keepHandle) {} | |
| 36 | |||
| 37 | 1 | const std::vector<std::string>& StandardGlazing_Impl::outputVariableNames() const { | |
| 38 |
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; |
| 39 | 1 | return result; | |
| 40 | } | ||
| 41 | |||
| 42 | ✗ | IddObjectType StandardGlazing_Impl::iddObjectType() const { | |
| 43 | ✗ | return StandardGlazing::iddObjectType(); | |
| 44 | } | ||
| 45 | |||
| 46 | 11 | std::string StandardGlazing_Impl::opticalDataType() const { | |
| 47 |
1/1✓ Branch 1 taken 11 times.
|
11 | boost::optional<std::string> value = getString(OS_WindowMaterial_GlazingFields::OpticalDataType, true); |
| 48 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 11 times.
✗ Branch 4 not taken.
|
11 | OS_ASSERT(value); |
| 49 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
22 | return value.get(); |
| 50 | 11 | } | |
| 51 | |||
| 52 | 1 | boost::optional<std::string> StandardGlazing_Impl::windowGlassSpectralDataSetName() const { | |
| 53 |
5/5✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
|
1 | LOG(Warn, "StandardGlazing::windowGlassSpectralDataSetName is deprecated, use StandardGlazing::windowGlassSpectralDataSet instead"); |
| 54 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<MaterialPropertyGlazingSpectralData> spectralData = windowGlassSpectralDataSet(); |
| 55 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (spectralData) { |
| 56 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | return spectralData->name(); |
| 57 | } | ||
| 58 | ✗ | return boost::none; | |
| 59 | 1 | } | |
| 60 | |||
| 61 | 11 | boost::optional<MaterialPropertyGlazingSpectralData> StandardGlazing_Impl::windowGlassSpectralDataSet() const { | |
| 62 |
1/1✓ Branch 1 taken 11 times.
|
22 | return getObject<ModelObject>().getModelObjectTarget<MaterialPropertyGlazingSpectralData>( |
| 63 |
1/1✓ Branch 1 taken 11 times.
|
22 | OS_WindowMaterial_GlazingFields::WindowGlassSpectralDataSetName); |
| 64 | } | ||
| 65 | |||
| 66 | 28 | double StandardGlazing_Impl::thickness() const { | |
| 67 |
1/1✓ Branch 1 taken 28 times.
|
28 | boost::optional<double> value = getDouble(OS_WindowMaterial_GlazingFields::Thickness, true); |
| 68 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 28 times.
✗ Branch 4 not taken.
|
28 | OS_ASSERT(value); |
| 69 |
1/1✓ Branch 1 taken 28 times.
|
56 | return value.get(); |
| 70 | } | ||
| 71 | |||
| 72 | ✗ | double StandardGlazing_Impl::solarTransmittance() const { | |
| 73 | ✗ | OptionalDouble od = getDouble(OS_WindowMaterial_GlazingFields::SolarTransmittanceatNormalIncidence, true); | |
| 74 | ✗ | if (!od) { | |
| 75 | ✗ | LOG_AND_THROW("Solar transmittance is not yet set for " << briefDescription() << "."); | |
| 76 | } | ||
| 77 | ✗ | return *od; | |
| 78 | } | ||
| 79 | |||
| 80 | 3 | boost::optional<double> StandardGlazing_Impl::solarTransmittanceatNormalIncidence() const { | |
| 81 | 3 | return getDouble(OS_WindowMaterial_GlazingFields::SolarTransmittanceatNormalIncidence, true); | |
| 82 | } | ||
| 83 | |||
| 84 | 3 | boost::optional<double> StandardGlazing_Impl::frontSideSolarReflectanceatNormalIncidence() const { | |
| 85 | 3 | return getDouble(OS_WindowMaterial_GlazingFields::FrontSideSolarReflectanceatNormalIncidence, true); | |
| 86 | } | ||
| 87 | |||
| 88 | 3 | boost::optional<double> StandardGlazing_Impl::backSideSolarReflectanceatNormalIncidence() const { | |
| 89 | 3 | return getDouble(OS_WindowMaterial_GlazingFields::BackSideSolarReflectanceatNormalIncidence, true); | |
| 90 | } | ||
| 91 | |||
| 92 | ✗ | OptionalDouble StandardGlazing_Impl::getVisibleTransmittance() const { | |
| 93 | ✗ | OptionalDouble od = getDouble(OS_WindowMaterial_GlazingFields::VisibleTransmittanceatNormalIncidence, true); | |
| 94 | ✗ | return *od; | |
| 95 | } | ||
| 96 | |||
| 97 | 3 | boost::optional<double> StandardGlazing_Impl::visibleTransmittanceatNormalIncidence() const { | |
| 98 | 3 | return getDouble(OS_WindowMaterial_GlazingFields::VisibleTransmittanceatNormalIncidence, true); | |
| 99 | } | ||
| 100 | |||
| 101 | 3 | boost::optional<double> StandardGlazing_Impl::frontSideVisibleReflectanceatNormalIncidence() const { | |
| 102 | 3 | return getDouble(OS_WindowMaterial_GlazingFields::FrontSideVisibleReflectanceatNormalIncidence, true); | |
| 103 | } | ||
| 104 | |||
| 105 | 3 | boost::optional<double> StandardGlazing_Impl::backSideVisibleReflectanceatNormalIncidence() const { | |
| 106 | 3 | return getDouble(OS_WindowMaterial_GlazingFields::BackSideVisibleReflectanceatNormalIncidence, true); | |
| 107 | } | ||
| 108 | |||
| 109 | ✗ | double StandardGlazing_Impl::infraredTransmittance() const { | |
| 110 | ✗ | OptionalDouble od = getDouble(OS_WindowMaterial_GlazingFields::InfraredTransmittanceatNormalIncidence, true); | |
| 111 | ✗ | if (!od) { | |
| 112 | ✗ | LOG_AND_THROW("Thermal conductivity is not yet set for " << briefDescription() << "."); | |
| 113 | } | ||
| 114 | ✗ | return *od; | |
| 115 | } | ||
| 116 | |||
| 117 | 3 | double StandardGlazing_Impl::infraredTransmittanceatNormalIncidence() const { | |
| 118 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_GlazingFields::InfraredTransmittanceatNormalIncidence, true); |
| 119 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 120 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 121 | } | ||
| 122 | |||
| 123 | 3 | bool StandardGlazing_Impl::isInfraredTransmittanceatNormalIncidenceDefaulted() const { | |
| 124 | 3 | return isEmpty(OS_WindowMaterial_GlazingFields::InfraredTransmittanceatNormalIncidence); | |
| 125 | } | ||
| 126 | |||
| 127 | 3 | double StandardGlazing_Impl::frontSideInfraredHemisphericalEmissivity() const { | |
| 128 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_GlazingFields::FrontSideInfraredHemisphericalEmissivity, true); |
| 129 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 130 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 131 | } | ||
| 132 | |||
| 133 | 3 | bool StandardGlazing_Impl::isFrontSideInfraredHemisphericalEmissivityDefaulted() const { | |
| 134 | 3 | return isEmpty(OS_WindowMaterial_GlazingFields::FrontSideInfraredHemisphericalEmissivity); | |
| 135 | } | ||
| 136 | |||
| 137 | 3 | double StandardGlazing_Impl::backSideInfraredHemisphericalEmissivity() const { | |
| 138 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_GlazingFields::BackSideInfraredHemisphericalEmissivity, true); |
| 139 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 140 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 141 | } | ||
| 142 | |||
| 143 | 3 | bool StandardGlazing_Impl::isBackSideInfraredHemisphericalEmissivityDefaulted() const { | |
| 144 | 3 | return isEmpty(OS_WindowMaterial_GlazingFields::BackSideInfraredHemisphericalEmissivity); | |
| 145 | } | ||
| 146 | |||
| 147 | 3 | double StandardGlazing_Impl::conductivity() const { | |
| 148 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_GlazingFields::Conductivity, true); |
| 149 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 150 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 151 | } | ||
| 152 | |||
| 153 | 3 | bool StandardGlazing_Impl::isConductivityDefaulted() const { | |
| 154 | 3 | return isEmpty(OS_WindowMaterial_GlazingFields::Conductivity); | |
| 155 | } | ||
| 156 | |||
| 157 | 3 | double StandardGlazing_Impl::dirtCorrectionFactorforSolarandVisibleTransmittance() const { | |
| 158 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_WindowMaterial_GlazingFields::DirtCorrectionFactorforSolarandVisibleTransmittance, true); |
| 159 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 160 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 161 | } | ||
| 162 | |||
| 163 | 3 | bool StandardGlazing_Impl::isDirtCorrectionFactorforSolarandVisibleTransmittanceDefaulted() const { | |
| 164 | 3 | return isEmpty(OS_WindowMaterial_GlazingFields::DirtCorrectionFactorforSolarandVisibleTransmittance); | |
| 165 | } | ||
| 166 | |||
| 167 | 4 | bool StandardGlazing_Impl::solarDiffusing() const { | |
| 168 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_WindowMaterial_GlazingFields::SolarDiffusing, true); |
| 169 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 170 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | return openstudio::istringEqual(value.get(), "Yes"); |
| 171 | 4 | } | |
| 172 | |||
| 173 | 3 | bool StandardGlazing_Impl::isSolarDiffusingDefaulted() const { | |
| 174 | 3 | return isEmpty(OS_WindowMaterial_GlazingFields::SolarDiffusing); | |
| 175 | } | ||
| 176 | |||
| 177 | 435 | bool StandardGlazing_Impl::setOpticalDataType(const std::string& opticalDataType) { | |
| 178 | 435 | bool result = setString(OS_WindowMaterial_GlazingFields::OpticalDataType, opticalDataType); | |
| 179 | 435 | return result; | |
| 180 | } | ||
| 181 | |||
| 182 | ✗ | bool StandardGlazing_Impl::setWindowGlassSpectralDataSetName(boost::optional<std::string> windowGlassSpectralDataSetName) { | |
| 183 | ✗ | LOG(Warn, "StandardGlazing::setWindowGlassSpectralDataSetName is deprecated, use StandardGlazing::setWindowGlassSpectralDataSet"); | |
| 184 | ✗ | bool result(false); | |
| 185 | ✗ | if (windowGlassSpectralDataSetName) { | |
| 186 | ✗ | result = setString(OS_WindowMaterial_GlazingFields::WindowGlassSpectralDataSetName, windowGlassSpectralDataSetName.get()); | |
| 187 | ✗ | if (result) { | |
| 188 | ✗ | result = setOpticalDataType("Spectral"); | |
| 189 | ✗ | OS_ASSERT(result); | |
| 190 | } | ||
| 191 | } else { | ||
| 192 | ✗ | resetWindowGlassSpectralDataSetName(); | |
| 193 | ✗ | result = setOpticalDataType("SpectralAverage"); | |
| 194 | ✗ | OS_ASSERT(result); | |
| 195 | } | ||
| 196 | ✗ | return result; | |
| 197 | } | ||
| 198 | |||
| 199 | ✗ | void StandardGlazing_Impl::resetWindowGlassSpectralDataSetName() { | |
| 200 | ✗ | LOG(Warn, "StandardGlazing::resetWindowGlassSpectralDataSetName is deprecated, use StandardGlazing::resetWindowGlassSpectralDataSet"); | |
| 201 | ✗ | bool result = setString(OS_WindowMaterial_GlazingFields::WindowGlassSpectralDataSetName, ""); | |
| 202 | ✗ | OS_ASSERT(result); | |
| 203 | ✗ | result = setOpticalDataType("SpectralAverage"); | |
| 204 | ✗ | OS_ASSERT(result); | |
| 205 | ✗ | } | |
| 206 | |||
| 207 | 5 | bool StandardGlazing_Impl::setWindowGlassSpectralDataSet(const MaterialPropertyGlazingSpectralData& spectralData) { | |
| 208 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | bool result = setPointer(OS_WindowMaterial_GlazingFields::WindowGlassSpectralDataSetName, spectralData.handle()); |
| 209 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | if (result) { |
| 210 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | result = setOpticalDataType("Spectral"); |
| 211 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
|
5 | OS_ASSERT(result); |
| 212 | } | ||
| 213 | 5 | return result; | |
| 214 | } | ||
| 215 | |||
| 216 | 2 | void StandardGlazing_Impl::resetWindowGlassSpectralDataSet() { | |
| 217 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
4 | bool result = setString(OS_WindowMaterial_GlazingFields::WindowGlassSpectralDataSetName, ""); |
| 218 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | OS_ASSERT(result); |
| 219 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | result = setOpticalDataType("SpectralAverage"); |
| 220 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | OS_ASSERT(result); |
| 221 | 2 | } | |
| 222 | |||
| 223 | 432 | bool StandardGlazing_Impl::setThickness(double thickness) { | |
| 224 | 432 | bool result = setDouble(OS_WindowMaterial_GlazingFields::Thickness, thickness); | |
| 225 | 432 | return result; | |
| 226 | } | ||
| 227 | |||
| 228 | 194 | bool StandardGlazing_Impl::setSolarTransmittance(double value) { | |
| 229 | 194 | return setDouble(OS_WindowMaterial_GlazingFields::SolarTransmittanceatNormalIncidence, value); | |
| 230 | } | ||
| 231 | |||
| 232 | 1 | bool StandardGlazing_Impl::setSolarTransmittanceatNormalIncidence(boost::optional<double> solarTransmittanceatNormalIncidence) { | |
| 233 | 1 | bool result(false); | |
| 234 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (solarTransmittanceatNormalIncidence) { |
| 235 | 1 | result = setDouble(OS_WindowMaterial_GlazingFields::SolarTransmittanceatNormalIncidence, solarTransmittanceatNormalIncidence.get()); | |
| 236 | } else { | ||
| 237 | ✗ | resetSolarTransmittanceatNormalIncidence(); | |
| 238 | ✗ | result = true; | |
| 239 | } | ||
| 240 | 1 | return result; | |
| 241 | } | ||
| 242 | |||
| 243 | 1 | void StandardGlazing_Impl::resetSolarTransmittanceatNormalIncidence() { | |
| 244 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_GlazingFields::SolarTransmittanceatNormalIncidence, ""); |
| 245 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 246 | 1 | } | |
| 247 | |||
| 248 | 195 | bool StandardGlazing_Impl::setFrontSideSolarReflectanceatNormalIncidence(boost::optional<double> frontSideSolarReflectanceatNormalIncidence) { | |
| 249 | 195 | bool result(false); | |
| 250 |
1/2✓ Branch 0 taken 195 times.
✗ Branch 1 not taken.
|
195 | if (frontSideSolarReflectanceatNormalIncidence) { |
| 251 | result = | ||
| 252 | 195 | setDouble(OS_WindowMaterial_GlazingFields::FrontSideSolarReflectanceatNormalIncidence, frontSideSolarReflectanceatNormalIncidence.get()); | |
| 253 | } else { | ||
| 254 | ✗ | resetFrontSideSolarReflectanceatNormalIncidence(); | |
| 255 | ✗ | result = true; | |
| 256 | } | ||
| 257 | 195 | return result; | |
| 258 | } | ||
| 259 | |||
| 260 | 1 | void StandardGlazing_Impl::resetFrontSideSolarReflectanceatNormalIncidence() { | |
| 261 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_GlazingFields::FrontSideSolarReflectanceatNormalIncidence, ""); |
| 262 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 263 | 1 | } | |
| 264 | |||
| 265 | 195 | bool StandardGlazing_Impl::setBackSideSolarReflectanceatNormalIncidence(boost::optional<double> backSideSolarReflectanceatNormalIncidence) { | |
| 266 | 195 | bool result(false); | |
| 267 |
1/2✓ Branch 0 taken 195 times.
✗ Branch 1 not taken.
|
195 | if (backSideSolarReflectanceatNormalIncidence) { |
| 268 | result = | ||
| 269 | 195 | setDouble(OS_WindowMaterial_GlazingFields::BackSideSolarReflectanceatNormalIncidence, backSideSolarReflectanceatNormalIncidence.get()); | |
| 270 | } else { | ||
| 271 | ✗ | resetBackSideSolarReflectanceatNormalIncidence(); | |
| 272 | ✗ | result = true; | |
| 273 | } | ||
| 274 | 195 | return result; | |
| 275 | } | ||
| 276 | |||
| 277 | 1 | void StandardGlazing_Impl::resetBackSideSolarReflectanceatNormalIncidence() { | |
| 278 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_GlazingFields::BackSideSolarReflectanceatNormalIncidence, ""); |
| 279 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 280 | 1 | } | |
| 281 | |||
| 282 | 194 | bool StandardGlazing_Impl::setVisibleTransmittance(double value) { | |
| 283 | 194 | return setDouble(OS_WindowMaterial_GlazingFields::VisibleTransmittanceatNormalIncidence, value); | |
| 284 | } | ||
| 285 | |||
| 286 | 1 | bool StandardGlazing_Impl::setVisibleTransmittanceatNormalIncidence(boost::optional<double> visibleTransmittanceatNormalIncidence) { | |
| 287 | 1 | bool result(false); | |
| 288 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (visibleTransmittanceatNormalIncidence) { |
| 289 | 1 | result = setDouble(OS_WindowMaterial_GlazingFields::VisibleTransmittanceatNormalIncidence, visibleTransmittanceatNormalIncidence.get()); | |
| 290 | } else { | ||
| 291 | ✗ | resetVisibleTransmittanceatNormalIncidence(); | |
| 292 | ✗ | result = true; | |
| 293 | } | ||
| 294 | 1 | return result; | |
| 295 | } | ||
| 296 | |||
| 297 | 1 | void StandardGlazing_Impl::resetVisibleTransmittanceatNormalIncidence() { | |
| 298 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_GlazingFields::VisibleTransmittanceatNormalIncidence, ""); |
| 299 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 300 | 1 | } | |
| 301 | |||
| 302 | 195 | bool StandardGlazing_Impl::setFrontSideVisibleReflectanceatNormalIncidence(boost::optional<double> frontSideVisibleReflectanceatNormalIncidence) { | |
| 303 | 195 | bool result(false); | |
| 304 |
1/2✓ Branch 0 taken 195 times.
✗ Branch 1 not taken.
|
195 | if (frontSideVisibleReflectanceatNormalIncidence) { |
| 305 | 195 | result = setDouble(OS_WindowMaterial_GlazingFields::FrontSideVisibleReflectanceatNormalIncidence, | |
| 306 | 195 | frontSideVisibleReflectanceatNormalIncidence.get()); | |
| 307 | } else { | ||
| 308 | ✗ | resetFrontSideVisibleReflectanceatNormalIncidence(); | |
| 309 | ✗ | result = true; | |
| 310 | } | ||
| 311 | 195 | return result; | |
| 312 | } | ||
| 313 | |||
| 314 | 1 | void StandardGlazing_Impl::resetFrontSideVisibleReflectanceatNormalIncidence() { | |
| 315 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_GlazingFields::FrontSideVisibleReflectanceatNormalIncidence, ""); |
| 316 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 317 | 1 | } | |
| 318 | |||
| 319 | 195 | bool StandardGlazing_Impl::setBackSideVisibleReflectanceatNormalIncidence(boost::optional<double> backSideVisibleReflectanceatNormalIncidence) { | |
| 320 | 195 | bool result(false); | |
| 321 |
1/2✓ Branch 0 taken 195 times.
✗ Branch 1 not taken.
|
195 | if (backSideVisibleReflectanceatNormalIncidence) { |
| 322 | result = | ||
| 323 | 195 | setDouble(OS_WindowMaterial_GlazingFields::BackSideVisibleReflectanceatNormalIncidence, backSideVisibleReflectanceatNormalIncidence.get()); | |
| 324 | } else { | ||
| 325 | ✗ | resetBackSideVisibleReflectanceatNormalIncidence(); | |
| 326 | ✗ | result = true; | |
| 327 | } | ||
| 328 | 195 | return result; | |
| 329 | } | ||
| 330 | |||
| 331 | 1 | void StandardGlazing_Impl::resetBackSideVisibleReflectanceatNormalIncidence() { | |
| 332 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_GlazingFields::BackSideVisibleReflectanceatNormalIncidence, ""); |
| 333 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 334 | 1 | } | |
| 335 | |||
| 336 | 194 | bool StandardGlazing_Impl::setInfraredTransmittance(double value) { | |
| 337 | 194 | return setDouble(OS_WindowMaterial_GlazingFields::InfraredTransmittanceatNormalIncidence, value); | |
| 338 | } | ||
| 339 | |||
| 340 | 1 | bool StandardGlazing_Impl::setInfraredTransmittanceatNormalIncidence(double infraredTransmittanceatNormalIncidence) { | |
| 341 | 1 | bool result = setDouble(OS_WindowMaterial_GlazingFields::InfraredTransmittanceatNormalIncidence, infraredTransmittanceatNormalIncidence); | |
| 342 | 1 | return result; | |
| 343 | } | ||
| 344 | |||
| 345 | 1 | void StandardGlazing_Impl::resetInfraredTransmittanceatNormalIncidence() { | |
| 346 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_GlazingFields::InfraredTransmittanceatNormalIncidence, ""); |
| 347 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 348 | 1 | } | |
| 349 | |||
| 350 | 195 | bool StandardGlazing_Impl::setFrontSideInfraredHemisphericalEmissivity(double frontSideInfraredHemisphericalEmissivity) { | |
| 351 | 195 | bool result = setDouble(OS_WindowMaterial_GlazingFields::FrontSideInfraredHemisphericalEmissivity, frontSideInfraredHemisphericalEmissivity); | |
| 352 | 195 | return result; | |
| 353 | } | ||
| 354 | |||
| 355 | 1 | void StandardGlazing_Impl::resetFrontSideInfraredHemisphericalEmissivity() { | |
| 356 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_GlazingFields::FrontSideInfraredHemisphericalEmissivity, ""); |
| 357 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 358 | 1 | } | |
| 359 | |||
| 360 | 195 | bool StandardGlazing_Impl::setBackSideInfraredHemisphericalEmissivity(double backSideInfraredHemisphericalEmissivity) { | |
| 361 | 195 | bool result = setDouble(OS_WindowMaterial_GlazingFields::BackSideInfraredHemisphericalEmissivity, backSideInfraredHemisphericalEmissivity); | |
| 362 | 195 | return result; | |
| 363 | } | ||
| 364 | |||
| 365 | 1 | void StandardGlazing_Impl::resetBackSideInfraredHemisphericalEmissivity() { | |
| 366 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_GlazingFields::BackSideInfraredHemisphericalEmissivity, ""); |
| 367 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 368 | 1 | } | |
| 369 | |||
| 370 | 1 | bool StandardGlazing_Impl::setConductivity(double conductivity) { | |
| 371 | 1 | bool result = setDouble(OS_WindowMaterial_GlazingFields::Conductivity, conductivity); | |
| 372 | 1 | return result; | |
| 373 | } | ||
| 374 | |||
| 375 | 1 | void StandardGlazing_Impl::resetConductivity() { | |
| 376 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_GlazingFields::Conductivity, ""); |
| 377 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 378 | 1 | } | |
| 379 | |||
| 380 | 10 | bool StandardGlazing_Impl::setDirtCorrectionFactorforSolarandVisibleTransmittance(double dirtCorrectionFactorforSolarandVisibleTransmittance) { | |
| 381 | 10 | bool result = setDouble(OS_WindowMaterial_GlazingFields::DirtCorrectionFactorforSolarandVisibleTransmittance, | |
| 382 | dirtCorrectionFactorforSolarandVisibleTransmittance); | ||
| 383 | 10 | return result; | |
| 384 | } | ||
| 385 | |||
| 386 | 1 | void StandardGlazing_Impl::resetDirtCorrectionFactorforSolarandVisibleTransmittance() { | |
| 387 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_GlazingFields::DirtCorrectionFactorforSolarandVisibleTransmittance, ""); |
| 388 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 389 | 1 | } | |
| 390 | |||
| 391 | 11 | bool StandardGlazing_Impl::setSolarDiffusing(bool solarDiffusing) { | |
| 392 | 11 | return setBooleanFieldValue(OS_WindowMaterial_GlazingFields::SolarDiffusing, solarDiffusing); | |
| 393 | ; | ||
| 394 | } | ||
| 395 | |||
| 396 | 1 | void StandardGlazing_Impl::resetSolarDiffusing() { | |
| 397 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_WindowMaterial_GlazingFields::SolarDiffusing, ""); |
| 398 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 399 | 1 | } | |
| 400 | |||
| 401 | ✗ | double StandardGlazing_Impl::thermalConductivity() const { | |
| 402 | ✗ | OptionalDouble od = getDouble(OS_WindowMaterial_GlazingFields::Conductivity, true); | |
| 403 | ✗ | if (!od) { | |
| 404 | ✗ | LOG_AND_THROW("Thermal conductivity is not yet set for " << briefDescription() << "."); | |
| 405 | } | ||
| 406 | ✗ | return *od; | |
| 407 | } | ||
| 408 | |||
| 409 | ✗ | double StandardGlazing_Impl::thermalConductance() const { | |
| 410 | ✗ | return thermalConductivity() / thickness(); | |
| 411 | } | ||
| 412 | |||
| 413 | ✗ | double StandardGlazing_Impl::thermalResistivity() const { | |
| 414 | ✗ | return 1.0 / thermalConductivity(); | |
| 415 | } | ||
| 416 | |||
| 417 | ✗ | double StandardGlazing_Impl::thermalResistance() const { | |
| 418 | ✗ | return 1.0 / thermalConductance(); | |
| 419 | } | ||
| 420 | |||
| 421 | ✗ | double StandardGlazing_Impl::exteriorVisibleReflectance() const { | |
| 422 | ✗ | OptionalDouble od = getDouble(OS_WindowMaterial_GlazingFields::FrontSideVisibleReflectanceatNormalIncidence, true); | |
| 423 | ✗ | if (!od) { | |
| 424 | ✗ | LOG_AND_THROW("Front-side visible reflectance is not yet set for " << briefDescription() << "."); | |
| 425 | } | ||
| 426 | ✗ | return *od; | |
| 427 | } | ||
| 428 | |||
| 429 | ✗ | double StandardGlazing_Impl::interiorVisibleReflectance() const { | |
| 430 | ✗ | OptionalDouble od = getDouble(OS_WindowMaterial_GlazingFields::BackSideVisibleReflectanceatNormalIncidence, true); | |
| 431 | ✗ | if (!od) { | |
| 432 | ✗ | LOG_AND_THROW("Back-side visible reflectance is not yet set for " << briefDescription() << "."); | |
| 433 | } | ||
| 434 | ✗ | return *od; | |
| 435 | } | ||
| 436 | |||
| 437 | ✗ | boost::optional<double> StandardGlazing_Impl::interiorVisibleAbsorptance() const { | |
| 438 | ✗ | return 1.0 - (*(getVisibleTransmittance()) + interiorVisibleReflectance()); | |
| 439 | } | ||
| 440 | |||
| 441 | ✗ | boost::optional<double> StandardGlazing_Impl::exteriorVisibleAbsorptance() const { | |
| 442 | ✗ | return 1.0 - (*(getVisibleTransmittance()) + exteriorVisibleReflectance()); | |
| 443 | } | ||
| 444 | |||
| 445 | 194 | bool StandardGlazing_Impl::setThermalConductivity(double value) { | |
| 446 | 194 | return setDouble(OS_WindowMaterial_GlazingFields::Conductivity, value); | |
| 447 | } | ||
| 448 | |||
| 449 | ✗ | bool StandardGlazing_Impl::setThermalConductance(double value) { | |
| 450 | ✗ | return setThickness(thermalConductivity() / value); | |
| 451 | } | ||
| 452 | |||
| 453 | ✗ | bool StandardGlazing_Impl::setThermalResistivity(double value) { | |
| 454 | ✗ | return setThermalConductivity(1.0 / value); | |
| 455 | } | ||
| 456 | |||
| 457 | ✗ | bool StandardGlazing_Impl::setThermalResistance(double value) { | |
| 458 | ✗ | return setThickness(value / thermalResistivity()); | |
| 459 | } | ||
| 460 | |||
| 461 | ✗ | std::vector<std::string> StandardGlazing_Impl::opticalDataTypeValues() const { | |
| 462 | ✗ | return StandardGlazing::opticalDataTypeValues(); | |
| 463 | } | ||
| 464 | |||
| 465 | } // namespace detail | ||
| 466 | |||
| 467 | 224 | StandardGlazing::StandardGlazing(const Model& model, const std::string& opticalDataType, double thickness) | |
| 468 | 224 | : Glazing(StandardGlazing::iddObjectType(), model) { | |
| 469 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 224 times.
✗ Branch 5 not taken.
|
224 | OS_ASSERT(getImpl<detail::StandardGlazing_Impl>()); |
| 470 | |||
| 471 | // TODO: Appropriately handle the following required object-list fields. | ||
| 472 | 224 | bool ok = true; | |
| 473 | // ok = setHandle(); | ||
| 474 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 224 times.
✗ Branch 3 not taken.
|
224 | OS_ASSERT(ok); |
| 475 |
1/1✓ Branch 1 taken 224 times.
|
224 | ok = setOpticalDataType(opticalDataType); |
| 476 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 224 times.
✗ Branch 3 not taken.
|
224 | OS_ASSERT(ok); |
| 477 |
1/1✓ Branch 1 taken 224 times.
|
224 | ok = setThickness(thickness); |
| 478 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 224 times.
✗ Branch 3 not taken.
|
224 | OS_ASSERT(ok); |
| 479 | 224 | } | |
| 480 | |||
| 481 | 8339 | IddObjectType StandardGlazing::iddObjectType() { | |
| 482 |
1/1✓ Branch 1 taken 8339 times.
|
8339 | return {IddObjectType::OS_WindowMaterial_Glazing}; |
| 483 | } | ||
| 484 | |||
| 485 | ✗ | std::vector<std::string> StandardGlazing::opticalDataTypeValues() { | |
| 486 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_WindowMaterial_GlazingFields::OpticalDataType); | |
| 487 | } | ||
| 488 | |||
| 489 | 11 | std::string StandardGlazing::opticalDataType() const { | |
| 490 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::StandardGlazing_Impl>()->opticalDataType(); |
| 491 | } | ||
| 492 | |||
| 493 | 1 | boost::optional<std::string> StandardGlazing::windowGlassSpectralDataSetName() const { | |
| 494 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::StandardGlazing_Impl>()->windowGlassSpectralDataSetName(); |
| 495 | } | ||
| 496 | |||
| 497 | 10 | boost::optional<MaterialPropertyGlazingSpectralData> StandardGlazing::windowGlassSpectralDataSet() const { | |
| 498 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::StandardGlazing_Impl>()->windowGlassSpectralDataSet(); |
| 499 | } | ||
| 500 | |||
| 501 | ✗ | double StandardGlazing::solarTransmittance() const { | |
| 502 | ✗ | return getImpl<detail::StandardGlazing_Impl>()->solarTransmittance(); | |
| 503 | } | ||
| 504 | |||
| 505 | 3 | boost::optional<double> StandardGlazing::solarTransmittanceatNormalIncidence() const { | |
| 506 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->solarTransmittanceatNormalIncidence(); |
| 507 | } | ||
| 508 | |||
| 509 | 3 | boost::optional<double> StandardGlazing::frontSideSolarReflectanceatNormalIncidence() const { | |
| 510 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->frontSideSolarReflectanceatNormalIncidence(); |
| 511 | } | ||
| 512 | |||
| 513 | 3 | boost::optional<double> StandardGlazing::backSideSolarReflectanceatNormalIncidence() const { | |
| 514 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->backSideSolarReflectanceatNormalIncidence(); |
| 515 | } | ||
| 516 | |||
| 517 | 3 | boost::optional<double> StandardGlazing::visibleTransmittanceatNormalIncidence() const { | |
| 518 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->visibleTransmittanceatNormalIncidence(); |
| 519 | } | ||
| 520 | |||
| 521 | 3 | boost::optional<double> StandardGlazing::frontSideVisibleReflectanceatNormalIncidence() const { | |
| 522 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->frontSideVisibleReflectanceatNormalIncidence(); |
| 523 | } | ||
| 524 | |||
| 525 | 3 | boost::optional<double> StandardGlazing::backSideVisibleReflectanceatNormalIncidence() const { | |
| 526 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->backSideVisibleReflectanceatNormalIncidence(); |
| 527 | } | ||
| 528 | |||
| 529 | ✗ | double StandardGlazing::infraredTransmittance() const { | |
| 530 | ✗ | return getImpl<detail::StandardGlazing_Impl>()->infraredTransmittance(); | |
| 531 | } | ||
| 532 | |||
| 533 | 3 | double StandardGlazing::infraredTransmittanceatNormalIncidence() const { | |
| 534 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->infraredTransmittanceatNormalIncidence(); |
| 535 | } | ||
| 536 | |||
| 537 | 3 | bool StandardGlazing::isInfraredTransmittanceatNormalIncidenceDefaulted() const { | |
| 538 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->isInfraredTransmittanceatNormalIncidenceDefaulted(); |
| 539 | } | ||
| 540 | |||
| 541 | 3 | double StandardGlazing::frontSideInfraredHemisphericalEmissivity() const { | |
| 542 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->frontSideInfraredHemisphericalEmissivity(); |
| 543 | } | ||
| 544 | |||
| 545 | 3 | bool StandardGlazing::isFrontSideInfraredHemisphericalEmissivityDefaulted() const { | |
| 546 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->isFrontSideInfraredHemisphericalEmissivityDefaulted(); |
| 547 | } | ||
| 548 | |||
| 549 | 3 | double StandardGlazing::backSideInfraredHemisphericalEmissivity() const { | |
| 550 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->backSideInfraredHemisphericalEmissivity(); |
| 551 | } | ||
| 552 | |||
| 553 | 3 | bool StandardGlazing::isBackSideInfraredHemisphericalEmissivityDefaulted() const { | |
| 554 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->isBackSideInfraredHemisphericalEmissivityDefaulted(); |
| 555 | } | ||
| 556 | |||
| 557 | 3 | double StandardGlazing::conductivity() const { | |
| 558 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->conductivity(); |
| 559 | } | ||
| 560 | |||
| 561 | 3 | bool StandardGlazing::isConductivityDefaulted() const { | |
| 562 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->isConductivityDefaulted(); |
| 563 | } | ||
| 564 | |||
| 565 | 3 | double StandardGlazing::dirtCorrectionFactorforSolarandVisibleTransmittance() const { | |
| 566 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->dirtCorrectionFactorforSolarandVisibleTransmittance(); |
| 567 | } | ||
| 568 | |||
| 569 | 3 | bool StandardGlazing::isDirtCorrectionFactorforSolarandVisibleTransmittanceDefaulted() const { | |
| 570 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->isDirtCorrectionFactorforSolarandVisibleTransmittanceDefaulted(); |
| 571 | } | ||
| 572 | |||
| 573 | 4 | bool StandardGlazing::solarDiffusing() const { | |
| 574 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::StandardGlazing_Impl>()->solarDiffusing(); |
| 575 | } | ||
| 576 | |||
| 577 | 3 | bool StandardGlazing::isSolarDiffusingDefaulted() const { | |
| 578 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::StandardGlazing_Impl>()->isSolarDiffusingDefaulted(); |
| 579 | } | ||
| 580 | |||
| 581 | 428 | bool StandardGlazing::setOpticalDataType(const std::string& opticalDataType) { | |
| 582 |
1/1✓ Branch 3 taken 428 times.
|
428 | return getImpl<detail::StandardGlazing_Impl>()->setOpticalDataType(opticalDataType); |
| 583 | } | ||
| 584 | |||
| 585 | ✗ | bool StandardGlazing::setWindowGlassSpectralDataSetName(const std::string& windowGlassSpectralDataSetName) { | |
| 586 | ✗ | return getImpl<detail::StandardGlazing_Impl>()->setWindowGlassSpectralDataSetName(windowGlassSpectralDataSetName); | |
| 587 | } | ||
| 588 | |||
| 589 | ✗ | void StandardGlazing::resetWindowGlassSpectralDataSetName() { | |
| 590 | ✗ | getImpl<detail::StandardGlazing_Impl>()->resetWindowGlassSpectralDataSetName(); | |
| 591 | ✗ | } | |
| 592 | |||
| 593 | 5 | bool StandardGlazing::setWindowGlassSpectralDataSet(const MaterialPropertyGlazingSpectralData& spectralData) { | |
| 594 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::StandardGlazing_Impl>()->setWindowGlassSpectralDataSet(spectralData); |
| 595 | } | ||
| 596 | |||
| 597 | 2 | void StandardGlazing::resetWindowGlassSpectralDataSet() { | |
| 598 |
1/1✓ Branch 3 taken 2 times.
|
2 | getImpl<detail::StandardGlazing_Impl>()->resetWindowGlassSpectralDataSet(); |
| 599 | 2 | } | |
| 600 | |||
| 601 | 194 | bool StandardGlazing::setSolarTransmittance(double value) { | |
| 602 |
1/1✓ Branch 3 taken 194 times.
|
194 | return getImpl<detail::StandardGlazing_Impl>()->setSolarTransmittance(value); |
| 603 | } | ||
| 604 | |||
| 605 | 1 | bool StandardGlazing::setSolarTransmittanceatNormalIncidence(double solarTransmittanceatNormalIncidence) { | |
| 606 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::StandardGlazing_Impl>()->setSolarTransmittanceatNormalIncidence(solarTransmittanceatNormalIncidence); |
| 607 | } | ||
| 608 | |||
| 609 | 1 | void StandardGlazing::resetSolarTransmittanceatNormalIncidence() { | |
| 610 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::StandardGlazing_Impl>()->resetSolarTransmittanceatNormalIncidence(); |
| 611 | 1 | } | |
| 612 | |||
| 613 | 195 | bool StandardGlazing::setFrontSideSolarReflectanceatNormalIncidence(double frontSideSolarReflectanceatNormalIncidence) { | |
| 614 |
2/2✓ Branch 3 taken 195 times.
✓ Branch 6 taken 195 times.
|
195 | return getImpl<detail::StandardGlazing_Impl>()->setFrontSideSolarReflectanceatNormalIncidence(frontSideSolarReflectanceatNormalIncidence); |
| 615 | } | ||
| 616 | |||
| 617 | 1 | void StandardGlazing::resetFrontSideSolarReflectanceatNormalIncidence() { | |
| 618 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::StandardGlazing_Impl>()->resetFrontSideSolarReflectanceatNormalIncidence(); |
| 619 | 1 | } | |
| 620 | |||
| 621 | 195 | bool StandardGlazing::setBackSideSolarReflectanceatNormalIncidence(double backSideSolarReflectanceatNormalIncidence) { | |
| 622 |
2/2✓ Branch 3 taken 195 times.
✓ Branch 6 taken 195 times.
|
195 | return getImpl<detail::StandardGlazing_Impl>()->setBackSideSolarReflectanceatNormalIncidence(backSideSolarReflectanceatNormalIncidence); |
| 623 | } | ||
| 624 | |||
| 625 | 1 | void StandardGlazing::resetBackSideSolarReflectanceatNormalIncidence() { | |
| 626 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::StandardGlazing_Impl>()->resetBackSideSolarReflectanceatNormalIncidence(); |
| 627 | 1 | } | |
| 628 | |||
| 629 | 194 | bool StandardGlazing::setVisibleTransmittance(double value) { | |
| 630 |
1/1✓ Branch 3 taken 194 times.
|
194 | return getImpl<detail::StandardGlazing_Impl>()->setVisibleTransmittance(value); |
| 631 | } | ||
| 632 | |||
| 633 | 1 | bool StandardGlazing::setVisibleTransmittanceatNormalIncidence(double visibleTransmittanceatNormalIncidence) { | |
| 634 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::StandardGlazing_Impl>()->setVisibleTransmittanceatNormalIncidence(visibleTransmittanceatNormalIncidence); |
| 635 | } | ||
| 636 | |||
| 637 | 1 | void StandardGlazing::resetVisibleTransmittanceatNormalIncidence() { | |
| 638 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::StandardGlazing_Impl>()->resetVisibleTransmittanceatNormalIncidence(); |
| 639 | 1 | } | |
| 640 | |||
| 641 | 195 | bool StandardGlazing::setFrontSideVisibleReflectanceatNormalIncidence(double frontSideVisibleReflectanceatNormalIncidence) { | |
| 642 |
2/2✓ Branch 3 taken 195 times.
✓ Branch 6 taken 195 times.
|
195 | return getImpl<detail::StandardGlazing_Impl>()->setFrontSideVisibleReflectanceatNormalIncidence(frontSideVisibleReflectanceatNormalIncidence); |
| 643 | } | ||
| 644 | |||
| 645 | 1 | void StandardGlazing::resetFrontSideVisibleReflectanceatNormalIncidence() { | |
| 646 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::StandardGlazing_Impl>()->resetFrontSideVisibleReflectanceatNormalIncidence(); |
| 647 | 1 | } | |
| 648 | |||
| 649 | 195 | bool StandardGlazing::setBackSideVisibleReflectanceatNormalIncidence(double backSideVisibleReflectanceatNormalIncidence) { | |
| 650 |
2/2✓ Branch 3 taken 195 times.
✓ Branch 6 taken 195 times.
|
195 | return getImpl<detail::StandardGlazing_Impl>()->setBackSideVisibleReflectanceatNormalIncidence(backSideVisibleReflectanceatNormalIncidence); |
| 651 | } | ||
| 652 | |||
| 653 | 1 | void StandardGlazing::resetBackSideVisibleReflectanceatNormalIncidence() { | |
| 654 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::StandardGlazing_Impl>()->resetBackSideVisibleReflectanceatNormalIncidence(); |
| 655 | 1 | } | |
| 656 | |||
| 657 | 194 | bool StandardGlazing::setInfraredTransmittance(double value) { | |
| 658 |
1/1✓ Branch 3 taken 194 times.
|
194 | return getImpl<detail::StandardGlazing_Impl>()->setInfraredTransmittance(value); |
| 659 | } | ||
| 660 | |||
| 661 | 1 | bool StandardGlazing::setInfraredTransmittanceatNormalIncidence(double infraredTransmittanceatNormalIncidence) { | |
| 662 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::StandardGlazing_Impl>()->setInfraredTransmittanceatNormalIncidence(infraredTransmittanceatNormalIncidence); |
| 663 | } | ||
| 664 | |||
| 665 | 1 | void StandardGlazing::resetInfraredTransmittanceatNormalIncidence() { | |
| 666 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::StandardGlazing_Impl>()->resetInfraredTransmittanceatNormalIncidence(); |
| 667 | 1 | } | |
| 668 | |||
| 669 | 195 | bool StandardGlazing::setFrontSideInfraredHemisphericalEmissivity(double frontSideInfraredHemisphericalEmissivity) { | |
| 670 |
1/1✓ Branch 3 taken 195 times.
|
195 | return getImpl<detail::StandardGlazing_Impl>()->setFrontSideInfraredHemisphericalEmissivity(frontSideInfraredHemisphericalEmissivity); |
| 671 | } | ||
| 672 | |||
| 673 | 1 | void StandardGlazing::resetFrontSideInfraredHemisphericalEmissivity() { | |
| 674 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::StandardGlazing_Impl>()->resetFrontSideInfraredHemisphericalEmissivity(); |
| 675 | 1 | } | |
| 676 | |||
| 677 | 195 | bool StandardGlazing::setBackSideInfraredHemisphericalEmissivity(double backSideInfraredHemisphericalEmissivity) { | |
| 678 |
1/1✓ Branch 3 taken 195 times.
|
195 | return getImpl<detail::StandardGlazing_Impl>()->setBackSideInfraredHemisphericalEmissivity(backSideInfraredHemisphericalEmissivity); |
| 679 | } | ||
| 680 | |||
| 681 | 1 | void StandardGlazing::resetBackSideInfraredHemisphericalEmissivity() { | |
| 682 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::StandardGlazing_Impl>()->resetBackSideInfraredHemisphericalEmissivity(); |
| 683 | 1 | } | |
| 684 | |||
| 685 | 1 | bool StandardGlazing::setConductivity(double conductivity) { | |
| 686 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::StandardGlazing_Impl>()->setConductivity(conductivity); |
| 687 | } | ||
| 688 | |||
| 689 | 1 | void StandardGlazing::resetConductivity() { | |
| 690 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::StandardGlazing_Impl>()->resetConductivity(); |
| 691 | 1 | } | |
| 692 | |||
| 693 | 10 | bool StandardGlazing::setDirtCorrectionFactorforSolarandVisibleTransmittance(double dirtCorrectionFactorforSolarandVisibleTransmittance) { | |
| 694 |
1/1✓ Branch 3 taken 10 times.
|
20 | return getImpl<detail::StandardGlazing_Impl>()->setDirtCorrectionFactorforSolarandVisibleTransmittance( |
| 695 | 20 | dirtCorrectionFactorforSolarandVisibleTransmittance); | |
| 696 | } | ||
| 697 | |||
| 698 | 1 | void StandardGlazing::resetDirtCorrectionFactorforSolarandVisibleTransmittance() { | |
| 699 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::StandardGlazing_Impl>()->resetDirtCorrectionFactorforSolarandVisibleTransmittance(); |
| 700 | 1 | } | |
| 701 | |||
| 702 | 11 | bool StandardGlazing::setSolarDiffusing(bool solarDiffusing) { | |
| 703 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::StandardGlazing_Impl>()->setSolarDiffusing(solarDiffusing); |
| 704 | } | ||
| 705 | |||
| 706 | ✗ | void StandardGlazing::setSolarDiffusingNoFail(bool solarDiffusing) { | |
| 707 | ✗ | bool result = getImpl<detail::StandardGlazing_Impl>()->setSolarDiffusing(solarDiffusing); | |
| 708 | ✗ | OS_ASSERT(result); | |
| 709 | ✗ | } | |
| 710 | |||
| 711 | 1 | void StandardGlazing::resetSolarDiffusing() { | |
| 712 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::StandardGlazing_Impl>()->resetSolarDiffusing(); |
| 713 | 1 | } | |
| 714 | |||
| 715 | ✗ | double StandardGlazing::thermalConductivity() const { | |
| 716 | ✗ | return getImpl<detail::StandardGlazing_Impl>()->thermalConductivity(); | |
| 717 | } | ||
| 718 | |||
| 719 | ✗ | double StandardGlazing::thermalConductance() const { | |
| 720 | ✗ | return getImpl<detail::StandardGlazing_Impl>()->thermalConductance(); | |
| 721 | } | ||
| 722 | |||
| 723 | ✗ | double StandardGlazing::thermalResistivity() const { | |
| 724 | ✗ | return getImpl<detail::StandardGlazing_Impl>()->thermalResistivity(); | |
| 725 | } | ||
| 726 | |||
| 727 | ✗ | double StandardGlazing::thermalResistance() const { | |
| 728 | ✗ | return getImpl<detail::StandardGlazing_Impl>()->thermalResistance(); | |
| 729 | } | ||
| 730 | |||
| 731 | ✗ | double StandardGlazing::interiorVisibleReflectance() const { | |
| 732 | ✗ | return getImpl<detail::StandardGlazing_Impl>()->interiorVisibleReflectance(); | |
| 733 | } | ||
| 734 | |||
| 735 | ✗ | double StandardGlazing::exteriorVisibleReflectance() const { | |
| 736 | ✗ | return getImpl<detail::StandardGlazing_Impl>()->exteriorVisibleReflectance(); | |
| 737 | } | ||
| 738 | |||
| 739 | 194 | bool StandardGlazing::setThermalConductivity(double value) { | |
| 740 |
1/1✓ Branch 3 taken 194 times.
|
194 | return getImpl<detail::StandardGlazing_Impl>()->setThermalConductivity(value); |
| 741 | } | ||
| 742 | |||
| 743 | ✗ | bool StandardGlazing::setThermalConductance(double value) { | |
| 744 | ✗ | return getImpl<detail::StandardGlazing_Impl>()->setThermalConductance(value); | |
| 745 | } | ||
| 746 | |||
| 747 | ✗ | bool StandardGlazing::setThermalResistivity(double value) { | |
| 748 | ✗ | return getImpl<detail::StandardGlazing_Impl>()->setThermalResistivity(value); | |
| 749 | } | ||
| 750 | |||
| 751 | ✗ | bool StandardGlazing::setThermalResistance(double value) { | |
| 752 | ✗ | return getImpl<detail::StandardGlazing_Impl>()->setThermalResistance(value); | |
| 753 | } | ||
| 754 | |||
| 755 | /// @cond | ||
| 756 |
1/1✓ Branch 3 taken 119 times.
|
119 | StandardGlazing::StandardGlazing(std::shared_ptr<detail::StandardGlazing_Impl> impl) : Glazing(std::move(impl)) {} |
| 757 | /// @endcond | ||
| 758 | |||
| 759 | } // namespace model | ||
| 760 | } // namespace openstudio | ||
| 761 |