Simulate Functional Mockup Units (FMUs) in Python
Project description
FMPy
FMPy is a Python library to simulate Functional Mockup Units (FMUs) that…
supports FMI 1.0 and 2.0
supports Co-Simulation and Model Exchange
runs on Windows, Linux and macOS
can validate FMUs
is pure Python (with ctypes)
Installation
To install the latest release from PyPI or update an existing installation type:
pip install --upgrade fmpy
on the command line or install the latest development version from source:
git clone -b develop https://github.com/CATIA-Systems/FMPy.git cd fmpy pip install --upgrade --no-deps --force-reinstall .
Simulate an FMU on the command line
To simulate CoupledClutches.fmu and plot the results download the FMU for your platform and run the following command in the folder where you downloaded the FMU:
$ python -m fmpy.simulate CoupledClutches.fmu
CoupledClutches.fmu |
Simulate an FMU in Python
For an example of how to simulate an FMU in Python see coupled_clutches.py. To run the script type:
$ python -m fmpy.examples.coupled_clutches
© 2017 Dassault Systèmes
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.