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/ChillerHeaterPerformanceElectricEIR_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_CHILLERHEATERPERFORMANCEELECTRICEIR_IMPL_HPP
7 #define MODEL_CHILLERHEATERPERFORMANCEELECTRICEIR_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ParentObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Curve;
16 class CentralHeatPumpSystem;
17 class CentralHeatPumpSystemModule;
18
19 namespace detail {
20
21 /** ChillerHeaterPerformanceElectricEIR_Impl is a ParentObject_Impl that is the implementation class for ChillerHeaterPerformanceElectricEIR.*/
22 class MODEL_API ChillerHeaterPerformanceElectricEIR_Impl : public ParentObject_Impl
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 ChillerHeaterPerformanceElectricEIR_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 ChillerHeaterPerformanceElectricEIR_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 ChillerHeaterPerformanceElectricEIR_Impl(const ChillerHeaterPerformanceElectricEIR_Impl& other, Model_Impl* model, bool keepHandle);
33
34 33 virtual ~ChillerHeaterPerformanceElectricEIR_Impl() override = default;
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 //@}
45 /** @name Getters */
46 //@{
47
48 boost::optional<double> referenceCoolingModeEvaporatorCapacity() const;
49
50 bool isReferenceCoolingModeEvaporatorCapacityAutosized() const;
51
52 double referenceCoolingModeCOP() const;
53
54 double referenceCoolingModeLeavingChilledWaterTemperature() const;
55
56 double referenceCoolingModeEnteringCondenserFluidTemperature() const;
57
58 double referenceCoolingModeLeavingCondenserWaterTemperature() const;
59
60 double referenceHeatingModeCoolingCapacityRatio() const;
61
62 double referenceHeatingModeCoolingPowerInputRatio() const;
63
64 double referenceHeatingModeLeavingChilledWaterTemperature() const;
65
66 double referenceHeatingModeLeavingCondenserWaterTemperature() const;
67
68 double referenceHeatingModeEnteringCondenserFluidTemperature() const;
69
70 double heatingModeEnteringChilledWaterTemperatureLowLimit() const;
71
72 std::string chilledWaterFlowModeType() const;
73
74 boost::optional<double> designChilledWaterFlowRate() const;
75
76 bool isDesignChilledWaterFlowRateAutosized() const;
77
78 boost::optional<double> designCondenserWaterFlowRate() const;
79
80 bool isDesignCondenserWaterFlowRateAutosized() const;
81
82 double designHotWaterFlowRate() const;
83
84 double compressorMotorEfficiency() const;
85
86 std::string coolingModeTemperatureCurveCondenserWaterIndependentVariable() const;
87
88 Curve coolingModeCoolingCapacityFunctionOfTemperatureCurve() const;
89
90 Curve coolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve() const;
91
92 Curve coolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve() const;
93
94 double coolingModeCoolingCapacityOptimumPartLoadRatio() const;
95
96 std::string heatingModeTemperatureCurveCondenserWaterIndependentVariable() const;
97
98 Curve heatingModeCoolingCapacityFunctionOfTemperatureCurve() const;
99
100 Curve heatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve() const;
101
102 Curve heatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve() const;
103
104 double heatingModeCoolingCapacityOptimumPartLoadRatio() const;
105
106 double sizingFactor() const;
107
108 boost::optional<double> autosizedReferenceCoolingModeEvaporatorCapacity() const;
109
110 boost::optional<double> autosizedDesignChilledWaterFlowRate() const;
111
112 boost::optional<double> autosizedDesignCondenserWaterFlowRate() const;
113
114 void autosize();
115
116 void applySizingValues();
117
118 //@}
119 /** @name Setters */
120 //@{
121
122 bool setReferenceCoolingModeEvaporatorCapacity(boost::optional<double> referenceCoolingModeEvaporatorCapacity);
123
124 void autosizeReferenceCoolingModeEvaporatorCapacity();
125
126 bool setReferenceCoolingModeCOP(double referenceCoolingModeCOP);
127
128 bool setReferenceCoolingModeLeavingChilledWaterTemperature(double referenceCoolingModeLeavingChilledWaterTemperature);
129
130 bool setReferenceCoolingModeEnteringCondenserFluidTemperature(double referenceCoolingModeEnteringCondenserFluidTemperature);
131
132 bool setReferenceCoolingModeLeavingCondenserWaterTemperature(double referenceCoolingModeLeavingCondenserWaterTemperature);
133
134 bool setReferenceHeatingModeCoolingCapacityRatio(double referenceHeatingModeCoolingCapacityRatio);
135
136 bool setReferenceHeatingModeCoolingPowerInputRatio(double referenceHeatingModeCoolingPowerInputRatio);
137
138 bool setReferenceHeatingModeLeavingChilledWaterTemperature(double referenceHeatingModeLeavingChilledWaterTemperature);
139
140 bool setReferenceHeatingModeLeavingCondenserWaterTemperature(double referenceHeatingModeLeavingCondenserWaterTemperature);
141
142 bool setReferenceHeatingModeEnteringCondenserFluidTemperature(double referenceHeatingModeEnteringCondenserFluidTemperature);
143
144 bool setHeatingModeEnteringChilledWaterTemperatureLowLimit(double heatingModeEnteringChilledWaterTemperatureLowLimit);
145
146 bool setChilledWaterFlowModeType(const std::string& chilledWaterFlowModeType);
147
148 bool setDesignChilledWaterFlowRate(boost::optional<double> designChilledWaterFlowRate);
149
150 void resetDesignChilledWaterFlowRate();
151
152 void autosizeDesignChilledWaterFlowRate();
153
154 bool setDesignCondenserWaterFlowRate(boost::optional<double> designCondenserWaterFlowRate);
155
156 void resetDesignCondenserWaterFlowRate();
157
158 void autosizeDesignCondenserWaterFlowRate();
159
160 bool setDesignHotWaterFlowRate(double designHotWaterFlowRate);
161
162 bool setCompressorMotorEfficiency(double compressorMotorEfficiency);
163
164 bool setCoolingModeTemperatureCurveCondenserWaterIndependentVariable(
165 const std::string& coolingModeTemperatureCurveCondenserWaterIndependentVariable);
166
167 bool setCoolingModeCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve);
168
169 bool setCoolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(const Curve& curve);
170
171 bool setCoolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(const Curve& curve);
172
173 bool setCoolingModeCoolingCapacityOptimumPartLoadRatio(double coolingModeCoolingCapacityOptimumPartLoadRatio);
174
175 bool setHeatingModeTemperatureCurveCondenserWaterIndependentVariable(
176 const std::string& heatingModeTemperatureCurveCondenserWaterIndependentVariable);
177
178 bool setHeatingModeCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve);
179
180 bool setHeatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(const Curve& curve);
181
182 bool setHeatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(const Curve& curve);
183
184 bool setHeatingModeCoolingCapacityOptimumPartLoadRatio(double heatingModeCoolingCapacityOptimumPartLoadRatio);
185
186 bool setSizingFactor(double sizingFactor);
187
188 //@}
189 /** @name Other */
190 //@{
191
192 // Reverse lookups
193 // Convenience functions to return parent CentralHeatPumpSystem and CentralHeatPumpSystemModule
194 // I've decided that multiple CentralHeatPumpSystemModules can reference the same ChillerHeaterPerformanceElectricEIR
195
196 /* Returns an Array of CentralHeatPumpSystemModule that reference this object as chillerHeaterModulesPerformanceComponent */
197 std::vector<CentralHeatPumpSystemModule> centralHeatPumpSystemModules() const;
198
199 /* Returns an Array of CentralHeatPumpSystem that have a CentralHeatPumpSystemModume that reference this object
200 * as chillerHeaterModulesPerformanceComponent */
201 std::vector<CentralHeatPumpSystem> centralHeatPumpSystems() const;
202
203 //@}
204 protected:
205 private:
206 − REGISTER_LOGGER("openstudio.model.ChillerHeaterPerformanceElectricEIR");
207
208 // Optional getters for use by methods like children() so can remove() if the constructor fails.
209 // There are other ways for the public versions of these getters to fail--perhaps all required
210 // objects should be returned as boost::optionals
211 boost::optional<Curve> optionalCoolingModeCoolingCapacityFunctionOfTemperatureCurve() const;
212 boost::optional<Curve> optionalCoolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve() const;
213 boost::optional<Curve> optionalCoolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve() const;
214 boost::optional<Curve> optionalHeatingModeCoolingCapacityFunctionOfTemperatureCurve() const;
215 boost::optional<Curve> optionalHeatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve() const;
216 boost::optional<Curve> optionalHeatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve() const;
217 };
218
219 } // namespace detail
220
221 } // namespace model
222 } // namespace openstudio
223
224 #endif // MODEL_CHILLERHEATERPERFORMANCEELECTRICEIR_IMPL_HPP
225