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/ZoneVentilationDesignFlowRate_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_ZONEVENTILATIONDESIGNFLOWRATE_IMPL_HPP
7 #define MODEL_ZONEVENTILATIONDESIGNFLOWRATE_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ZoneHVACComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16
17 namespace detail {
18
19 /** ZoneVentilationDesignFlowRate_Impl is a ZoneHVACComponent_Impl that is the implementation class for ZoneVentilationDesignFlowRate.*/
20 class MODEL_API ZoneVentilationDesignFlowRate_Impl : public ZoneHVACComponent_Impl
21 {
22 public:
23 /** @name Constructors and Destructors */
24 //@{
25
26 ZoneVentilationDesignFlowRate_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 ZoneVentilationDesignFlowRate_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 ZoneVentilationDesignFlowRate_Impl(const ZoneVentilationDesignFlowRate_Impl& other, Model_Impl* model, bool keepHandle);
31
32 11 virtual ~ZoneVentilationDesignFlowRate_Impl() override = default;
33
34 //@}
35 /** @name Virtual Methods */
36 //@{
37
38 virtual const std::vector<std::string>& outputVariableNames() const override;
39
40 virtual IddObjectType iddObjectType() const override;
41
42 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
43
44 virtual ComponentType componentType() const override;
45 virtual std::vector<FuelType> coolingFuelTypes() const override;
46 virtual std::vector<FuelType> heatingFuelTypes() const override;
47 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
48
49 //@}
50 /** @name Getters */
51 //@{
52
53 Schedule schedule() const;
54
55 std::string designFlowRateCalculationMethod() const;
56
57 double designFlowRate() const;
58
59 double flowRateperZoneFloorArea() const;
60
61 double flowRateperPerson() const;
62
63 double airChangesperHour() const;
64
65 std::string ventilationType() const;
66
67 double fanPressureRise() const;
68
69 double fanTotalEfficiency() const;
70
71 double constantTermCoefficient() const;
72
73 double temperatureTermCoefficient() const;
74
75 double velocityTermCoefficient() const;
76
77 double velocitySquaredTermCoefficient() const;
78
79 double minimumIndoorTemperature() const;
80
81 boost::optional<Schedule> minimumIndoorTemperatureSchedule() const;
82
83 double maximumIndoorTemperature() const;
84
85 boost::optional<Schedule> maximumIndoorTemperatureSchedule() const;
86
87 double deltaTemperature() const;
88
89 boost::optional<Schedule> deltaTemperatureSchedule() const;
90
91 double minimumOutdoorTemperature() const;
92
93 boost::optional<Schedule> minimumOutdoorTemperatureSchedule() const;
94
95 double maximumOutdoorTemperature() const;
96
97 boost::optional<Schedule> maximumOutdoorTemperatureSchedule() const;
98
99 double maximumWindSpeed() const;
100
101 std::string densityBasis() const;
102
103 virtual std::vector<EMSActuatorNames> emsActuatorNames() const override;
104
105 virtual std::vector<std::string> emsInternalVariableNames() const override;
106
107 //@}
108 /** @name Setters */
109 //@{
110
111 bool setSchedule(Schedule& schedule);
112
113 bool setDesignFlowRateCalculationMethod(const std::string& designFlowRateCalculationMethod);
114
115 bool setDesignFlowRate(double designFlowRate);
116
117 bool setFlowRateperZoneFloorArea(double flowRateperZoneFloorArea);
118
119 bool setFlowRateperPerson(double flowRateperPerson);
120
121 void resetFlowRateperPerson();
122
123 bool setAirChangesperHour(double airChangesperHour);
124
125 bool setVentilationType(const std::string& ventilationType);
126
127 bool setFanPressureRise(double fanPressureRise);
128
129 bool setFanTotalEfficiency(double fanTotalEfficiency);
130
131 bool setConstantTermCoefficient(double constantTermCoefficient);
132
133 bool setTemperatureTermCoefficient(double temperatureTermCoefficient);
134
135 bool setVelocityTermCoefficient(double velocityTermCoefficient);
136
137 bool setVelocitySquaredTermCoefficient(double velocitySquaredTermCoefficient);
138
139 bool setMinimumIndoorTemperature(double minimumIndoorTemperature);
140
141 bool setMinimumIndoorTemperatureSchedule(Schedule& schedule);
142
143 void resetMinimumIndoorTemperatureSchedule();
144
145 bool setMaximumIndoorTemperature(double maximumIndoorTemperature);
146
147 bool setMaximumIndoorTemperatureSchedule(Schedule& schedule);
148
149 void resetMaximumIndoorTemperatureSchedule();
150
151 bool setDeltaTemperature(double deltaTemperature);
152
153 bool setDeltaTemperatureSchedule(Schedule& schedule);
154
155 void resetDeltaTemperatureSchedule();
156
157 bool setMinimumOutdoorTemperature(double minimumOutdoorTemperature);
158
159 bool setMinimumOutdoorTemperatureSchedule(Schedule& schedule);
160
161 void resetMinimumOutdoorTemperatureSchedule();
162
163 bool setMaximumOutdoorTemperature(double maximumOutdoorTemperature);
164
165 bool setMaximumOutdoorTemperatureSchedule(Schedule& schedule);
166
167 void resetMaximumOutdoorTemperatureSchedule();
168
169 bool setMaximumWindSpeed(double maximumWindSpeed);
170
171 bool setDensityBasis(const std::string& densityBasis);
172
173 //@}
174 /** @name Other */
175 //@{
176
177 unsigned inletPort() const override;
178
179 unsigned outletPort() const override;
180
181 boost::optional<ThermalZone> thermalZone() const override;
182
183 bool addToThermalZone(ThermalZone& thermalZone) override;
184
185 void removeFromThermalZone() override;
186
187 //@}
188 protected:
189 private:
190 − REGISTER_LOGGER("openstudio.model.ZoneVentilationDesignFlowRate");
191
192 boost::optional<Schedule> optionalSchedule() const;
193 };
194
195 } // namespace detail
196
197 } // namespace model
198 } // namespace openstudio
199
200 #endif // MODEL_ZONEVENTILATIONDESIGNFLOWRATE_IMPL_HPP
201