mosaik-battery
The adapter was initially developed by Tobias Janke and adjusted for the mosaik-project 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 battery data
You can install this project through pip with the following command:
pip install mosaik-battery
How to Use
This demonstartion uses the mosaik-powerplant simulator to charge the batteries. Specify simulators configurations within your scenario script:
sim_config = {
'CSV': {
'python': 'mosaik_csv:CSV',
},
'Battery': {
'python': 'mosaik_components.battery:Simulator'
},
'PowerPlant': {
'python': 'mosaik_components.powerplant:Simulator'
},
...
}
Initialize the simulators:
battery_simulator = world.start('Battery',
step_size=1800,
number_of_schedules=3,
charge_power=100,
discharge_power=50,
battery_capacity=5000,
start_soc=0.1,
interval_size=2)
powerplantData = world.start("CSV",
sim_start=SIM_START,
datafile=POWERPLANT_DATA)
powerplant_simulator = world.start('PowerPlant',
step_size=1800,
number_of_schedules=3,
ramp_behavior=[2, 2],
min_power=0.5,
max_power=3,
interval_size=2)
Instantiate model entities:
battery_sim_model = battery_simulator.Battery() powerplant_data = powerplantData.NaturalGas() powerplant_sim_model = powerplant_simulator.Powerplant()
Connect battery- with powerplant-simulator:
world.connect(powerplant_data, powerplant_sim_model, 'p_mw') world.connect(powerplant_sim_model, battery_sim_model, 'schedules')
Changelog
0.1.0 - 2024-03-06
Initial release of the mosaik-battery simulator
Metadata
Release files for mosaik-battery 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mosaik_battery-0.1.0.tar.gz | 4.0 kB | Without provenance | Details for mosaik_battery-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mosaik_battery-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mosaik_battery-0.1.0-py3-none-any.whl |
Total release size: 8.9 kB
Release files / mosaik_battery-0.1.0.tar.gz
| Download URL | mosaik_battery-0.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d265d52d8906c09ef36de06eb45e7f5e963065583a6650d622b0595d144b37fb
|
|
BLAKE2b-256 checksum How to use checksums |
caefdbeb2a73d1016ba425b23000320419fd1970117d4ce3736457891c3f170a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.9.18 Linux/5.4.109+
|
Release files / mosaik_battery-0.1.0-py3-none-any.whl
| Download URL | mosaik_battery-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fa4ef07a61ca34b364d56a9afed243daf050629f57fc68462d905418e0afdff
|
|
BLAKE2b-256 checksum How to use checksums |
5b889a08ef6235ef7d7f7175b06a9e164e9896e04b5ef7b2c4812492cc18383c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.9.18 Linux/5.4.109+
|
Security for mosaik-battery 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.