src/model/OpaqueMaterial_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_OPAQUEMATERIAL_IMPL_HPP | ||
| 7 | #define MODEL_OPAQUEMATERIAL_IMPL_HPP | ||
| 8 | |||
| 9 | #include "Material_Impl.hpp" | ||
| 10 | |||
| 11 | namespace openstudio { | ||
| 12 | namespace model { | ||
| 13 | |||
| 14 | // forward declaration | ||
| 15 | class OpaqueMaterial; | ||
| 16 | |||
| 17 | namespace detail { | ||
| 18 | |||
| 19 | class MODEL_API OpaqueMaterial_Impl : public Material_Impl | ||
| 20 | { | ||
| 21 | |||
| 22 | public: | ||
| 23 | // Construct completely new object. | ||
| 24 | OpaqueMaterial_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 25 | |||
| 26 | // Construct from existing workspace object (typically when Model is being constructed | ||
| 27 | // from Workspace). | ||
| 28 | OpaqueMaterial_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | // Clone copy constructor. | ||
| 31 | OpaqueMaterial_Impl(const OpaqueMaterial_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 6695 | virtual ~OpaqueMaterial_Impl() override = default; | |
| 34 | |||
| 35 | /** @name Getters */ | ||
| 36 | //@{ | ||
| 37 | |||
| 38 | /** The conductivity of the material in W/m*K. */ | ||
| 39 | virtual double thermalConductivity() const = 0; | ||
| 40 | |||
| 41 | /** The conductance of the material in W/m^2*K. */ | ||
| 42 | virtual double thermalConductance() const = 0; | ||
| 43 | |||
| 44 | /** The resistivity of the material in m*K/W. */ | ||
| 45 | virtual double thermalResistivity() const = 0; | ||
| 46 | |||
| 47 | /** The resistance of the material in m^2*K/W. */ | ||
| 48 | virtual double thermalResistance() const = 0; | ||
| 49 | |||
| 50 | virtual double thermalAbsorptance() const = 0; | ||
| 51 | |||
| 52 | virtual boost::optional<double> thermalReflectance() const = 0; | ||
| 53 | |||
| 54 | virtual double solarAbsorptance() const = 0; | ||
| 55 | |||
| 56 | virtual boost::optional<double> solarReflectance() const = 0; | ||
| 57 | |||
| 58 | virtual boost::optional<double> getVisibleTransmittance() const override; | ||
| 59 | |||
| 60 | virtual double visibleAbsorptance() const = 0; | ||
| 61 | |||
| 62 | virtual boost::optional<double> interiorVisibleAbsorptance() const override; | ||
| 63 | |||
| 64 | virtual boost::optional<double> exteriorVisibleAbsorptance() const override; | ||
| 65 | |||
| 66 | virtual boost::optional<double> visibleReflectance() const = 0; | ||
| 67 | |||
| 68 | //@} | ||
| 69 | /** @name Setters */ | ||
| 70 | //@{ | ||
| 71 | |||
| 72 | /** Sets the conductivity of the material in W/m*K, if possible. */ | ||
| 73 | virtual bool setThermalConductivity(double value) = 0; | ||
| 74 | |||
| 75 | /** Sets the conductance of the material in W/m^2*K, if possible. */ | ||
| 76 | virtual bool setThermalConductance(double value) = 0; | ||
| 77 | |||
| 78 | /** Sets the resistivity of the material in m*K/W, if possible. */ | ||
| 79 | virtual bool setThermalResistivity(double value) = 0; | ||
| 80 | |||
| 81 | /** Sets the resistance of the material in m^2*K/W, if possible. */ | ||
| 82 | virtual bool setThermalResistance(double value) = 0; | ||
| 83 | |||
| 84 | virtual bool setThermalAbsorptance(double value) = 0; | ||
| 85 | |||
| 86 | virtual bool setThermalReflectance(boost::optional<double> value) = 0; | ||
| 87 | |||
| 88 | virtual bool setSolarAbsorptance(boost::optional<double> value) = 0; | ||
| 89 | |||
| 90 | virtual bool setSolarReflectance(boost::optional<double> value) = 0; | ||
| 91 | |||
| 92 | virtual bool setVisibleAbsorptance(boost::optional<double> value) = 0; | ||
| 93 | |||
| 94 | virtual bool setVisibleReflectance(boost::optional<double> value) = 0; | ||
| 95 | |||
| 96 | //@} | ||
| 97 | /** @name Queries */ | ||
| 98 | //@{ | ||
| 99 | |||
| 100 | /** Energy it takes to raise the temperature of this material 1 K (J/m^2*K). Equal to | ||
| 101 | * specificHeat() * density() * thickness(). */ | ||
| 102 | virtual boost::optional<double> heatCapacity() const; | ||
| 103 | |||
| 104 | //@} | ||
| 105 | |||
| 106 | private: | ||
| 107 | REGISTER_LOGGER("openstudio.model.OpaqueMaterial"); | ||
| 108 | }; | ||
| 109 | |||
| 110 | } // namespace detail | ||
| 111 | |||
| 112 | } // namespace model | ||
| 113 | } // namespace openstudio | ||
| 114 | |||
| 115 | #endif // MODEL_OPAQUEMATERIAL_IMPL_HPP | ||
| 116 |