# OpenFOAM adapter or just preCICE function?

**URL:** <https://precice.discourse.group/t/openfoam-adapter-or-just-precice-function/1648>\
**Category:** Official adapters and tutorials\
**Tags:** openfoam\
**Created:** [November 7, 2023, 4:22am UTC](https://precice.discourse.group/t/openfoam-adapter-or-just-precice-function/1648 "2023-11-07T04:22:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fangyw98](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/fangyw98/32/1978_2.png) [@fangyw98](https://precice.discourse.group/u/fangyw98)\
**Post date:** [November 7, 2023, 4:22am UTC](https://precice.discourse.group/t/openfoam-adapter-or-just-precice-function/1648/1 "2023-11-07T04:22:21Z")

</div>

Hi,

Do I have to use OpenFOAM adapter? As I uses dsmcFoam, which doesn’t have a specified handy adapter.

Extending adapter or modify dsmcFoam, which is more convenient? And is there any reference for my case?

Thanks!

---

<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:** [November 7, 2023, 10:54am UTC](https://precice.discourse.group/t/openfoam-adapter-or-just-precice-function/1648/2 "2023-11-07T10:54:35Z")

</div>

I don’t know of anyone that has used dsmcFoam with preCICE, but I guess it will be special enough to have compatibility issues.

You could try extending the adapter: [Extend the OpenFOAM adapter | preCICE - The Coupling Library](https://precice.org/adapter-openfoam-extend.html)

Of course, you could also couple dsmcFoam directly from scratch, you don’t have to use the adapter: [Step 1 – Preparation | preCICE - The Coupling Library](https://precice.org/couple-your-code-preparing-your-solver.html) But extending the current one could save you some work, and it could be useful for the community.
