GCC Code Coverage Report


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

src/model/CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData.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_COILCOOLINGWATERTOAIRHEATPUMPVARIABLESPEEDEQUATIONFITSPEEDDATA_HPP
7 #define MODEL_COILCOOLINGWATERTOAIRHEATPUMPVARIABLESPEEDEQUATIONFITSPEEDDATA_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ParentObject.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Curve;
17
18 namespace detail {
19
20 class CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl;
21
22 } // namespace detail
23
24 /** CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData is a ParentObject that wraps the OpenStudio IDD object 'OS:Coil:Cooling:WaterToAirHeatPump:VariableSpeedEquationFit:SpeedData'. */
25 class MODEL_API CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData : public ParentObject
26 {
27 public:
28 /** @name Constructors and Destructors */
29 //@{
30
31 explicit CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData(const Model& model);
32
33 explicit CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData(
34 const Model& model, const Curve& totalCoolingCapacityFunctionofTemperature, const Curve& totalCoolingCapacityFunctionofAirFlowFraction,
35 const Curve& totalCoolingCapacityFunctionofWaterFlowFraction, const Curve& energyInputRatioFunctionofTemperature,
36 const Curve& energyInputRatioFunctionofAirFlowFraction, const Curve& energyInputRatioFunctionofWaterFlowFraction,
37 const Curve& wasteHeatFunctionofTemperature);
38
39 136 virtual ~CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData() override = default;
40 // Default the copy and move operators because the virtual dtor is explicit
41 40 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData(const CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData& other) =
42 default;
43 57 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData(CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData&& other) = default;
44 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData&
45 ✗ operator=(const CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData&) = default;
46 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData&
47 ✗ operator=(CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData&&) = default;
48
49 //@}
50
51 static IddObjectType iddObjectType();
52
53 /** @name Getters */
54 //@{
55
56 double referenceUnitGrossRatedTotalCoolingCapacity() const;
57
58 double referenceUnitGrossRatedSensibleHeatRatio() const;
59
60 double referenceUnitGrossRatedCoolingCOP() const;
61
62 double referenceUnitRatedAirFlowRate() const;
63
64 double referenceUnitRatedWaterFlowRate() const;
65
66 Curve totalCoolingCapacityFunctionofTemperatureCurve() const;
67
68 Curve totalCoolingCapacityFunctionofAirFlowFractionCurve() const;
69
70 Curve totalCoolingCapacityFunctionofWaterFlowFractionCurve() const;
71
72 Curve energyInputRatioFunctionofTemperatureCurve() const;
73
74 Curve energyInputRatioFunctionofAirFlowFractionCurve() const;
75
76 Curve energyInputRatioFunctionofWaterFlowFractionCurve() const;
77
78 double referenceUnitWasteHeatFractionofInputPowerAtRatedConditions() const;
79
80 Curve wasteHeatFunctionofTemperatureCurve() const;
81
82 //@}
83 /** @name Setters */
84 //@{
85
86 bool setReferenceUnitGrossRatedTotalCoolingCapacity(double referenceUnitGrossRatedTotalCoolingCapacity);
87
88 bool setReferenceUnitGrossRatedSensibleHeatRatio(double referenceUnitGrossRatedSensibleHeatRatio);
89
90 bool setReferenceUnitGrossRatedCoolingCOP(double referenceUnitGrossRatedCoolingCOP);
91
92 bool setReferenceUnitRatedAirFlowRate(double referenceUnitRatedAirFlowRate);
93
94 bool setReferenceUnitRatedWaterFlowRate(double referenceUnitRatedWaterFlowRate);
95
96 bool setTotalCoolingCapacityFunctionofTemperatureCurve(const Curve& curve);
97
98 bool setTotalCoolingCapacityFunctionofAirFlowFractionCurve(const Curve& curve);
99
100 bool setTotalCoolingCapacityFunctionofWaterFlowFractionCurve(const Curve& curve);
101
102 bool setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve);
103
104 bool setEnergyInputRatioFunctionofAirFlowFractionCurve(const Curve& curve);
105
106 bool setEnergyInputRatioFunctionofWaterFlowFractionCurve(const Curve& curve);
107
108 bool setReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions(double referenceUnitWasteHeatFractionofInputPowerAtRatedConditions);
109
110 bool setWasteHeatFunctionofTemperatureCurve(const Curve& curve);
111
112 //@}
113 /** @name Other */
114 //@{
115
116 //@}
117 protected:
118 /// @cond
119 using ImplType = detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl;
120
121 explicit CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData(
122 std::shared_ptr<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl> impl);
123
124 friend class detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl;
125 friend class Model;
126 friend class IdfObject;
127 friend class openstudio::detail::IdfObject_Impl;
128 /// @endcond
129 private:
130 REGISTER_LOGGER("openstudio.model.CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData");
131 };
132
133 /** \relates CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData*/
134 using OptionalCoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData =
135 boost::optional<CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData>;
136
137 /** \relates CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData*/
138 using CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedDataVector =
139 std::vector<CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData>;
140
141 } // namespace model
142 } // namespace openstudio
143
144 #endif // MODEL_COILCOOLINGWATERTOAIRHEATPUMPVARIABLESPEEDEQUATIONFITSPEEDDATA_HPP
145