Skip to main content

Simulate Functional Mockup Units (FMUs) in Python

Project description

https://travis-ci.org/CATIA-Systems/FMPy.svg?branch=master https://ci.appveyor.com/api/projects/status/github/CATIA-Systems/FMPy?branch=master&svg=true

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:

python -m pip install --upgrade fmpy

or, to install the latest development version:

python -m pip install --upgrade https://github.com/CATIA-Systems/FMPy/archive/develop.zip

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

Windows (32-bit)

Windows (64-bit)

Linux (32-bit)

Linux (64-bit)

macOS

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


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.8.tar.gz (29.3 kB view details)

Uploaded Source

File details

Details for the file FMPy-0.0.8.tar.gz.

File metadata

  • Download URL: FMPy-0.0.8.tar.gz
  • Upload date:
  • Size: 29.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for FMPy-0.0.8.tar.gz
Algorithm Hash digest
SHA256 497d35697a47693286a3d7c145ebf748e9e925cf22653382a068683a58671cf7
MD5 72a9075296fa595be8e3b055207cd16a
BLAKE2b-256 d9e3af950d18ef28756cf0ecfb59b6a010b9f476e0fd91619f096f868c0c7d90

See more details on using hashes here.

Supported by

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