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 - Co-Simulation Workshop in Oldenburg

The Workshop “Co-Simulation with mosaik” took place in Oldenburg at December 6, 2017. In the course of the workshop we’ve covered topics like manual installation, a basic introduction into the…

Easy-to-use GUI for mosaik available

Maverig is a graphical user interface for the composition and visualization of Smart-Grid-Simulations based on mosaik. The accronym Maverig stands for mosaik Advanced Visualization Environment for…

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.