# OpenFoam+fenics for FSI on 3D

**URL:** <https://precice.discourse.group/t/openfoam-fenics-for-fsi-on-3d/404>\
**Category:** Using preCICE\
**Tags:** openfoam, adapters, fsi, fenics\
**Created:** [December 31, 2020, 3:04pm UTC](https://precice.discourse.group/t/openfoam-fenics-for-fsi-on-3d/404 "2020-12-31T15:04:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramiro\_Rebolledo](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/ramiro_rebolledo/32/480_2.png) [@Ramiro\_Rebolledo](https://precice.discourse.group/u/Ramiro_Rebolledo)\
**Post date:** [December 31, 2020, 3:04pm UTC](https://precice.discourse.group/t/openfoam-fenics-for-fsi-on-3d/404/1 "2020-12-31T15:04:31Z")

</div>

Hello. I’m trying to decide if it is a good idea to use OpenFoam+fenics for a fluid-structure interaction problem in 3D. I saw in the documentation that it is possible to do this in 2D, but I did not find information about 3D. Then, do you think that is possible (and easy) to use OpenFoam+fenics for FSI? Or maybe it is not a good idea for the moment.

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:** [January 1, 2021, 10:42am UTC](https://precice.discourse.group/t/openfoam-fenics-for-fsi-on-3d/404/2 "2021-01-01T10:42:10Z")

</div>

Welcome, @Ramiro_Rebolledo!

Our OpenFOAM adapter can handle both 3D (natively) and 2D (assuming only the face centers as mesh).  
There is also a [3D FSI example with OpenFOAM and CalculiX](https://github.com/precice/precice/wiki/Tutorial-for-FSI-with-OpenFOAM-and-CalculiX#expanding-tube) ([case](https://github.com/precice/tutorials/tree/master/FSI/3D_Tube/OpenFOAM-CalculiX)). Both links will soon be broken, as we are currently moving the documentation to our website and restructuring the tutorials.

As far as I know (and from the [README](https://github.com/precice/fenics-adapter/blob/develop/README.md)), our FEniCS adapter only supports 2D simulations for now. I guess you could extend it to 3D, but maybe 3D problems are trickier to handle in FEM. @IshaanDesai or @BenjaminRodenberg may know more regarding the FEniCS adapter in 3D.

---

<div class="post-metadata">

**Author:** ![IshaanDesai](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/ishaandesai/32/1048_2.png) [@IshaanDesai](https://precice.discourse.group/u/IshaanDesai)\
**Post date:** [January 1, 2021, 5:01pm UTC](https://precice.discourse.group/t/openfoam-fenics-for-fsi-on-3d/404/3 "2021-01-01T17:01:18Z")

</div>

Hi @Ramiro_Rebolledo!

It is great that you are thinking of using FEniCS for FSI. While it is true that currently the FEniCS-Adapter supports only 2D cases in FEniCS, we have estimated that modifying the adapter to handle 3D cases would be straightforward. Over the past few months we have put in a lot of work in redesigning the adapter into a modular structure which makes extending the adapter simple.  
The plan to extend the adapter to handle 3D cases is discussed in [this issue](https://github.com/precice/fenics-adapter/issues/1) and it is slated to be done in the near-future. In the mean time @BenjaminRodenberg and I can provide assistance in extending the adapter to 3D.

---

<div class="post-metadata">

**Author:** ![Ramiro\_Rebolledo](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/ramiro_rebolledo/32/480_2.png) [@Ramiro\_Rebolledo](https://precice.discourse.group/u/Ramiro_Rebolledo)\
**Post date:** [January 5, 2021, 1:15am UTC](https://precice.discourse.group/t/openfoam-fenics-for-fsi-on-3d/404/4 "2021-01-05T01:15:06Z")

</div>

Thanks!  
I think that I will choose the OpenFoam+Calculix option for instance.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/precice/original/1X/67d2a5fa6f80e597e2267ff17fa8c1673cd11caa.svg) [@system](https://precice.discourse.group/u/system)\
**Post date:** [January 8, 2021, 1:15am UTC](https://precice.discourse.group/t/openfoam-fenics-for-fsi-on-3d/404/5 "2021-01-08T01:15:10Z")

</div>

Closed on January 8, 2021, 1:15am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
