{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Example for using the WindpowerlibTurbine model\n", "\n", "The `WindpowerlibTurbine` model can be used to determine the feed-in of a wind turbine using the windpowerlib.\n", "The [windpowerlib](https://github.com/wind-python/windpowerlib) is a python library for simulating the performance of wind turbines and farms. For more information about the model check the [documentation of the windpowerlib](https://windpowerlib.readthedocs.io/en/stable/).\n", "\n", "The following example shows you how to use the `WindpowerlibTurbine` model.\n", "\n", "* [Set up WindPowerPlant object](#windpowerplant_object)\n", "* [Get weather data](#weather_data)\n", "* [Calculate feed-in](#feedin)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Set up WindPowerPlant object \n", "\n", "To calculate the feed-in using the `WindpowerlibTurbine` model you have to set up a `WindPowerPlant` object. You can import it as follows:" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from feedinlib import WindPowerPlant" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The wind power plant must have all power plant parameters required by the `WindpowerlibTurbine` model. The required parameters can be looked up in the [model's documentation](https://feedinlib.readthedocs.io/en/features-design-skeleton/temp/feedinlib.models.WindpowerlibTurbine.html#feedinlib.models.WindpowerlibTurbine.power_plant_requires).\n", "\n", "The `WindpowerlibTurbine` model requires you to provide the turbine's **hub height** as well as the turbine's **power curve** or **power coefficient curve**. Alternatively to providing the curve(s) directly you can provide the **turbine type** which will retrieve the turbine's power and/or power coefficient curve from a wind turbine library provided along with the windpowerlib. For an overview of the provided wind turbines you can use the function `get_power_plant_data()`." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "from feedinlib import get_power_plant_data" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | manufacturer | \n", "turbine_type | \n", "has_power_curve | \n", "has_cp_curve | \n", "
---|---|---|---|---|
1 | \n", "Enercon | \n", "E-101/3050 | \n", "True | \n", "True | \n", "
2 | \n", "Enercon | \n", "E-101/3500 | \n", "True | \n", "True | \n", "
3 | \n", "Enercon | \n", "E-115/3000 | \n", "True | \n", "True | \n", "
4 | \n", "Enercon | \n", "E-115/3200 | \n", "True | \n", "True | \n", "