Skip to main content
CoFMPy logo


👋 About CoFMPy

CoFMPy is a Python library designed for rapid prototyping of digital twins through the co-simulation of Functional Mock-up Units (FMUs). It offers advanced master coordination features, such as solving algebraic loops between FMUs and managing the interaction between various simulation components. This library provides a seamless interface to orchestrate complex physics simulations and handle the data exchange between FMUs.

The documentation is available online: https://irt-saint-exupery.github.io/CoFMPy

🐾 Installation

CoFMPy is available on PyPI and can be installed using pip:

pip install cofmpy

🐍 Python interface

The Python interface allows users to use CoFMPy and run co-simulation. A high-level API is provided to easily run and visualize a co-simulation system. Advanced users can also dive deeper into the structure of CoFMPy for a more advanced control of the components.

Under the hood, CoFMPy is controlled by a component called the Coordinator. It is the entry point of CoFMPy and it manages all the other components:

  • the Master algorithm which is the engine that runs the co-simulation of FMUs.
  • the Graph Engine that builds the connections and interactions between the FMUs and the data sources and sinks.
  • the data stream handlers that control the input data required by the co-simulation system.
  • the data storages that allow to store or send the outputs of the simulation.

📜 JSON configuration file

To properly define the co-simulation system, a JSON configuration file must be created. This file is the only information required by CoFMPy to run the simulation. It must respect a specific syntax in order to define the FMUs, the interactions between them, the data sources and sinks, etc.

✒️ Contributing

Feel free to propose your ideas or come and contribute with us on the CoFMPy library!

🙏 Acknowledgments

This project was funded by the European Union under GA no 101101961 - HECATE. Views and opinions expressed are however those of the authors only and do not necessarily reflect those of the European Union or Clean Aviation Joint Undertaking. Neither the European Union nor the granting authority can be held responsible for them. The project is supported by the Clean Aviation Joint Undertaking and its Members.

HECATE logo IRT Saint Exupéry logo

📝 License

The package is released under the 2-Clause BSD License.

Metadata

Release files for cofmpy 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cofmpy 0.2.0
File Size Uploaded
cofmpy-0.2.0.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cofmpy 0.2.0
File Interpreter ABI Platform
cofmpy-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / cofmpy-0.2.0.tar.gz

Download URL cofmpy-0.2.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d616fec03672e154894bc47f18d2f94f33082073babd8c900c0c73008de35960
BLAKE2b-256 checksum
How to use checksums
649b4ce5d42de5532109240d63ee3847ff17720350b00dfb757fb053c9a408e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / cofmpy-0.2.0-py3-none-any.whl

Download URL cofmpy-0.2.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
867d4433cc8264fddf577a9c557497acef9be433215aac104c0b63493897d1d4
BLAKE2b-256 checksum
How to use checksums
84cea48121966236c2efcd15e4afb80eedff8b7685c9b2534a6a005ebde9191c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page