Mosaik is a flexible Smart-Grid co-simulation framework.
Project description
Mosaik
Mosaik is a simulation compositor for Smart Grid simulations.
It lets you re-use existing simulators and couple them to simulate large-scale Smart Grid scenarios. Mosaik offers powerful mechanisms to specify and compose these scenarios.
Example
A simple demo scenario with mosaik:
>>> import mosaik >>> >>> sim_config = { ... 'ExampleSim': {'python': 'example_sim.mosaik:ExampleSim'}, ... } >>> >>> def create_scenario(world): ... exsim1 = world.start('ExampleSim') ... exsim2 = world.start('ExampleSim') ... ... a = [exsim1.A(init_val=0) for i in range(3)] ... b = exsim2.B.create(2, init_val=0) ... ... for i, j in zip(a, b): ... world.connect(i, j, ('val_out', 'val_in')) >>> >>> world = mosaik.World(sim_config) >>> create_scenario(world) >>> world.run(until=2) Progress: 25.00% Progress: 50.00% Progress: 75.00% Progress: 100.00%
Installation
Mosaik requires Python >= 3.3. Use pip to install it, preferably into a virtualenv:
$ pip install mosaik
Documentation, Source code and issues
The documentation is available at https://mosaik.readthedocs.org.
Please report bugs and ideas for improvment to our issue tracker.
Changelog
2.0a1 – 2014-03-26
Initial release. Note, that mosaik is still alpha and not yet done.
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
mosaik-2.0a1.tar.gz
(586.9 kB
view hashes)
Built Distribution
mosaik-2.0a1-py2.py3-none-any.whl
(26.5 kB
view hashes)
Close
Hashes for mosaik-2.0a1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b162193db31dfedaf212913090a9ebe313abde19cf7a2c9e859e6aa33316de9 |
|
MD5 | 220d1108dd26654a201434e442e51b7c |
|
BLAKE2b-256 | f2367bfe3a8a649af5909e9de443cda03aab0f66f734e0d5b7d542b873f8cb70 |