GCC Code Coverage Report


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

src/model/FluidCoolerTwoSpeed.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_FLUIDCOOLERTWOSPEED_HPP
7 #define MODEL_FLUIDCOOLERTWOSPEED_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Node;
17
18 namespace detail {
19
20 class FluidCoolerTwoSpeed_Impl;
21
22 } // namespace detail
23
24 /** FluidCoolerTwoSpeed is a StraightComponent that wraps the OpenStudio IDD object 'OS:FluidCooler:TwoSpeed'. */
25 class MODEL_API FluidCoolerTwoSpeed : public StraightComponent
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 explicit FluidCoolerTwoSpeed(const Model& model);
32
33 1 virtual ~FluidCoolerTwoSpeed() override = default;
34 // Default the copy and move operators because the virtual dtor is explicit
35 ✗ FluidCoolerTwoSpeed(const FluidCoolerTwoSpeed& other) = default;
36 ✗ FluidCoolerTwoSpeed(FluidCoolerTwoSpeed&& other) = default;
37 ✗ FluidCoolerTwoSpeed& operator=(const FluidCoolerTwoSpeed&) = default;
38 ✗ FluidCoolerTwoSpeed& operator=(FluidCoolerTwoSpeed&&) = default;
39
40 //@}
41
42 static IddObjectType iddObjectType();
43
44 static std::vector<std::string> performanceInputMethodValues();
45
46 /** @name Getters */
47 //@{
48
49 std::string performanceInputMethod() const;
50
51 boost::optional<double> highFanSpeedUfactorTimesAreaValue() const;
52
53 bool isHighFanSpeedUfactorTimesAreaValueAutosized() const;
54
55 boost::optional<double> lowFanSpeedUfactorTimesAreaValue() const;
56
57 bool isLowFanSpeedUfactorTimesAreaValueAutosized() const;
58
59 double lowFanSpeedUFactorTimesAreaSizingFactor() const;
60
61 double highSpeedNominalCapacity() const;
62
63 boost::optional<double> lowSpeedNominalCapacity() const;
64
65 bool isLowSpeedNominalCapacityAutosized() const;
66
67 double lowSpeedNominalCapacitySizingFactor() const;
68
69 double designEnteringWaterTemperature() const;
70
71 double designEnteringAirTemperature() const;
72
73 double designEnteringAirWetbulbTemperature() const;
74
75 boost::optional<double> designWaterFlowRate() const;
76
77 bool isDesignWaterFlowRateAutosized() const;
78
79 boost::optional<double> highFanSpeedAirFlowRate() const;
80
81 bool isHighFanSpeedAirFlowRateAutosized() const;
82
83 boost::optional<double> highFanSpeedFanPower() const;
84
85 bool isHighFanSpeedFanPowerAutosized() const;
86
87 boost::optional<double> lowFanSpeedAirFlowRate() const;
88
89 bool isLowFanSpeedAirFlowRateAutosized() const;
90
91 double lowFanSpeedAirFlowRateSizingFactor() const;
92
93 boost::optional<double> lowFanSpeedFanPower() const;
94
95 bool isLowFanSpeedFanPowerAutosized() const;
96
97 double lowFanSpeedFanPowerSizingFactor() const;
98
99 boost::optional<Node> outdoorAirInletNode() const;
100
101 //@}
102 /** @name Setters */
103 //@{
104
105 bool setPerformanceInputMethod(const std::string& performanceInputMethod);
106
107 bool setHighFanSpeedUfactorTimesAreaValue(double highFanSpeedUfactorTimesAreaValue);
108
109 void autosizeHighFanSpeedUfactorTimesAreaValue();
110
111 bool setLowFanSpeedUfactorTimesAreaValue(double lowFanSpeedUfactorTimesAreaValue);
112
113 void autosizeLowFanSpeedUfactorTimesAreaValue();
114
115 bool setLowFanSpeedUFactorTimesAreaSizingFactor(double lowFanSpeedUFactorTimesAreaSizingFactor);
116
117 bool setHighSpeedNominalCapacity(double highSpeedNominalCapacity);
118
119 bool setLowSpeedNominalCapacity(double lowSpeedNominalCapacity);
120
121 void autosizeLowSpeedNominalCapacity();
122
123 bool setLowSpeedNominalCapacitySizingFactor(double lowSpeedNominalCapacitySizingFactor);
124
125 bool setDesignEnteringWaterTemperature(double designEnteringWaterTemperature);
126
127 bool setDesignEnteringAirTemperature(double designEnteringAirTemperature);
128
129 bool setDesignEnteringAirWetbulbTemperature(double designEnteringAirWetbulbTemperature);
130
131 bool setDesignWaterFlowRate(double designWaterFlowRate);
132
133 void autosizeDesignWaterFlowRate();
134
135 bool setHighFanSpeedAirFlowRate(double highFanSpeedAirFlowRate);
136
137 void autosizeHighFanSpeedAirFlowRate();
138
139 bool setHighFanSpeedFanPower(double highFanSpeedFanPower);
140
141 void autosizeHighFanSpeedFanPower();
142
143 bool setLowFanSpeedAirFlowRate(double lowFanSpeedAirFlowRate);
144
145 void autosizeLowFanSpeedAirFlowRate();
146
147 bool setLowFanSpeedAirFlowRateSizingFactor(double lowFanSpeedAirFlowRateSizingFactor);
148
149 bool setLowFanSpeedFanPower(double lowFanSpeedFanPower);
150
151 void autosizeLowFanSpeedFanPower();
152
153 bool setLowFanSpeedFanPowerSizingFactor(double lowFanSpeedFanPowerSizingFactor);
154
155 bool setOutdoorAirInletNode(const Node& node);
156
157 void resetOutdoorAirInletNode();
158
159 //@}
160 /** @name Other */
161 //@{
162
163 boost::optional<double> autosizedHighFanSpeedUfactorTimesAreaValue() const;
164
165 boost::optional<double> autosizedLowFanSpeedUfactorTimesAreaValue() const;
166
167 boost::optional<double> autosizedLowSpeedNominalCapacity() const;
168
169 boost::optional<double> autosizedDesignWaterFlowRate() const;
170
171 boost::optional<double> autosizedHighFanSpeedAirFlowRate() const;
172
173 boost::optional<double> autosizedHighFanSpeedFanPower() const;
174
175 boost::optional<double> autosizedLowFanSpeedAirFlowRate() const;
176
177 boost::optional<double> autosizedLowFanSpeedFanPower() const;
178
179 //@}
180 protected:
181 /// @cond
182 using ImplType = detail::FluidCoolerTwoSpeed_Impl;
183
184 explicit FluidCoolerTwoSpeed(std::shared_ptr<detail::FluidCoolerTwoSpeed_Impl> impl);
185
186 friend class detail::FluidCoolerTwoSpeed_Impl;
187 friend class Model;
188 friend class IdfObject;
189 friend class openstudio::detail::IdfObject_Impl;
190 /// @endcond
191 private:
192 REGISTER_LOGGER("openstudio.model.FluidCoolerTwoSpeed");
193 };
194
195 /** \relates FluidCoolerTwoSpeed*/
196 using OptionalFluidCoolerTwoSpeed = boost::optional<FluidCoolerTwoSpeed>;
197
198 /** \relates FluidCoolerTwoSpeed*/
199 using FluidCoolerTwoSpeedVector = std::vector<FluidCoolerTwoSpeed>;
200
201 } // namespace model
202 } // namespace openstudio
203
204 #endif // MODEL_FLUIDCOOLERTWOSPEED_HPP
205