GCC Code Coverage Report


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

src/model/CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit.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_COILCOOLINGWATERTOAIRHEATPUMPVARIABLESPEEDEQUATIONFIT_HPP
7 #define MODEL_COILCOOLINGWATERTOAIRHEATPUMPVARIABLESPEEDEQUATIONFIT_HPP
8
9 #include "ModelAPI.hpp"
10 #include "WaterToAirComponent.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Curve;
17 class CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData;
18 class AirflowNetworkEquivalentDuct;
19
20 namespace detail {
21
22 class CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit_Impl;
23
24 } // namespace detail
25
26 /** CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit is a WaterToAirComponent that wraps the OpenStudio IDD object 'OS:Coil:Cooling:WaterToAirHeatPump:VariableSpeedEquationFit'. */
27 class MODEL_API CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit : public WaterToAirComponent
28 {
29 public:
30 /** @name Constructors and Destructors */
31 //@{
32
33 explicit CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit(const Model& model);
34
35 explicit CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit(const Model& model, const Curve& partLoadFraction);
36
37 20 virtual ~CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit() override = default;
38 // Default the copy and move operators because the virtual dtor is explicit
39 ✗ CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit(const CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit& other) = default;
40 6 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit(CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit&& other) = default;
41 ✗ CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit& operator=(const CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit&) = default;
42 ✗ CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit& operator=(CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit&&) = default;
43
44 //@}
45
46 static IddObjectType iddObjectType();
47
48 /** @name Getters */
49 //@{
50
51 Schedule availabilitySchedule() const;
52
53 int nominalSpeedLevel() const;
54
55 boost::optional<double> grossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel() const;
56
57 bool isGrossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevelAutosized() const;
58
59 boost::optional<double> ratedAirFlowRateAtSelectedNominalSpeedLevel() const;
60
61 bool isRatedAirFlowRateAtSelectedNominalSpeedLevelAutosized() const;
62
63 boost::optional<double> ratedWaterFlowRateAtSelectedNominalSpeedLevel() const;
64
65 bool isRatedWaterFlowRateAtSelectedNominalSpeedLevelAutosized() const;
66
67 double nominalTimeforCondensatetoBeginLeavingtheCoil() const;
68
69 double initialMoistureEvaporationRateDividedbySteadyStateACLatentCapacity() const;
70
71 double maximumCyclingRate() const;
72
73 double latentCapacityTimeConstant() const;
74
75 double fanDelayTime() const;
76
77 bool useHotGasReheat() const;
78
79 Curve energyPartLoadFractionCurve() const;
80
81 //@}
82 /** @name Setters */
83 //@{
84
85 bool setAvailabilitySchedule(Schedule& schedule);
86
87 bool setNominalSpeedLevel(int nominalSpeedLevel);
88
89 bool setGrossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel(double grossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel);
90
91 void autosizeGrossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel();
92
93 bool setRatedAirFlowRateAtSelectedNominalSpeedLevel(double ratedAirFlowRateAtSelectedNominalSpeedLevel);
94
95 void autosizeRatedAirFlowRateAtSelectedNominalSpeedLevel();
96
97 bool setRatedWaterFlowRateAtSelectedNominalSpeedLevel(double ratedWaterFlowRateAtSelectedNominalSpeedLevel);
98
99 void autosizeRatedWaterFlowRateAtSelectedNominalSpeedLevel();
100
101 bool setNominalTimeforCondensatetoBeginLeavingtheCoil(double nominalTimeforCondensatetoBeginLeavingtheCoil);
102
103 bool setInitialMoistureEvaporationRateDividedbySteadyStateACLatentCapacity(
104 double initialMoistureEvaporationRateDividedbySteadyStateACLatentCapacity);
105
106 bool setMaximumCyclingRate(double maximumCyclingRate);
107
108 bool setLatentCapacityTimeConstant(double latentCapacityTimeConstant);
109
110 bool setFanDelayTime(double fanDelayTime);
111
112 bool setUseHotGasReheat(bool useHotGasReheat);
113
114 bool setEnergyPartLoadFractionCurve(const Curve& curve);
115
116 //@}
117 /** @name Other */
118 //@{
119
120 std::vector<CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData> speeds() const;
121
122 bool addSpeed(const CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData& speed);
123
124 void removeSpeed(const CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData& speed);
125
126 void removeAllSpeeds();
127
128 /** Returns an equivalent duct object, creating a new one if an object is not already attached. */
129 AirflowNetworkEquivalentDuct getAirflowNetworkEquivalentDuct(double length, double diameter);
130
131 /** Returns the attached equivalent duct object if there is one. */
132 boost::optional<AirflowNetworkEquivalentDuct> airflowNetworkEquivalentDuct() const;
133
134 boost::optional<double> autosizedGrossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel() const;
135
136 boost::optional<double> autosizedRatedAirFlowRateAtSelectedNominalSpeedLevel() const;
137
138 boost::optional<double> autosizedRatedWaterFlowRateAtSelectedNominalSpeedLevel() const;
139
140 //@}
141 protected:
142 /// @cond
143 using ImplType = detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit_Impl;
144
145 explicit CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit(
146 std::shared_ptr<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit_Impl> impl);
147
148 friend class detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit_Impl;
149 friend class Model;
150 friend class IdfObject;
151 friend class openstudio::detail::IdfObject_Impl;
152 /// @endcond
153 private:
154 REGISTER_LOGGER("openstudio.model.CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit");
155 };
156
157 /** \relates CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit*/
158 using OptionalCoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit = boost::optional<CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit>;
159
160 /** \relates CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit*/
161 using CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitVector = std::vector<CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit>;
162
163 } // namespace model
164 } // namespace openstudio
165
166 #endif // MODEL_COILCOOLINGWATERTOAIRHEATPUMPVARIABLESPEEDEQUATIONFIT_HPP
167