GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 5 / 0 / 5
Functions: 100.0% 5 / 0 / 5
Branches: -% 0 / 0 / 0

src/model/FenestrationMaterial.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_FENESTRATIONMATERIAL_HPP
7 #define MODEL_FENESTRATIONMATERIAL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "Material.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16 class FenestrationMaterial_Impl;
17 }
18
19 /** FenestrationMaterial is a Material that serves as a base class for materials that can be
20 * used in fenestration constructions. FenestrationMaterial also serves as a repository for
21 * a number of pieces of fenestration-related data used by EnergyPlus. */
22 class MODEL_API FenestrationMaterial : public Material
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 3613 virtual ~FenestrationMaterial() override = default;
29 // Default the copy and move operators because the virtual dtor is explicit
30 575 FenestrationMaterial(const FenestrationMaterial& other) = default;
31 1269 FenestrationMaterial(FenestrationMaterial&& other) = default;
32 9 FenestrationMaterial& operator=(const FenestrationMaterial&) = default;
33 4 FenestrationMaterial& operator=(FenestrationMaterial&&) = default;
34
35 //@}
36 /** @name Static Methods */
37 //@{
38
39 // ETH@20110615 Remove const & return values.
40
41 /** Returns the inside air temperature used by EnergyPlus for calculating fenestration
42 * u-factors (K). */
43 static double ufactorInsideAirTemperature();
44
45 /** Returns the outside air temperature used by EnergyPlus for calculating fenestration
46 * u-factors (K). */
47 static double ufactorOutsideAirTemperature();
48
49 /** Returns the conductivity coefficients for air. */
50 static const std::vector<double> airThermalConductivityCoefficients();
51
52 /** Returns the viscosity coefficients for air. */
53 static const std::vector<double> airViscosityCoefficients();
54
55 /** Returns the specific heat coefficients for air. */
56 static const std::vector<double> airSpecificHeatCoefficients();
57
58 /** The molecular weight of air (u). */
59 static double airMolecularWeight();
60
61 /** Returns the conductivity coefficients for argon. */
62 static const std::vector<double> argonThermalConductivityCoefficients();
63
64 /** Returns the viscosity coefficients for argon. */
65 static const std::vector<double> argonViscosityCoefficients();
66
67 /** Returns the specific heat coefficients for argon. */
68 static const std::vector<double> argonSpecificHeatCoefficients();
69
70 /** The molecular weight of argon (u). */
71 static double argonMolecularWeight();
72
73 /** Returns the conductivity coefficients for krypton. */
74 static const std::vector<double> kryptonThermalConductivityCoefficients();
75
76 /** Returns the viscosity coefficients for krypton. */
77 static const std::vector<double> kryptonViscosityCoefficients();
78
79 /** Returns the specific heat coefficients for krypton. */
80 static const std::vector<double> kryptonSpecificHeatCoefficients();
81
82 /** The molecular weight of krypton (u). */
83 static double kryptonMolecularWeight();
84
85 /** Returns the conductivity coefficients for xenon. */
86 static const std::vector<double> xenonThermalConductivityCoefficients();
87
88 /** Returns the viscosity coefficients for xenon. */
89 static const std::vector<double> xenonViscosityCoefficients();
90
91 /** Returns the specific heat coefficients for xenon. */
92 static const std::vector<double> xenonSpecificHeatCoefficients();
93
94 /** The molecular weight of xenon (u). */
95 static double xenonMolecularWeight();
96
97 //@}
98 protected:
99 /// @cond
100 using ImplType = detail::FenestrationMaterial_Impl;
101
102 friend class Model;
103 friend class openstudio::IdfObject;
104 friend class detail::FenestrationMaterial_Impl;
105
106 FenestrationMaterial(IddObjectType type, const Model& model);
107
108 explicit FenestrationMaterial(std::shared_ptr<detail::FenestrationMaterial_Impl> impl);
109
110 /// @endcond
111 private:
112 REGISTER_LOGGER("openstudio.model.FenestrationMaterial");
113 };
114
115 /** \relates FenestrationMaterial */
116 using OptionalFenestrationMaterial = boost::optional<FenestrationMaterial>;
117
118 /** \relates FenestrationMaterial */
119 using FenestrationMaterialVector = std::vector<FenestrationMaterial>;
120
121 } // namespace model
122 } // namespace openstudio
123
124 #endif // MODEL_FENESTRATIONMATERIAL_HPP
125