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/HeatPumpAirToWaterFuelFiredHeating_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_HEATPUMPAIRTOWATERFUELFIREDHEATING_IMPL_HPP
7 #define MODEL_HEATPUMPAIRTOWATERFUELFIREDHEATING_IMPL_HPP
8
9 #include <model/ModelAPI.hpp>
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class HeatPumpAirToWaterFuelFiredCooling;
16 class Curve;
17 // class OutdoorAirNode;
18
19 namespace detail {
20
21 /** HeatPumpAirToWaterFuelFiredHeating_Impl is a StraightComponent_Impl that is the implementation class for HeatPumpAirToWaterFuelFiredHeating.*/
22 class MODEL_API HeatPumpAirToWaterFuelFiredHeating_Impl : public StraightComponent_Impl
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 HeatPumpAirToWaterFuelFiredHeating_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 HeatPumpAirToWaterFuelFiredHeating_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 HeatPumpAirToWaterFuelFiredHeating_Impl(const HeatPumpAirToWaterFuelFiredHeating_Impl& other, Model_Impl* model, bool keepHandle);
33
34 19 virtual ~HeatPumpAirToWaterFuelFiredHeating_Impl() {}
35
36 //@}
37 /** @name Virtual Methods */
38 //@{
39
40 virtual const std::vector<std::string>& outputVariableNames() const override;
41
42 virtual IddObjectType iddObjectType() const override;
43
44 virtual unsigned inletPort() const override;
45
46 virtual unsigned outletPort() const override;
47
48 virtual void autosize() override;
49
50 virtual void applySizingValues() override;
51
52 virtual bool addToNode(Node& node) override;
53
54 // Resets the Companion Heat Pump
55 virtual ModelObject clone(Model model) const override;
56
57 virtual ComponentType componentType() const override;
58 virtual std::vector<FuelType> coolingFuelTypes() const override;
59 virtual std::vector<FuelType> heatingFuelTypes() const override;
60 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
61
62 //@}
63 /** @name Getters */
64 //@{
65
66 // boost::optional<OutdoorAirNode> airSourceNode() const;
67
68 boost::optional<HeatPumpAirToWaterFuelFiredCooling> companionCoolingHeatPump() const;
69
70 std::string fuelType() const;
71
72 std::string endUseSubcategory() const;
73
74 bool isEndUseSubcategoryDefaulted() const;
75
76 boost::optional<double> nominalHeatingCapacity() const;
77
78 bool isNominalHeatingCapacityAutosized() const;
79
80 boost::optional<double> autosizedNominalHeatingCapacity();
81
82 double nominalCOP() const;
83
84 boost::optional<double> designFlowRate() const;
85
86 bool isDesignFlowRateAutosized() const;
87
88 boost::optional<double> autosizedDesignFlowRate();
89
90 double designSupplyTemperature() const;
91
92 boost::optional<double> designTemperatureLift() const;
93
94 bool isDesignTemperatureLiftAutosized() const;
95
96 boost::optional<double> autosizedDesignTemperatureLift();
97
98 double sizingFactor() const;
99
100 std::string flowMode() const;
101
102 std::string outdoorAirTemperatureCurveInputVariable() const;
103
104 std::string waterTemperatureCurveInputVariable() const;
105
106 Curve normalizedCapacityFunctionofTemperatureCurve() const;
107
108 Curve fuelEnergyInputRatioFunctionofTemperatureCurve() const;
109
110 Curve fuelEnergyInputRatioFunctionofPLRCurve() const;
111
112 double minimumPartLoadRatio() const;
113
114 double maximumPartLoadRatio() const;
115
116 std::string defrostControlType() const;
117
118 double defrostOperationTimeFraction() const;
119
120 boost::optional<Curve> fuelEnergyInputRatioDefrostAdjustmentCurve() const;
121
122 double resistiveDefrostHeaterCapacity() const;
123
124 double maximumOutdoorDrybulbTemperatureforDefrostOperation() const;
125
126 boost::optional<Curve> cyclingRatioFactorCurve() const;
127
128 double nominalAuxiliaryElectricPower() const;
129
130 boost::optional<Curve> auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve() const;
131
132 boost::optional<Curve> auxiliaryElectricEnergyInputRatioFunctionofPLRCurve() const;
133
134 double standbyElectricPower() const;
135
136 double minimumUnloadingRatio() const;
137
138 //@}
139 /** @name Setters */
140 //@{
141
142 // bool setAirSourceNode(const OutdoorAirNode& outdoorAirNode);
143
144 // void resetAirSourceNode();
145
146 bool setCompanionCoolingHeatPump(const HeatPumpAirToWaterFuelFiredCooling& heatPumpAirToWaterFuelFiredCooling);
147
148 void resetCompanionCoolingHeatPump();
149
150 bool setFuelType(const std::string& fuelType);
151
152 bool setEndUseSubcategory(const std::string& endUseSubcategory);
153
154 void resetEndUseSubcategory();
155
156 bool setNominalHeatingCapacity(double nominalHeatingCapacity);
157
158 void resetNominalHeatingCapacity();
159
160 void autosizeNominalHeatingCapacity();
161
162 bool setNominalCOP(double nominalCOP);
163
164 bool setDesignFlowRate(double designFlowRate);
165
166 void resetDesignFlowRate();
167
168 void autosizeDesignFlowRate();
169
170 bool setDesignSupplyTemperature(double designSupplyTemperature);
171
172 bool setDesignTemperatureLift(double designTemperatureLift);
173
174 void autosizeDesignTemperatureLift();
175
176 bool setSizingFactor(double sizingFactor);
177
178 bool setFlowMode(const std::string& flowMode);
179
180 bool setOutdoorAirTemperatureCurveInputVariable(const std::string& outdoorAirTemperatureCurveInputVariable);
181
182 bool setWaterTemperatureCurveInputVariable(const std::string& waterTemperatureCurveInputVariable);
183
184 bool setNormalizedCapacityFunctionofTemperatureCurve(const Curve& normalizedCapacityFunctionofTemperatureCurve);
185
186 bool setFuelEnergyInputRatioFunctionofTemperatureCurve(const Curve& fuelEnergyInputRatioFunctionofTemperatureCurve);
187
188 bool setFuelEnergyInputRatioFunctionofPLRCurve(const Curve& fuelEnergyInputRatioFunctionofPLRCurve);
189
190 bool setMinimumPartLoadRatio(double minimumPartLoadRatio);
191
192 bool setMaximumPartLoadRatio(double maximumPartLoadRatio);
193
194 bool setDefrostControlType(const std::string& defrostControlType);
195
196 bool setDefrostOperationTimeFraction(double defrostOperationTimeFraction);
197
198 bool setFuelEnergyInputRatioDefrostAdjustmentCurve(const Curve& fuelEnergyInputRatioDefrostAdjustmentCurve);
199
200 void resetFuelEnergyInputRatioDefrostAdjustmentCurve();
201
202 bool setResistiveDefrostHeaterCapacity(double resistiveDefrostHeaterCapacity);
203
204 bool setMaximumOutdoorDrybulbTemperatureforDefrostOperation(double maximumOutdoorDrybulbTemperatureforDefrostOperation);
205
206 bool setCyclingRatioFactorCurve(const Curve& cyclingRatioFactorCurve);
207
208 void resetCyclingRatioFactorCurve();
209
210 bool setNominalAuxiliaryElectricPower(double nominalAuxiliaryElectricPower);
211
212 bool setAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve(const Curve& auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve);
213
214 void resetAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve();
215
216 bool setAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve(const Curve& auxiliaryElectricEnergyInputRatioFunctionofPLRCurve);
217
218 void resetAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve();
219
220 bool setStandbyElectricPower(double standbyElectricPower);
221
222 bool setMinimumUnloadingRatio(double minimumUnloadingRatio);
223
224 //@}
225 /** @name Other */
226 //@{
227
228 //@}
229 protected:
230 private:
231 − REGISTER_LOGGER("openstudio.model.HeatPumpAirToWaterFuelFiredHeating");
232
233 boost::optional<Curve> optionalNormalizedCapacityFunctionofTemperatureCurve() const;
234 boost::optional<Curve> optionalFuelEnergyInputRatioFunctionofTemperatureCurve() const;
235 boost::optional<Curve> optionalFuelEnergyInputRatioFunctionofPLRCurve() const;
236 };
237
238 } // namespace detail
239
240 } // namespace model
241 } // namespace openstudio
242
243 #endif // MODEL_HEATPUMPAIRTOWATERFUELFIREDHEATING_IMPL_HPP
244