Skip to main content

Lund University Publications

LUND UNIVERSITY LIBRARIES

PyFMI: A Python Package for Simulation of Coupled Dynamic Models with the Functional Mock-up Interface

Andersson, Christian LU ; Åkesson, Johan LU and Führer, Claus LU (2016) In Technical Report in Mathematical Sciences
Abstract
With the advent of the Functional Mock-up Interface (FMI) standard, exchanging dynamic models between modeling and simulation tools has been greatly simplified. At the core of it, FMI is a standardized and unified model execution interface for dynamic models. FMI has gained widespread adoption among users and numerous commercial and open source tools implement support for the standard. In this article, the Python package PyFMI is introduced. PyFMI supports loading and execution of models compliant with the FMI standard, called Functional Mock-up Units (FMUs). It includes a master algorithm for simulation of coupled FMUs together with connections to both Assimulo, for simulation of single FMUs, and to SciPy, for performing parameter... (More)
With the advent of the Functional Mock-up Interface (FMI) standard, exchanging dynamic models between modeling and simulation tools has been greatly simplified. At the core of it, FMI is a standardized and unified model execution interface for dynamic models. FMI has gained widespread adoption among users and numerous commercial and open source tools implement support for the standard. In this article, the Python package PyFMI is introduced. PyFMI supports loading and execution of models compliant with the FMI standard, called Functional Mock-up Units (FMUs). It includes a master algorithm for simulation of coupled FMUs together with connections to both Assimulo, for simulation of single FMUs, and to SciPy, for performing parameter estimation. Accessing models compliant with FMI in Python, which is an open and accessible scripting language, is intended to further spread the standard and also promote and facilitate future development of the standard. This is due to Python being a convenient language for experimentation and prototyping of numerical algorithms. PyFMI is also demonstrated on a number of problems that highlights its viability for solving industrial grade simulation problems with FMUs. (Less)
Please use this url to cite or link to this publication:
author
; and
organization
publishing date
type
Book/Report
publication status
published
subject
keywords
Functional Mock-up Interface, FMI, Python, Simulation, Co-Simulation, Ordinary differential equations, Parameter Estimation
in
Technical Report in Mathematical Sciences
issue
2
pages
40 pages
publisher
Centre for Mathematical Sciences, Lund University
report number
2016
ISSN
1403-9338
project
LCCC
language
English
LU publication?
yes
id
961a50eb-e4a8-43bc-80ac-d467eef26193
date added to LUP
2016-04-11 14:52:53
date last changed
2023-02-23 12:22:50
@techreport{961a50eb-e4a8-43bc-80ac-d467eef26193,
  abstract     = {{With the advent of the Functional Mock-up Interface (FMI) standard, exchanging dynamic models between modeling and simulation tools has been greatly simplified. At the core of it, FMI is a standardized and unified model execution interface for dynamic models. FMI has gained widespread adoption among users and numerous commercial and open source tools implement support for the standard. In this article, the Python package PyFMI is introduced. PyFMI supports loading and execution of models compliant with the FMI standard, called Functional Mock-up Units (FMUs). It includes a master algorithm for simulation of coupled FMUs together with connections to both Assimulo, for simulation of single FMUs, and to SciPy, for performing parameter estimation. Accessing models compliant with FMI in Python, which is an open and accessible scripting language, is intended to further spread the standard and also promote and facilitate future development of the standard. This is due to Python being a convenient language for experimentation and prototyping of numerical algorithms. PyFMI is also demonstrated on a number of problems that highlights its viability for solving industrial grade simulation problems with FMUs.}},
  author       = {{Andersson, Christian and Åkesson, Johan and Führer, Claus}},
  institution  = {{Centre for Mathematical Sciences, Lund University}},
  issn         = {{1403-9338}},
  keywords     = {{Functional Mock-up Interface; FMI; Python; Simulation; Co-Simulation; Ordinary differential equations; Parameter Estimation}},
  language     = {{eng}},
  number       = {{2016}},
  series       = {{Technical Report in Mathematical Sciences}},
  title        = {{PyFMI: A Python Package for Simulation of Coupled Dynamic Models with the Functional Mock-up Interface}},
  url          = {{https://lup.lub.lu.se/search/files/7201641/pyfmi_tech.pdf}},
  year         = {{2016}},
}