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/HeatPumpAirToWaterFuelFiredCooling_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_HEATPUMPAIRTOWATERFUELFIREDCOOLING_IMPL_HPP
7 #define MODEL_HEATPUMPAIRTOWATERFUELFIREDCOOLING_IMPL_HPP
8
9 #include <model/ModelAPI.hpp>
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class HeatPumpAirToWaterFuelFiredHeating;
16 class Curve;
17 // class OutdoorAirNode;
18
19 namespace detail {
20
21 /** HeatPumpAirToWaterFuelFiredCooling_Impl is a StraightComponent_Impl that is the implementation class for HeatPumpAirToWaterFuelFiredCooling.*/
22 class MODEL_API HeatPumpAirToWaterFuelFiredCooling_Impl : public StraightComponent_Impl
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 HeatPumpAirToWaterFuelFiredCooling_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 HeatPumpAirToWaterFuelFiredCooling_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 HeatPumpAirToWaterFuelFiredCooling_Impl(const HeatPumpAirToWaterFuelFiredCooling_Impl& other, Model_Impl* model, bool keepHandle);
33
34 19 virtual ~HeatPumpAirToWaterFuelFiredCooling_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<HeatPumpAirToWaterFuelFiredHeating> companionHeatingHeatPump() const;
69
70 std::string fuelType() const;
71
72 std::string endUseSubcategory() const;
73
74 bool isEndUseSubcategoryDefaulted() const;
75
76 boost::optional<double> nominalCoolingCapacity() const;
77
78 bool isNominalCoolingCapacityAutosized() const;
79
80 boost::optional<double> autosizedNominalCoolingCapacity();
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 boost::optional<Curve> cyclingRatioFactorCurve() const;
117
118 double nominalAuxiliaryElectricPower() const;
119
120 boost::optional<Curve> auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve() const;
121
122 boost::optional<Curve> auxiliaryElectricEnergyInputRatioFunctionofPLRCurve() const;
123
124 double standbyElectricPower() const;
125
126 double minimumUnloadingRatio() const;
127
128 //@}
129 /** @name Setters */
130 //@{
131
132 // bool setAirSourceNode(const OutdoorAirNode& outdoorAirNode);
133
134 // void resetAirSourceNode();
135
136 bool setCompanionHeatingHeatPump(const HeatPumpAirToWaterFuelFiredHeating& heatPumpAirToWaterFuelFiredHeating);
137
138 void resetCompanionHeatingHeatPump();
139
140 bool setFuelType(const std::string& fuelType);
141
142 bool setEndUseSubcategory(const std::string& endUseSubcategory);
143
144 void resetEndUseSubcategory();
145
146 bool setNominalCoolingCapacity(double nominalCoolingCapacity);
147
148 void resetNominalCoolingCapacity();
149
150 void autosizeNominalCoolingCapacity();
151
152 bool setNominalCOP(double nominalCOP);
153
154 bool setDesignFlowRate(double designFlowRate);
155
156 void resetDesignFlowRate();
157
158 void autosizeDesignFlowRate();
159
160 bool setDesignSupplyTemperature(double designSupplyTemperature);
161
162 bool setDesignTemperatureLift(double designTemperatureLift);
163
164 void autosizeDesignTemperatureLift();
165
166 bool setSizingFactor(double sizingFactor);
167
168 bool setFlowMode(const std::string& flowMode);
169
170 bool setOutdoorAirTemperatureCurveInputVariable(const std::string& outdoorAirTemperatureCurveInputVariable);
171
172 bool setWaterTemperatureCurveInputVariable(const std::string& waterTemperatureCurveInputVariable);
173
174 bool setNormalizedCapacityFunctionofTemperatureCurve(const Curve& normalizedCapacityFunctionofTemperatureCurve);
175
176 bool setFuelEnergyInputRatioFunctionofTemperatureCurve(const Curve& fuelEnergyInputRatioFunctionofTemperatureCurve);
177
178 bool setFuelEnergyInputRatioFunctionofPLRCurve(const Curve& fuelEnergyInputRatioFunctionofPLRCurve);
179
180 bool setMinimumPartLoadRatio(double minimumPartLoadRatio);
181
182 bool setMaximumPartLoadRatio(double maximumPartLoadRatio);
183
184 bool setCyclingRatioFactorCurve(const Curve& cyclingRatioFactorCurve);
185
186 void resetCyclingRatioFactorCurve();
187
188 bool setNominalAuxiliaryElectricPower(double nominalAuxiliaryElectricPower);
189
190 bool setAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve(const Curve& auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve);
191
192 void resetAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve();
193
194 bool setAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve(const Curve& auxiliaryElectricEnergyInputRatioFunctionofPLRCurve);
195
196 void resetAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve();
197
198 bool setStandbyElectricPower(double standbyElectricPower);
199
200 bool setMinimumUnloadingRatio(double minimumUnloadingRatio);
201
202 //@}
203 /** @name Other */
204 //@{
205
206 //@}
207 protected:
208 private:
209 − REGISTER_LOGGER("openstudio.model.HeatPumpAirToWaterFuelFiredCooling");
210
211 boost::optional<Curve> optionalNormalizedCapacityFunctionofTemperatureCurve() const;
212 boost::optional<Curve> optionalFuelEnergyInputRatioFunctionofTemperatureCurve() const;
213 boost::optional<Curve> optionalFuelEnergyInputRatioFunctionofPLRCurve() const;
214 };
215
216 } // namespace detail
217
218 } // namespace model
219 } // namespace openstudio
220
221 #endif // MODEL_HEATPUMPAIRTOWATERFUELFIREDCOOLING_IMPL_HPP
222