Trouble installing OpenFOAM6 adapter with precice v3

Hello everybody,

my goal is to perform a FF volume coupling with Openfoam 6 and precice. From another post, I saw that volume coupling is only possible with preCICE v3, which I install as a package through apt-get. While trying to compile the OpenFOAM6 branch of the openfoam-adapter, my build fails, because of problems with the Interface.C file. This is probably related: when I run

pkg-config --cflags libprecice

I get an empty newline as a response. Has anybody experienced similar issues before and could help me solve these? I have attached the wmake.log and Allwmake.log files

Allwmake.log (907 Bytes)
wmake.log (46.0 KB)

Thanks and all the best,
Dennis

Hi Dennis,

sorry for the late reply, I was on vacation last week and only now looked at the forum.

I assume you are using the OpenFOAM6 branch of the adapter, and not any of the released archives. I have not yet (completely) ported any of the OpenFOAM.org compatibility branches to the latest adapter version with preCICE v3 support, since this is becoming more and more complicated (see and comment on Policy on support for OpenFOAM.org and other versions · Issue #328 · precice/openfoam-adapter · GitHub).

Why do you need this specific version?

Hi Gerasimos,

no worries, I hope you enjoyed your time off.

Thanks for clarifying! I am looking at this specific version of the openfoam adapter , because as I understand, volume coupling for fluid-fluid simulations with openfoam only work with preCICE v3 (?). This specific version of openfoam, simply because our solver is based on OF-6.

Hi @dennis,

volume coupling also works with earlier preCICE versions, but for the OpenFOAM adapter, it is only integrated since v1.3.0.

We recently got a helpful contribution that simplifies how we test previous versions. I will look into supporting older OpenFOAM versions again in the next days.

1 Like

@dennis I finally cooked something. Could you please give it a try and give me some feedback?

I made a new repository for the Foundation-compatible adapter, since I expect this to diverge a lot from the main repository. I have now ported up to OpenFOAM 7, but I cannot easily get OpenFOAM 6 or earlier nowadays to develop or test. Please let me know if the adapter compiles and if the usual tutorials run as expected.

Disclaimer: OpenFOAM 6 was released in 2018. Consider upgrading to something newer. The ESI versions so far have been very stable, and OpenFOAM 6 is not that different from v2412. I have now collected some porting notes as well:

Hi Makis, alright, perfect thank you for your help! Ill test it out and let you know how it works.

Regarding the ESI version: yes, youve mentioned at the workshop that it might be best to change from .org to .com, so I’ve started moving our solver to the newest ESI version.

Thanks again for your help,
Dennis

1 Like

Hi Makis, Hi Dennis,

I made small modifications which should enable the compilation with OF6. You find them on Github in this PR.

Best
Patrick

2 Likes

Hi Patrick,

cool, thanks a lot! I will try it out.

All the best,
Dennis