GCC Code Coverage Report


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

src/model/HeatPumpAirToWaterFuelFiredCooling.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_HEATPUMPAIRTOWATERFUELFIREDCOOLING_HPP
7 #define MODEL_HEATPUMPAIRTOWATERFUELFIREDCOOLING_HPP
8
9 #include <model/ModelAPI.hpp>
10 #include "StraightComponent.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class HeatPumpAirToWaterFuelFiredHeating;
17 class Curve;
18 // class OutdoorAirNode;
19
20 namespace detail {
21
22 class HeatPumpAirToWaterFuelFiredCooling_Impl;
23
24 } // namespace detail
25
26 /** HeatPumpAirToWaterFuelFiredCooling is a StraightComponent that wraps the OpenStudio IDD object 'OS:HeatPump:AirToWater:FuelFired:Cooling'. */
27 class MODEL_API HeatPumpAirToWaterFuelFiredCooling : public StraightComponent
28 {
29 public:
30 /** @name Constructors and Destructors */
31 //@{
32
33 explicit HeatPumpAirToWaterFuelFiredCooling(const Model& model);
34
35 explicit HeatPumpAirToWaterFuelFiredCooling(const Model& model, const Curve& normalizedCapacityFunctionofTemperatureCurve,
36 const Curve& fuelEnergyInputRatioFunctionofTemperatureCurve,
37 const Curve& fuelEnergyInputRatioFunctionofPLRCurve);
38
39 25 virtual ~HeatPumpAirToWaterFuelFiredCooling() override = default;
40 // Default the copy and move operators because the virtual dtor is explicit
41 ✗ HeatPumpAirToWaterFuelFiredCooling(const HeatPumpAirToWaterFuelFiredCooling& other) = default;
42 7 HeatPumpAirToWaterFuelFiredCooling(HeatPumpAirToWaterFuelFiredCooling&& other) = default;
43 ✗ HeatPumpAirToWaterFuelFiredCooling& operator=(const HeatPumpAirToWaterFuelFiredCooling&) = default;
44 ✗ HeatPumpAirToWaterFuelFiredCooling& operator=(HeatPumpAirToWaterFuelFiredCooling&&) = default;
45
46 //@}
47
48 static IddObjectType iddObjectType();
49
50 static std::vector<std::string> fuelTypeValues();
51
52 static std::vector<std::string> flowModeValues();
53
54 static std::vector<std::string> outdoorAirTemperatureCurveInputVariableValues();
55
56 static std::vector<std::string> waterTemperatureCurveInputVariableValues();
57
58 /** @name Getters */
59 //@{
60
61 // boost::optional<OutdoorAirNode> airSourceNode() const;
62
63 boost::optional<HeatPumpAirToWaterFuelFiredHeating> companionHeatingHeatPump() const;
64
65 std::string fuelType() const;
66
67 std::string endUseSubcategory() const;
68
69 bool isEndUseSubcategoryDefaulted() const;
70
71 boost::optional<double> nominalCoolingCapacity() const;
72
73 bool isNominalCoolingCapacityAutosized() const;
74
75 boost::optional<double> autosizedNominalCoolingCapacity();
76
77 double nominalCOP() const;
78
79 boost::optional<double> designFlowRate() const;
80
81 bool isDesignFlowRateAutosized() const;
82
83 boost::optional<double> autosizedDesignFlowRate();
84
85 double designSupplyTemperature() const;
86
87 boost::optional<double> designTemperatureLift() const;
88
89 bool isDesignTemperatureLiftAutosized() const;
90
91 boost::optional<double> autosizedDesignTemperatureLift();
92
93 double sizingFactor() const;
94
95 std::string flowMode() const;
96
97 std::string outdoorAirTemperatureCurveInputVariable() const;
98
99 std::string waterTemperatureCurveInputVariable() const;
100
101 Curve normalizedCapacityFunctionofTemperatureCurve() const;
102
103 Curve fuelEnergyInputRatioFunctionofTemperatureCurve() const;
104
105 Curve fuelEnergyInputRatioFunctionofPLRCurve() const;
106
107 double minimumPartLoadRatio() const;
108
109 double maximumPartLoadRatio() const;
110
111 boost::optional<Curve> cyclingRatioFactorCurve() const;
112
113 double nominalAuxiliaryElectricPower() const;
114
115 boost::optional<Curve> auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve() const;
116
117 boost::optional<Curve> auxiliaryElectricEnergyInputRatioFunctionofPLRCurve() const;
118
119 double standbyElectricPower() const;
120
121 double minimumUnloadingRatio() const;
122
123 //@}
124 /** @name Setters */
125 //@{
126
127 // bool setAirSourceNode(const OutdoorAirNode& outdoorAirNode);
128
129 // void resetAirSourceNode();
130
131 bool setCompanionHeatingHeatPump(const HeatPumpAirToWaterFuelFiredHeating& heatPumpAirToWaterFuelFiredHeating);
132
133 void resetCompanionHeatingHeatPump();
134
135 bool setFuelType(const std::string& fuelType);
136
137 bool setEndUseSubcategory(const std::string& endUseSubcategory);
138
139 void resetEndUseSubcategory();
140
141 bool setNominalCoolingCapacity(double nominalCoolingCapacity);
142
143 void resetNominalCoolingCapacity();
144
145 void autosizeNominalCoolingCapacity();
146
147 bool setNominalCOP(double nominalCOP);
148
149 bool setDesignFlowRate(double designFlowRate);
150
151 void resetDesignFlowRate();
152
153 void autosizeDesignFlowRate();
154
155 bool setDesignSupplyTemperature(double designSupplyTemperature);
156
157 bool setDesignTemperatureLift(double designTemperatureLift);
158
159 void autosizeDesignTemperatureLift();
160
161 bool setSizingFactor(double sizingFactor);
162
163 bool setFlowMode(const std::string& flowMode);
164
165 bool setOutdoorAirTemperatureCurveInputVariable(const std::string& outdoorAirTemperatureCurveInputVariable);
166
167 bool setWaterTemperatureCurveInputVariable(const std::string& waterTemperatureCurveInputVariable);
168
169 bool setNormalizedCapacityFunctionofTemperatureCurve(const Curve& normalizedCapacityFunctionofTemperatureCurve);
170
171 bool setFuelEnergyInputRatioFunctionofTemperatureCurve(const Curve& fuelEnergyInputRatioFunctionofTemperatureCurve);
172
173 bool setFuelEnergyInputRatioFunctionofPLRCurve(const Curve& fuelEnergyInputRatioFunctionofPLRCurve);
174
175 bool setMinimumPartLoadRatio(double minimumPartLoadRatio);
176
177 bool setMaximumPartLoadRatio(double maximumPartLoadRatio);
178
179 bool setCyclingRatioFactorCurve(const Curve& cyclingRatioFactorCurve);
180
181 void resetCyclingRatioFactorCurve();
182
183 bool setNominalAuxiliaryElectricPower(double nominalAuxiliaryElectricPower);
184
185 bool setAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve(const Curve& auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve);
186
187 void resetAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve();
188
189 bool setAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve(const Curve& auxiliaryElectricEnergyInputRatioFunctionofPLRCurve);
190
191 void resetAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve();
192
193 bool setStandbyElectricPower(double standbyElectricPower);
194
195 bool setMinimumUnloadingRatio(double minimumUnloadingRatio);
196
197 //@}
198 /** @name Other */
199 //@{
200
201 //@}
202 protected:
203 /// @cond
204 using ImplType = detail::HeatPumpAirToWaterFuelFiredCooling_Impl;
205
206 explicit HeatPumpAirToWaterFuelFiredCooling(std::shared_ptr<detail::HeatPumpAirToWaterFuelFiredCooling_Impl> impl);
207
208 friend class detail::HeatPumpAirToWaterFuelFiredCooling_Impl;
209 friend class Model;
210 friend class IdfObject;
211 friend class openstudio::detail::IdfObject_Impl;
212 /// @endcond
213 private:
214 − REGISTER_LOGGER("openstudio.model.HeatPumpAirToWaterFuelFiredCooling");
215 };
216
217 /** \relates HeatPumpAirToWaterFuelFiredCooling*/
218 using OptionalHeatPumpAirToWaterFuelFiredCooling = boost::optional<HeatPumpAirToWaterFuelFiredCooling>;
219
220 /** \relates HeatPumpAirToWaterFuelFiredCooling*/
221 using HeatPumpAirToWaterFuelFiredCoolingVector = std::vector<HeatPumpAirToWaterFuelFiredCooling>;
222
223 } // namespace model
224 } // namespace openstudio
225
226 #endif // MODEL_HEATPUMPAIRTOWATERFUELFIREDCOOLING_HPP
227