SimulatorToFMU is a software package written in Python which allows users to export a Python-driven simulation program or a Python script as a Functional Mock-up Unit (FMU) for model exchange or co-simulation using the Functional Mock-up Interface (FMI) standard version 1.0 or 2.0 (https://www.fmi-standard.org). This FMU can then be imported into a variety of simulation programs that support the import of Functional Mock-up Units.
SimulatorToFMU generates FMUs that use the Python 2.7/ C API for interfacing with Python-driven simulation programs and Python scripts.
To install run
pip install --user simulatortofmu
For more information visit the development page at https://github.com/LBNL-ETA/SimulatorToFMU
The license is at LICENSE.txt