Problem with installation of OpenFoam 5.x adapter

Some errors occured when i installed OpenFoam 5.x adapter in my system. Here is the discription of my system: precice-3.1.2, openfoam5.x and dealii 9.6 under Ubuntu 20.04. I installed precice-3.1.2 from source. I successfully installed the adapter for dealii but failed to install adapter for openfoam. I checked the version of adapter and it is correct.

=== ERROR: Building failed. See wmake.log for more. ===
Possible causes:
- Make sure you are using a compatible version of the adapter for your OpenFOAM version:
https://www.precice.org/adapter-openfoam-support.html
- Is preCICE discoverable at compile time? Check the content of ADAPTER_PKG_CONFIG_CFLAGS above.
Attach your Allwmake.log and wmake.log when asking for help.

Here are my log files. Thank you so much.
Allwmake.log (934 Bytes)
wmake.log (333.4 KB)

Hi @zhang,

I am slowly porting the adapter to the Foundation versions. I have already ported to support v6, but not yet officially released: GitHub - precice/openfoam-org-adapter at OpenFOAM6

Could you try if that (or probably a previous commit that only includes OpenFOAM5-related changes: GitHub - precice/openfoam-org-adapter at e1515b8f981ef2f19b0b04aaa249b5b0f36ba90e) works?

Note that you are using very old software: OpenFOAM 5.x was released in 2017. Why do you need such an old version?

Thank you for your reply @Makis,
I will try the code later. I use this version because CFDEM (About CFDEM®project | CFDEM®project) uses this version, and I am trying to couple CFDEM with another solver.

Hi @zhang

have you had a look at the PFM fork which uses OF6? GitHub - ParticulateFlow/CFDEMcoupling-PFM: This is an academic adaptation of the CFDEMcoupling software package, released by the Department of Particulate Flow Modelling at Johannes Kepler University in Linz, Austria http://www.jku.at/pfm

1 Like

Hi @hoehnp
Thank you for your advice. I will check their code.