GCC Code Coverage Report


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

src/model/AirflowNetworkDuct_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_AIRFLOWNETWORKDUCT_IMPL_HPP
7 #define MODEL_AIRFLOWNETWORKDUCT_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "AirflowNetworkComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16
17 /** AirflowNetworkDuct_Impl is a ModelObject_Impl that is the implementation class for AirflowNetworkDuct.*/
18 class MODEL_API AirflowNetworkDuct_Impl : public AirflowNetworkComponent_Impl
19 {
20 public:
21 /** @name Constructors and Destructors */
22 //@{
23
24 AirflowNetworkDuct_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
25
26 AirflowNetworkDuct_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
27
28 AirflowNetworkDuct_Impl(const AirflowNetworkDuct_Impl& other, Model_Impl* model, bool keepHandle);
29
30 1 virtual ~AirflowNetworkDuct_Impl() override = default;
31
32 //@}
33 /** @name Virtual Methods */
34 //@{
35
36 virtual const std::vector<std::string>& outputVariableNames() const override;
37
38 virtual IddObjectType iddObjectType() const override;
39
40 //@}
41 /** @name Getters */
42 //@{
43
44 double ductLength() const;
45
46 double hydraulicDiameter() const;
47
48 double crossSectionArea() const;
49
50 double surfaceRoughness() const;
51
52 bool isSurfaceRoughnessDefaulted() const;
53
54 double coefficientforLocalDynamicLossDuetoFitting() const;
55
56 bool isCoefficientforLocalDynamicLossDuetoFittingDefaulted() const;
57
58 double ductWallHeatTransmittanceCoefficient() const;
59
60 bool isDuctWallHeatTransmittanceCoefficientDefaulted() const;
61
62 double insideConvectionCoefficient() const;
63
64 bool isInsideConvectionCoefficientDefaulted() const;
65
66 double outsideConvectionCoefficient() const;
67
68 bool isOutsideConvectionCoefficientDefaulted() const;
69
70 double overallMoistureTransmittanceCoefficientfromAirtoAir() const;
71
72 bool isOverallMoistureTransmittanceCoefficientfromAirtoAirDefaulted() const;
73
74 //@}
75 /** @name Setters */
76 //@{
77
78 bool setDuctLength(double ductLength);
79
80 bool setHydraulicDiameter(double hydraulicDiameter);
81
82 bool setCrossSectionArea(double crossSectionArea);
83
84 bool setSurfaceRoughness(double surfaceRoughness);
85
86 void resetSurfaceRoughness();
87
88 bool setCoefficientforLocalDynamicLossDuetoFitting(double coefficientforLocalDynamicLossDuetoFitting);
89
90 void resetCoefficientforLocalDynamicLossDuetoFitting();
91
92 bool setDuctWallHeatTransmittanceCoefficient(double coefficient);
93
94 void resetDuctWallHeatTransmittanceCoefficient();
95
96 bool setInsideConvectionCoefficient(double coefficient);
97
98 void resetInsideConvectionCoefficient();
99
100 bool setOutsideConvectionCoefficient(double coefficient);
101
102 void resetOutsideConvectionCoefficient();
103
104 bool setOverallMoistureTransmittanceCoefficientfromAirtoAir(double overallMoistureTransmittanceCoefficientfromAirtoAir);
105
106 void resetOverallMoistureTransmittanceCoefficientfromAirtoAir();
107
108 //@}
109 /** @name Other */
110 //@{
111
112 //@}
113 protected:
114 private:
115 REGISTER_LOGGER("openstudio.model.AirflowNetworkDuct");
116 };
117
118 } // namespace detail
119
120 } // namespace model
121 } // namespace openstudio
122
123 #endif // MODEL_AIRFLOWNETWORKDuCT_IMPL_HPP
124