dc.contributor.author | Hatledal, Lars Ivar | |
dc.contributor.author | Collonval, Frederic | |
dc.contributor.author | Zhang, Houxiang | |
dc.date.accessioned | 2020-09-08T11:33:00Z | |
dc.date.available | 2020-09-08T11:33:00Z | |
dc.date.created | 2020-06-25T09:02:39Z | |
dc.date.issued | 2020 | |
dc.identifier.isbn | 978-3-937436-68-5 | |
dc.identifier.uri | https://hdl.handle.net/11250/2676861 | |
dc.description.abstract | This paper introduces PythonFMU, an easy to use framework for exporting Python 3.x code as cosimulation compatible models compliant with version 2.0 of the Functional Mock-up Interface (FMI). The framework consists of a set of helper classes and a command line utility for transforming compliant python source into ready to use cross-platform FMUs. PythonFMU seamlessly takes care of a number of lowlevel FMI functions such as getting and setting variable values, and state handling, including serialization and deserialization. Furthermore it provides pre-built binaries for Windows and Linux 64-bits, generates the required modelDescription.xml containing meta-data about the model and packages all related files into a Functional Mock-up Unit (FMU) - ready to be imported into any FMI compatible simulation tool. The framework can be effortlessly installed using de-facto standard Python package managers pip and conda. While PythonFMU is more geared towards ease of use and enabling Python driven co-simulation models, it is shown to have adequate performance compared to much more low-level alternatives targeting other programming languages. | en_US |
dc.language.iso | eng | en_US |
dc.publisher | ECMS European Council for Modelling and Simulation | en_US |
dc.relation.ispartof | Proceedings of the 34th International ECMS - Conference on Modelling and Simulation - ECMS 2020 | |
dc.title | Enabling Python Driven Co-Simulation Models with PythonFMU | en_US |
dc.type | Chapter | en_US |
dc.description.version | acceptedVersion | en_US |
dc.source.pagenumber | 235-239 | en_US |
dc.identifier.doi | 10.7148/2020-0235 | |
dc.identifier.cristin | 1817039 | |
cristin.ispublished | true | |
cristin.fulltext | postprint | |
cristin.qualitycode | 1 | |