05 Fakultät Informatik, Elektrotechnik und Informationstechnik
Permanent URI for this collectionhttps://elib.uni-stuttgart.de/handle/11682/6
Browse
Item Open Access A preCICE-FMI Runner to couple controller models to PDEs(2023) Willeke, LeonardPartitioned simulation or co-simulation allows to simulate complex systems by breaking them into smaller, independent subsystems. The Functional Mock-Up Interface FMI enables co-simulation by defining a framework for simulation models. Models adhering to the standard interface (FMUs) are executed and coupled by an importer. This framework approach works well for models based on ODEs and DAEs but reaches its limits for models based on PDEs. Such models require sophisticated, legacy software packages not compatible with the FMI standard. However, only PDE-based models are able to accurately simulate many physical aspects important in engineering like heat transfer or Fluid-Structure interactions. A possible solution to this problem is the open-source coupling library preCICE. preCICE couples PDE-based simulation programs in a black-box fashion to achieve partitioned multi-physics simulations. The coupling of the FMI standard to preCICE would allow the co-simulation of FMI models with the more than 20 simulation programs in the preCICE ecosystem. This thesis is focused on the development of a preCICE-FMI Runner software to couple FMUs with preCICE. The Runner serves as an importer to execute the FMU and steer the simulation. Additionally, it calls the preCICE library to communicate and coordinate with other solvers. The scope is not to develop a general Runner software, but to couple FMUs that contain control algorithms with PDE-based models as a first step. The software is written in Python and relies on the Python package FMPy as well as the preCICE Python bindings. Two test cases show the functionality of the preCICE-FMI Runner. The coupling of ODE-based models with FMUs matches the results of a pure Python implementation with an accuracy of 10 −4 . The coupling of a PDE-based model to a controller FMU proofs the working principle, although the results could not be tested against other implementations. The scope of the implemented abilities restricts the possible simulation scenarios, but does not prohibit a general use for coupling scenarios beyond control applications.