preCICE installation - OpenFOAM adapter

I am trying to install the Open FOAM adapter for preCICE. I have the latest versions of OpenFOAM 12.0 and preCICE 3.2 installed. but it gives me the following error when I run the AllWmake file, based on this documentation.
https://precice.org/adapter-openfoam-get.html

cfd@MIC-WK-CFD3:~/openfoam-adapter$ ./Allwmake
Building the OpenFOAM-preCICE adapter...

If not already known by the system, preCICE may be located using:
  pkg-config --cflags libprecice  = -I/usr/local/include 
  pkg-config --libs libprecice    = -L/usr/local/lib -lprecice 

Current OpenFOAM environment:
  WM_PROJECT = OpenFOAM
  WM_PROJECT_VERSION = 12
  WM_NCOMPPROCS = 1 (number of threads for parallel builds)

The adapter will be built into /home/cfd/OpenFOAM/cfd-12/platforms/linux64GccDPInt32Opt/lib
Additional preprocessor/compiler options: 

Building with WMake (see the wmake.log log file)...

wmake libso .
wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
    wmakeLnInclude error: base directory /opt/openfoam12/src/transportModels/incompressible/ does not exist
    wmakeLnInclude error: base directory /opt/openfoam12/src/transportModels/compressible/ does not exist
    wmakeLnInclude error: base directory /opt/openfoam12/src/transportModels/twoPhaseMixture/ does not exist
    wmakeLnInclude error: base directory /opt/openfoam12/src/transportModels/interfaceProperties/ does not exist
    wmakeLnInclude error: base directory /opt/openfoam12/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/ does not exist
    wmakeLnInclude error: base directory /opt/openfoam12/src/TurbulenceModels/turbulenceModels/ does not exist
    wmakeLnInclude error: base directory /opt/openfoam12/src/TurbulenceModels/compressible/ does not exist
    wmakeLnInclude error: base directory /opt/openfoam12/src/TurbulenceModels/incompressible/ does not exist
g++ -std=c++14 -m64 -DLIB_NAME=libpreciceAdapterFunctionObject.so -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -I/opt/openfoam12/src/finiteVolume/lnInclude -I/opt/openfoam12/src/meshTools/lnInclude -I/opt/openfoam12/src/transportModels/ -I/opt/openfoam12/src/transportModels/incompressible/lnInclude -I/opt/openfoam12/src/transportModels/compressible/lnInclude -I/opt/openfoam12/src/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam12/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam12/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/opt/openfoam12/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam12/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam12/src/TurbulenceModels/compressible/lnInclude -I/opt/openfoam12/src/TurbulenceModels/incompressible/lnInclude -I/opt/openfoam12/src/triSurface/lnInclude -I/usr/local/include  -I../  -IlnInclude -I. -I/opt/openfoam12/src/OpenFOAM/lnInclude -I/opt/openfoam12/src/OSspecific/POSIX/lnInclude   -fPIC -c Interface.C -o Make/linux64GccDPInt32Opt/Interface.o
In file included from Interface.C:4:
Interface.H:6:10: fatal error: fvCFD.H: No such file or directory
    6 | #include "fvCFD.H"
      |          ^~~~~~~~~
compilation terminated.
make: *** [/opt/openfoam12/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/Interface.o] Error 1
=== 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://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.
i have openfoam installed here
cfd@MIC-WK-CFD3:/opt/openfoam12$ ls
Allwmake  COPYING  README.org  applications  bin  build-stamp  doc  etc  platforms  src  test  thirdparty  tutorials  wmake

Also my current openfoam installation doesn’t contain the transportModels folder as mentioned in the error.

cfd@MIC-WK-CFD3:/$ ls -d /opt/openfoam12/src/*/
/opt/openfoam12/src/MomentumTransportModels/        /opt/openfoam12/src/fvConstraints/       /opt/openfoam12/src/parallel/
/opt/openfoam12/src/ODE/                            /opt/openfoam12/src/fvMeshDistributors/  /opt/openfoam12/src/physicalProperties/
/opt/openfoam12/src/OSspecific/                     /opt/openfoam12/src/fvMeshMovers/        /opt/openfoam12/src/polyTopoChange/
/opt/openfoam12/src/OpenFOAM/                       /opt/openfoam12/src/fvMeshStitchers/     /opt/openfoam12/src/radiationModels/
/opt/openfoam12/src/Pstream/                        /opt/openfoam12/src/fvMeshTopoChangers/  /opt/openfoam12/src/randomProcesses/
/opt/openfoam12/src/ThermophysicalTransportModels/  /opt/openfoam12/src/fvModels/            /opt/openfoam12/src/renumber/
/opt/openfoam12/src/atmosphericModels/              /opt/openfoam12/src/fvMotionSolver/      /opt/openfoam12/src/rigidBodyMotion/
/opt/openfoam12/src/combustionModels/               /opt/openfoam12/src/generic/             /opt/openfoam12/src/sampling/
/opt/openfoam12/src/conversion/                     /opt/openfoam12/src/lagrangian/          /opt/openfoam12/src/specieTransfer/
/opt/openfoam12/src/dummyThirdParty/                /opt/openfoam12/src/mesh/                /opt/openfoam12/src/surfMesh/
/opt/openfoam12/src/fileFormats/                    /opt/openfoam12/src/meshCheck/           /opt/openfoam12/src/thermophysicalModels/
/opt/openfoam12/src/finiteVolume/                   /opt/openfoam12/src/meshTools/           /opt/openfoam12/src/triSurface/
/opt/openfoam12/src/functionObjects/                /opt/openfoam12/src/motionSolvers/       /opt/openfoam12/src/twoPhaseModels/
/opt/openfoam12/src/fvAgglomerationMethods/         /opt/openfoam12/src/multiphaseModels/    /opt/openfoam12/src/waves/

wmake.log (2.4 KB)

We don’t yet support recent OpenFOAM.org versions in the latest version of the adapter. I am occasionally working on porting, but we are generally focusing on OpenFOAM.com because it is easier to keep track of.

Find the latest state in the documentation: OpenFOAM support | preCICE - The Coupling Library

Eventually, ported versions will be available in this repository: GitHub - precice/openfoam-org-adapter: OpenFOAM-preCICE adapter fork for OpenFOAM Foundation versions (work in progress)

Thanks! @Makis for highlighting the difference. I reinstalled the new version, and it worked correctly. Although I am facing issues for running the perpendicular-flap tutorial. I will open a separate issue for that.

I am running the “perpendicular-flap” tutorial based on the documentation mentioned here:
https://precice.org/tutorials-perpendicular-flap.html

I am getting the errors (attached file) when i run the run.sh file separately in 2 terminals.

How can I resolve this?

Thanks!
errors.txt (13.7 KB)

@som1197 what do you think by “new version”? What exactly did you install, from where?

Since OpenFOAM 10, there are also many breaking changes in the configuration files. You might get some hints from this branch: GitHub - precice/tutorials at OpenFOAM10

The long-term plan is to treat OpenFOAM.org as a completely different project and provide some tutorials for the latest supported version as well.

Edit: I merged the two topic, as these are directly related.

@Makis, sorry I didn’t clarify the new version in my last post. I installed the 2412 version from here. This is supported based on the documentation.

Also based on the errors in the fluid solver, I tried finding the <mapping:rbf-pum-direct/> tag, but the precice-config.xml file, doesn’t have this. Is there a different way to run this case?

---[precice] ERROR:  Output vertex -0.05,0.766667 of mesh "Fluid-Mesh" could not be assigned to any cluster in the rbf-pum mapping. This probably means that the meshes do not match well geometry-wise: Visualize the exported preCICE meshes to confirm. If the meshes are fine geometry-wise, you can try to increase the number of "vertices-per-cluster" (default is 50), the "relative-overlap" (default is 0.15), or disable the option "project-to-input".These options are only valid for the <mapping:rbf-pum-direct/> tag.
terminate called after throwing an instance of 'precice::Error'
  what():  Output vertex -0.05,0.766667 of mesh "Fluid-Mesh" could not be assigned to any cluster in the rbf-pum mapping. This probably means that the meshes do not match well geometry-wise: Visualize the exported preCICE meshes to confirm. If the meshes are fine geometry-wise, you can try to increase the number of "vertices-per-cluster" (default is 50), the "relative-overlap" (default is 0.15), or disable the option "project-to-input".These options are only valid for the <mapping:rbf-pum-direct/> tag.

Thanks!