Skip to content

DLR-RY/FMU4FOAM

Repository files navigation

FMU4FOAM

A framework that enables the coupling of OpenFOAM with FMUs or the distribution of OpenFOAM as an FMU

Accurate CFD simulations often require complex boundary conditions that may be depend on numerous other engineering disciplines. Currently, these boundary conditions would require the addition of new models to the open-source CFD framework OpenFOAM which is error-prone and time-consuming. FMI standard offers a container (FMUs) to exchange multi-physics models that can be used to simulate these multi-physics. This library provides the possibility of coupled FMUs with OpenFOAM or exporting OpenFOAM as an FMU.

Documentation

Documentation hosted in github pages

How to install?

Assumes that the OpenFOAM version 2212 or higher and python v3.8+ is already installed Note: Older version are supported on v1.0.1

  1. Install FMU4FOAM package:

requires conan version 1

pip install conan==1.58.0

Compile OpenFOAM

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

more details are found in the documentation

run example

 pip install OMSimulator 
cd examples/TempControlFlange/
./Allrun