Portable runtime environments for Python-based FMUs: Adding Docker support to UniFMU

Authors

  • Thomas Schranz
  • Christian Møldrup Legaard
  • Daniella Tola
  • Gerald Schweiger

DOI:

https://doi.org/10.3384/ecp21181419

Keywords:

FMI, Co-Sim, Python, Tool-Coupling, Docker

Abstract

Co-simulation is a means to combine and leverage the strengths of different modeling tools, environments and formalisms and has been applied successfully in various domains. The Functional Mock-Up Interface (FMI) is the most commonly used standard for co-simulation. In this paper we extend UniFMU, a tool that allows users to build Functional Mock-Up Units (FMUs) in virtually any programming language, to support execution within Docker. As a result the generated FMUs can be distributed in an environment containing all runtime dependencies. To describe the process of creating dockerized FMUs using UniFMU, we show how to model and co-simulate a robotic arm and a controller using two Python-based FMUs.

Downloads

Published

2021-09-27