mosaik — A flexible Smart Grid co-simulation framework

Mosaik is a flexible Smart Grid co-simulation framework.

Mosaik allows you to reuse and combine existing simulation models and simulators to create large-scale Smart Grid scenarios – and by large-scale we mean thousands of simulated entities distributed over multiple simulator processes. These scenarios can then serve as test bed for various types of control strategies (e.g., multi-agent systems (MAS) or centralized control).

Mosaik is written in Python and completely open source (LGPL), including some simple simulators, a binding to PYPOWER and a demonstration scenario.

Mosaik API

The mosaik API allows you to easily integrate existing simulators, control strategies or other components into mosaik, no matter in which programming language they are implemented.

Scenario Definition

Mosaik provides a simple API to create large-scale simulation scenarios. You can start simulator processes, instantiate models and connect the resulting entities (e.g., one-by-one or based on probability distributions).

Sim Manager

Mosaik can start new processes for a simulator or alternatively connect to a running instance of it. If a simulator is written in Python 3, it can also be imported and executed in-process.

Coordinated Execution

Mosaik uses an event-discrete simulation based on SimPy to coordinate the execution of all simulators. Thus, each simulator can have a different step size which may even vary during the simulation.

Mosaik-api-python 2.2 released

Regarding to the new release of mosaik the mosaik-api version 2.2 supports the new method “setup_done()” (see the last blog article or in the documentation). Furthermore the API version which has to …

What users of mosaik say:

Handling complex scenarios is one of the biggest challenges in Smart Grids research – mosaik solves that.
—Peter Palensky, AIT Vienna
Flexibly integrating COTS energy system simulators is a great feature of mosaik.
—Lars Nordström, KTH Stockholm
We need to integrate our MATLAB load and DG models with power system simulation for a large number of scenarios – mosaik makes our life a lot easier.
—Olav Krause, University of Queensland
Mosaik is easy and fun to use. Coherent scenario specification and flexibility toward the co-simulation composition are the strongest features of this tool.
—Anna Magdalena Kosek, Technical University of Denmark
This technological gem, including the integration framework mosaik, is a ground-breaking real-time co-simulation platform.
—OPAL-RT Technologies Inc.