Skip to main content

A lightweight framework that enables the packaging of OpenFOAM as co-simulation FMUs.

Project description

FMU4FOAM

A lightweight framework that enables the packaging of Python 3 code or CSV files as co-simulation FMUs (following FMI version 2.0).

How do I build an FMU from python code?

  1. Install FMU4FOAM package:

requires conan and pythonfmu

pip install .

Compile OpenFOAM

./build-ECI4FOAM.sh # init submodule
./Allwmake

Create FMU

cd test
fmu4foam build -f test-example.py -of damBreak/ --no-external-tool
python test-omsim.py > log

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

FMU4FOAM-0.0.1.tar.gz (2.9 MB view hashes)

Uploaded Source

Built Distribution

FMU4FOAM-0.0.1-py3-none-any.whl (2.9 MB view hashes)

Uploaded Python 3

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