Compressible OpenFOAM FSI tutorial

Hi, it is mentioned in several documents that preCICE works with OpenFOAM’s both incompressible and compressible solvers. This sounds reasonable in theory since the only difference is in the force calculation and variable rho. However, my recent tests with rhoPimpleFoam yielded a dimensional mismatch error, which is consistent with some other users (such as here).

I looked up for a preCICE tutorial case utilizing rhoPimpleFoam but could not find it, so now I am trying to set up my own case to be published. I think the best candidate would be the perpendicular-flap case. That will also help debugging the code I believe.

Meanwhile, any ideas on the source of this error would be appreciated.

Hi @hconel,

I just now managed to look deeper into these threads and the connected issue (Force computation for compressible solvers uses `p` field · Issue #253 · precice/openfoam-adapter · GitHub).

In case you were intending to write to Different dimensions for dimensions Issue in FSI when turbulence model is used - OpenFOAM adapter · Issue #158 · precice/openfoam-adapter · GitHub, that issue has been fixed on develop and it will land on v1.4.0. I have been extremely slow on releasing a new version - a lot is going on here lately, on different fronts.

As I wrote in #253:

There are users that have used rhoPimpleFoam or other compressible solvers. For example, see this blast/fence configuration coupling pimpleFoam to OpenRadioss. A long time ago, others coupled blastFoam.

v1.4.0 is out and it fixes the Different dimensions runtime error: