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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mosaik_wind-0.1.0.tar.gz
.
File metadata
- Download URL: mosaik_wind-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.9.18 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 284993ae0ead0435e2613169e3803bdc86eb203ad52235115db10f6212eea86a |
|
MD5 | 91626e5771b53c99af294442e6e398d5 |
|
BLAKE2b-256 | fe1c3ae2579d3dca184946912302358ab83433df48356bd761a37168d5b01ac0 |
File details
Details for the file mosaik_wind-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: mosaik_wind-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.9.18 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c617867a9080f107f4c6c30f70170427a2ac5d1f1231f4f5ad2dd0c271d7616 |
|
MD5 | 5663180a1c32964c48ef186d0bb5391a |
|
BLAKE2b-256 | 9e2a52f55ad687751b63953d15a91faeb7df815ecb5db27d135b4311cc1b4716 |