Install CFDEM 2.3.0 along with OpenFoam 2.1.0 and Liggghts 1.5

Submitted by keepfit on Wed, 12/21/2011 - 15:14

hi Alice,

from the installation instruction of CFDEM, OpenFoam 1.7.x (Source Pack) and Ligghts 1.5 (Source Pack) need to be compiled at first, then CFDEM can be compiled successfully.

I have installed Ubuntu 10.04 LTS, and I was wondering:

1. Can we just simply install the lastest Version of OpenFoam and LIGGGHTS from Deb or RPM PACK, and then compile the CFDEM?

2. If not possible, can we compile the source pack of OpenFoam 2.1 and LIGGGHTS 1.5, and then CFDEM 2.3.0; or CFDEM is only based on OpenFoam 1.7.x?

3. and at last, which Version of GCC is recommended?

Thanks!

alice's picture

alice | Wed, 12/21/2011 - 16:18

Hi!

>> 1. Can we just simply install the lastest Version of OpenFoam and LIGGGHTS from Deb or RPM PACK, and then
>> compile the CFDEM?
>>
>> 2. If not possible, can we compile the source pack of OpenFoam 2.1 and LIGGGHTS 1.5, and then CFDEM 2.3.0, or >> CFDEM is only based on OpenFoam 1.7.x?

First of all the best way to get liggghts is getting the source pack via the git-repository and compiling it yourself (as a library, see the instructions therfore). Building liggghts shouldn't take more than a view minutes.
For the OpenFOAM-part: CFDEM is not constructed for a specific OpenFOAM version. I never tried it in combination with OpenFOAM 2.1 , but basically it should work (maybe some minor adaptions will be necessary..)

>> 3. and at last, which Version of GCC is recommanded?
I am using version 4.4.3, which works fine.

Cheers,
Alice

keepfit | Wed, 12/21/2011 - 17:15

thanks Alice.

as the compiling of OpenFoam takes much longer time, so can I just install it from Deb Pack,
install Liggghts from compiling source pace via Git-repository, and then compile CFDEM?

Regards!

ckloss's picture

ckloss | Wed, 12/21/2011 - 17:40

>>as the compiling of OpenFoam takes much longer time, so can I just install it from Deb Pack,
>>install Liggghts from compiling source pace via Git-repository, and then compile CFDEM?
there may be a way, but we did not yet succeed in setting up CFDEM based on the Debian Pack of OF. We did not try to hard though :-)

Cheers, Christoph

keepfit | Fri, 12/23/2011 - 23:58

Alice, thanks very much for your replies!

I have already installed OpenFoam 2.1.x and LIGGGHTS 1.5 successfully from source pack (Ubuntu 10.04 LTS + GCC 4.4.3).

CFDEM bashrc ( slightly modified) is in the folder:
~/OpenFOAM/dao-2.1.x/src/lagrangian/cfdemParticle/etc

it was tested line by line and therefore has no problem.

#----------------------------------*-sh-*--------------------------------------
# Script
# etc/bashrc
#
# Description
# Startup file for cfdem exporting environment variables
# Sourced ~/.bashrc
#
#------------------------------------------------------------------------------

#- LIGGGHTS source directory src
export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/liggghts_GIT/src #

#- LIGGGHTS lib name
export CFDEM_LIGGGHTS_LIB_NAME=lmp_fedora_fpic #

#- CFDEM coupling source directory src
export CFDEM_SRC_DIR=$FOAM_RUN/../src/lagrangian/cfdemParticle

#- CFDEM lib name
export CFDEM_LIB_NAME=lagrangianCFDEM_shared

#- shortcut to src path
alias cfdem='cd $CFDEM_SRC_DIR'

#- PIZZA src directory
export CFDEM_PIZZA_DIR=$HOME/LIGGGHTS/PIZZA/pizza-8Dec09/src #

#- path to test harness
export CFDEM_TEST_HARNESS_PATH=$HOME/scripts/testCFDEM/logFiles

---------------------------------------------------------------------------------------------------------------------------------------------------------

However, while compling src, there were some error infomation as following:

dao@Dao:~/OpenFOAM/dao-2.1.x/src/lagrangian/cfdemParticle$ wmake libso
wmakeLnInclude: linking include files to ./lnInclude
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 derived/cfdemCloudIB/cfdemCloudIB.C
Making dependency list for source file subModels/forceModel/forceModel/forceModel.C
could not open file RASModel.H for source file cfdemCloud/cfdemCloud.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 omp.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
Making dependency list for source file subModels/forceModel/SchillerNaumannDrag/SchillerNaumannDrag.C
could not open file RASModel.H for source file subModels/forceModel/KochHillDrag/KochHillDrag.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 omp.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/MeiLift/MeiLift.C
Making dependency list for source file subModels/forceModel/virtualMassForce/virtualMassForce.C
could not open file RASModel.H for source file subModels/forceModel/MeiLift/MeiLift.C
could not open file omp.h for source file subModels/forceModel/MeiLift/MeiLift.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/Archimedes/Archimedes.C
could not open file RASModel.H for source file subModels/forceModel/virtualMassForce/virtualMassForce.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
could not open file RASModel.H for source file subModels/voidFractionModel/voidFractionModel/voidFractionModel.C
Making dependency list for source file subModels/voidFractionModel/voidFractionModel/newVoidFractionModel.C
Making dependency list for source file subModels/voidFractionModel/centreVoidFraction/centreVoidFraction.C
could not open file RASModel.H for source file subModels/voidFractionModel/centreVoidFraction/centreVoidFraction.C
Making dependency list for source file subModels/voidFractionModel/bigParticleVoidFraction/bigParticleVoidFraction.C
could not open file RASModel.H for source file subModels/voidFractionModel/voidFractionModel/newVoidFractionModel.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
could not open file RASModel.H for source file subModels/locateModel/engineSearch/engineSearch.C
Making dependency list for source file subModels/meshMotionModel/meshMotionModel/meshMotionModel.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
Making dependency list for source file subModels/momCoupleModel/momCoupleModel/momCoupleModel.C
could not open file RASModel.H 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/meshMotionModel/noMeshMotion/noMeshMotion.C
Making dependency list for source file subModels/momCoupleModel/explicitCouple/explicitCouple.C
could not open file RASModel.H for source file subModels/momCoupleModel/momCoupleModel/newMomCoupleModel.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
Making dependency list for source file subModels/regionModel/regionModel/newRegionModel.C
could not open file RASModel.H for source file subModels/regionModel/regionModel/regionModel.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
Making dependency list for source file subModels/dataExchangeModel/dataExchangeModel/dataExchangeModel.C
could not open file RASModel.H for source file subModels/regionModel/allRegion/allRegion.C
Making dependency list 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
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
Making dependency list 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
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
Making dependency list for source file subModels/averagingModel/averagingModel/averagingModel.C
could not open file RASModel.H for source file subModels/dataExchangeModel/oneWayVTK/oneWayVTK.C
Making dependency list for source file subModels/averagingModel/averagingModel/newAveragingModel.C
could not open file RASModel.H for source file subModels/averagingModel/averagingModel/averagingModel.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
Making dependency list for source file subModels/averagingModel/dense/dense.C
could not open file RASModel.H for source file subModels/averagingModel/dilute/dilute.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
Making dependency list for source file subModels/liggghtsCommandModel/liggghtsCommandModel/newLiggghtsCommandModel.C
could not open file RASModel.H for source file subModels/liggghtsCommandModel/liggghtsCommandModel/liggghtsCommandModel.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
Making dependency list for source file subModels/liggghtsCommandModel/readLiggghtsData/readLiggghtsData.C
could not open file RASModel.H for source file subModels/liggghtsCommandModel/execute/execute.C
could not open file RASModel.H for source file subModels/liggghtsCommandModel/readLiggghtsData/readLiggghtsData.C
SOURCE=cfdemCloud/cfdemCloud.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/cfdemCloud.o
SOURCE=derived/cfdemCloudIB/cfdemCloudIB.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/cfdemCloudIB.o
SOURCE=subModels/forceModel/forceModel/forceModel.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/forceModel.o
SOURCE=subModels/forceModel/forceModel/newForceModel.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/newForceModel.o
SOURCE=subModels/forceModel/DiFeliceDrag/DiFeliceDrag.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/DiFeliceDrag.o
SOURCE=subModels/forceModel/KochHillDrag/KochHillDrag.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/KochHillDrag.o
SOURCE=subModels/forceModel/SchillerNaumannDrag/SchillerNaumannDrag.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/SchillerNaumannDrag.o
SOURCE=subModels/forceModel/noDrag/noDrag.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/noDrag.o
SOURCE=subModels/forceModel/MeiLift/MeiLift.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/MeiLift.o
SOURCE=subModels/forceModel/virtualMassForce/virtualMassForce.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/virtualMassForce.o
SOURCE=subModels/forceModel/Archimedes/Archimedes.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/Archimedes.o
SOURCE=subModels/forceModel/ShirgaonkarIB/ShirgaonkarIB.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/ShirgaonkarIB.o
SOURCE=subModels/forceModel/LaEuScalarTemp/LaEuScalarTemp.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/LaEuScalarTemp.o
SOURCE=subModels/forceModel/gradPForce/gradPForce.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/gradPForce.o
SOURCE=subModels/forceModel/viscForce/viscForce.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/viscForce.o
SOURCE=subModels/voidFractionModel/voidFractionModel/voidFractionModel.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/voidFractionModel.o
SOURCE=subModels/voidFractionModel/voidFractionModel/newVoidFractionModel.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/newVoidFractionModel.o
SOURCE=subModels/voidFractionModel/centreVoidFraction/centreVoidFraction.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/centreVoidFraction.o
SOURCE=subModels/voidFractionModel/bigParticleVoidFraction/bigParticleVoidFraction.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/bigParticleVoidFraction.o
SOURCE=subModels/voidFractionModel/GaussVoidFraction/GaussVoidFraction.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/GaussVoidFraction.o
SOURCE=subModels/voidFractionModel/dividedVoidFraction/dividedVoidFraction.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/dividedVoidFraction.o
SOURCE=subModels/locateModel/locateModel/locateModel.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/locateModel.o
SOURCE=subModels/locateModel/locateModel/newLocateModel.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/newLocateModel.o
SOURCE=subModels/locateModel/standardSearch/standardSearch.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/standardSearch.o
SOURCE=subModels/locateModel/engineSearch/engineSearch.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I ./cfdemParticle -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/transportModels -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/dao/OpenFOAM/ThirdParty-2.1.x/platforms/linuxGcc/openmpi-1.5.3/include/ -I/home/dao/LIGGGHTS/liggghts_GIT/src -IlnInclude -I. -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/engineSearch.o
subModels/locateModel/engineSearch/engineSearch.C: In constructor ‘Foam::engineSearch::engineSearch(const Foam::dictionary&, Foam::cfdemCloud&)’:
subModels/locateModel/engineSearch/engineSearch.C:64: error: no matching function for call to ‘Foam::meshSearch::meshSearch(const Foam::fvMesh&, Foam::Switch&)’
/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude/meshSearch.H:180: note: candidates are: Foam::meshSearch::meshSearch(const Foam::polyMesh&, const Foam::treeBoundBox&, Foam::polyMesh::cellRepresentation)
/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude/meshSearch.H:171: note: Foam::meshSearch::meshSearch(const Foam::polyMesh&, Foam::polyMesh::cellRepresentation)
/home/dao/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude/meshSearch.H:149: note: Foam::meshSearch::meshSearch(const Foam::meshSearch&)
make: *** [Make/linuxGccDPOpt/engineSearch.o] Error 1
make: *** Waiting for unfinished jobs....

.....

there are some solutions i actually found on the forum for the same problem, but it turned out it won't work.

I would appreciate if there is some tips to solve this problem.

Greetings and Merry Christmas,

cgoniva's picture

cgoniva | Tue, 12/27/2011 - 10:55

Hi!

Unfortunately there was a change in the meshSearch class constructor from version 2.0.x to 2.1.x.

+you can either switch to version 2.0.x,
+or try to compile 2.0.x meshSearch in 2.0.1 (might work, but never tried)
+or uncomment engineSerach in cfdemParticle/Make/files and only use standard search
+or correct the code in engineSearch:

// quick fix:
modify the code in engineSearch.C from
53 // Construct from components
54 engineSearch::engineSearch
55 (
56 const dictionary& dict,
57 cfdemCloud& sm
58 )
59 :
60 locateModel(dict,sm),
61 propsDict_(dict.subDict(typeName + "Props")),
62 faceDecomp_(propsDict_.lookup("faceDecomp")),
63 treeSearch_(propsDict_.lookup("treeSearch")),
64 searchEngine_(particleCloud_.mesh(),faceDecomp_)
65 {}

to:
53 // Construct from components
54 engineSearch::engineSearch
55 (
56 const dictionary& dict,
57 cfdemCloud& sm
58 )
59 :
60 locateModel(dict,sm),
61 propsDict_(dict.subDict(typeName + "Props")),
62 faceDecomp_(propsDict_.lookup("faceDecomp")),
63 treeSearch_(propsDict_.lookup("treeSearch")),
64 searchEngine_(particleCloud_.mesh()) // <=== !!!!!!
65 {}

+or wait until engineSearch is ready for 2.1.x

Cheers,
Chris

keepfit | Fri, 12/30/2011 - 19:22

the problem was solved by deleting "faceDecomp" in the line 64.

I actually have done some simulations related to interaction between wind-wave and riverbank by commerical softwares. Now I am looking forward to doing some same things or even more complicated cases, e.g, water waves generated by moving ship, creating rock model by clumping particles in LIGGGHTS and then to do coupling simulation. I hope it could work.

Happy Christmas Holiday,

David Long

keepfit | Thu, 09/27/2012 - 01:51

Hi Chris,

Today I installed OpenFOAM 2.1.1 and the latest LIGGGHTS 2.1.2 on my Laptop with the fresh installed Ubuntu 12.04 system, both worked perfectly.

When i came into compiling CFDEMcouling, the error information about "could not open file RASModel.H" appeared
again.

---------------------
...........
could not open file RASModel.H for source file cfdemCloud/cfdemCloud.C
could not open file omp.h for source file cfdemCloud/cfdemCloud.C
could not open file openmpi/ompi/mpi/cxx/mpicxx.h 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 derived/cfdemCloudIB/cfdemCloudIB.C
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
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
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
Making dependency list for source file subModels/forceModel/DiFeliceDrag/DiFeliceDrag.C
could not open file RASModel.H for source file subModels/forceModel/DiFeliceDrag/DiFeliceDrag.C
Making dependency list for source file subModels/forceModel/GidaspowDrag/GidaspowDrag.C
could not open file RASModel.H for source file subModels/forceModel/GidaspowDrag/GidaspowDrag.C
Making dependency list for source file subModels/forceModel/SchillerNaumannDrag/SchillerNaumannDrag.C
could not open file RASModel.H for source file subModels/forceModel/SchillerNaumannDrag/SchillerNaumannDrag.C
Making dependency list for source file subModels/forceModel/Archimedes/Archimedes.C
could not open file RASModel.H for source file subModels/forceModel/Archimedes/Archimedes.C
Making dependency list for source file subModels/forceModel/ArchimedesIB/ArchimedesIB.C
could not open file RASModel.H for source file subModels/forceModel/ArchimedesIB/ArchimedesIB.C
Making dependency list for source file subModels/forceModel/interface/interface.C
.....
----------------------

I checked the engineSearch.c, it seems that it is a new engineSearch.

------------------
// Construct from components
engineSearch::engineSearch
(
const dictionary& dict,
cfdemCloud& sm
)
:
locateModel(dict,sm),
propsDict_(dict.subDict(typeName + "Props")),
//faceDecomp_(propsDict_.lookup("faceDecomp")),
treeSearch_(propsDict_.lookup("treeSearch")),
#ifdef version16ext
searchEngine_(particleCloud_.mesh(),false) //(particleCloud_.mesh(),faceDecomp_)
#elif defined(version21)
searchEngine_(particleCloud_.mesh(),polyMesh::FACEPLANES) // FACEPLANES or FACECENTRETETS; FACEDIAGTETS not stable
#endif
//searchEngine_(particleCloud_.mesh(),faceDecomp_) // only 2.0.x
{}
----------------

Is the CFDEM 2.4.4 only compatible with Liggghts 1.5.3 and 2.0.4 (well can not download it anyway) ? But i tried the
/cfdemSolverPiso/ErgunTestMPI test, it works fine.

So i wonder, how to get rid of this error?

Thanks in advance.

Cheers,
David

cgoniva's picture

cgoniva | Fri, 12/23/2011 - 14:39

Hi!

using the parallel compilation flag "NCOMPPROCS" compilation process on a multi-core machine is bearable.

Cheers,
Chris

moritzhoefert | Mon, 01/16/2012 - 11:30

Hi all,

in the download section I can only find cfdem-2.1.0-beta-2011-09-01-14_13.tar_.gz. Could someone put version 2.3.0 there, too? I have got trouble downloading cfdem via git because of a proxy server.

Thanks,
Moritz

e.derakhshani | Fri, 02/24/2012 - 17:17

Dear Friends,

If anyone would like to install the latest version of OpenFoam 2.1,LIGGGHTS 1.5,CFDEM 2.3 and Paraview 3.12.0 , I think the attached file will be useful.
I have edited "setup_LIGGGHTS__OpenFoamR_CFDEM_2p0_on_Ubuntu1004_24052011.txt" which has been written by Christoph Goniva on May 2011.
I have also added lpp installation file:///home/sderakhshani/Desktop/OpenFoam%202.1,LIGGGHTS%201.5,CFDEM%202.3
procedure to it. It seems very completed version.

Best regards,
Ebrahim

===========================================

Installation of OpenFOAM(R) Version 2.1.x,released 19/12/11,
LIGGGHTS 1.5 and CFDEM 2.3 coupling on Ubuntu 10.04 LTS

May. 2011
Christoph Goniva

Edited version : Feb. 2012

#####################################
# Install Ubuntu 10.04 LTS to disc
#####################################

http://www.ubuntu.com/download/ubuntu/download

============================================

#- Installing Git Software
sudo apt-get install git-core

#- You may check your git version by executing
git --version

#####################################
# Installing OpenFOAM-2.1.0
#####################################

#- Downloading the Sources : OpenFOAM-2.1.x and ThirdParty-2.1.0
#- Please see instructions at: http://www.openfoam.com/download/git.php

============================================

#- Get OpenFOAM-2.1.x source

mkdir $HOME/OpenFOAM
cd $HOME/OpenFOAM
git clone git://github.com/OpenFOAM/OpenFOAM-2.1.x.git
cd OpenFOAM-2.1.x
git pull

============================================

#- Get thirdParty programs
#- The source-pack containing additional software required to build and run OpenFOAM-2.1.x is available from SourceForge. Go to the below link to download ThirdParty-2.1.0.tgz now.

http://downloads.sourceforge.net/foam/ThirdParty-2.1.0.tgz?use_mirror=mesh

cp $HOME/Downloads/ThirdParty-2.1.0.tgz $HOME/OpenFOAM
cd $HOME/OpenFOAM
tar xzf ThirdParty-2.1.0.tgz
rm ThirdParty-2.1.0.tgz
mv ThirdParty-2.1.0 ThirdParty-2.1.x

#- add to $HOME/.bashrc

echo '#- source OpenFOAM-2.1.x' >> ~/.bashrc
echo '. $HOME/OpenFOAM/OpenFOAM-2.1.x/etc/bashrc' >> ~/.bashrc
echo '#- enable parallel compiling' >> ~/.bashrc
echo 'export WM_NCOMPPROCS=2' >> ~/.bashrc

. $HOME/.bashrc

#- Dependent packages required for Ubuntu can be installed by executing the following command in a terminal:
sudo apt-get install build-essential flex bison cmake zlib1g-dev qt4-dev-tools libqt4-dev gnuplot libreadline-dev libxt-dev

#- install gcc, flex, binutils
sudo apt-get install gcc flex binutils-dev

#- install more packages
sudo apt-get install cmake g++ flex++ bison python qt4-designer zlib1g-dev

#- install more packages
sudo apt-get install libxt-dev libxaw7-dev libxext-dev qt4-qmake qt4-dev-tools subversion-tools bison

#- install more packages
sudo apt-get install libscotch-dev libopenmpi-dev mercurial
hg clone https://bitbucket.org/pauloh/pyevtk

#- Install svn:
sudo apt-get install subversion

#- Install SWAK4Foam (FunkySetFields,GroovyBC...):
cd $FOAM_RUN/../applications/utilities
svn checkout https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trun...

#- Install octave:
sudo apt-get install octave3.2

#- the .Allclean script of the thirdParty wants gmake, you need
ln -s `which make` $WM_PROJECT_DIR/bin/gmake

============================================

#- build third party
cd $WM_THIRD_PARTY_DIR
./Allclean >& log_clean
./Allwmake >& log_wmake

#- build src
cd $WM_PROJECT_DIR
./Allwmake >& log_src_wmake

#- build file structure
cd $WM_PROJECT_INST_DIR
mkdir $USER-$WM_PROJECT_VERSION
cd $WM_PROJECT_INST_DIR/$USER-$WM_PROJECT_VERSION
mkdir run
mkdir src
mkdir applications
cd applications
mkdir solvers
mkdir utilities

#- Compiling Paraview 3.12.0 and the PV3FoamReader Module
#- To install Paraview, execute the following:

cd $WM_THIRD_PARTY_DIR
./makeParaView

#- add the following lines to the .bashrc and type bash
echo '#- adapt paths for paraview' >> ~/.bashrc
echo 'export PATH=$ParaView_DIR/bin:$PATH' >> ~/.bashrc
echo 'export PV_PLUGIN_PATH=$WM_PROJECT_DIR/platforms/linux64Gcc/paraview-3.12.0/bin' >> ~/.bashrc

# Rebuild the PV3FoamReader as follows:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
wmSET
./Allwclean
./Allwmake

============================================

#- To check your installation setup, execute the foamInstallationTest script (in the OpenFOAM-2.1.x/bin directory).

============================================

#- Getting Started : Copy the tutorial examples directory in the OpenFOAM distribution to the run directory.

cp -r $FOAM_TUTORIALS $FOAM_RUN
Run the first example case of incompressible laminar flow in a cavity:

cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity
blockMesh
icoFoam
paraFoam

#####################################
# Installing LIGGGHTS 1.5
#####################################

cd $HOME
mkdir LIGGGHTS
cd LIGGGHTS

git clone git://cfdem.git.sourceforge.net/gitroot/cfdem/liggghts liggghts_GIT

cd liggghts_GIT/src
make clean-all
make fedora_fpic -j
make makelib
make -f Makefile.lib fedora_fpic

sudo ln -s $HOME/LIGGGHTS/liggghts_GIT/src/lmp_fedora_fpic /usr/bin/liggghts

#- make sure that /usr/bin is in the $PATH which liggghts should give /usr/bin/liggghts
echo $PATH

#####################################
# install cfdem version beta 2.3.0
#####################################

cd $HOME
mkdir CFDEM
cd CFDEM
mkdir cfdem_GIT

#- Go to the following link and download cfdem 2.3.0:
system/files/cfdem-2.3.0-beta-2011-12-05.tar_.gz

#- Change its name to : cfdem2.3.0.tgz
#- Extract cfdem2.3.0.tgz in the same directory
#- Copy contents of extracted file (cfdem_2) to cfdem_GIT directory.

#- this directory includes the directories:
#cfdemParticle // CFD-DEM coupling framework
#cfdemSolverPiso_shared // solver for CFD-DEM coupling
#cfdemSolverPisoCase_shared/settlingTestMPI // test case
#cfdemSolverPisoCase_shared/ErgunTestMPI // test case

#- my recommendation is to distribute these directories to /src/lagrangian , /solvers and /run

mkdir $WM_PROJECT_INST_DIR/$USER-$WM_PROJECT_VERSION/src/lagrangian

cp -R $HOME/CFDEM/cfdem_GIT/cfdemParticle $WM_PROJECT_INST_DIR/$USER-$WM_PROJECT_VERSION/src/lagrangian

cp -R $HOME/CFDEM/cfdem_GIT/cfdemSolverPiso_shared $WM_PROJECT_INST_DIR/$USER-$WM_PROJECT_VERSION/applications/solvers

cp -R $HOME/CFDEM/cfdem_GIT/cfdemSolverPisoCase_shared $FOAM_RUN/cfdemSolverPiso_shared

#- add a line to ~/.bashrc
echo '#- source cfdem env vars' >> ~/.bashrc
echo '. $WM_PROJECT_INST_DIR/$USER-$WM_PROJECT_VERSION/src/lagrangian/cfdemParticle/etc/bashrc' >> ~/.bashrc

#- set the cfdem environment variables correctly
gedit $WM_PROJECT_INST_DIR/$USER-$WM_PROJECT_VERSION/src/lagrangian/cfdemParticle/etc/bashrc &

#- It depends to installing directory of your liggghts. If you have followed this instruction,make the following

changes in the some parts of bashrc file:

#export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/liggghts_1p0p3/src
export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/liggghts_GIT/src

#- LIGGGHTS lib name
export CFDEM_LIGGGHTS_LIB_NAME=lmp_fedora_fpic

#- PIZZA src directory
export CFDEM_PIZZA_DIR=$HOME/LIGGGHTS/PIZZA/pizza_17Aug10/src/

#- Now save bashrc and activate new env vars
. ~/.bashrc

#- Modify the code in engineSearch.C (line 64)
#-old-# 64 searchEngine_(particleCloud_.mesh(),faceDecomp_)
#-new-# 64 searchEngine_(particleCloud_.mesh())

#####################################
# compile src
#####################################

#- change the user-2.1.x/src/lagrangian/cfdemParticle path:
cd $WM_PROJECT_INST_DIR/$USER-$WM_PROJECT_VERSION/src/lagrangian/cfdemParticle

#- to compile the src type:
rmdepall
wclean
wmake libso

#- you should then get a message like:
'/home/user/OpenFOAM/user-2.1.x/lib/linuxGccDPOpt/liblagrangianCFDEM_shared.so' is up to date.

#####################################
# compile solver
#####################################

#- change the /user-2.1.x/applications/solvers/cfdemSolverPiso_shared path:
cd $WM_PROJECT_INST_DIR/$USER-$WM_PROJECT_VERSION/applications/solvers/cfdemSolverPiso_shared

#- to compile the solver type:
rmdepall
wclean
wmake

#- check if compilation was successful type:
which cfdemSolverPiso_shared

#- you should then get a message like:
#- /home/user/OpenFOAM/user-2.1.x/applications/bin/linux64GccDPOpt/cfdemSolverPiso_shared

#####################################
# pizza.py compilling
#####################################

#- make sure you have python and python numerics
sudo apt-get install python-numeric

cd $HOME/LIGGGHTS
mkdir PIZZA

#- download the latest pizza.tar.gz from www.cfdem.com (for me it was gran_pizza_17Aug10.tar_.gz)

#- rename the downloded file to pizza.tar.gz
mv $HOME/Downloads/s0FsWXGh.bin.part $HOME/Downloads/pizza.tar.gz

#- extract the file with: tar xzvf pizza.tar.gz
tar xzvf $HOME/Downloads/pizza.tar.gz

#- add an alias to the .bashrc:
echo '#- pizza' >> ~/.bashrc
echo 'alias pizza="python -i $HOME/LIGGGHTS/PIZZA/pizza-17Aug10/src/pizza.py"' >> ~/.bashrc

#- activate new env vars
. ~/.bashrc

#- test pizza by typing "pizza" (ignore the module warning)
#- exit pizza/python by typing "Strg + d"

#####################################
# LPP (LIGGGHTS post-processing) : It coverts LIGGGHTS/LAMMPS dump files into VTK
#####################################

cd $HOME
mkdir mylpp
cd mylpp

git clone git://cfdem.git.sourceforge.net/gitroot/cfdem/lpp mylpp

#- keep your version up-to-date
git pull

#- opening bashrc file
gedit /home/user/.bashrc &

#- Add the following line to the bashrc and then save it.
CFDEM_lppPath=/home/user/mylpp
alias lpp="python $CFDEM_lppPath/src/lpp.py"
#alias pizza="python $CFDEM_lppPath/src/pizza.py"

#- activate new env vars
. ~/.bashrc

#- check LPP with following command:
cd $HOME
cd LIGGGHTS/liggghts_GIT/examples/LIGGGHTS/newContactModels/post/
lpp dump.newModels
paraview

#####################################
# run cfdem testcase
#####################################

#- change to the case path:
cd $FOAM_RUN/cfdemSolverPiso_shared/settlingTestMPI

#- to run the testcase type:
./Allrun.sh

#- in case the Allrun.sh script does not work for you:
cd CFD
decomposePar
mpirun -np 2 cfdemSolverPiso_shared -parallel
reconstructPar
foamToVTK
cd ../DEM/post
pll dump.liggghts_init

#- visualize the data with paraview

cgoniva's picture

cgoniva | Mon, 02/27/2012 - 07:54

Dear Ebrahim,

thank you for your contribution!!!
(although I did not yet test your installation procedure.)
btw: your link does not work correctly.

Cheers,
Chris

kunzhang's picture

kunzhang | Fri, 09/28/2012 - 05:10

Thanks for your detailed instrution. But now sudo apt-get install python-numeric seems does not work.

I type it, it shows

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-numeric is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-numeric' has no installation candidate

And when I use the lpp ...., it shows
Traceback (most recent call last):
File "/home/cee-student/mylpp/src/lpp.py", line 5, in
from dump import dump
File "/home/cee-student/mylpp/src/dump.py", line 194, in
import Numeric as np
ImportError: No module named Numeric

How should I solve this problems? Thank you

Maybe 2/1/06 UPDATE A new, master module, named NumPy has been released that is touted as a replacement for Numeric and Numarray.
May be "sudo apt-get install python-NumPy" works.

kunzhang