GCC Code Coverage Report


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

src/model/EvaporativeCoolerIndirectResearchSpecial.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_EVAPORATIVECOOLERINDIRECTRESEARCHSPECIAL_HPP
7 #define MODEL_EVAPORATIVECOOLERINDIRECTRESEARCHSPECIAL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Schedule;
17 class Curve;
18
19 namespace detail {
20
21 class EvaporativeCoolerIndirectResearchSpecial_Impl;
22
23 } // namespace detail
24
25 /** EvaporativeCoolerIndirectResearchSpecial is a StraightComponent that wraps the OpenStudio IDD object 'OS:EvaporativeCooler:Indirect:ResearchSpecial'. */
26 class MODEL_API EvaporativeCoolerIndirectResearchSpecial : public StraightComponent
27 {
28 public:
29 /** @name Constructors and Destructors */
30 //@{
31
32 explicit EvaporativeCoolerIndirectResearchSpecial(const Model& model);
33
34 18 virtual ~EvaporativeCoolerIndirectResearchSpecial() override = default;
35 // Default the copy and move operators because the virtual dtor is explicit
36 ✗ EvaporativeCoolerIndirectResearchSpecial(const EvaporativeCoolerIndirectResearchSpecial& other) = default;
37 4 EvaporativeCoolerIndirectResearchSpecial(EvaporativeCoolerIndirectResearchSpecial&& other) = default;
38 ✗ EvaporativeCoolerIndirectResearchSpecial& operator=(const EvaporativeCoolerIndirectResearchSpecial&) = default;
39 ✗ EvaporativeCoolerIndirectResearchSpecial& operator=(EvaporativeCoolerIndirectResearchSpecial&&) = default;
40
41 //@}
42
43 static IddObjectType iddObjectType();
44
45 /** @name Getters */
46 //@{
47
48 boost::optional<Schedule> availabilitySchedule() const;
49
50 /** In EnergyPlus 8.3.0 and above this property maps to the EnergyPlus field "Cooler Wetbulb Design Effectiveness" **/
51 double coolerMaximumEffectiveness() const;
52
53 /** In EnergyPlus 8.3.0 and above this property maps to the EnergyPlus field "Recirculating Water Pump Design Power" **/
54 boost::optional<double> recirculatingWaterPumpPowerConsumption() const;
55
56 bool isRecirculatingWaterPumpPowerConsumptionAutosized() const;
57
58 /** In EnergyPlus 8.3.0 and above this property maps to the EnergyPlus field "Secondary Air Design Flow Rate" **/
59 boost::optional<double> secondaryFanFlowRate() const;
60
61 bool isSecondaryFanFlowRateAutosized() const;
62
63 /** In EnergyPlus 8.3.0 and above this property and Secondary Fan Delta Pressure no longer exist.
64 * They are replaced by the single property Secondary Fan Design Power.
65 * To maintain the stability of the OpenStudio API, we retain this property and populate the new EnergyPlus property
66 * Secondary Fan Sizing Specific Power with the calculation secondaryFanDeltaPressure() / secondaryFanTotalEfficiency(). **/
67 double secondaryFanTotalEfficiency() const;
68
69 /** In EnergyPlus 8.3.0 and above this property and Secondary Fan Total Efficiency no longer exist.
70 * They are replaced by the single property Secondary Fan Design Power.
71 * To maintain the stability of the OpenStudio API, we retain this property and populate the new EnergyPlus property
72 * Secondary Fan Sizing Specific Power with the calculation secondaryFanDeltaPressure() / secondaryFanTotalEfficiency(). **/
73 double secondaryFanDeltaPressure() const;
74
75 double dewpointEffectivenessFactor() const;
76
77 boost::optional<double> driftLossFraction() const;
78
79 boost::optional<double> blowdownConcentrationRatio() const;
80
81 boost::optional<Curve> wetbulbEffectivenessFlowRatioModifierCurve() const;
82
83 boost::optional<double> coolerDrybulbDesignEffectiveness() const;
84
85 boost::optional<Curve> drybulbEffectivenessFlowRatioModifierCurve() const;
86
87 double waterPumpPowerSizingFactor() const;
88
89 boost::optional<Curve> waterPumpPowerModifierCurve() const;
90
91 double secondaryAirFlowScalingFactor() const;
92
93 boost::optional<double> secondaryAirFanDesignPower() const;
94
95 bool isSecondaryAirFanDesignPowerAutosized() const;
96
97 boost::optional<Curve> secondaryAirFanPowerModifierCurve() const;
98
99 boost::optional<double> primaryDesignAirFlowRate() const;
100
101 bool isPrimaryDesignAirFlowRateAutosized() const;
102
103 //@}
104 /** @name Setters */
105 //@{
106
107 bool setAvailabilitySchedule(Schedule& schedule);
108
109 void resetAvailabilitySchedule();
110
111 bool setCoolerMaximumEffectiveness(double coolerMaximumEffectiveness);
112
113 bool setRecirculatingWaterPumpPowerConsumption(double recirculatingWaterPumpPowerConsumption);
114
115 void autosizeRecirculatingWaterPumpPowerConsumption();
116
117 bool setSecondaryFanFlowRate(double secondaryFanFlowRate);
118
119 void resetSecondaryFanFlowRate();
120
121 void autosizeSecondaryFanFlowRate();
122
123 bool setSecondaryFanTotalEfficiency(double secondaryFanTotalEfficiency);
124
125 bool setSecondaryFanDeltaPressure(double secondaryFanDeltaPressure);
126
127 bool setDewpointEffectivenessFactor(double dewpointEffectivenessFactor);
128
129 bool setDriftLossFraction(double driftLossFraction);
130
131 void resetDriftLossFraction();
132
133 bool setBlowdownConcentrationRatio(double blowdownConcentrationRatio);
134
135 void resetBlowdownConcentrationRatio();
136
137 bool setWetbulbEffectivenessFlowRatioModifierCurve(const Curve& curve);
138
139 void resetWetbulbEffectivenessFlowRatioModifierCurve();
140
141 bool setCoolerDrybulbDesignEffectiveness(double coolerDrybulbDesignEffectiveness);
142
143 void resetCoolerDrybulbDesignEffectiveness();
144
145 bool setDrybulbEffectivenessFlowRatioModifierCurve(const Curve& curve);
146
147 void resetDrybulbEffectivenessFlowRatioModifierCurve();
148
149 bool setWaterPumpPowerSizingFactor(double waterPumpPowerSizingFactor);
150
151 bool setWaterPumpPowerModifierCurve(const Curve& curve);
152
153 void resetWaterPumpPowerModifierCurve();
154
155 bool setSecondaryAirFlowScalingFactor(double secondaryAirFlowScalingFactor);
156
157 bool setSecondaryAirFanDesignPower(double secondaryAirFanDesignPower);
158
159 void autosizeSecondaryAirFanDesignPower();
160
161 bool setSecondaryAirFanPowerModifierCurve(const Curve& curve);
162
163 void resetSecondaryAirFanPowerModifierCurve();
164
165 bool setPrimaryDesignAirFlowRate(double primaryDesignAirFlowRate);
166
167 void resetPrimaryDesignAirFlowRate();
168
169 void autosizePrimaryDesignAirFlowRate();
170
171 //@}
172 /** @name Other */
173 //@{
174
175 boost::optional<double> autosizedRecirculatingWaterPumpPowerConsumption() const;
176
177 boost::optional<double> autosizedSecondaryFanFlowRate() const;
178
179 boost::optional<double> autosizedSecondaryAirFanDesignPower() const;
180
181 boost::optional<double> autosizedPrimaryDesignAirFlowRate() const;
182
183 //@}
184 protected:
185 /// @cond
186 using ImplType = detail::EvaporativeCoolerIndirectResearchSpecial_Impl;
187
188 explicit EvaporativeCoolerIndirectResearchSpecial(std::shared_ptr<detail::EvaporativeCoolerIndirectResearchSpecial_Impl> impl);
189
190 friend class detail::EvaporativeCoolerIndirectResearchSpecial_Impl;
191 friend class Model;
192 friend class IdfObject;
193 friend class openstudio::detail::IdfObject_Impl;
194 /// @endcond
195 private:
196 REGISTER_LOGGER("openstudio.model.EvaporativeCoolerIndirectResearchSpecial");
197 };
198
199 /** \relates EvaporativeCoolerIndirectResearchSpecial*/
200 using OptionalEvaporativeCoolerIndirectResearchSpecial = boost::optional<EvaporativeCoolerIndirectResearchSpecial>;
201
202 /** \relates EvaporativeCoolerIndirectResearchSpecial*/
203 using EvaporativeCoolerIndirectResearchSpecialVector = std::vector<EvaporativeCoolerIndirectResearchSpecial>;
204
205 } // namespace model
206 } // namespace openstudio
207
208 #endif // MODEL_EVAPORATIVECOOLERINDIRECTRESEARCHSPECIAL_HPP
209