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/WaterHeaterHeatPump_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_WATERHEATERHEATPUMP_IMPL_HPP
7 #define MODEL_WATERHEATERHEATPUMP_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ZoneHVACComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class HVACComponent;
17
18 namespace detail {
19
20 /** WaterHeaterHeatPump_Impl is a ZoneHVACComponent_Impl that is the implementation class for WaterHeaterHeatPump.*/
21 class MODEL_API WaterHeaterHeatPump_Impl : public ZoneHVACComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 WaterHeaterHeatPump_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 WaterHeaterHeatPump_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 WaterHeaterHeatPump_Impl(const WaterHeaterHeatPump_Impl& other, Model_Impl* model, bool keepHandle);
32
33 20 virtual ~WaterHeaterHeatPump_Impl() override = default;
34
35 //@}
36 /** @name Virtual Methods */
37 //@{
38
39 virtual const std::vector<std::string>& outputVariableNames() const override;
40
41 virtual IddObjectType iddObjectType() const override;
42
43 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
44
45 virtual ComponentType componentType() const override;
46 virtual std::vector<FuelType> coolingFuelTypes() const override;
47 virtual std::vector<FuelType> heatingFuelTypes() const override;
48 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
49
50 //@}
51 /** @name Getters */
52 //@{
53
54 boost::optional<Schedule> availabilitySchedule() const;
55
56 Schedule compressorSetpointTemperatureSchedule() const;
57
58 double deadBandTemperatureDifference() const;
59
60 boost::optional<double> condenserWaterFlowRate() const;
61
62 bool isCondenserWaterFlowRateAutosized() const;
63
64 boost::optional<double> evaporatorAirFlowRate() const;
65
66 bool isEvaporatorAirFlowRateAutosized() const;
67
68 std::string inletAirConfiguration() const;
69
70 boost::optional<Schedule> inletAirTemperatureSchedule() const;
71
72 boost::optional<Schedule> inletAirHumiditySchedule() const;
73
74 HVACComponent tank() const;
75
76 ModelObject dXCoil() const;
77
78 double minimumInletAirTemperatureforCompressorOperation() const;
79
80 double maximumInletAirTemperatureforCompressorOperation() const;
81
82 std::string compressorLocation() const;
83
84 boost::optional<Schedule> compressorAmbientTemperatureSchedule() const;
85
86 HVACComponent fan() const;
87
88 std::string fanPlacement() const;
89
90 double onCycleParasiticElectricLoad() const;
91
92 double offCycleParasiticElectricLoad() const;
93
94 std::string parasiticHeatRejectionLocation() const;
95
96 Schedule inletAirMixerSchedule() const;
97
98 std::string tankElementControlLogic() const;
99
100 std::string controlSensorLocationInStratifiedTank() const;
101
102 boost::optional<double> autosizedCondenserWaterFlowRate() const;
103
104 boost::optional<double> autosizedEvaporatorAirFlowRate() const;
105
106 virtual void autosize() override;
107
108 virtual void applySizingValues() override;
109
110 //@}
111 /** @name Setters */
112 //@{
113
114 bool setAvailabilitySchedule(Schedule& schedule);
115
116 void resetAvailabilitySchedule();
117
118 bool setCompressorSetpointTemperatureSchedule(Schedule& schedule);
119
120 bool setDeadBandTemperatureDifference(double deadBandTemperatureDifference);
121
122 bool setCondenserWaterFlowRate(boost::optional<double> condenserWaterFlowRate);
123
124 void resetCondenserWaterFlowRate();
125
126 void autosizeCondenserWaterFlowRate();
127
128 bool setEvaporatorAirFlowRate(boost::optional<double> evaporatorAirFlowRate);
129
130 void resetEvaporatorAirFlowRate();
131
132 void autosizeEvaporatorAirFlowRate();
133
134 bool setInletAirConfiguration(const std::string& inletAirConfiguration);
135
136 bool setInletAirTemperatureSchedule(Schedule& schedule);
137
138 void resetInletAirTemperatureSchedule();
139
140 bool setInletAirHumiditySchedule(Schedule& schedule);
141
142 void resetInletAirHumiditySchedule();
143
144 bool setTank(const HVACComponent& waterHeater);
145
146 bool setDXCoil(const ModelObject& coil);
147
148 bool setMinimumInletAirTemperatureforCompressorOperation(double minimumInletAirTemperatureforCompressorOperation);
149
150 bool setMaximumInletAirTemperatureforCompressorOperation(double maximumInletAirTemperatureforCompressorOperation);
151
152 bool setCompressorLocation(const std::string& compressorLocation);
153
154 bool setCompressorAmbientTemperatureSchedule(Schedule& schedule);
155
156 void resetCompressorAmbientTemperatureSchedule();
157
158 bool setFan(const HVACComponent& fan);
159
160 bool setFanPlacement(const std::string& fanPlacement);
161
162 bool setOnCycleParasiticElectricLoad(double onCycleParasiticElectricLoad);
163
164 bool setOffCycleParasiticElectricLoad(double offCycleParasiticElectricLoad);
165
166 bool setParasiticHeatRejectionLocation(const std::string& parasiticHeatRejectionLocation);
167
168 bool setInletAirMixerSchedule(Schedule& schedule);
169
170 bool setTankElementControlLogic(const std::string& tankElementControlLogic);
171
172 bool setControlSensorLocationInStratifiedTank(const std::string& controlSensorLocationInStratifiedTank);
173
174 //@}
175 /** @name Other */
176 //@{
177
178 unsigned inletPort() const override;
179 unsigned outletPort() const override;
180 std::vector<ModelObject> children() const override;
181 ModelObject clone(Model model) const override;
182 bool addToThermalZone(ThermalZone& thermalZone) override;
183 std::vector<IdfObject> remove() override;
184
185 //@}
186 protected:
187 private:
188 − REGISTER_LOGGER("openstudio.model.WaterHeaterHeatPump");
189
190 boost::optional<Schedule> optionalCompressorSetpointTemperatureSchedule() const;
191 boost::optional<HVACComponent> optionalTank() const;
192 boost::optional<ModelObject> optionalDXCoil() const;
193 boost::optional<HVACComponent> optionalFan() const;
194 boost::optional<Schedule> optionalInletAirMixerSchedule() const;
195 };
196
197 } // namespace detail
198
199 } // namespace model
200 } // namespace openstudio
201
202 #endif // MODEL_WATERHEATERHEATPUMP_IMPL_HPP
203