|
152 | 152 | "source": [ |
153 | 153 | "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", |
154 | 154 | "\n", |
155 | | - "There are three ways to initialize a WindTurbine object in the windpowerlib. You can either specify your own turbine, as done below for 'myTurbine', or fetch power and/or power coefficient curve data from data files provided by the windpowerlib, as done for the 'enerconE126', or provide your turbine data in csv files as done for the 'example_turbine' with an example file.\n", |
| 155 | + "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", |
156 | 156 | "\n", |
157 | 157 | "You can execute the following to get a table of all wind turbines for which power and/or power coefficient curves are provided." |
158 | 158 | ] |
|
230 | 230 | "source": [ |
231 | 231 | "# specification of own wind turbine (Note: power coefficient values and\n", |
232 | 232 | "# nominal power have to be in Watt)\n", |
233 | | - "myTurbine = {\n", |
| 233 | + "my_turbine = {\n", |
234 | 234 | " 'name': 'myTurbine',\n", |
235 | 235 | " 'nominal_power': 3e6, # in W\n", |
236 | 236 | " 'hub_height': 105, # in m\n", |
|
241 | 241 | " 'wind_speed': [0.0, 3.0, 5.0, 10.0, 15.0, 25.0]}) # in m/s\n", |
242 | 242 | " } \n", |
243 | 243 | "# initialisze WindTurbine object\n", |
244 | | - "my_turbine = WindTurbine(**myTurbine)" |
| 244 | + "my_turbine = WindTurbine(**my_turbine)" |
245 | 245 | ] |
246 | 246 | }, |
247 | 247 | { |
|
265 | 265 | "# specification of wind turbine where power curve is provided\n", |
266 | 266 | "# if you want to use the power coefficient curve change the value of\n", |
267 | 267 | "# 'fetch_curve' to 'power_coefficient_curve'\n", |
268 | | - "enerconE126 = {\n", |
| 268 | + "enercon_e126 = {\n", |
269 | 269 | " 'name': 'E-126/4200', # turbine type as in register #\n", |
270 | 270 | " 'hub_height': 135, # in m\n", |
271 | 271 | " 'rotor_diameter': 127, # in m\n", |
272 | 272 | " 'fetch_curve': 'power_curve', # fetch power curve #\n", |
273 | 273 | " 'data_source': 'oedb' # data source oedb or name of csv file\n", |
274 | 274 | " }\n", |
275 | 275 | "# initialize WindTurbine object\n", |
276 | | - "e126 = WindTurbine(**enerconE126)" |
| 276 | + "e126 = WindTurbine(**enercon_e126)" |
277 | 277 | ] |
278 | 278 | }, |
279 | 279 | { |
|
284 | 284 | "source": [ |
285 | 285 | "# specification of wind turbine where power coefficient curve is provided\n", |
286 | 286 | "# by a csv file\n", |
287 | | - "dummyTurbine = {\n", |
| 287 | + "dummy_turbine = {\n", |
288 | 288 | " 'name': 'DUMMY 1', # turbine type as in file #\n", |
289 | 289 | " 'hub_height': 100, # in m\n", |
290 | 290 | " 'rotor_diameter': 70, # in m\n", |
291 | 291 | " 'fetch_curve': 'power_coefficient_curve', # fetch cp curve #\n", |
292 | 292 | " 'data_source': 'example_power_coefficient_curves.csv' # data source\n", |
293 | 293 | "}\n", |
294 | 294 | "# initialize WindTurbine object\n", |
295 | | - "dummy_turbine = WindTurbine(**dummyTurbine)" |
| 295 | + "dummy_turbine = WindTurbine(**dummy_turbine)" |
296 | 296 | ] |
297 | 297 | }, |
298 | 298 | { |
|
0 commit comments