GCC Code Coverage Report


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

src/model/HeaderedPumpsVariableSpeed_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_HEADEREDPUMPSVARIABLESPEED_IMPL_HPP
7 #define MODEL_HEADEREDPUMPSVARIABLESPEED_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class ThermalZone;
17
18 namespace detail {
19
20 /** HeaderedPumpsVariableSpeed_Impl is a StraightComponent_Impl that is the implementation class for HeaderedPumpsVariableSpeed.*/
21 class MODEL_API HeaderedPumpsVariableSpeed_Impl : public StraightComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 HeaderedPumpsVariableSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 HeaderedPumpsVariableSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 HeaderedPumpsVariableSpeed_Impl(const HeaderedPumpsVariableSpeed_Impl& other, Model_Impl* model, bool keepHandle);
32
33 1 virtual ~HeaderedPumpsVariableSpeed_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 void autosize() override;
46
47 virtual void applySizingValues() override;
48
49 virtual std::vector<EMSActuatorNames> emsActuatorNames() const override;
50
51 virtual std::vector<std::string> emsInternalVariableNames() const override;
52
53 virtual ComponentType componentType() const override;
54 virtual std::vector<FuelType> coolingFuelTypes() const override;
55 virtual std::vector<FuelType> heatingFuelTypes() const override;
56 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
57
58 //@}
59 /** @name Getters */
60 //@{
61
62 boost::optional<double> totalRatedFlowRate() const;
63
64 bool isTotalRatedFlowRateAutosized() const;
65
66 int numberofPumpsinBank() const;
67
68 std::string flowSequencingControlScheme() const;
69
70 double ratedPumpHead() const;
71
72 boost::optional<double> ratedPowerConsumption() const;
73
74 bool isRatedPowerConsumptionAutosized() const;
75
76 double motorEfficiency() const;
77
78 double fractionofMotorInefficienciestoFluidStream() const;
79
80 double coefficient1ofthePartLoadPerformanceCurve() const;
81
82 double coefficient2ofthePartLoadPerformanceCurve() const;
83
84 double coefficient3ofthePartLoadPerformanceCurve() const;
85
86 double coefficient4ofthePartLoadPerformanceCurve() const;
87
88 double minimumFlowRateFraction() const;
89
90 std::string pumpControlType() const;
91
92 boost::optional<Schedule> pumpFlowRateSchedule() const;
93
94 boost::optional<ThermalZone> thermalZone() const;
95
96 double skinLossRadiativeFraction() const;
97
98 std::string designPowerSizingMethod() const;
99
100 double designElectricPowerPerUnitFlowRate() const;
101
102 double designShaftPowerPerUnitFlowRatePerUnitHead() const;
103
104 boost::optional<double> autosizedTotalRatedFlowRate() const;
105
106 boost::optional<double> autosizedRatedPowerConsumption() const;
107
108 std::string endUseSubcategory() const;
109
110 //@}
111 /** @name Setters */
112 //@{
113
114 bool setTotalRatedFlowRate(boost::optional<double> totalRatedFlowRate);
115
116 void autosizeTotalRatedFlowRate();
117
118 bool setNumberofPumpsinBank(int numberofPumpsinBank);
119
120 bool setFlowSequencingControlScheme(const std::string& flowSequencingControlScheme);
121
122 bool setRatedPumpHead(double ratedPumpHead);
123
124 bool setRatedPowerConsumption(boost::optional<double> ratedPowerConsumption);
125
126 void autosizeRatedPowerConsumption();
127
128 bool setMotorEfficiency(double motorEfficiency);
129
130 bool setFractionofMotorInefficienciestoFluidStream(double fractionofMotorInefficienciestoFluidStream);
131
132 bool setCoefficient1ofthePartLoadPerformanceCurve(double coefficient1ofthePartLoadPerformanceCurve);
133
134 bool setCoefficient2ofthePartLoadPerformanceCurve(double coefficient2ofthePartLoadPerformanceCurve);
135
136 bool setCoefficient3ofthePartLoadPerformanceCurve(double coefficient3ofthePartLoadPerformanceCurve);
137
138 bool setCoefficient4ofthePartLoadPerformanceCurve(double coefficient4ofthePartLoadPerformanceCurve);
139
140 bool setMinimumFlowRateFraction(double minimumFlowRateFraction);
141
142 bool setPumpControlType(const std::string& pumpControlType);
143
144 bool setPumpFlowRateSchedule(Schedule& schedule);
145
146 void resetPumpFlowRateSchedule();
147
148 bool setThermalZone(const boost::optional<ThermalZone>& thermalZone);
149
150 void resetThermalZone();
151
152 bool setSkinLossRadiativeFraction(double skinLossRadiativeFraction);
153
154 bool setDesignPowerSizingMethod(const std::string& designPowerSizingMethod);
155
156 bool setDesignElectricPowerPerUnitFlowRate(double designElectricPowerPerUnitFlowRate);
157
158 bool setDesignShaftPowerPerUnitFlowRatePerUnitHead(double designShaftPowerPerUnitFlowRatePerUnitHead);
159
160 bool setEndUseSubcategory(const std::string& endUseSubcategory);
161
162 //@}
163 /** @name Other */
164 //@{
165
166 virtual unsigned inletPort() const override;
167
168 virtual unsigned outletPort() const override;
169
170 bool addToNode(Node& node) override;
171
172 //@}
173 protected:
174 private:
175 REGISTER_LOGGER("openstudio.model.HeaderedPumpsVariableSpeed");
176 };
177
178 } // namespace detail
179
180 } // namespace model
181 } // namespace openstudio
182
183 #endif // MODEL_HEADEREDPUMPSVARIABLESPEED_IMPL_HPP
184