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/EvaporativeFluidCoolerSingleSpeed_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_EVAPORATIVEFLUIDCOOLERSINGLESPEED_IMPL_HPP
7 #define MODEL_EVAPORATIVEFLUIDCOOLERSINGLESPEED_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Schedule;
17 //class WaterStorageTank;
18
19 namespace detail {
20
21 /** EvaporativeFluidCoolerSingleSpeed_Impl is a StraightComponent_Impl that is the implementation class for EvaporativeFluidCoolerSingleSpeed.*/
22 class MODEL_API EvaporativeFluidCoolerSingleSpeed_Impl : public StraightComponent_Impl
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 EvaporativeFluidCoolerSingleSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 EvaporativeFluidCoolerSingleSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 EvaporativeFluidCoolerSingleSpeed_Impl(const EvaporativeFluidCoolerSingleSpeed_Impl& other, Model_Impl* model, bool keepHandle);
33
34 34 virtual ~EvaporativeFluidCoolerSingleSpeed_Impl() override = default;
35
36 //@}
37
38 /** @name Virtual Methods */
39 //@{
40
41 virtual const std::vector<std::string>& outputVariableNames() const override;
42
43 virtual IddObjectType iddObjectType() const override;
44
45 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
46
47 virtual unsigned inletPort() const override;
48
49 virtual unsigned outletPort() const override;
50
51 virtual bool addToNode(Node& node) 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 boost::optional<double> designAirFlowRate() const;
62
63 bool isDesignAirFlowRateAutosized() const;
64
65 boost::optional<double> fanPoweratDesignAirFlowRate() const;
66
67 bool isFanPoweratDesignAirFlowRateAutosized() const;
68
69 double designSprayWaterFlowRate() const;
70
71 std::string performanceInputMethod() const;
72
73 double heatRejectionCapacityandNominalCapacitySizingRatio() const;
74
75 boost::optional<double> standardDesignCapacity() const;
76
77 boost::optional<double> ufactorTimesAreaValueatDesignAirFlowRate() const;
78
79 bool isUfactorTimesAreaValueatDesignAirFlowRateAutosized() const;
80
81 boost::optional<double> designWaterFlowRate() const;
82
83 bool isDesignWaterFlowRateAutosized() const;
84
85 boost::optional<double> userSpecifiedDesignCapacity() const;
86
87 boost::optional<double> designEnteringWaterTemperature() const;
88
89 bool isDesignEnteringWaterTemperatureAutosized() const;
90
91 double designEnteringAirTemperature() const;
92
93 double designEnteringAirWetbulbTemperature() const;
94
95 std::string capacityControl() const;
96
97 bool isCapacityControlDefaulted() const;
98
99 double sizingFactor() const;
100
101 bool isSizingFactorDefaulted() const;
102
103 std::string evaporationLossMode() const;
104
105 bool isEvaporationLossModeDefaulted() const;
106
107 boost::optional<double> evaporationLossFactor() const;
108
109 double driftLossPercent() const;
110
111 bool isDriftLossPercentDefaulted() const;
112
113 std::string blowdownCalculationMode() const;
114
115 bool isBlowdownCalculationModeDefaulted() const;
116
117 double blowdownConcentrationRatio() const;
118
119 bool isBlowdownConcentrationRatioDefaulted() const;
120
121 boost::optional<Schedule> blowdownMakeupWaterUsageSchedule() const;
122
123 boost::optional<double> autosizedDesignAirFlowRate() const;
124
125 boost::optional<double> autosizedFanPoweratDesignAirFlowRate() const;
126
127 boost::optional<double> autosizedUfactorTimesAreaValueatDesignAirFlowRate() const;
128
129 boost::optional<double> autosizedDesignWaterFlowRate() const;
130
131 boost::optional<double> autosizedDesignEnteringWaterTemperature() const;
132
133 virtual void autosize() override;
134
135 virtual void applySizingValues() override;
136
137 // boost::optional<WaterStorageTank> supplyWaterStorageTank() const;
138 // A11; \field Supply Water Storage Tank Name
139
140 //@}
141 /** @name Setters */
142 //@{
143
144 bool setDesignAirFlowRate(boost::optional<double> designAirFlowRate);
145
146 void autosizeDesignAirFlowRate();
147
148 bool setFanPoweratDesignAirFlowRate(boost::optional<double> fanPoweratDesignAirFlowRate);
149
150 void autosizeFanPoweratDesignAirFlowRate();
151
152 bool setDesignSprayWaterFlowRate(double designSprayWaterFlowRate);
153
154 bool setPerformanceInputMethod(const std::string& performanceInputMethod);
155
156 bool setHeatRejectionCapacityandNominalCapacitySizingRatio(double heatRejectionCapacityandNominalCapacitySizingRatio);
157
158 bool setStandardDesignCapacity(boost::optional<double> standardDesignCapacity);
159
160 void resetStandardDesignCapacity();
161
162 bool setUfactorTimesAreaValueatDesignAirFlowRate(boost::optional<double> ufactorTimesAreaValueatDesignAirFlowRate);
163
164 void resetUfactorTimesAreaValueatDesignAirFlowRate();
165
166 void autosizeUfactorTimesAreaValueatDesignAirFlowRate();
167
168 bool setDesignWaterFlowRate(boost::optional<double> designWaterFlowRate);
169
170 void resetDesignWaterFlowRate();
171
172 void autosizeDesignWaterFlowRate();
173
174 bool setUserSpecifiedDesignCapacity(boost::optional<double> userSpecifiedDesignCapacity);
175
176 void resetUserSpecifiedDesignCapacity();
177
178 bool setDesignEnteringWaterTemperature(boost::optional<double> designEnteringWaterTemperature);
179
180 void autosizeDesignEnteringWaterTemperature();
181
182 bool setDesignEnteringAirTemperature(boost::optional<double> designEnteringAirTemperature);
183
184 bool setDesignEnteringAirWetbulbTemperature(boost::optional<double> designEnteringAirWetbulbTemperature);
185
186 bool setCapacityControl(const std::string& capacityControl);
187
188 void resetCapacityControl();
189
190 bool setSizingFactor(double sizingFactor);
191
192 void resetSizingFactor();
193
194 bool setEvaporationLossMode(const std::string& evaporationLossMode);
195
196 void resetEvaporationLossMode();
197
198 bool setEvaporationLossFactor(boost::optional<double> evaporationLossFactor);
199
200 void resetEvaporationLossFactor();
201
202 bool setDriftLossPercent(double driftLossPercent);
203
204 void resetDriftLossPercent();
205
206 bool setBlowdownCalculationMode(const std::string& blowdownCalculationMode);
207
208 void resetBlowdownCalculationMode();
209
210 bool setBlowdownConcentrationRatio(double blowdownConcentrationRatio);
211
212 void resetBlowdownConcentrationRatio();
213
214 bool setBlowdownMakeupWaterUsageSchedule(Schedule& schedule);
215
216 void resetBlowdownMakeupWaterUsageSchedule();
217
218 //@}
219 /** @name Other */
220 //@{
221
222 //@}
223 protected:
224 private:
225 REGISTER_LOGGER("openstudio.model.EvaporativeFluidCoolerSingleSpeed");
226
227 std::vector<std::string> performanceInputMethodValues() const;
228 std::vector<std::string> capacityControlValues() const;
229 std::vector<std::string> evaporationLossModeValues() const;
230 std::vector<std::string> blowdownCalculationModeValues() const;
231 boost::optional<ModelObject> blowdownMakeupWaterUsageScheduleAsModelObject() const;
232 bool setBlowdownMakeupWaterUsageScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
233 };
234
235 } // namespace detail
236
237 } // namespace model
238 } // namespace openstudio
239
240 #endif // MODEL_EVAPORATIVEFLUIDCOOLERSINGLESPEED_IMPL_HPP
241