CFDEM(R) Coupling with latest OF2.3.x

Nucleophobe's picture
Submitted by Nucleophobe on Thu, 01/08/2015 - 16:26

EDIT: See below the ***; these errors might not be important after all.
********************************************************************************
I'm trying to compile the CFDEM(R) Coupling package and am getting some errors reporting missing header files:
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file cfdemCloud/cfdemCloud.C
could not open file RASModel.H for source file cfdemCloud/cfdemCloud.C due to No such file or directory
Making dependency list for source file derived/cfdemCloudIB/cfdemCloudIB.C
could not open file RASModel.H for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file omp.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file openmpi/ompi/mpi/cxx/mpicxx.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
Making dependency list for source file subModels/forceModel/forceModel/forceModel.C
could not open file RASModel.H for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
Making dependency list for source file subModels/forceModel/forceModel/newForceModel.C
could not open file RASModel.H for source file subModels/forceModel/forceModel/newForceModel.C due to No such file or directory
Making dependency list for source file subModels/forceModel/noDrag/noDrag.C
could not open file RASModel.H for source file subModels/forceModel/noDrag/noDrag.C due to No such file or directory
etc.

It looks like maybe some files might have moved around between OF2.3.0 (February) and 2.3.1 (December)?

I tried to first modify the Make 'options' files at:
$HOME/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/lagrangian/cfdemParticle/Make/

Adding:
-I$(LIB_SRC)/turbulenceModels/incompressible/RAS/RASModel \

I no longer recieve any errors for RASModel.H, but instead get the error that "incompressible/turbulenceModel/turbulenceModel.H" cannot be found. This originates from the turbulence.H.

So, I temporarilly changed turbulence.H to:
//#include "incompressible/turbulenceModel/turbulenceModel.H"
#include "turbulenceModel.H"

, and that gets rid of most of the "could not open file X.H for source file Y" errors, though there are still a few (omp.h and mpicxx.h).

I compiled again and it looks like some of the solvers compiled ("cfdemSolverPiso"), but there is no executable for "cfdemSolverIB", which is what I was most interested in.

Anyway, for now, I can roll back to OF2.3.0 and try again. In the meantime, any ideas on how to get this working on OF2.3.1? Or did I just goof something else up?
********************************************************************************
EDIT:
Well, I got the same errors in OF2.3.0, so I put things back the way they were and compiled again, ignoring the errors this time. The compilation seemed to hang at the end. Anyway, I manually compiled cfdemSolverIB via wmake and the tutorial case runs just fine.

So, these errors from the preprocessor may not be important.

Thanks,
-Nuc

markmichael | Sat, 01/17/2015 - 21:33

I experienced the same hanging at the end if compiled as described in "githubaccess_public.pdf", but when compiled each solver solely, i.e. :

cd $CFDEM_PROJECT_DIR/applications/solvers/cfdemSolverIB/
wmake
cd $CFDEM_PROJECT_DIR/applications/solvers/cfdemSolverPiso/
wmake
cd $CFDEM_PROJECT_DIR/applications/solvers/cfdemSolverPisoScalar/
wmake

everything works fine !
Mark

ural | Fri, 02/27/2015 - 10:37

it is strange and may be i'd missed smth but it refuses to compile, Let's start it step by step
1) i use ubuntu 14.04 lts 64 OpenFoam 2.3.1
2) i installed Liggghts from these manuals (http://www.cfdem.com/forums/liggghts-installation-guide-ubuntu-1204-lts-... and http://www.cfdem.com/forums/compile-problems)
3) liggghts works fine and all exmpls are succesfuly started
4) i tried to compile CFDEM with the githubaccess_public.pdf but it hung in the end of a compilation (all variables are set correctly and passed cfdemSysTest)
5) i tried to use the ricipes from this topic and compiled each solver solely, but no one of them had compiled it gave me a fatal error
(cfdemSolverIB.C:44:26: fatal error: cfdemCloudIB.H: no such file or directory
#include "cfdemCloudIB.H"
^
compilation terminated.
make: *** [Make/linux64GccDPOpt/cfdemSolverIB.o] Error 1)
and the same thing with other solvers
what do i have to do to beat it?
You are my last hope guys

Nucleophobe's picture

Nucleophobe | Fri, 03/13/2015 - 16:59

Ural,

It's strange that your compiler is not finding that header file. Have you looked to make sure 'cfdemCloudIB.H' exists? Have you checked the Make/options file to see why it might not be finding the header?

If you are still stuck, I would try starting over with a clean installation of CFDEM (i.e., remove the CFDEM and LIGGGHTS folder and pull the repos again). Maybe you didn't get all of the files the first time or something...

Good luck!
-Nuc

ural | Thu, 03/26/2015 - 07:45

Thanks for your advice, but i am still unable to compile it. i made everything you told me to make but it does not work. here is what i am getting^
dima@ubuntu:~/CFDEM/dima-PUBLIC-$ cd $CFDEM_PROJECT_DIR/applications/solvers/cfdemSolverIB/
dima@ubuntu:~/CFDEM/CFDEMcoupling-PUBLIC-/applications/solvers/cfdemSolverIB$ wmake
Making dependency list for source file cfdemSolverIB.C
could not open file cfdemCloudIB.H for source file cfdemSolverIB.C due to No such file or directory
could not open file implicitCouple.H for source file cfdemSolverIB.C due to No such file or directory
could not open file averagingModel.H for source file cfdemSolverIB.C due to No such file or directory
could not open file regionModel.H for source file cfdemSolverIB.C due to No such file or directory
could not open file voidFractionModel.H for source file cfdemSolverIB.C due to No such file or directory
could not open file meshToMeshNew.H for source file cfdemSolverIB.C due to No such file or directory
SOURCE=cfdemSolverIB.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/transportModels -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/incompressible/singlePhaseTransportModel -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/home/dima/CFDEM/CFDEMcoupling-PUBLIC-/src/lagrangian/cfdemParticle/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/dynamicFvMesh/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/dynamicFvMesh/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/dynamicMesh/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/fvOptions/lnInclude -IlnInclude -I. -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/cfdemSolverIB.o
cfdemSolverIB.C:44:26: fatal error: cfdemCloudIB.H: No such file or directory
#include "cfdemCloudIB.H"
The same messages in other solvers
as you can see, i'd tried to compile it soulely but it didn't help. The point is that i have all these "missing" files on my Hard Drive
Any proposals?

richti83's picture

richti83 | Thu, 03/26/2015 - 12:49

Basically CFDEM(R)coupling supports one OpenFOAM(R) version therefore all settings are prepared for that.[1]


word CFDEMversion="cfdem-2.9.0";
word compatibleLIGGGHTSversion="3.1.0";
word OFversion="2.3.x-commit-4d6f4a3115ff76ec4154c580eb041bc95ba4ec09";

Try to downgrade your OpenFoam Version (when you cloned it from github just use git checkout 4d6f4a3115ff76ec4154c580eb041bc95ba4ec09), than wclean and wmake all OpenFoam and CFDEM stuff.

[1] https://github.com/CFDEMproject/CFDEMcoupling-PUBLIC/blob/f231cd4928753c...
[2] https://github.com/CFDEMproject/CFDEMcoupling-PUBLIC/blob/master/src/lag...

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact

ural | Fri, 03/27/2015 - 04:56

Well i never used "git checkout" before, actually i am not so good in Linux but i try to do my best. Could you be so kind and give me a step by step instruction cause i haven't any clue what i have to do to make it work.

richti83's picture

richti83 | Fri, 03/27/2015 - 08:13

it is not as complicated than you think:
http://bit.ly/1D4D4WG

I assume you installed OF with the repository release instruction [1] (otherwise you can not use git) and your bashrc entries are set correct [2, page 2].
In a Terminal:

cd $HOME
cd OpenFOAM
cd OpenFOAM-2.3.x
git checkout 4d6f4a3115ff76ec4154c580eb041bc95ba4ec09
./Allwclean
./Allwmake
cfdemCompCFDEM

To 1st checkout the commit with the sha which is stated compatibel with current CFDEM Codebase,
2nd compile OF from scratch
3rd recompile CFDEM using changed OF codebase.

cheers,
Christian.

[1] http://www.openfoam.org/download/git.php
[2] http://www.cfdem.com/system/files/githubaccess_public.pdf

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact

ural | Mon, 03/30/2015 - 06:13

Well, i tried to do what you told me to, i used an older commit and then i used a wmake command it gave me this result
+ wmake
make[2]: Entering directory `/home/dima/OpenFOAM/OpenFOAM-2.3.x/applications/solvers/multiphase/twoPhaseEulerFoam'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/thermophysicalModels/basic/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/incompressible/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/TurbulenceModels/incompressible/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/TurbulenceModels/phaseIncompressible/lnInclude -IphaseIncompressibleTurbulenceModels/lnInclude -IinterfacialModels/lnInclude -ItwoPhaseSystem/lnInclude -Iaveraging -IlnInclude -I. -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/twoPhaseEulerFoam.o -L/home/dima/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib \
-lfluidThermophysicalModels -lspecie -lturbulenceModels -lincompressibleTurbulenceModels -lphaseIncompressibleTurbulenceModels -lincompressibleTransportModels -lcompressibleTwoPhaseSystem -lcompressibleEulerianInterfacialModels -lfiniteVolume -lmeshTools -lOpenFOAM -ldl -lm -o /home/dima/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/twoPhaseEulerFoam
/usr/bin/ld: cannot find -lphaseIncompressibleTurbulenceModels
collect2: error: ld returned 1 exit status
make[2]: *** [/home/dima/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/twoPhaseEulerFoam] Error 1
make[2]: Leaving directory `/home/dima/OpenFOAM/OpenFOAM-2.3.x/applications/solvers/multiphase/twoPhaseEulerFoam'
make[1]: *** [twoPhaseEulerFoam] Error 2
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/dima/OpenFOAM/OpenFOAM-2.3.x/applications/solvers/multiphase'
make: *** [multiphase] Error 2
make[1]: Entering directory `/home/dima/OpenFOAM/OpenFOAM-2.3.x/applications/solvers/stressAnalysis'
make[2]: Entering directory `/home/dima/OpenFOAM/OpenFOAM-2.3.x/applications/solvers/stressAnalysis/solidDisplacementFoam'
make[2]: Leaving directory `/home/dima/OpenFOAM/OpenFOAM-2.3.x/applications/solvers/stressAnalysis/solidDisplacementFoam'
make[2]: Entering directory `/home/dima/OpenFOAM/OpenFOAM-2.3.x/applications/solvers/stressAnalysis/solidDisplacementFoam'
make[2]: `/home/dima/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/solidDisplacementFoam' is up to date.
make[2]: Leaving directory `/home/dima/OpenFOAM/OpenFOAM-2.3.x/applications/solvers/stressAnalysis/solidDisplacementFoam'
make[2]: Entering directory `/home/dima/OpenFOAM/OpenFOAM-2.3.x/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
make[2]: Leaving directory `/home/dima/OpenFOAM/OpenFOAM-2.3.x/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
make[2]: Entering directory `/home/dima/OpenFOAM/OpenFOAM-2.3.x/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
make[2]: `/home/dima/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/bin/solidEquilibriumDisplacementFoam' is up to date.
make[2]: Leaving directory `/home/dima/OpenFOAM/OpenFOAM-2.3.x/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
make[1]: Leaving directory `/home/dima/OpenFOAM/OpenFOAM-2.3.x/applications/solvers/stressAnalysis'
make: Target `application' not remade because of errors.

The CfdemCompCFDEM command gave me this:

dima@ubuntu:~/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/applications/solvers/cfdemSolverIB$ wmake
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/transportModels -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/incompressible/singlePhaseTransportModel -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/lagrangian/cfdemParticle/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/dynamicFvMesh/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/dynamicFvMesh/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/dynamicMesh/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/fvOptions/lnInclude -IlnInclude -I. -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/cfdemSolverIB.o -L/home/dima/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib \
-L/home/dima/OpenFOAM/dima-2.3.x/platforms/linux64GccDPOpt/lib -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -ldynamicFvMesh -ldynamicMesh -lfvOptions -llagrangianCFDEM-PUBLIC-2.3.x -lOpenFOAM -ldl -lm -o /home/dima/OpenFOAM/dima-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverIB
/usr/bin/ld: cannot find -llagrangianCFDEM-PUBLIC-2.3.x
collect2: error: ld returned 1 exit status
make: *** [/home/dima/OpenFOAM/dima-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverIB] Error 1
dima@ubuntu:~/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/applications/solvers/cfdemSolverIB$ clear
dima@ubuntu:~/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/applications/solvers/cfdemSolverIB$ wmake
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/transportModels -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/incompressible/singlePhaseTransportModel -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/lagrangian/cfdemParticle/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/dynamicFvMesh/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/dynamicFvMesh/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/dynamicMesh/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/fvOptions/lnInclude -IlnInclude -I. -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/cfdemSolverIB.o -L/home/dima/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib \
-L/home/dima/OpenFOAM/dima-2.3.x/platforms/linux64GccDPOpt/lib -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -ldynamicFvMesh -ldynamicMesh -lfvOptions -llagrangianCFDEM-PUBLIC-2.3.x -lOpenFOAM -ldl -lm -o /home/dima/OpenFOAM/dima-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverIB
/usr/bin/ld: cannot find -llagrangianCFDEM-PUBLIC-2.3.x
collect2: error: ld returned 1 exit status
make: *** [/home/dima/OpenFOAM/dima-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverIB] Error 1
dima@ubuntu:~/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/applications/solvers/cfdemSolverIB$
dima@ubuntu:~/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/applications/solvers/cfdemSolverPiso$ wmake
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/transportModels -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/incompressible/singlePhaseTransportModel -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/lagrangian/cfdemParticle/lnInclude -I/home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/lagrangian/cfdemParticle/cfdTools -IlnInclude -I. -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/cfdemSolverPiso.o -L/home/dima/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib \
-L/home/dima/OpenFOAM/dima-2.3.x/platforms/linux64GccDPOpt/lib -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -llagrangianCFDEM-PUBLIC-2.3.x -lOpenFOAM -ldl -lm -o /home/dima/OpenFOAM/dima-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverPiso
/usr/bin/ld: cannot find -llagrangianCFDEM-PUBLIC-2.3.x
collect2: error: ld returned 1 exit status
make: *** [/home/dima/OpenFOAM/dima-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverPiso] Error 1
dima@ubuntu:~/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/applications/solvers/cfdemSolverPiso$
dima@ubuntu:~/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/applications/solvers/cfdemSolverPisoScalar$ wmake
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/transportModels -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/incompressible/singlePhaseTransportModel -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/lagrangian/cfdemParticle/lnInclude -I/home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/lagrangian/cfdemParticle/cfdTools -IlnInclude -I. -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/home/dima/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/cfdemSolverPisoScalar.o -L/home/dima/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib \
-L/home/dima/OpenFOAM/dima-2.3.x/platforms/linux64GccDPOpt/lib -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -llagrangianCFDEM-PUBLIC-2.3.x -lOpenFOAM -ldl -lm -o /home/dima/OpenFOAM/dima-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverPisoScalar
/usr/bin/ld: cannot find -llagrangianCFDEM-PUBLIC-2.3.x
collect2: error: ld returned 1 exit status
make: *** [/home/dima/OpenFOAM/dima-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverPisoScalar] Error 1
dima@ubuntu:~/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/applications/solvers/cfdemSolverPisoScalar$ ^C
dima@ubuntu:~/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/applications/solvers/cfdemSolverPisoScalar$

This is weird, what do i have to try next?

richti83's picture

richti83 | Mon, 03/30/2015 - 08:13

Well the error is different from your first, because now the compiler does not complain about missing files (as far as I can see) but the linker (ld) states about not finding some needed librarys which should be build by the compiler first. Do you still get the "missing mpicxx.h" compiler error earlier in the make process ? Than your open-mpi installation is not good. I prefer using system SYSTEM-OPENMPI (can be changed in OpenFOAM/Open-FOAM-2.3.x/etc/bashrc

#- MPI implementation:
# WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI
# | GAMMA | MPI | QSMPI | SGIMPI
export WM_MPLIB=SYSTEMOPENMPI

(note: you need the development package of open-mpi too !).

Don't forget to open a new terminal after any changes to $HOME/.bashrc and OpenFOAM/~/etc/bashrc or use source $HOME/.bashrc to reload all environment variables !

When you only get the linker error I guess the Allclean command did not worked, I would remove the full OpenFOAM and ThirdParty diretory, clone from OpenFoam Github, than BEFORE Allwmake use the checkout command to set the codebase to the named commit and try again.
When you still get compiler / missing header file errors try to solve them first before you start cfdemCompCFDEM (because CFDEM(R) depends on a successfull OpenFOAM(R) builld.

Cheers,
Christian.

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact

ural | Mon, 03/30/2015 - 13:28

Sorry for so too many questions, but here is an another one

CFDEM(R)coupling system settings:
*********************************
CFDEM_VERSION=PUBLIC
couple to OF_VERSION=2.3.x
compile option=Opt

check if paths are set correctly
valid:yes critical:yes - $CFDEM_PROJECT_DIR = /home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.x
valid:yes critical:no - $CFDEM_PROJECT_USER_DIR = /home/dima/CFDEM/dima-PUBLIC-2.3.x
valid:yes critical:yes - $CFDEM_SRC_DIR = /home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src
valid:yes critical:yes - $CFDEM_SOLVER_DIR = /home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/applications/solvers
valid:yes critical:yes - $CFDEM_TUT_DIR = /home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/tutorials
valid:yes critical:yes - $CFDEM_LIGGGHTS_SRC_DIR = /home/dima/LIGGGHTS-PUBLIC/src
valid:yes critical:yes - $CFDEM_LPP_DIR = /home/dima/LIGGGHTS-PUBLIC/mylpp/src
valid:yes critical:yes - $CFDEM_ADD_LIBS_DIR = /home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/lagrangian/cfdemParticle/etc
valid:NO critical:no - $CFDEM_PIZZA_DIR = /home/dima/LIGGGHTS/PIZZA/gran_pizza_17Aug10/src does not exist
valid:yes critical:no - $CFDEM_TEST_HARNESS_PATH = /home/dima/CFDEM/dima-PUBLIC-2.3.x/log/logFilesCFDEM-PUBLIC-2.3.x
valid:NO critical:no - $C3PO_SRC_DIR = /home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/c3po does not exist

library names
$CFDEM_LIGGGHTS_LIB_NAME = lmp_fedora_fpic
$CFDEM_LIB_NAME = lagrangianCFDEM-PUBLIC-2.3.x
$LD_LIBRARY_PATH = /home/dima/OpenFOAM/ThirdParty-2.3.x/platforms/linux64Gcc/CGAL-4.3/lib:/home/dima/OpenFOAM/ThirdParty-2.3.x/platforms/linux64Gcc/gperftools-svn/lib:/home/dima/OpenFOAM/ThirdParty-2.3.x/platforms/linux64Gcc/ParaView-4.1.0/lib/paraview-4.1:/home/dima/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/openmpi-system:/home/dima/OpenFOAM/ThirdParty-2.3.x/platforms/linux64GccDPOpt/lib/openmpi-system:/usr/lib/openmpi/lib:/home/dima/OpenFOAM/dima-2.3.x/platforms/linux64GccDPOpt/lib:/home/dima/OpenFOAM/site/2.3.x/platforms/linux64GccDPOpt/lib:/home/dima/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib:/home/dima/OpenFOAM/ThirdParty-2.3.x/platforms/linux64GccDPOpt/lib:/home/dima/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/dummy
$WM_NCOMPPROCS =
*******************
g++:
/usr/bin/g++
g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gcc:
/usr/bin/gcc
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mpic++:
/usr/bin/mpic++
g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mpirun:
/usr/bin/mpirun
mpirun (Open MPI) 1.6.5

as you can see i use open mpi version 1.6.5 is it too old or smth? and by the way, check my cfdemsystest output is it correct at first glance?
Thank you

richti83's picture

richti83 | Mon, 03/30/2015 - 14:07

and the path to /usr/bin/ tell's me it's the system-openmpi which is good too.
If not allready done install libopenmpi-dev by sudo apt-get install libopenmpi-dev and than change the entry in OpenFOAM/~/etc/bashrc as in my last post.
The cfdemsys test looks ok.

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact

ural | Tue, 03/31/2015 - 11:05

Well, it seems to me that something hab begun to move, finaly the solver "cfdemSolverIB" gave some valid *.eps graphics (after i had installed the octave packet, thanx to your advice from another thread). But unfortunately all other solver gave me only errors, it seems to me, that something wrong with the OF build, here is the line from the FillCylinder allrun's log


CFDEMcoupling version: cfdem-2.9.0
, compatible to LIGGGHTS version: 3.1.0
, compatible to OF version and build: 2.3.x-commit-4d6f4a3115ff76ec4154c580eb041bc95ba4ec09
You are currently using:
OF version: 2.3.x
OF build: 2.3.x-719bf1b4e7dc
CFDEM build: 64f5

i remeber that early you'd adviced me to use a checkout command and to chose the right build, the problem is that i don not have a clue about how to commit the changes, i mean i type: git checkout 4d6f4a3115ff76ec4154c580eb041bc95ba4ec09
but it says:
dima@ubuntu:~/OpenFOAM/OpenFOAM-2.3.x$ git checkout 4d6f4a3115ff76ec4154c580eb041bc95ba4ec09
error: Your local changes to the following files would be overwritten by checkout:
etc/bashrc
Please, commit your changes or stash them before you can switch branches.
Aborting

What should i do next? shold i use get stash or get pull commands or just use your instruction from above? how can i get the right build?

richti83's picture

richti83 | Tue, 03/31/2015 - 18:56

git stash will undo your changes to bashrc, so you need to make them again after checkout, it is save to do this
git commit will insert the changes into your local codebase version control, after that, make a checkout of 4d.. and a 'git merge' . When you get an error you need to manualy edit the bashrc file (you will see what the merge has "broken"). Sorry for the unprofessional explanation, but the version control topic is bit difficult to explain. I guess you to read some basic git instructions in next future.

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact

ural | Tue, 03/31/2015 - 19:17

Thanks for your wise advices, i hope it will help me to beat it finaly. Tomorrow i'll make another try and let you know the result. I suppose it might be helpful for the forum

vinaym | Wed, 04/01/2015 - 13:48

I receive the same error as reported by 'Nucleophobe'. I am using Ubuntu 14.04LTS, OpenFoam 2.3.x, LIGGGHTS® 3.1.0, CFDEM®coupling 2.9.0 .
Although my simulations run fine, I would like to have a smooth compilation rather than a buggy one. I hope it does not have any major effect on the output of the simulations.

Anyone at DCS computing want to help us out?

Thanks.

Vinay

ural | Thu, 04/02/2015 - 12:53

some how i've managed to make it to work, all tutorials went fine and smooth, i got all eps. graphs and so on... the problem appears only in the "FillCylinder" here is what i've got:

dima@ubuntu:~/CFDEM/CFDEMcoupling-PUBLIC-2.3.1/tutorials/cfdemPostproc/fillCylinder$ allrun
allrun: command not found
dima@ubuntu:~/CFDEM/CFDEMcoupling-PUBLIC-2.3.1/tutorials/cfdemPostproc/fillCylinder$ Allrun.sh
Allrun.sh: command not found
dima@ubuntu:~/CFDEM/CFDEMcoupling-PUBLIC-2.3.1/tutorials/cfdemPostproc/fillCylinder$ ./Allrun.sh
mesh was built before - using old mesh
rm: cannot remove ‘/home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.1/tutorials/cfdemPostproc/fillCylinder/DEM/post/*’: No such file or directory
/home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.1/src/lagrangian/cfdemParticle/etc/functions.sh: line 383: [: ==: unary operator expected
/home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.1/src/lagrangian/cfdemParticle/etc/functions.sh: line 385: [: ==: unary operator expected
// run_liggghts_fillCylinder_DEM //
/home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.1/tutorials/cfdemPostproc/fillCylinder/DEM
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 1.
NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
LIGGGHTS (Version LIGGGHTS-PUBLIC 3.1.0, compiled 2015-04-01-16:00:40 by dima, git commit b3030a8fd1f722c77f69150c7b2d24b386eab848 based on LAMMPS 23 Nov 2013)
atom_style granular
atom_modify map array
communicate single vel yes
boundary m m m
newton off
units si
region reg block -0.015 0.015 -0.015 0.015 -0.001 0.0554 units box
create_box 1 reg
Created orthogonal box = (-0.015 -0.015 -0.001) to (0.015 0.015 0.0554)
1 by 1 by 1 MPI processor grid
neighbor 0.001 bin
neigh_modify delay 0
#Material properties required for new pair styles
fix m1 all property/global youngsModulus peratomtype 5.e6
fix m2 all property/global poissonsRatio peratomtype 0.45
fix m3 all property/global coefficientRestitution peratomtypepair 1 0.3
fix m4 all property/global coefficientFriction peratomtypepair 1 0.5
#pair style
pair_style gran model hertz tangential history
pair_coeff * *
#timestep, gravity
timestep 0.00001
fix gravi all gravity 9.81 vector 0.0 0.0 -1.0
#walls
fix zwalls1 all wall/gran model hertz tangential history primitive type 1 zplane 0.0
fix zwalls2 all wall/gran model hertz tangential history primitive type 1 zplane 0.0553
fix cylwalls all wall/gran model hertz tangential history primitive type 1 zcylinder 0.0138 0. 0.
#cfd coupling
#fix cfd all couple/cfd
#particle insertion
region bc cylinder z 0.0 0.0 0.012 0.02 0.03 units box
fix pts1 all particletemplate/sphere 1 atom_type 1 density constant 200 radius constant 0.001
fix pdd1 all particledistribution/discrete 1. 1 pts1 1.0
Fix particledistribution/discrete (id pdd1): distribution based on mass%:
pts1: d=2.000000e-03 (max. bounding sphere) mass%=100.000000%
Fix particledistribution/discrete (id pdd1): distribution based on number%:
pts1: d=2.000000e-03 (max. bounding sphere) number%=100.000000%
fix ins all insert/pack seed 100001 distributiontemplate pdd1 vel constant 0. 0. -1. insert_every once overlapcheck yes all_in yes particles_in_region 1000 region bc
#apply nve integration to all particles that are inserted as single particles
fix integr all nve/sphere
#screen output
compute 1 all erotate/sphere
thermo_style custom step atoms ke c_1 vol
thermo 1000
thermo_modify lost ignore norm no
compute_modify thermo_temp dynamic yes
#insert the first particles so that dump is not empty
run 1
Setting up run ...
INFO: Resetting random generator for region bc
INFO: Particle insertion ins: inserting every 0 steps
Memory usage per processor = 4.32245 Mbytes
Step Atoms KinEng 1 Volume
0 0 -0 0 5.076e-05
insertion: proc 0 at 0 %
insertion: proc 0 at 10 %
insertion: proc 0 at 20 %
insertion: proc 0 at 30 %
INFO: Particle insertion ins: inserted 305 particle templates (mass 0.000256) at step 1
- a total of 305 particle templates (mass 0.000256) inserted so far.
WARNING: Particle insertion: Less insertions than requested (../fix_insert.cpp:674)
1 305 0.00012777063 0 5.076e-05
Loop time of 0.039016 on 1 procs for 1 steps with 305 atoms
Pair time (%) = 3.21865e-05 (0.0824956)
Neigh time (%) = 0.000551939 (1.41465)
Comm time (%) = 5.96046e-06 (0.015277)
Outpt time (%) = 2.00272e-05 (0.0513306)
Other time (%) = 0.0384059 (98.4362)
Nlocal: 305 ave 305 max 305 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Nghost: 0 ave 0 max 0 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Neighs: 1060 ave 1060 max 1060 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Total # of neighbors = 1060
Ave neighs/atom = 3.47541
Neighbor list builds = 1
Dangerous builds = 0
dump dmp all custom 1000 post/dump.liggghts_init id type type x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius
run 3000 upto
ERROR on proc 0: Cannot open dump file (../dump.cpp:478)
./Allrun.sh: line 48: cd: /home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.1/tutorials/cfdemPostproc/fillCylinder/DEM/post: No such file or directory
starting LIGGGHTS memory optimized parallel post processing
chunksize: 8 --> 8 files are processed per chunk. If you run out of memory reduce chunksize.
Working with 4 processes...
calculating chunks 1 - 1 of 1
aborting due to errors: [Errno 2] No such file or directory: 'dump.liggghts_init'
rm: cannot remove ‘/home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.1/tutorials/cfdemPostproc/fillCylinder/CFD/0.*’: No such file or directory
// run_cfdemPostproc_fillCylinder_CFD //
/home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.1/tutorials/cfdemPostproc/fillCylinder/CFD
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.3.1-bcfaaa7b8660
Exec : cfdemPostproc
Date : Apr 02 2015
Time : 14:44:44
Host : "ubuntu"
PID : 6581
Case : /home/dima/CFDEM/CFDEMcoupling-PUBLIC-2.3.1/tutorials/cfdemPostproc/fillCylinder/CFD
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
Reading field p
Reading physical velocity field U
Note: only if voidfraction at boundary is 1, U is superficial velocity!!!
Reading voidfraction field voidfraction = (Vgas/Vparticle)
Reading particle velocity field Us
Reading/calculating face flux field phi
Selecting incompressible transport model Newtonian
Selecting turbulence model type RASModel
Selecting RAS turbulence model laminar
Selecting locateModel standard
Selecting dataExchangeModel oneWayVTK
relativePath_"../DEM/post"
Selecting IOModel basicIO
--> FOAM Warning : IO model is in serial write mode, only data on proc 0 is written
Selecting probeModel off
Selecting voidFractionModel divided
Selecting averagingModel dense
Selecting clockModel off
start clock measurement at t >0.001
Selecting smoothingModel off
Selecting meshMotionModel noMeshMotion
CFDEMcoupling version: cfdem-2.9.0
, compatible to LIGGGHTS version: 3.1.0
, compatible to OF version and build: 2.3.x-commit-4d6f4a3115ff76ec4154c580eb041bc95ba4ec09
You are currently using:
OF version: 2.3.1
OF build: 2.3.1-bcfaaa7b8660
CFDEM build: 64f5
If BC are important, please provide volScalarFields -imp/expParticleForces-
ignoring ddt(voidfraction)
Selecting forceModel noDrag
nrForceSubModels()=1
Selecting forceSubModel ImEx
--> FOAM FATAL ERROR:
request for volScalarField rho from objectRegistry region0 failed
available objects of type volScalarField are
9
(
voidfractionNext
UsWeightField_
nu
scalarViscosity
voidfractionPrev
ddtVoidfraction
p
voidfraction
sSmoothField
)
From function objectRegistry::lookupObject(const word&) const
in file /home/openfoam/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 198.
FOAM aborting
#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::GeometricField const& Foam::objectRegistry::lookupObject >(Foam::word const&) const at ??:?
#3 Foam::forceSubModel::forceSubModel(Foam::dictionary const&, Foam::cfdemCloud&, Foam::forceModel&) at ??:?
#4 Foam::ImEx::ImEx(Foam::dictionary const&, Foam::cfdemCloud&, Foam::forceModel&) at ??:?
#5 Foam::forceSubModel::adddictionaryConstructorToTable::New(Foam::dictionary const&, Foam::cfdemCloud&, Foam::forceModel&) at ??:?
#6 Foam::forceSubModel::New(Foam::dictionary const&, Foam::cfdemCloud&, Foam::forceModel&, Foam::word) at ??:?
#7 Foam::forceModel::setForceSubModels(Foam::dictionary&) at ??:?
#8 Foam::noDrag::noDrag(Foam::dictionary const&, Foam::cfdemCloud&) at ??:?
#9 Foam::forceModel::adddictionaryConstructorToTable::New(Foam::dictionary const&, Foam::cfdemCloud&) at ??:?
#10 Foam::forceModel::New(Foam::dictionary const&, Foam::cfdemCloud&, Foam::word) at ??:?
#11 Foam::cfdemCloud::cfdemCloud(Foam::fvMesh const&) at ??:?
#12
at ??:?
#13 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#14
at ??:?
trying to start paraview...

This is weird, but when i conpiled OF from the Repository - nothing works and when i use deb packages everything is fine except FillCylinder
Maybe i should try to compile it in the Opt directory? and by the way i made everything to get the right build of OF23x but it refuses to compil and produces errors
Does anybody know what i have to do to make this tutorial (FillCYlender) work or what should i get if it works
Yeah and what about a RASmodel, i mean i seems to me that "Selecting turbulence model type RASModel" and "could not open file RASModel.H for source file cfdemCloud/cfdemCloud.C" it is a main trouble here.
What do you think about it?

richti83's picture

richti83 | Thu, 04/02/2015 - 13:20

I see some errors regarding "ERROR on proc 0: Cannot open dump file (../dump.cpp:478)"
this normely means that there is no folder named "post" in the run directory where liggghts is invoced.
Also there is an error "dump.liggghts_init" and than everything breaks. I don't know this case in detail but can you create a folder post in subfoler dem and subfolder cfd and try again ?
This error is not related to compiling problems I think.

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact

xiuhan | Tue, 07/31/2018 - 14:43

Hi Nucleophobe

I got exact the same problem when compiling as you described in the 1st post
As you said in the first post you did

So, I temporarilly changed RASModel.H to:
//#include "incompressible/turbulenceModel/turbulenceModel.H"
#include "turbulenceModel.H"

I am just wondering, if I changed that line in RASModel.H. it maybe okay for CFDEM, but would it cause any problem for OpenFOAM? cause RASModel lies in the OpenFOAM folders.
Do you have any clue?

Besides, I still have all the errors of:
could not open file stdio.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file string.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file limits.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file stdint.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file inttypes.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file erf.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file direct.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file math.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file sleep.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file omp.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file ompi/mpi/cxx/pmpicxx.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file ompi/mpi/cxx/pop_inln.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file ompi/mpi/cxx/pgroup_inln.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file ompi/mpi/cxx/pstatus_inln.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file ompi/mpi/cxx/prequest_inln.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file ctype.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory

I want to get rid of it and I read the following posts in this site, but I don't really get a clear mind how to solve this. Could you pls. tell me how you solve this "could not open file" issue?

Many thanks
Xiuhan