Skip to main content

Simulator for Wind Turbines in mosaik

Project description

This program allows to simulate wind-turbines inside mosaik. Original from Fernando Penaherrera, modified by Christoph Stucke and adapted into the mosaik library by Malte Trauernicht.

Installation

  • To use this project, you have to install at least version 3.2.0 of mosaik

  • It is recommended, to use the Mosaik-CSV Library to import wind data

You can install this project through pip with the following command:

pip install mosaik-wind

How to Use

Specify simulators configurations within your scenario script:

sim_config = {
    'CSV': {
        'python': 'mosaik_csv:CSV',
    },
    'Wind': {
        'python': 'mosaik_components.wind:Simulator'
    },
    ...
}

Initialize the wind- and csv-simulator:

windData = world.start("CSV",
                   sim_start='YYYY-MM-DD HH:mm:ss',
                   datafile='path/to/wind/data.csv')

wind_simulator = world.start('Wind',
                             power_curve_csv='path/to/power_curve/data.csv',
                             step_size=60000
                             gen_neg=True)

Instantiate model entities:

wind_speed = windData.Wind()
wind_sim_model = wind_simulator.WT()

Connect wind- with csv-simulator:

world.connect(wind_speed, wind_sim_model, 'wind_speed')

CSV-Formatting

For the simulator to work correctly, both .csv files have to be specifically formatted!

wind-data

The wind_data.csv is formatted accordingly to the conventions of the mosaik_csv simulator:

Wind
Date,wind_speed
YYYY-MM-DD HH:mm:ss,v1
YYYY-MM-DD HH:mm:ss,v2
...
  • Each entry in the .csv needs a Date in the YYYY-MM-DD HH:mm:ss format and a wind_speed value v, measured in meters per second.

power-curve

The power_curve.csv does not need the formatting, of the mosaik_csv simulator:

wind_speed,power_factor
a1,b1
a2,b2
...
  • The Entries for each data point require the wind_speed a in the Beaufort wind force scale, as well as a corresponding power-factor b in megawatt.

Changelog

0.1.0 - 2024-03-06

  • Initial release of the mosaik-wind simulator

Authors

The adapter was initially developed by Fernando Penaherrera, modified by Thomas Raub and extended by Malte Trauernicht.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mosaik_wind-0.1.0.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

mosaik_wind-0.1.0-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page