A Universal Mechanism for Implementing Functional Mock-up Units

Christian Legaard, Daniella Tola, Thomas Schranz, Hugo Macedo, Peter Larsen

2021

Abstract

Producing independent simulation units that can be used in a Functional Mock-Up Interface (FMI) setting is challenging. In some cases, a modelling tool may be available that provides the exact capabilities needed by exporting such units. However, there may be cases where existing tools are not suitable, or the cost is prohibitive, thus it may be necessary to implement a Functional Mock-up Unit (FMU) from scratch. Correctly implementing an FMU from scratch requires a deep technical understanding of the FMI specification and the technologies it is built upon. A consequence of FMI being a C-based standard is that an FMU must, generally, be implemented in C or a compiled language that offers a binary-compatible with C such as C++, Rust, or Fortran. In this paper we present UniFMU, a tool that makes it possible to implement FMUs in any language, by writing an adapter that can be plugged in to our modular approach. UniFMU also provides both a graphical user interface and command-line interface feature for generating new FMUs from a selection of programming languages. We expect our tool and approach to be useful for the simulation community both when porting simulators written in languages without FMI support, and when implementing or re-implementing such support.

Download


Paper Citation


in Harvard Style

Legaard C., Tola D., Schranz T., Macedo H. and Larsen P. (2021). A Universal Mechanism for Implementing Functional Mock-up Units. In Proceedings of the 11th International Conference on Simulation and Modeling Methodologies, Technologies and Applications - Volume 1: SIMULTECH, ISBN 978-989-758-528-9, pages 121-129. DOI: 10.5220/0010577601210129


in Bibtex Style

@conference{simultech21,
author={Christian Legaard and Daniella Tola and Thomas Schranz and Hugo Macedo and Peter Larsen},
title={A Universal Mechanism for Implementing Functional Mock-up Units},
booktitle={Proceedings of the 11th International Conference on Simulation and Modeling Methodologies, Technologies and Applications - Volume 1: SIMULTECH,},
year={2021},
pages={121-129},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0010577601210129},
isbn={978-989-758-528-9},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 11th International Conference on Simulation and Modeling Methodologies, Technologies and Applications - Volume 1: SIMULTECH,
TI - A Universal Mechanism for Implementing Functional Mock-up Units
SN - 978-989-758-528-9
AU - Legaard C.
AU - Tola D.
AU - Schranz T.
AU - Macedo H.
AU - Larsen P.
PY - 2021
SP - 121
EP - 129
DO - 10.5220/0010577601210129