|
157 | 157 | "source": [ |
158 | 158 | "To initialize a specific turbine you need a dictionary that contains the basic parameters. A turbine is defined by its nominal power, hub height, rotor diameter, and power or power coefficient curve.\n", |
159 | 159 | "\n", |
160 | | - "There are three ways to initialize a WindTurbine object in the windpowerlib. You can either specify your own turbine, as done below for 'my_turbine', or fetch power and/or power coefficient curve data from data files provided by the windpowerlib, as done for the 'enercon_e126', or provide your turbine data in csv files as done for the 'dummy_turbine' with an example file.\n", |
| 160 | + "There are three ways to initialize a WindTurbine object in the windpowerlib. You can either use turbine data from the OpenEnergy Database (oedb) turbine library that is provided along with the windpowerlib, as done for the 'enercon_e126', or specify your own turbine by directly providing a power (coefficient) curve, as done below for 'my_turbine', or provide your own turbine data in csv files, as done for 'dummy_turbine'.\n", |
161 | 161 | "\n", |
162 | 162 | "You can execute the following to get a table of all wind turbines for which power and/or power coefficient curves are provided." |
163 | 163 | ] |
|
228 | 228 | "print(df[df[\"turbine_type\"].str.contains(\"E-101\")])" |
229 | 229 | ] |
230 | 230 | }, |
231 | | - { |
232 | | - "cell_type": "code", |
233 | | - "execution_count": 33, |
234 | | - "metadata": {}, |
235 | | - "outputs": [], |
236 | | - "source": [ |
237 | | - "# specification of own wind turbine (Note: power coefficient values and\n", |
238 | | - "# nominal power have to be in Watt)\n", |
239 | | - "my_turbine = {\n", |
240 | | - " 'name': 'myTurbine',\n", |
241 | | - " 'nominal_power': 3e6, # in W\n", |
242 | | - " 'hub_height': 105, # in m\n", |
243 | | - " 'rotor_diameter': 90, # in m\n", |
244 | | - " 'power_curve': pd.DataFrame(\n", |
245 | | - " data={'value': [p * 1000 for p in [\n", |
246 | | - " 0.0, 26.0, 180.0, 1500.0, 3000.0, 3000.0]], # in W\n", |
247 | | - " 'wind_speed': [0.0, 3.0, 5.0, 10.0, 15.0, 25.0]}) # in m/s\n", |
248 | | - " } \n", |
249 | | - "# initialisze WindTurbine object\n", |
250 | | - "my_turbine = WindTurbine(**my_turbine)" |
251 | | - ] |
252 | | - }, |
253 | 231 | { |
254 | 232 | "cell_type": "code", |
255 | 233 | "execution_count": 6, |
|
270 | 248 | "source": [ |
271 | 249 | "# specification of wind turbine where power curve is provided in the \n", |
272 | 250 | "# oedb turbine library\n", |
273 | | - "# if you want to use the power coefficient curve change the value of\n", |
274 | | - "# 'power_coefficient_curve' to 'oedb'.\n", |
| 251 | + "\n", |
275 | 252 | "enercon_e126 = {\n", |
276 | 253 | " 'turbine_type': 'E-126/4200', # turbine type as in oedb turbine library\n", |
277 | | - " 'hub_height': 135, # in m\n", |
278 | | - " 'rotor_diameter': 127, # in m (only needs to be provided when calculating the power \n", |
279 | | - " # output using the power coefficient curve)\n", |
| 254 | + " 'hub_height': 135 # in m\n", |
280 | 255 | " }\n", |
281 | 256 | "# initialize WindTurbine object\n", |
282 | 257 | "e126 = WindTurbine(**enercon_e126)" |
|
0 commit comments