GCC Code Coverage Report


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

src/model/ChillerAbsorptionIndirect.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_CHILLERABSORPTIONINDIRECT_HPP
7 #define MODEL_CHILLERABSORPTIONINDIRECT_HPP
8
9 #include "ModelAPI.hpp"
10 #include "WaterToWaterComponent.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Curve;
17
18 namespace detail {
19
20 class ChillerAbsorptionIndirect_Impl;
21
22 } // namespace detail
23
24 /** ChillerAbsorptionIndirect is a WaterToWaterComponent that wraps the OpenStudio IDD object 'OS:Chiller:Absorption:Indirect'. */
25 class MODEL_API ChillerAbsorptionIndirect : public WaterToWaterComponent
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 explicit ChillerAbsorptionIndirect(const Model& model);
32
33 3 virtual ~ChillerAbsorptionIndirect() override = default;
34 // Default the copy and move operators because the virtual dtor is explicit
35 ✗ ChillerAbsorptionIndirect(const ChillerAbsorptionIndirect& other) = default;
36 ✗ ChillerAbsorptionIndirect(ChillerAbsorptionIndirect&& other) = default;
37 ✗ ChillerAbsorptionIndirect& operator=(const ChillerAbsorptionIndirect&) = default;
38 ✗ ChillerAbsorptionIndirect& operator=(ChillerAbsorptionIndirect&&) = default;
39
40 //@}
41
42 static IddObjectType iddObjectType();
43
44 static std::vector<std::string> chillerFlowModeValues();
45
46 static std::vector<std::string> generatorHeatSourceTypeValues();
47
48 /** @name Getters */
49 //@{
50
51 boost::optional<double> nominalCapacity() const;
52
53 bool isNominalCapacityAutosized() const;
54
55 boost::optional<double> nominalPumpingPower() const;
56
57 bool isNominalPumpingPowerAutosized() const;
58
59 double minimumPartLoadRatio() const;
60
61 double maximumPartLoadRatio() const;
62
63 double optimumPartLoadRatio() const;
64
65 double designCondenserInletTemperature() const;
66
67 double condenserInletTemperatureLowerLimit() const;
68
69 double chilledWaterOutletTemperatureLowerLimit() const;
70
71 boost::optional<double> designChilledWaterFlowRate() const;
72
73 bool isDesignChilledWaterFlowRateAutosized() const;
74
75 boost::optional<double> designCondenserWaterFlowRate() const;
76
77 bool isDesignCondenserWaterFlowRateAutosized() const;
78
79 std::string chillerFlowMode() const;
80
81 Curve generatorHeatInputFunctionofPartLoadRatioCurve() const;
82
83 Curve pumpElectricInputFunctionofPartLoadRatioCurve() const;
84
85 Curve capacityCorrectionFunctionofCondenserTemperatureCurve() const;
86
87 Curve capacityCorrectionFunctionofChilledWaterTemperatureCurve() const;
88
89 Curve capacityCorrectionFunctionofGeneratorTemperatureCurve() const;
90
91 Curve generatorHeatInputCorrectionFunctionofCondenserTemperatureCurve() const;
92
93 Curve generatorHeatInputCorrectionFunctionofChilledWaterTemperatureCurve() const;
94
95 std::string generatorHeatSourceType() const;
96
97 boost::optional<double> designGeneratorFluidFlowRate() const;
98
99 bool isDesignGeneratorFluidFlowRateAutosized() const;
100
101 double temperatureLowerLimitGeneratorInlet() const;
102
103 double degreeofSubcoolinginSteamGenerator() const;
104
105 double degreeofSubcoolinginSteamCondensateLoop() const;
106
107 double sizingFactor() const;
108
109 //@}
110 /** @name Setters */
111 //@{
112
113 bool setNominalCapacity(double nominalCapacity);
114
115 void autosizeNominalCapacity();
116
117 bool setNominalPumpingPower(double nominalPumpingPower);
118
119 void autosizeNominalPumpingPower();
120
121 bool setMinimumPartLoadRatio(double minimumPartLoadRatio);
122
123 bool setMaximumPartLoadRatio(double maximumPartLoadRatio);
124
125 bool setOptimumPartLoadRatio(double optimumPartLoadRatio);
126
127 bool setDesignCondenserInletTemperature(double designCondenserInletTemperature);
128
129 bool setCondenserInletTemperatureLowerLimit(double condenserInletTemperatureLowerLimit);
130
131 bool setChilledWaterOutletTemperatureLowerLimit(double chilledWaterOutletTemperatureLowerLimit);
132
133 bool setDesignChilledWaterFlowRate(double designChilledWaterFlowRate);
134
135 void autosizeDesignChilledWaterFlowRate();
136
137 bool setDesignCondenserWaterFlowRate(double designCondenserWaterFlowRate);
138
139 void autosizeDesignCondenserWaterFlowRate();
140
141 bool setChillerFlowMode(const std::string& chillerFlowMode);
142
143 bool setGeneratorHeatInputFunctionofPartLoadRatioCurve(const Curve& curve);
144
145 bool setPumpElectricInputFunctionofPartLoadRatioCurve(const Curve& curve);
146
147 bool setCapacityCorrectionFunctionofCondenserTemperatureCurve(const Curve& curve);
148
149 bool setCapacityCorrectionFunctionofChilledWaterTemperatureCurve(const Curve& curve);
150
151 bool setCapacityCorrectionFunctionofGeneratorTemperatureCurve(const Curve& curve);
152
153 bool setGeneratorHeatInputCorrectionFunctionofCondenserTemperatureCurve(const Curve& curve);
154
155 bool setGeneratorHeatInputCorrectionFunctionofChilledWaterTemperatureCurve(const Curve& curve);
156
157 // Will not accept "Steam" if chiller is connected to a Generator Loop as we do not support Steam Loops (yet)
158 bool setGeneratorHeatSourceType(const std::string& generatorHeatSourceType);
159
160 bool setDesignGeneratorFluidFlowRate(double designGeneratorFluidFlowRate);
161
162 void autosizeDesignGeneratorFluidFlowRate();
163
164 bool setTemperatureLowerLimitGeneratorInlet(double temperatureLowerLimitGeneratorInlet);
165
166 bool setDegreeofSubcoolinginSteamGenerator(double degreeofSubcoolinginSteamGenerator);
167
168 bool setDegreeofSubcoolinginSteamCondensateLoop(double degreeofSubcoolinginSteamCondensateLoop);
169
170 bool setSizingFactor(double sizingFactor);
171
172 //@}
173 /** @name Other */
174 //@{
175
176 boost::optional<double> autosizedNominalCapacity() const;
177
178 boost::optional<double> autosizedNominalPumpingPower() const;
179
180 boost::optional<double> autosizedDesignChilledWaterFlowRate() const;
181
182 boost::optional<double> autosizedDesignCondenserWaterFlowRate() const;
183
184 boost::optional<double> autosizedDesignGeneratorFluidFlowRate() const;
185
186 /** Convenience Function to return the Chilled Water Loop (chiller on supply) **/
187 boost::optional<PlantLoop> chilledWaterLoop() const;
188
189 /** Convenience Function to return the Condenser Water Loop (chiller on demand side) **/
190 boost::optional<PlantLoop> condenserWaterLoop() const;
191
192 /** Convenience Function to return the Generator Loop (chiller on the demand side - tertiary) **/
193 boost::optional<PlantLoop> generatorLoop() const;
194
195 //@}
196 protected:
197 /// @cond
198 using ImplType = detail::ChillerAbsorptionIndirect_Impl;
199
200 explicit ChillerAbsorptionIndirect(std::shared_ptr<detail::ChillerAbsorptionIndirect_Impl> impl);
201
202 friend class detail::ChillerAbsorptionIndirect_Impl;
203 friend class Model;
204 friend class IdfObject;
205 friend class openstudio::detail::IdfObject_Impl;
206 /// @endcond
207 private:
208 REGISTER_LOGGER("openstudio.model.ChillerAbsorptionIndirect");
209 };
210
211 /** \relates ChillerAbsorptionIndirect*/
212 using OptionalChillerAbsorptionIndirect = boost::optional<ChillerAbsorptionIndirect>;
213
214 /** \relates ChillerAbsorptionIndirect*/
215 using ChillerAbsorptionIndirectVector = std::vector<ChillerAbsorptionIndirect>;
216
217 } // namespace model
218 } // namespace openstudio
219
220 #endif // MODEL_CHILLERABSORPTIONINDIRECT_HPP
221