src/model/StandardGlazing_Impl.hpp
| 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 | #ifndef MODEL_STANDARDGLAZING_IMPL_HPP | ||
| 7 | #define MODEL_STANDARDGLAZING_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "Glazing_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class MaterialPropertyGlazingSpectralData; | ||
| 16 | |||
| 17 | namespace detail { | ||
| 18 | |||
| 19 | /** StandardGlazing_Impl is a Glazing_Impl that is the implementation class for StandardGlazing.*/ | ||
| 20 | class MODEL_API StandardGlazing_Impl : public Glazing_Impl | ||
| 21 | { | ||
| 22 | |||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | StandardGlazing_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | StandardGlazing_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | StandardGlazing_Impl(const StandardGlazing_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 454 | virtual ~StandardGlazing_Impl() override = default; | |
| 34 | |||
| 35 | //@} | ||
| 36 | |||
| 37 | /** @name Virtual Methods */ | ||
| 38 | //@{ | ||
| 39 | |||
| 40 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 41 | |||
| 42 | virtual IddObjectType iddObjectType() const override; | ||
| 43 | |||
| 44 | //@} | ||
| 45 | /** @name Getters */ | ||
| 46 | //@{ | ||
| 47 | |||
| 48 | std::string opticalDataType() const; | ||
| 49 | |||
| 50 | boost::optional<std::string> windowGlassSpectralDataSetName() const; | ||
| 51 | |||
| 52 | boost::optional<MaterialPropertyGlazingSpectralData> windowGlassSpectralDataSet() const; | ||
| 53 | |||
| 54 | /** Get the thickness of the material. */ | ||
| 55 | virtual double thickness() const override; | ||
| 56 | |||
| 57 | double solarTransmittance() const; | ||
| 58 | |||
| 59 | boost::optional<double> solarTransmittanceatNormalIncidence() const; | ||
| 60 | |||
| 61 | boost::optional<double> frontSideSolarReflectanceatNormalIncidence() const; | ||
| 62 | |||
| 63 | boost::optional<double> backSideSolarReflectanceatNormalIncidence() const; | ||
| 64 | |||
| 65 | virtual boost::optional<double> getVisibleTransmittance() const override; | ||
| 66 | |||
| 67 | boost::optional<double> visibleTransmittanceatNormalIncidence() const; | ||
| 68 | |||
| 69 | boost::optional<double> frontSideVisibleReflectanceatNormalIncidence() const; | ||
| 70 | |||
| 71 | boost::optional<double> backSideVisibleReflectanceatNormalIncidence() const; | ||
| 72 | |||
| 73 | double infraredTransmittance() const; | ||
| 74 | |||
| 75 | double infraredTransmittanceatNormalIncidence() const; | ||
| 76 | |||
| 77 | bool isInfraredTransmittanceatNormalIncidenceDefaulted() const; | ||
| 78 | |||
| 79 | double frontSideInfraredHemisphericalEmissivity() const; | ||
| 80 | |||
| 81 | bool isFrontSideInfraredHemisphericalEmissivityDefaulted() const; | ||
| 82 | |||
| 83 | double backSideInfraredHemisphericalEmissivity() const; | ||
| 84 | |||
| 85 | bool isBackSideInfraredHemisphericalEmissivityDefaulted() const; | ||
| 86 | |||
| 87 | double conductivity() const; | ||
| 88 | |||
| 89 | bool isConductivityDefaulted() const; | ||
| 90 | |||
| 91 | double dirtCorrectionFactorforSolarandVisibleTransmittance() const; | ||
| 92 | |||
| 93 | bool isDirtCorrectionFactorforSolarandVisibleTransmittanceDefaulted() const; | ||
| 94 | |||
| 95 | bool solarDiffusing() const; | ||
| 96 | |||
| 97 | bool isSolarDiffusingDefaulted() const; | ||
| 98 | |||
| 99 | //@} | ||
| 100 | /** @name Setters */ | ||
| 101 | //@{ | ||
| 102 | |||
| 103 | bool setOpticalDataType(const std::string& opticalDataType); | ||
| 104 | |||
| 105 | bool setWindowGlassSpectralDataSetName(boost::optional<std::string> windowGlassSpectralDataSetName); | ||
| 106 | void resetWindowGlassSpectralDataSetName(); | ||
| 107 | |||
| 108 | bool setWindowGlassSpectralDataSet(const MaterialPropertyGlazingSpectralData& spectralData); | ||
| 109 | void resetWindowGlassSpectralDataSet(); | ||
| 110 | |||
| 111 | /** Set thickness to value (m). */ | ||
| 112 | virtual bool setThickness(double thickness) override; | ||
| 113 | |||
| 114 | bool setSolarTransmittance(double value); | ||
| 115 | |||
| 116 | bool setSolarTransmittanceatNormalIncidence(boost::optional<double> solarTransmittanceatNormalIncidence); | ||
| 117 | |||
| 118 | void resetSolarTransmittanceatNormalIncidence(); | ||
| 119 | |||
| 120 | bool setFrontSideSolarReflectanceatNormalIncidence(boost::optional<double> frontSideSolarReflectanceatNormalIncidence); | ||
| 121 | |||
| 122 | void resetFrontSideSolarReflectanceatNormalIncidence(); | ||
| 123 | |||
| 124 | bool setBackSideSolarReflectanceatNormalIncidence(boost::optional<double> backSideSolarReflectanceatNormalIncidence); | ||
| 125 | |||
| 126 | void resetBackSideSolarReflectanceatNormalIncidence(); | ||
| 127 | |||
| 128 | bool setVisibleTransmittance(double value); | ||
| 129 | |||
| 130 | bool setVisibleTransmittanceatNormalIncidence(boost::optional<double> visibleTransmittanceatNormalIncidence); | ||
| 131 | |||
| 132 | void resetVisibleTransmittanceatNormalIncidence(); | ||
| 133 | |||
| 134 | bool setFrontSideVisibleReflectanceatNormalIncidence(boost::optional<double> frontSideVisibleReflectanceatNormalIncidence); | ||
| 135 | |||
| 136 | void resetFrontSideVisibleReflectanceatNormalIncidence(); | ||
| 137 | |||
| 138 | bool setBackSideVisibleReflectanceatNormalIncidence(boost::optional<double> backSideVisibleReflectanceatNormalIncidence); | ||
| 139 | |||
| 140 | void resetBackSideVisibleReflectanceatNormalIncidence(); | ||
| 141 | |||
| 142 | bool setInfraredTransmittance(double value); | ||
| 143 | |||
| 144 | bool setInfraredTransmittanceatNormalIncidence(double infraredTransmittanceatNormalIncidence); | ||
| 145 | |||
| 146 | void resetInfraredTransmittanceatNormalIncidence(); | ||
| 147 | |||
| 148 | bool setFrontSideInfraredHemisphericalEmissivity(double frontSideInfraredHemisphericalEmissivity); | ||
| 149 | |||
| 150 | void resetFrontSideInfraredHemisphericalEmissivity(); | ||
| 151 | |||
| 152 | bool setBackSideInfraredHemisphericalEmissivity(double backSideInfraredHemisphericalEmissivity); | ||
| 153 | |||
| 154 | void resetBackSideInfraredHemisphericalEmissivity(); | ||
| 155 | |||
| 156 | bool setConductivity(double conductivity); | ||
| 157 | |||
| 158 | void resetConductivity(); | ||
| 159 | |||
| 160 | bool setDirtCorrectionFactorforSolarandVisibleTransmittance(double dirtCorrectionFactorforSolarandVisibleTransmittance); | ||
| 161 | |||
| 162 | void resetDirtCorrectionFactorforSolarandVisibleTransmittance(); | ||
| 163 | |||
| 164 | bool setSolarDiffusing(bool solarDiffusing); | ||
| 165 | |||
| 166 | void resetSolarDiffusing(); | ||
| 167 | |||
| 168 | //@} | ||
| 169 | /** @name Other */ | ||
| 170 | //@{ | ||
| 171 | |||
| 172 | /** The conductivity of the material in W/m*K. */ | ||
| 173 | double thermalConductivity() const; | ||
| 174 | |||
| 175 | /** The conductance of the material in W/m^2*K. */ | ||
| 176 | double thermalConductance() const; | ||
| 177 | |||
| 178 | /** The resistivity of the material in m*K/W. */ | ||
| 179 | double thermalResistivity() const; | ||
| 180 | |||
| 181 | /** The resistance of the material in m^2*K/W. */ | ||
| 182 | double thermalResistance() const; | ||
| 183 | |||
| 184 | double interiorVisibleReflectance() const; | ||
| 185 | |||
| 186 | double exteriorVisibleReflectance() const; | ||
| 187 | |||
| 188 | virtual boost::optional<double> interiorVisibleAbsorptance() const override; | ||
| 189 | |||
| 190 | virtual boost::optional<double> exteriorVisibleAbsorptance() const override; | ||
| 191 | |||
| 192 | /** Sets the conductivity of the material in W/m*K, if possible. */ | ||
| 193 | bool setThermalConductivity(double value); | ||
| 194 | |||
| 195 | /** Sets the conductance of the material in W/m^2*K, if possible. */ | ||
| 196 | bool setThermalConductance(double value); | ||
| 197 | |||
| 198 | /** Sets the resistivity of the material in m*K/W, if possible. */ | ||
| 199 | bool setThermalResistivity(double value); | ||
| 200 | |||
| 201 | /** Sets the resistance of the material in m^2*K/W, if possible. */ | ||
| 202 | bool setThermalResistance(double value); | ||
| 203 | |||
| 204 | //@} | ||
| 205 | protected: | ||
| 206 | private: | ||
| 207 | − | REGISTER_LOGGER("openstudio.model.StandardGlazing"); | |
| 208 | |||
| 209 | std::vector<std::string> opticalDataTypeValues() const; | ||
| 210 | }; | ||
| 211 | |||
| 212 | } // namespace detail | ||
| 213 | |||
| 214 | } // namespace model | ||
| 215 | } // namespace openstudio | ||
| 216 | |||
| 217 | #endif // MODEL_STANDARDGLAZING_IMPL_HPP | ||
| 218 |