Using preCICE to couple python and OpenFOAM

Welcome, @ddiamant!

This sounds indeed very reasonable for preCICE. I understand that you want a surface coupling (not volume coupling) of an incompressible flow in OpenFOAM, coupled to an in-house compressible flow solver/model in Python.

You can start with this tutorial for the OpenFOAM part: Partitioned pipe flow | preCICE - The Coupling Library

The Python interface is also very easy: Application programming interface | preCICE - The Coupling Library

By the way, I am also working on fluid-fluid coupling of different models, so I would be very interested to see how your research goes and maybe I can help a bit in the meanwhile! I am also coupling OpenFOAM to a Python code at the moment.

2 Likes