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