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/CoilCoolingDXVariableSpeed_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_COILCOOLINGDXVARIABLESPEED_IMPL_HPP
7 #define MODEL_COILCOOLINGDXVARIABLESPEED_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Curve;
16 // class WaterStorageTank;
17 class Schedule;
18 class CoilCoolingDXVariableSpeedSpeedData;
19 class ModelObjectList;
20
21 namespace detail {
22
23 /** CoilCoolingDXVariableSpeed_Impl is a StraightComponent_Impl that is the implementation class for CoilCoolingDXVariableSpeed.*/
24 class MODEL_API CoilCoolingDXVariableSpeed_Impl : public StraightComponent_Impl
25 {
26 public:
27 /** @name Constructors and Destructors */
28 //@{
29
30 CoilCoolingDXVariableSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
31
32 CoilCoolingDXVariableSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
33
34 CoilCoolingDXVariableSpeed_Impl(const CoilCoolingDXVariableSpeed_Impl& other, Model_Impl* model, bool keepHandle);
35
36 86 virtual ~CoilCoolingDXVariableSpeed_Impl() override = default;
37
38 //@}
39 /** @name Virtual Methods */
40 //@{
41
42 virtual const std::vector<std::string>& outputVariableNames() const override;
43
44 virtual IddObjectType iddObjectType() const override;
45
46 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
47
48 virtual unsigned inletPort() const override;
49
50 virtual unsigned outletPort() const override;
51
52 virtual ModelObject clone(Model model) const override;
53
54 virtual std::vector<ModelObject> children() const override;
55
56 virtual boost::optional<HVACComponent> containingHVACComponent() const override;
57
58 virtual boost::optional<ZoneHVACComponent> containingZoneHVACComponent() const override;
59
60 virtual bool addToNode(Node& node) override;
61
62 virtual std::vector<IdfObject> remove() override;
63
64 virtual void autosize() override;
65
66 virtual void applySizingValues() override;
67
68 virtual ComponentType componentType() const override;
69 virtual std::vector<FuelType> coolingFuelTypes() const override;
70 virtual std::vector<FuelType> heatingFuelTypes() const override;
71 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
72
73 //@}
74 /** @name Getters */
75 //@{
76
77 Schedule availabilitySchedule() const;
78
79 int nominalSpeedLevel() const;
80
81 boost::optional<double> grossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel() const;
82
83 bool isGrossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevelAutosized() const;
84
85 boost::optional<double> ratedAirFlowRateAtSelectedNominalSpeedLevel() const;
86
87 bool isRatedAirFlowRateAtSelectedNominalSpeedLevelAutosized() const;
88
89 double nominalTimeforCondensatetoBeginLeavingtheCoil() const;
90
91 double initialMoistureEvaporationRateDividedbySteadyStateACLatentCapacity() const;
92
93 double maximumCyclingRate() const;
94
95 double latentCapacityTimeConstant() const;
96
97 double fanDelayTime() const;
98
99 Curve energyPartLoadFractionCurve() const;
100
101 // boost::optional<std::string> condenserAirInletNodeName() const;
102
103 std::string condenserType() const;
104
105 boost::optional<double> evaporativeCondenserPumpRatedPowerConsumption() const;
106
107 bool isEvaporativeCondenserPumpRatedPowerConsumptionAutosized() const;
108
109 double crankcaseHeaterCapacity() const;
110
111 boost::optional<Curve> crankcaseHeaterCapacityFunctionofTemperatureCurve() const;
112
113 double maximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation() const;
114
115 // boost::optional<WaterStorageTank> supplyWaterStorageTank() const;
116
117 // boost::optional<WaterStorageTank> condensateCollectionWaterStorageTank() const;
118
119 double basinHeaterCapacity() const;
120
121 double basinHeaterSetpointTemperature() const;
122
123 boost::optional<Schedule> basinHeaterOperatingSchedule() const;
124
125 double minimumOutdoorDryBulbTemperatureforCompressorOperation() const;
126
127 //@}
128 /** @name Setters */
129 //@{
130
131 bool setAvailabilitySchedule(Schedule& schedule);
132
133 bool setNominalSpeedLevel(int nominalSpeedLevel);
134
135 bool setGrossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel(
136 boost::optional<double> grossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel);
137
138 void autosizeGrossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel();
139
140 bool setRatedAirFlowRateAtSelectedNominalSpeedLevel(boost::optional<double> ratedAirFlowRateAtSelectedNominalSpeedLevel);
141
142 void autosizeRatedAirFlowRateAtSelectedNominalSpeedLevel();
143
144 bool setNominalTimeforCondensatetoBeginLeavingtheCoil(double nominalTimeforCondensatetoBeginLeavingtheCoil);
145
146 bool setInitialMoistureEvaporationRateDividedbySteadyStateACLatentCapacity(
147 double initialMoistureEvaporationRateDividedbySteadyStateACLatentCapacity);
148
149 bool setMaximumCyclingRate(double maximumCyclingRate);
150
151 bool setLatentCapacityTimeConstant(double latentCapacityTimeConstant);
152
153 bool setFanDelayTime(double fanDelayTime);
154
155 bool setEnergyPartLoadFractionCurve(const Curve& curve);
156
157 // bool setCondenserAirInletNodeName(boost::optional<std::string> condenserAirInletNodeName);
158
159 // void resetCondenserAirInletNodeName();
160
161 bool setCondenserType(const std::string& condenserType);
162
163 bool setEvaporativeCondenserPumpRatedPowerConsumption(boost::optional<double> evaporativeCondenserPumpRatedPowerConsumption);
164
165 void autosizeEvaporativeCondenserPumpRatedPowerConsumption();
166
167 bool setCrankcaseHeaterCapacity(double crankcaseHeaterCapacity);
168
169 bool setMaximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation(double maximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation);
170
171 // bool setSupplyWaterStorageTank(const boost::optional<WaterStorageTank>& waterStorageTank);
172
173 // void resetSupplyWaterStorageTank();
174
175 // bool setCondensateCollectionWaterStorageTank(const boost::optional<WaterStorageTank>& waterStorageTank);
176
177 // void resetCondensateCollectionWaterStorageTank();
178
179 bool setBasinHeaterCapacity(double basinHeaterCapacity);
180
181 bool setCrankcaseHeaterCapacityFunctionofTemperatureCurve(const Curve& curve);
182 void resetCrankcaseHeaterCapacityFunctionofTemperatureCurve();
183
184 bool setBasinHeaterSetpointTemperature(double basinHeaterSetpointTemperature);
185
186 bool setBasinHeaterOperatingSchedule(Schedule& schedule);
187
188 void resetBasinHeaterOperatingSchedule();
189
190 bool setMinimumOutdoorDryBulbTemperatureforCompressorOperation(double minimumOutdoorDryBulbTemperatureforCompressorOperation);
191
192 //@}
193 /** @name Other */
194 //@{
195
196 bool setSpeedDataList(const boost::optional<ModelObjectList>& modelObjectList);
197
198 void resetSpeedDataList();
199
200 boost::optional<ModelObjectList> speedDataList() const;
201
202 std::vector<CoilCoolingDXVariableSpeedSpeedData> speeds() const;
203
204 bool addSpeed(const CoilCoolingDXVariableSpeedSpeedData& speed);
205
206 void removeSpeed(const CoilCoolingDXVariableSpeedSpeedData& speed);
207
208 void removeAllSpeeds();
209
210 AirflowNetworkEquivalentDuct getAirflowNetworkEquivalentDuct(double length, double diameter);
211
212 boost::optional<AirflowNetworkEquivalentDuct> airflowNetworkEquivalentDuct() const;
213
214 // Autosize methods
215 boost::optional<double> autosizedGrossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel() const;
216
217 boost::optional<double> autosizedRatedAirFlowRateAtSelectedNominalSpeedLevel() const;
218
219 boost::optional<double> autosizedEvaporativeCondenserPumpRatedPowerConsumption() const;
220
221 //@}
222 protected:
223 private:
224 − REGISTER_LOGGER("openstudio.model.CoilCoolingDXVariableSpeed");
225
226 // Optional getters for use by methods like children() so can remove() if the constructor fails.
227 // There are other ways for the public versions of these getters to fail--perhaps all required
228 // objects should be returned as boost::optionals
229 boost::optional<Schedule> optionalAvailabilitySchedule() const;
230 boost::optional<Curve> optionalEnergyPartLoadFractionCurve() const;
231 };
232
233 } // namespace detail
234
235 } // namespace model
236 } // namespace openstudio
237
238 #endif // MODEL_COILCOOLINGDXVARIABLESPEED_IMPL_HPP
239