GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 60.0% 3 / 1 / 6
Functions: 60.0% 3 / 1 / 6
Branches: -% 0 / 1 / 1

src/model/MaterialPropertyMoisturePenetrationDepthSettings.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_MATERIALPROPERTYMOISTUREPENETRATIONDEPTHSETTINGS_HPP
7 #define MODEL_MATERIALPROPERTYMOISTUREPENETRATIONDEPTHSETTINGS_HPP
8
9 #include <vector>
10 #include "ModelAPI.hpp"
11 #include "ModelObject.hpp"
12
13 namespace openstudio {
14 namespace model {
15
16 class Material;
17 class StandardOpaqueMaterial;
18 class MasslessOpaqueMaterial;
19
20 namespace detail {
21
22 class MaterialPropertyMoisturePenetrationDepthSettings_Impl;
23
24 } // namespace detail
25
26 /** MaterialPropertyMoisturePenetrationDepthSettings is a ModelObject that wraps the OpenStudio IDD object 'OS:MaterialProperty:MoisturePenetrationDepth:Settings'. */
27 class MODEL_API MaterialPropertyMoisturePenetrationDepthSettings : public ModelObject
28 {
29 public:
30 /** @name Constructors and Destructors */
31 //@{
32
33 explicit MaterialPropertyMoisturePenetrationDepthSettings(StandardOpaqueMaterial& material, double waterVaporDiffusionResistanceFactor,
34 double moistureEquationCoefficientA, double moistureEquationCoefficientB,
35 double moistureEquationCoefficientC, double moistureEquationCoefficientD,
36 double coatingLayerThickness, double coatingLayerWaterVaporDiffusionResistanceFactor);
37
38 explicit MaterialPropertyMoisturePenetrationDepthSettings(MasslessOpaqueMaterial& material, double waterVaporDiffusionResistanceFactor,
39 double moistureEquationCoefficientA, double moistureEquationCoefficientB,
40 double moistureEquationCoefficientC, double moistureEquationCoefficientD,
41 double coatingLayerThickness, double coatingLayerWaterVaporDiffusionResistanceFactor);
42
43 49 virtual ~MaterialPropertyMoisturePenetrationDepthSettings() override = default;
44 // Default the copy and move operators because the virtual dtor is explicit
45 13 MaterialPropertyMoisturePenetrationDepthSettings(const MaterialPropertyMoisturePenetrationDepthSettings& other) = default;
46 17 MaterialPropertyMoisturePenetrationDepthSettings(MaterialPropertyMoisturePenetrationDepthSettings&& other) = default;
47 ✗ MaterialPropertyMoisturePenetrationDepthSettings& operator=(const MaterialPropertyMoisturePenetrationDepthSettings&) = default;
48 ✗ MaterialPropertyMoisturePenetrationDepthSettings& operator=(MaterialPropertyMoisturePenetrationDepthSettings&&) = default;
49
50 //@}
51
52 static IddObjectType iddObjectType();
53
54 /** @name Getters */
55 //@{
56
57 std::string materialName() const;
58
59 Material material() const;
60
61 double waterVaporDiffusionResistanceFactor() const;
62
63 double moistureEquationCoefficientA() const;
64
65 double moistureEquationCoefficientB() const;
66
67 double moistureEquationCoefficientC() const;
68
69 double moistureEquationCoefficientD() const;
70
71 std::vector<double> moistureEquationCoefficients() const;
72
73 boost::optional<double> surfaceLayerPenetrationDepth();
74
75 bool isSurfaceLayerPenetrationDepthAutocalculated();
76
77 boost::optional<double> deepLayerPenetrationDepth();
78
79 bool isDeepLayerPenetrationDepthAutocalculated();
80
81 double coatingLayerThickness() const;
82
83 double coatingLayerWaterVaporDiffusionResistanceFactor() const;
84
85 //@}
86 /** @name Setters */
87 //@{
88
89 bool setWaterVaporDiffusionResistanceFactor(double waterVaporDiffusionResistanceFactor);
90
91 bool setMoistureEquationCoefficientA(double moistureEquationCoefficientA);
92
93 bool setMoistureEquationCoefficientB(double moistureEquationCoefficientB);
94
95 bool setMoistureEquationCoefficientC(double moistureEquationCoefficientC);
96
97 bool setMoistureEquationCoefficientD(double moistureEquationCoefficientD);
98
99 bool setMoistureEquationCoefficients(double moistureEquationCoefficientA, double moistureEquationCoefficientB,
100 double moistureEquationCoefficientC, double moistureEquationCoefficientD);
101
102 bool setSurfaceLayerPenetrationDepth(double surfaceLayerPenetrationDepth);
103
104 void autocalculateSurfaceLayerPenetrationDepth();
105
106 bool setDeepLayerPenetrationDepth(double deepLayerPenetrationDepth);
107
108 void autocalculateDeepLayerPenetrationDepth();
109
110 bool setCoatingLayerThickness(double coatingLayerThickness);
111
112 bool setCoatingLayerWaterVaporDiffusionResistanceFactor(double coatingLayerWaterVaporDiffusionResistanceFactor);
113
114 //@}
115 /** @name Other */
116 //@{
117
118 //@}
119 protected:
120 /// @cond
121 using ImplType = detail::MaterialPropertyMoisturePenetrationDepthSettings_Impl;
122
123 explicit MaterialPropertyMoisturePenetrationDepthSettings(std::shared_ptr<detail::MaterialPropertyMoisturePenetrationDepthSettings_Impl> impl);
124
125 friend class detail::MaterialPropertyMoisturePenetrationDepthSettings_Impl;
126 friend class Model;
127 friend class IdfObject;
128 friend class openstudio::detail::IdfObject_Impl;
129 /// @endcond
130 private:
131 − REGISTER_LOGGER("openstudio.model.MaterialPropertyMoisturePenetrationDepthSettings");
132 };
133
134 /** \relates MaterialPropertyMoisturePenetrationDepthSettings*/
135 using OptionalMaterialPropertyMoisturePenetrationDepthSettings = boost::optional<MaterialPropertyMoisturePenetrationDepthSettings>;
136
137 /** \relates MaterialPropertyMoisturePenetrationDepthSettings*/
138 using MaterialPropertyMoisturePenetrationDepthSettingsVector = std::vector<MaterialPropertyMoisturePenetrationDepthSettings>;
139
140 } // namespace model
141 } // namespace openstudio
142
143 #endif // MODEL_MATERIALPROPERTYMOISTUREPENETRATIONDEPTHSETTINGS_HPP
144