CFD Online Logo CFD Online URL
Home > Forums > General Forums > Main CFD Forum

MPPICInterFoam compiler error

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2021, 08:15
Default MPPICInterFoam compiler error
New Member
Sarah Falk
Join Date: Dec 2019
Posts: 5
Rep Power: 4
sarah37 is on a distinguished road

I tryed to compile the MPPICInterFoam-Solver ( 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!
sarah37 is offline   Reply With Quote


compile, error, mppicinterfoam, solver

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM] ParaView command in Foam-extend-4.1 mitu_94 ParaView 0 March 4, 2021 14:46
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 10:40
Undeclared Identifier Errof UDF SteveGoat Fluent UDF and Scheme Programming 7 October 15, 2014 08:11
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 42 May 14, 2012 21:48

All times are GMT -4. The time now is 17:37.