Skip to main content

Simulate Functional Mockup Units (FMUs) in Python

Project description

https://travis-ci.org/CATIA-Systems/FMPy.svg?branch=master

FMPy

FMPy is a Python library to simulate Functional Mockup Units (FMUs) that

  • supports FMI versions 1.0 and 2.0, Co-Simulation and Model Exchange

  • runs on Windows and Linux

  • validates the modelDescription.xml

  • is pure Python (with ctypes)

Getting Started

Installation

Install the latest release from PyPI

pip install fmpy

or install the latest development version from source

git clone -b develop https://github.com/CATIA-Systems/FMPy.git
cd fmpy
sudo pip install .

Simulate an FMU from the command line

The following commands will download an FMU and simulate it using the settings provided in the default experiment.

$ wget https://trac.fmi-standard.org/browser/branches/public/Test_FMUs/FMI_2.0/CoSimulation/linux64#MapleSim/2016.2/CoupledClutches
$ python -m fmpy.simulate 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

Copyright © 2017 Dassault Systèmes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FMPy-0.0.4.tar.gz (36.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page