Instalation problem

Submitted by jmanso on Mon, 01/09/2012 - 15:21

Hi!

I would like to try cfdem in order to model geotechnical problems, such as triaxial shear tests or oedometer tests. I already tried to compile the software twice, but I always get error messages. Particularly, when I type "which liggghts" after install liggghts, nothing happens, when I try to compile src I get a message:

Make/linuxGccDPOpt/twoWayMPI.o
In file included from subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:30:0:
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H:47:62: fatal error: lammps.h: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/twoWayMPI.o] Error 1
make: *** Waiting for unfinished jobs....

however, I was once able to get the correct message. Furthermore, when I try to compile the solver I get a similar message as the previous one...

What should I do? Should I start all over again? How can I reset the process completely (I already have OPENFoam-2.1.0, thirdparty-2.1.0 and paraview 3.10 successfully installed)?

Thanks,
Joao

alice's picture

alice | Mon, 01/09/2012 - 15:40

Hello Joao,
in order to be able to use CFDEM, you will have to installl LIGGGHTS first. Furthermore you have to set the link "liggghts" yourself. See instruction-file for the installation of CFDEM in the download directory!
Cheers,
Alice

jmanso | Mon, 01/09/2012 - 17:37

I also get the message:
Making dependency list for source file cfdemSolverPiso.C
could not open file RASModel.H for source file cfdemSolverPiso.C

when the compilation starts. What should I do?

alice's picture

alice | Mon, 01/09/2012 - 17:49

Hello,
this message is just a pre-compiler warning, it does not influence the compilation itself.
I would also suggest you to have a look at previous theads dealing with installation issues, you might find a lot of useful hints there too ;)
Cheers,
Alice

cgoniva's picture

cgoniva | Thu, 01/12/2012 - 12:13

Hi Joao,

I recommend to allways use the *.x (e.g. 2.0.x) versions from GIT instead of e.g. 2.0.0. See OpenCFD(SGI) 's download section.

And please consider also this: node/686

Further:

fatal error: lammps.h: No such file or directory compilation terminated.

might indicate that in cfdemParticle/etc/bashrc the CFDEM_LIGGGHTS_SRC_DIR is not set correctly.

Cheers,
Chris

PS: you can search the forum using the search option on the lower-RHS of this web-page.

ericparteli | Wed, 02/01/2012 - 12:18

Hi, Joao,
I had the same problem. In my case, the source of the problem was quite simple: The name of the "liggghts" directory was misspelled. I had typed "mkdir LIGGGTHS" instead of "mkdir LIGGGHTS".
Best wishes
Eric

xiuhan | Mon, 02/13/2012 - 17:59

Hi, I met this problem when installing, so.....it seems a header file is missing from the directory.
Now I don't know how to solve it. If anyone has any idea, pls tell me, I would really appreciate¬!

here below is part of the error message:

xchen6@ubuntu:~/OpenFOAM/xchen6-1.7.x/src/lagrangian/cfdemParticle$ rmdepall
removing all .dep files ...
xchen6@ubuntu:~/OpenFOAM/xchen6-1.7.x/src/lagrangian/cfdemParticle$ wclean
xchen6@ubuntu:~/OpenFOAM/xchen6-1.7.x/src/lagrangian/cfdemParticle$ wmake libso
Making dependency list for source file cfdemCloud/cfdemCloud.C
Making dependency list for source file derived/cfdemCloudIB/cfdemCloudIB.C
could not open file RASModel.H for source file cfdemCloud/cfdemCloud.C
Making dependency list for source file subModels/forceModel/forceModel/forceModel.C
could not open file RASModel.H for source file derived/cfdemCloudIB/cfdemCloudIB.C
Making dependency list for source file subModels/forceModel/forceModel/newForceModel.C
could not open file RASModel.H for source file subModels/forceModel/forceModel/forceModel.C
Making dependency list for source file subModels/forceModel/DiFeliceDrag/DiFeliceDrag.C
could not open file RASModel.H for source file subModels/forceModel/forceModel/newForceModel.C
Making dependency list for source file subModels/forceModel/KochHillDrag/KochHillDrag.C
could not open file RASModel.H for source file subModels/forceModel/DiFeliceDrag/DiFeliceDrag.C
could not open file openmpi/ompi/mpi/cxx/mpicxx.h for source file subModels/forceModel/DiFeliceDrag/DiFeliceDrag.C
could not open file RASModel.H for source file subModels/forceModel/KochHillDrag/KochHillDrag.C
Making dependency list for source file subModels/forceModel/SchillerNaumannDrag/SchillerNaumannDrag.C
Making dependency list for source file subModels/forceModel/noDrag/noDrag.C
could not open file RASModel.H for source file subModels/forceModel/SchillerNaumannDrag/SchillerNaumannDrag.C
could not open file RASModel.H for source file subModels/forceModel/noDrag/noDrag.C
could not open file openmpi/ompi/mpi/cxx/mpicxx.h for source file subModels/forceModel/SchillerNaumannDrag/SchillerNaumannDrag.C
Making dependency list for source file subModels/forceModel/virtualMassForce/virtualMassForce.C
Making dependency list for source file subModels/forceModel/MeiLift/MeiLift.C
could not open file RASModel.H for source file subModels/forceModel/virtualMassForce/virtualMassForce.C
could not open file RASModel.H for source file subModels/forceModel/MeiLift/MeiLift.C
Making dependency list for source file subModels/forceModel/Archimedes/Archimedes.C
could not open file openmpi/ompi/mpi/cxx/mpicxx.h for source file subModels/forceModel/MeiLift/MeiLift.C
Making dependency list for source file subModels/forceModel/ShirgaonkarIB/ShirgaonkarIB.C
could not open file RASModel.H for source file subModels/forceModel/Archimedes/Archimedes.C
Making dependency list for source file subModels/forceModel/LaEuScalarTemp/LaEuScalarTemp.C
could not open file RASModel.H for source file subModels/forceModel/ShirgaonkarIB/ShirgaonkarIB.C
Making dependency list for source file subModels/forceModel/gradPForce/gradPForce.C
could not open file RASModel.H for source file subModels/forceModel/LaEuScalarTemp/LaEuScalarTemp.C
Making dependency list for source file subModels/forceModel/viscForce/viscForce.C
could not open file RASModel.H for source file subModels/forceModel/gradPForce/gradPForce.C
Making dependency list for source file subModels/voidFractionModel/voidFractionModel/voidFractionModel.C
could not open file RASModel.H for source file subModels/forceModel/viscForce/viscForce.C
Making dependency list for source file subModels/voidFractionModel/voidFractionModel/newVoidFractionModel.C
could not open file RASModel.H for source file subModels/voidFractionModel/voidFractionModel/voidFractionModel.C
Making dependency list for source file subModels/voidFractionModel/centreVoidFraction/centreVoidFraction.C
could not open file RASModel.H for source file subModels/voidFractionModel/voidFractionModel/newVoidFractionModel.C
Making dependency list for source file subModels/voidFractionModel/bigParticleVoidFraction/bigParticleVoidFraction.C
could not open file RASModel.H for source file subModels/voidFractionModel/centreVoidFraction/centreVoidFraction.C
Making dependency list for source file subModels/voidFractionModel/GaussVoidFraction/GaussVoidFraction.C
could not open file RASModel.H for source file subModels/voidFractionModel/bigParticleVoidFraction/bigParticleVoidFraction.C
Making dependency list for source file subModels/voidFractionModel/dividedVoidFraction/dividedVoidFraction.C
could not open file RASModel.H for source file subModels/voidFractionModel/GaussVoidFraction/GaussVoidFraction.C
Making dependency list for source file subModels/locateModel/locateModel/locateModel.C
could not open file RASModel.H for source file subModels/voidFractionModel/dividedVoidFraction/dividedVoidFraction.C
Making dependency list for source file subModels/locateModel/locateModel/newLocateModel.C
could not open file RASModel.H for source file subModels/locateModel/locateModel/locateModel.C
Making dependency list for source file subModels/locateModel/standardSearch/standardSearch.C
could not open file RASModel.H for source file subModels/locateModel/locateModel/newLocateModel.C
Making dependency list for source file subModels/locateModel/engineSearch/engineSearch.C
could not open file RASModel.H for source file subModels/locateModel/standardSearch/standardSearch.C
Making dependency list for source file subModels/meshMotionModel/meshMotionModel/meshMotionModel.C
could not open file RASModel.H for source file subModels/locateModel/engineSearch/engineSearch.C
Making dependency list for source file subModels/meshMotionModel/meshMotionModel/newMeshMotionModel.C
could not open file RASModel.H for source file subModels/meshMotionModel/meshMotionModel/meshMotionModel.C
Making dependency list for source file subModels/meshMotionModel/noMeshMotion/noMeshMotion.C
could not open file RASModel.H for source file subModels/meshMotionModel/meshMotionModel/newMeshMotionModel.C
could not open file RASModel.H for source file subModels/meshMotionModel/noMeshMotion/noMeshMotion.C
Making dependency list for source file subModels/momCoupleModel/momCoupleModel/momCoupleModel.C
Making dependency list for source file subModels/momCoupleModel/momCoupleModel/newMomCoupleModel.C
could not open file RASModel.H for source file subModels/momCoupleModel/momCoupleModel/newMomCoupleModel.C
Making dependency list for source file subModels/momCoupleModel/explicitCouple/explicitCouple.C
could not open file RASModel.H for source file subModels/momCoupleModel/momCoupleModel/momCoupleModel.C
Making dependency list for source file subModels/momCoupleModel/implicitCouple/implicitCouple.C
could not open file RASModel.H for source file subModels/momCoupleModel/explicitCouple/explicitCouple.C
Making dependency list for source file subModels/momCoupleModel/noCouple/noCouple.C
could not open file RASModel.H for source file subModels/momCoupleModel/implicitCouple/implicitCouple.C
Making dependency list for source file subModels/regionModel/regionModel/regionModel.C
could not open file RASModel.H for source file subModels/momCoupleModel/noCouple/noCouple.C
could not open file RASModel.H for source file subModels/regionModel/regionModel/regionModel.C
Making dependency list for source file subModels/regionModel/regionModel/newRegionModel.C
Making dependency list for source file subModels/regionModel/allRegion/allRegion.C
could not open file RASModel.H for source file subModels/regionModel/regionModel/newRegionModel.C
could not open file RASModel.H for source file subModels/regionModel/allRegion/allRegion.C
Making dependency list for source file subModels/dataExchangeModel/dataExchangeModel/dataExchangeModel.C
Making dependency list for source file subModels/dataExchangeModel/dataExchangeModel/newDataExchangeModel.C
could not open file RASModel.H for source file subModels/dataExchangeModel/dataExchangeModel/newDataExchangeModel.C
could not open file sys/stat.h for source file subModels/dataExchangeModel/dataExchangeModel/newDataExchangeModel.C
could not open file RASModel.H for source file subModels/dataExchangeModel/dataExchangeModel/dataExchangeModel.C
Making dependency list for source file subModels/dataExchangeModel/twoWayFiles/twoWayFiles.C
Making dependency list for source file subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C
could not open file RASModel.H for source file subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C
could not open file sys/stat.h for source file subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C
could not open file RASModel.H for source file subModels/dataExchangeModel/twoWayFiles/twoWayFiles.C
could not open file sys/stat.h for source file subModels/dataExchangeModel/twoWayFiles/twoWayFiles.C
Making dependency list for source file subModels/dataExchangeModel/oneWayVTK/oneWayVTK.C
Making dependency list for source file subModels/averagingModel/averagingModel/averagingModel.C
could not open file RASModel.H for source file subModels/averagingModel/averagingModel/averagingModel.C
Making dependency list for source file subModels/averagingModel/averagingModel/newAveragingModel.C
could not open file RASModel.H for source file subModels/dataExchangeModel/oneWayVTK/oneWayVTK.C
Making dependency list for source file subModels/averagingModel/dilute/dilute.C
could not open file RASModel.H for source file subModels/averagingModel/averagingModel/newAveragingModel.C
could not open file RASModel.H for source file subModels/averagingModel/dilute/dilute.C
Making dependency list for source file subModels/averagingModel/dense/dense.C
Making dependency list for source file subModels/liggghtsCommandModel/liggghtsCommandModel/liggghtsCommandModel.C
could not open file RASModel.H for source file subModels/averagingModel/dense/dense.C
could not open file RASModel.H for source file subModels/liggghtsCommandModel/liggghtsCommandModel/liggghtsCommandModel.C
Making dependency list for source file subModels/liggghtsCommandModel/liggghtsCommandModel/newLiggghtsCommandModel.C
Making dependency list for source file subModels/liggghtsCommandModel/execute/execute.C
could not open file RASModel.H for source file subModels/liggghtsCommandModel/liggghtsCommandModel/newLiggghtsCommandModel.C
could not open file RASModel.H for source file subModels/liggghtsCommandModel/execute/execute.C
Making dependency list for source file subModels/liggghtsCommandModel/readLiggghtsData/readLiggghtsData.C
could not open file RASModel.H for source file subModels/liggghtsCommandModel/readLiggghtsData/readLiggghtsData.C

.
.
.
.

SOURCE=subModels/dataExchangeModel/twoWayFiles/twoWayFiles.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I ./cfdemParticle -I/home/xchen6/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude -I/home/xchen6/OpenFOAM/OpenFOAM-1.7.x/src/transportModels -I/home/xchen6/OpenFOAM/OpenFOAM-1.7.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/xchen6/OpenFOAM/OpenFOAM-1.7.x/src/meshTools/lnInclude -I/home/xchen6/OpenFOAM/OpenFOAM-1.7.x/src/lagrangian/basic/lnInclude -I/home/xchen6/OpenFOAM/ThirdParty-1.7.x/platforms/linux64Gcc/openmpi-1.4.1/include/ -I/home/xchen6/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/xchen6/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/home/xchen6/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/twoWayFiles.o
SOURCE=subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I ./cfdemParticle -I/home/xchen6/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude -I/home/xchen6/OpenFOAM/OpenFOAM-1.7.x/src/transportModels -I/home/xchen6/OpenFOAM/OpenFOAM-1.7.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/xchen6/OpenFOAM/OpenFOAM-1.7.x/src/meshTools/lnInclude -I/home/xchen6/OpenFOAM/OpenFOAM-1.7.x/src/lagrangian/basic/lnInclude -I/home/xchen6/OpenFOAM/ThirdParty-1.7.x/platforms/linux64Gcc/openmpi-1.4.1/include/ -I/home/xchen6/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/xchen6/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/home/xchen6/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/twoWayMPI.o
In file included from subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:30:
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H:52:34: error: library_cfd_coupling.h: No such file or directory
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C: In constructor ‘Foam::twoWayMPI::twoWayMPI(const Foam::dictionary&, Foam::cfdemCloud&)’:
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:69: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:69: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:70: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:70: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:75: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:75: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:92: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:92: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:106: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:106: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:106: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:106: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:108: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:108: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:108: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:108: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C: In member function ‘virtual void Foam::twoWayMPI::getScalarData(Foam::word, double** const&, Foam::label) const’:
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:141: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:141: error: ‘data_liggghts_to_of’ was not declared in this scope
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C: In member function ‘virtual void Foam::twoWayMPI::getVectorData(Foam::word, double** const&, Foam::label) const’:
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:152: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:152: error: ‘data_liggghts_to_of’ was not declared in this scope
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C: In member function ‘virtual void Foam::twoWayMPI::giveVectorData(Foam::word, double** const&) const’:
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:162: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:162: error: ‘data_of_to_liggghts’ was not declared in this scope
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C: In member function ‘virtual void Foam::twoWayMPI::giveScalarData(Foam::word, double** const&) const’:
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:172: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:172: error: ‘data_of_to_liggghts’ was not declared in this scope
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C: In member function ‘virtual void Foam::twoWayMPI::allocateArray(double**&, double, int, int) const’:
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:184: error: ‘allocate_external_double’ was not declared in this scope
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C: In member function ‘virtual bool Foam::twoWayMPI::couple() const’:
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:222: error: ‘liggghts_get_maxtag’ was not declared in this scope
make: *** [Make/linux64GccDPOpt/twoWayMPI.o] Error 1
make: *** Waiting for unfinished jobs....
xchen6@ubuntu:~/OpenFOAM/xchen6-1.7.x/src/lagrangian/cfdemParticle$ ^C

Best regards,
Xiuhan

cgoniva's picture

cgoniva | Tue, 02/14/2012 - 16:40

Hi Xiuhan,

subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H:52:34: error: library_cfd_coupling.h: No such file or directory

says, that
either LIGGGHST is not on your system,
or the path $CFDEM_LIGGGHTS_SRC_DIR is not set correctly in your cfdemParticle/etc/bashrc

Cheers,
Chris