Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenFOAM 11 and higher does not ship an fvCFD.h #306

Open
TEFEdotCC opened this issue Sep 21, 2023 · 2 comments
Open

OpenFOAM 11 and higher does not ship an fvCFD.h #306

TEFEdotCC opened this issue Sep 21, 2023 · 2 comments

Comments

@TEFEdotCC
Copy link

TEFEdotCC commented Sep 21, 2023

  • OpenFOAM version: OpenFOAM-11
  • preCICE version: 2.x

Since Version 11 fvCFD.h is removed.
https://github.com/OpenFOAM/OpenFOAM-dev/tree/version-11/src/finiteVolume/cfdTools/general/include

Compilation with OpenFOAM-11 or OpenFOAM-dev leads into an error like

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/OpenFOAM-dev/src/finiteVolume/lnInclude -I/opt/OpenFOAM-dev/src/meshTools/lnInclude -I/opt/OpenFOAM-dev/src/transportModels/ -I/opt/OpenFOAM-dev/src/transportModels/incompressible/lnInclude -I/opt/OpenFOAM-dev/src/transportModels/compressible/lnInclude -I/opt/OpenFOAM-dev/src/transportModels/twoPhaseMixture/lnInclude -I/opt/OpenFOAM-dev/src/transportModels/interfaceProperties/lnInclude -I/opt/OpenFOAM-dev/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/opt/OpenFOAM-dev/src/thermophysicalModels/basic/lnInclude -I/opt/OpenFOAM-dev/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/OpenFOAM-dev/src/TurbulenceModels/compressible/lnInclude -I/opt/OpenFOAM-dev/src/TurbulenceModels/incompressible/lnInclude -I/opt/OpenFOAM-dev/src/triSurface/lnInclude -I/usr/local/include  -I../  -IlnInclude -I. -I/opt/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/opt/OpenFOAM-dev/src/OSspecific/POSIX/lnInclude   -fPIC -c preciceAdapterFunctionObject.C -o Make/linux64GccDPInt32Opt/preciceAdapterFunctionObject.o
In file included from Adapter.H:4,
                 from Adapter.C:1:
Interface.H:6:10: fatal error: fvCFD.H: No such file or directory
    6 | #include "fvCFD.H"
      |          ^~~~~~~~~
compilation terminated.
make: *** [/opt/OpenFOAM-dev/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/Adapter.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from FF/FF.H:4,
                 from FF/FF.C:1,
                 from FF/ModuleFF.C:2:
lnInclude/Interface.H:6:10: fatal error: fvCFD.H: No such file or directory
    6 | #include "fvCFD.H"
      |          ^~~~~~~~~
compilation terminated.
make: *** [/opt/OpenFOAM-dev/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/FF/ModuleFF.o] Error 1
In file included from FSI/FSI.H:4,

....```
@MakisH
Copy link
Member

MakisH commented Nov 27, 2023

Thank you, @TEFEdotCC! Did you need to change anything else to build with OpenFOAM 11?

I will start an OpenFOAM11 branch to push such changes.

@efirvida
Copy link

found this that may best helpful

https://github.com/search?q=repo%3AOpenFOAM%2FOpenFOAM-11+fvCFD.H&type=commits

seems that the fvCFD.H refactored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants