Skip to main content

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.

Authors

The original concepts for mosaik were developed by Steffen Schütten and Stefan Scherfke.

The author of mosaik version 2 is Stefan Scherfke.

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-2.0a1.tar.gz (586.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mosaik-2.0a1-py2.py3-none-any.whl (26.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mosaik-2.0a1.tar.gz.

File metadata

  • Download URL: mosaik-2.0a1.tar.gz
  • Upload date:
  • Size: 586.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mosaik-2.0a1.tar.gz
Algorithm Hash digest
SHA256 f0a4294acca70450470efc3ff4d710820034cae9dff5cc50f6f18786f7be56b1
MD5 1f769f8dcbc753624eeacf9719a34a0f
BLAKE2b-256 6b3902cc804bdd800e5132b990f0c5bb72bb169d635a11bc2f1e582ff1007659

See more details on using hashes here.

File details

Details for the file mosaik-2.0a1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mosaik-2.0a1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0b162193db31dfedaf212913090a9ebe313abde19cf7a2c9e859e6aa33316de9
MD5 220d1108dd26654a201434e442e51b7c
BLAKE2b-256 f2367bfe3a8a649af5909e9de443cda03aab0f66f734e0d5b7d542b873f8cb70

See more details on using hashes here.

Supported by

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