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/GeneratorWindTurbine_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_GENERATORWINDTURBINE_IMPL_HPP
7 #define MODEL_GENERATORWINDTURBINE_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "Generator_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16
17 /** GeneratorWindTurbine_Impl is a Generator_Impl that is the implementation class for GeneratorWindTurbine.*/
18 class MODEL_API GeneratorWindTurbine_Impl : public Generator_Impl
19 {
20
21 public:
22 /** @name Constructors and Destructors */
23 //@{
24
25 GeneratorWindTurbine_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
26
27 GeneratorWindTurbine_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
28
29 GeneratorWindTurbine_Impl(const GeneratorWindTurbine_Impl& other, Model_Impl* model, bool keepHandle);
30
31 14 virtual ~GeneratorWindTurbine_Impl() override = default;
32
33 //@}
34 /** @name Virtual Methods */
35 //@{
36
37 virtual const std::vector<std::string>& outputVariableNames() const override;
38
39 virtual IddObjectType iddObjectType() const override;
40
41 virtual std::string generatorObjectType() const override;
42
43 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
44
45 virtual boost::optional<double> ratedElectricPowerOutput() const override;
46
47 virtual boost::optional<Schedule> availabilitySchedule() const override;
48
49 virtual boost::optional<double> ratedThermaltoElectricalPowerRatio() const override;
50
51 //@}
52 /** @name Getters */
53 //@{
54
55 std::string rotorType() const;
56
57 std::string powerControl() const;
58
59 double ratedRotorSpeed() const;
60
61 double rotorDiameter() const;
62
63 double overallHeight() const;
64
65 int numberofBlades() const;
66
67 double ratedPower() const;
68
69 double ratedWindSpeed() const;
70
71 double cutInWindSpeed() const;
72
73 double cutOutWindSpeed() const;
74
75 double fractionSystemEfficiency() const;
76
77 double maximumTipSpeedRatio() const;
78
79 double maximumPowerCoefficient() const;
80
81 boost::optional<double> annualLocalAverageWindSpeed() const;
82
83 double heightforLocalAverageWindSpeed() const;
84
85 double bladeChordArea() const;
86
87 double bladeDragCoefficient() const;
88
89 double bladeLiftCoefficient() const;
90
91 double powerCoefficientC1() const;
92
93 double powerCoefficientC2() const;
94
95 double powerCoefficientC3() const;
96
97 double powerCoefficientC4() const;
98
99 double powerCoefficientC5() const;
100
101 double powerCoefficientC6() const;
102
103 //@}
104 /** @name Setters */
105 //@{
106
107 bool setAvailabilitySchedule(Schedule& schedule);
108
109 bool setRotorType(const std::string& rotorType);
110
111 bool setPowerControl(const std::string& powerControl);
112
113 bool setRatedRotorSpeed(double ratedRotorSpeed);
114
115 bool setRotorDiameter(double rotorDiameter);
116
117 bool setOverallHeight(double overallHeight);
118
119 bool setNumberofBlades(int numberofBlades);
120
121 bool setRatedPower(double ratedPower);
122
123 bool setRatedWindSpeed(double ratedWindSpeed);
124
125 bool setCutInWindSpeed(double cutInWindSpeed);
126
127 bool setCutOutWindSpeed(double cutOutWindSpeed);
128
129 bool setFractionSystemEfficiency(double fractionSystemEfficiency);
130
131 bool setMaximumTipSpeedRatio(double maximumTipSpeedRatio);
132
133 bool setMaximumPowerCoefficient(double maximumPowerCoefficient);
134
135 bool setAnnualLocalAverageWindSpeed(double annualLocalAverageWindSpeed);
136
137 void resetAnnualLocalAverageWindSpeed();
138
139 bool setHeightforLocalAverageWindSpeed(double heightforLocalAverageWindSpeed);
140
141 bool setBladeChordArea(double bladeChordArea);
142
143 bool setBladeDragCoefficient(double bladeDragCoefficient);
144
145 bool setBladeLiftCoefficient(double bladeLiftCoefficient);
146
147 bool setPowerCoefficientC1(double powerCoefficientC1);
148
149 bool setPowerCoefficientC2(double powerCoefficientC2);
150
151 bool setPowerCoefficientC3(double powerCoefficientC3);
152
153 bool setPowerCoefficientC4(double powerCoefficientC4);
154
155 bool setPowerCoefficientC5(double powerCoefficientC5);
156
157 bool setPowerCoefficientC6(double powerCoefficientC6);
158
159 //@}
160 /** @name Other */
161 //@{
162
163 //@}
164 protected:
165 private:
166 REGISTER_LOGGER("openstudio.model.GeneratorWindTurbine");
167 };
168
169 } // namespace detail
170
171 } // namespace model
172 } // namespace openstudio
173
174 #endif // MODEL_GENERATORWINDTURBINE_IMPL_HPP
175