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)