GCC Code Coverage Report


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

src/model/CoilCoolingDXSingleSpeed_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_COILCOOLINGDXSINGLESPEED_IMPL_HPP
7 #define MODEL_COILCOOLINGDXSINGLESPEED_IMPL_HPP
8
9 #include "StraightComponent_Impl.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 class Curve;
15 class Information;
16 class Schedule;
17
18 namespace detail {
19
20 // derive CoilCoolingDXSingleSpeed_Impl from ModelObject_Impl to override virtual methods
21 class MODEL_API CoilCoolingDXSingleSpeed_Impl : public StraightComponent_Impl
22 {
23
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 // constructor
29 CoilCoolingDXSingleSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
30
31 // construct from workspace
32 CoilCoolingDXSingleSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
33
34 // copy constructor
35 CoilCoolingDXSingleSpeed_Impl(const CoilCoolingDXSingleSpeed_Impl& other, Model_Impl* model, bool keepHandle);
36
37 533 virtual ~CoilCoolingDXSingleSpeed_Impl() override = default;
38
39 //@}
40 /** @name Virtual Methods */
41 //@{
42
43 virtual ModelObject clone(Model model) const override;
44
45 virtual const std::vector<std::string>& outputVariableNames() const override;
46
47 virtual IddObjectType iddObjectType() const override;
48
49 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
50
51 virtual std::vector<ModelObject> children() const override;
52
53 virtual std::vector<IddObjectType> allowableChildTypes() const override;
54
55 virtual unsigned inletPort() const override;
56
57 virtual unsigned outletPort() const override;
58
59 virtual boost::optional<HVACComponent> containingHVACComponent() const override;
60
61 virtual boost::optional<ZoneHVACComponent> containingZoneHVACComponent() const override;
62
63 virtual ComponentType componentType() const override;
64 virtual std::vector<FuelType> coolingFuelTypes() const override;
65 virtual std::vector<FuelType> heatingFuelTypes() const override;
66 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
67
68 //@}
69 /** @name Getters */
70 //@{
71
72 Schedule availabilitySchedule() const;
73
74 double ratedCOP() const;
75
76 double ratedEvaporatorFanPowerPerVolumeFlowRate2017() const;
77
78 double ratedEvaporatorFanPowerPerVolumeFlowRate2023() const;
79
80 Curve totalCoolingCapacityFunctionOfTemperatureCurve() const;
81
82 Curve totalCoolingCapacityFunctionOfFlowFractionCurve() const;
83
84 Curve energyInputRatioFunctionOfTemperatureCurve() const;
85
86 Curve energyInputRatioFunctionOfFlowFractionCurve() const;
87
88 Curve partLoadFractionCorrelationCurve() const;
89
90 double nominalTimeForCondensateRemovalToBegin() const;
91
92 double ratioOfInitialMoistureEvaporationRateAndSteadyStateLatentCapacity() const;
93
94 double maximumCyclingRate();
95
96 double latentCapacityTimeConstant() const;
97
98 boost::optional<std::string> condenserAirInletNodeName() const;
99
100 std::string condenserType() const;
101
102 double evaporativeCondenserEffectiveness() const;
103
104 boost::optional<double> evaporativeCondenserAirFlowRate() const;
105
106 boost::optional<double> evaporativeCondenserPumpRatedPowerConsumption() const;
107
108 double crankcaseHeaterCapacity() const;
109
110 boost::optional<Curve> crankcaseHeaterCapacityFunctionofTemperatureCurve() const;
111
112 double maximumOutdoorDryBulbTemperatureForCrankcaseHeaterOperation() const;
113
114 double basinHeaterCapacity() const;
115
116 double basinHeaterSetpointTemperature() const;
117
118 boost::optional<Schedule> basinHeaterOperatingSchedule() const;
119
120 double minimumOutdoorDryBulbTemperatureforCompressorOperation() const;
121
122 // Autosizing methods
123
124 virtual void autosize() override;
125
126 virtual void applySizingValues() override;
127
128 boost::optional<double> autosizedRatedAirFlowRate() const;
129
130 boost::optional<double> autosizedRatedTotalCoolingCapacity() const;
131
132 boost::optional<double> autosizedRatedSensibleHeatRatio() const;
133
134 boost::optional<double> autosizedEvaporativeCondenserAirFlowRate() const;
135
136 boost::optional<double> autosizedEvaporativeCondenserPumpRatedPowerConsumption() const;
137
138 //@}
139 /** @name Setters */
140 //@{
141
142 bool setAvailabilitySchedule(Schedule& schedule);
143
144 bool setRatedCOP(boost::optional<double> value);
145
146 bool setRatedCOP(double value);
147
148 bool setRatedEvaporatorFanPowerPerVolumeFlowRate2017(boost::optional<double> value);
149
150 bool setRatedEvaporatorFanPowerPerVolumeFlowRate2017(double value);
151
152 bool setRatedEvaporatorFanPowerPerVolumeFlowRate2023(boost::optional<double> value);
153
154 bool setRatedEvaporatorFanPowerPerVolumeFlowRate2023(double value);
155
156 bool setTotalCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve);
157
158 bool setTotalCoolingCapacityFunctionOfFlowFractionCurve(const Curve& curve);
159
160 bool setEnergyInputRatioFunctionOfTemperatureCurve(const Curve& curve);
161
162 bool setEnergyInputRatioFunctionOfFlowFractionCurve(const Curve& curve);
163
164 bool setPartLoadFractionCorrelationCurve(const Curve& curve);
165
166 bool setNominalTimeForCondensateRemovalToBegin(boost::optional<double> value);
167
168 bool setNominalTimeForCondensateRemovalToBegin(double value);
169
170 bool setRatioOfInitialMoistureEvaporationRateAndSteadyStateLatentCapacity(boost::optional<double> value);
171
172 bool setRatioOfInitialMoistureEvaporationRateAndSteadyStateLatentCapacity(double value);
173
174 bool setMaximumCyclingRate(boost::optional<double> value);
175
176 bool setMaximumCyclingRate(double value);
177
178 bool setLatentCapacityTimeConstant(boost::optional<double> value);
179
180 bool setLatentCapacityTimeConstant(double value);
181
182 bool setCondenserAirInletNodeName(const boost::optional<std::string>& value);
183
184 bool setCondenserType(const std::string& value);
185
186 bool setEvaporativeCondenserEffectiveness(boost::optional<double> value);
187
188 bool setEvaporativeCondenserEffectiveness(double value);
189
190 bool isEvaporativeCondenserAirFlowRateAutosized() const;
191
192 bool setEvaporativeCondenserAirFlowRate(boost::optional<double> value);
193
194 bool setEvaporativeCondenserAirFlowRate(double value);
195
196 void autosizeEvaporativeCondenserAirFlowRate();
197
198 bool isEvaporativeCondenserPumpRatedPowerConsumptionAutosized() const;
199
200 bool setEvaporativeCondenserPumpRatedPowerConsumption(boost::optional<double> value);
201
202 bool setEvaporativeCondenserPumpRatedPowerConsumption(double value);
203
204 void autosizeEvaporativeCondenserPumpRatedPowerConsumption();
205
206 bool setCrankcaseHeaterCapacity(boost::optional<double> value);
207
208 bool setCrankcaseHeaterCapacity(double value);
209
210 bool setCrankcaseHeaterCapacityFunctionofTemperatureCurve(const Curve& curve);
211 void resetCrankcaseHeaterCapacityFunctionofTemperatureCurve();
212
213 bool setMaximumOutdoorDryBulbTemperatureForCrankcaseHeaterOperation(boost::optional<double> value);
214
215 bool setMaximumOutdoorDryBulbTemperatureForCrankcaseHeaterOperation(double value);
216
217 bool setBasinHeaterCapacity(boost::optional<double> value);
218
219 bool setBasinHeaterCapacity(double value);
220
221 bool setBasinHeaterSetpointTemperature(boost::optional<double> value);
222
223 bool setBasinHeaterSetpointTemperature(double value);
224
225 bool setBasinHeaterOperatingSchedule(Schedule& schedule);
226
227 void resetBasinHeaterOperatingSchedule();
228
229 bool setMinimumOutdoorDryBulbTemperatureforCompressorOperation(double minimumOutdoorDryBulbTemperatureforCompressorOperation);
230
231 boost::optional<double> ratedTotalCoolingCapacity() const;
232
233 bool isRatedTotalCoolingCapacityAutosized() const;
234
235 bool setRatedTotalCoolingCapacity(boost::optional<double> ratedTotalCoolingCapacity);
236
237 void autosizeRatedTotalCoolingCapacity();
238
239 boost::optional<double> ratedSensibleHeatRatio() const;
240
241 bool isRatedSensibleHeatRatioAutosized() const;
242
243 bool setRatedSensibleHeatRatio(boost::optional<double> ratedSensibleHeatRatio);
244
245 void autosizeRatedSensibleHeatRatio();
246
247 boost::optional<double> ratedAirFlowRate() const;
248
249 bool isRatedAirFlowRateAutosized() const;
250
251 bool setRatedAirFlowRate(boost::optional<double> ratedAirFlowRate);
252
253 void autosizeRatedAirFlowRate();
254
255 bool addToNode(Node& node) override;
256
257 virtual std::vector<EMSActuatorNames> emsActuatorNames() const override;
258
259 virtual std::vector<std::string> emsInternalVariableNames() const override;
260
261 AirflowNetworkEquivalentDuct getAirflowNetworkEquivalentDuct(double length, double diameter);
262
263 boost::optional<AirflowNetworkEquivalentDuct> airflowNetworkEquivalentDuct() const;
264
265 //@}
266 private:
267 − REGISTER_LOGGER("openstudio.model.CoilCoolingDXSingleSpeed");
268
269 // optional getters for use by children so can remove() this object if the constructor fails
270 boost::optional<Schedule> optionalAvailabilitySchedule() const;
271 boost::optional<Curve> optionalTotalCoolingCapacityFunctionOfTemperatureCurve() const;
272 boost::optional<Curve> optionalTotalCoolingCapacityFunctionOfFlowFractionCurve() const;
273 boost::optional<Curve> optionalEnergyInputRatioFunctionOfTemperatureCurve() const;
274 boost::optional<Curve> optionalEnergyInputRatioFunctionOfFlowFractionCurve() const;
275 boost::optional<Curve> optionalPartLoadFractionCorrelationCurve() const;
276
277 boost::optional<ModelObject> availabilityScheduleAsModelObject() const;
278 boost::optional<ModelObject> basinHeaterOperatingScheduleAsModelObject() const;
279
280 bool setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
281 bool setBasinHeaterOperatingScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
282 };
283
284 } // namespace detail
285
286 } // namespace model
287 } // namespace openstudio
288
289 #endif // MODEL_COILCOOLINGDXSINGLESPEED_IMPL_HPP
290