September 8, 2021, 08:15
|
MPPICInterFoam compiler error
|
#1
|
New Member
Sarah Falk
Join Date: Dec 2019
Posts: 7
Rep Power: 7
|
Hi,
I tryed to compile the MPPICInterFoam-Solver ( https://develop.openfoam.com/Develop...MPPICInterFoam). I had copied the whole folder to my user-directory. But the compiler crashed by compiling the embedded compressiveTwoPhaseMixtureTurbulenceModels.C because of the following error:
wmake compressibleTwoPhaseMixtureTurbulenceModels
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file compressibleTwoPhaseMixtureTurbulenceModels.C
g++ -std=c++11 -m64 -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/openfoam7/src/finiteVolume/lnInclude -I/opt/openfoam7/src/meshTools/lnInclude -I/opt/openfoam7/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam7/src/transportModels -I/opt/openfoam7/src/transportModels/compressible/lnInclude -I/opt/openfoam7/src/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam7/src/transportModels/incompressible/lnInclude -I/opt/openfoam7/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam7/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/opt/openfoam7/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam7/src/TurbulenceModels/incompressible/lnInclude -I/opt/openfoam7/src/TurbulenceModels/compressible/lnInclude -I/opt/openfoam7/src/TurbulenceModels/phaseCompressible/lnInclude -I/opt/openfoam7/src/TurbulenceModels/phaseIncompressible/lnInclude -IlnInclude -I. -I/opt/openfoam7/src/OpenFOAM/lnInclude -I/opt/openfoam7/src/OSspecific/POSIX/lnInclude -fPIC -c compressibleTwoPhaseMixtureTurbulenceModels.C -o Make/linux64GccDPInt32Opt/compressibleTwoPhaseMixtureTurbulenceModels.o
compressibleTwoPhaseMixtureTurbulenceModels.C:39:1 : error: expected constructor, destructor, or type conversion before ‘(’ token
(
^
In file included from /opt/openfoam7/src/OpenFOAM/lnInclude/typeInfo.H:57:0,
from /opt/openfoam7/src/OpenFOAM/lnInclude/token.H:46,
from /opt/openfoam7/src/OpenFOAM/lnInclude/UILListIO.C:28,
from /opt/openfoam7/src/OpenFOAM/lnInclude/UILList.C:105,
from /opt/openfoam7/src/OpenFOAM/lnInclude/UILList.H:390,
from /opt/openfoam7/src/OpenFOAM/lnInclude/ILList.H:39,
from /opt/openfoam7/src/OpenFOAM/lnInclude/IDLList.H:35,
from /opt/openfoam7/src/OpenFOAM/lnInclude/entry.H:45,
from /opt/openfoam7/src/OpenFOAM/lnInclude/dictionary.H:53,
from /opt/openfoam7/src/OpenFOAM/lnInclude/baseIOdictionary.H:43,
from /opt/openfoam7/src/OpenFOAM/lnInclude/IOdictionary.H:42,
from /opt/openfoam7/src/TurbulenceModels/turbulenceModels/lnInclude/turbulenceModel.H:38,
from /opt/openfoam7/src/TurbulenceModels/turbulenceModels/lnInclude/TurbulenceModel.H:38,
from /opt/openfoam7/src/TurbulenceModels/phaseCompressible/lnInclude/PhaseCompressibleTurbulenceModel.H:39,
from compressibleTwoPhaseMixtureTurbulenceModels.C:28:
/opt/openfoam7/src/TurbulenceModels/turbulenceModels/lnInclude/makeTurbulenceModel.H:57:45: error: ‘laminarimmiscibleIncompressibleTwoPhaseMixturePha seCompressibleTurbulenceModel’ has not been declared
defineNamedTemplateTypeNameAndDebug(laminar##Trans port##BaseModel, 0); \
... and so on and so on.
I didn't understand, why there must be a constructor/destructor, because in other tutorials they are doing the same. I used OpenFoam 7, because after that, there were a new structure in the src-folder implemented and at the moment, I just want to test if the solver could work for my problem.
Can anyone help me? Did I made a mistake by copying everything and just try to compile it?
I am thankfull for any kind of help!
|
|
|