# Using preCICE to couple python and OpenFOAM

**URL:** <https://precice.discourse.group/t/using-precice-to-couple-python-and-openfoam/766>\
**Category:** Is preCICE for me?\
**Tags:** openfoam, python\
**Created:** [October 20, 2021, 2:31pm UTC](https://precice.discourse.group/t/using-precice-to-couple-python-and-openfoam/766 "2021-10-20T14:31:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Makis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/makis/32/25_2.png) [@Makis](https://precice.discourse.group/u/Makis)\
**Post date:** [October 20, 2021, 9:56pm UTC](https://precice.discourse.group/t/using-precice-to-couple-python-and-openfoam/766/3 "2021-10-20T21:56:19Z")

</div>

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](https://precice.org/tutorials-partitioned-pipe.html)

The Python interface is also very easy: [Application programming interface | preCICE - The Coupling Library](https://precice.org/couple-your-code-api.html)

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.

---

_[View the full topic](https://precice.discourse.group/t/using-precice-to-couple-python-and-openfoam/766)._
