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?
- 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
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.
Source Distribution
FMU4FOAM-0.0.1.tar.gz
(2.9 MB
view hashes)