Compiling CFDEM

Submitted by heliana60 on Mon, 09/14/2015 - 11:07

Hello guys,

I have been having troubles to compile CFDEM in m y computer. I have worked with OpenFOAM for a couple of years, so my OF installation is fine. However, compiling CFDEM doesn't work. I don't know if some libraries are not well adressed or something. (My OF version is 2.3.)
When I compile CFDEM I get the next errors:

SOURCE=cfdemSolverPiso.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/transportModels -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/incompressible/singlePhaseTransportModel -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/home/heliana/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/lagrangian/cfdemParticle/lnInclude -I/home/heliana/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/lagrangian/cfdemParticle/cfdTools -IlnInclude -I. -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/cfdemSolverPiso.o
In file included from /home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/ddtScheme.C:30:0,
from /home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/ddtScheme.H:325,
from /home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/fvcDdt.C:28,
from /home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/fvcDdt.H:199,
from /home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/fvc.H:44,
from /home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/fvCFD.H:8,
from cfdemSolverPiso.C:37:
/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/cyclicAMIFvPatch.H:39:35: fatal error: cyclicAMILduInterface.H: No such file or directory
compilation terminated.
cfdemSolverPiso.dep:650: recipe for target 'Make/linux64GccDPOpt/cfdemSolverPiso.o' failed
make: *** [Make/linux64GccDPOpt/cfdemSolverPiso.o] Error 1

.............................
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/transportModels -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/incompressible/singlePhaseTransportModel -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/home/heliana/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/lagrangian/cfdemParticle/lnInclude -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/dynamicFvMesh/lnInclude -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/lnInclude -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/dynamicFvMesh/lnInclude -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/dynamicMesh/lnInclude -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/fvOptions/lnInclude -IlnInclude -I. -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/cfdemSolverIB.o -L/home/heliana/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib \
-L/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/lib -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -ldynamicFvMesh -ldynamicMesh -lfvOptions -llagrangianCFDEM-PUBLIC-2.3.x -lOpenFOAM -ldl -lm -o /home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverIB
/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/lib/liblagrangianCFDEM-PUBLIC-2.3.x.so: undefined reference to `Foam::UOPstream::writeQuoted(std::__cxx11::basic_string, std::allocator > const&, bool)'
/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/lib/liblagrangianCFDEM-PUBLIC-2.3.x.so: undefined reference to `Foam::operator<<(Foam::Ostream&, std::__cxx11::basic_string, std::allocator > const&)'
collect2: error: ld returned 1 exit status
/home/heliana/OpenFOAM/OpenFOAM-2.3.x/wmake/Makefile:149: recipe for target '/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverIB' failed
make: *** [/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverIB] Error 1
.........................
/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/lib/liblagrangianCFDEM-PUBLIC-2.3.x.so: undefined reference to `Foam::operator<<(Foam::Ostream&, std::__cxx11::basic_string, std::allocator > const&)'
collect2: error: ld returned 1 exit status
/home/heliana/OpenFOAM/OpenFOAM-2.3.x/wmake/Makefile:149: recipe for target '/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/bin/cfdemPostproc' failed
make: *** [/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/bin/cfdemPostproc] Error 1
............
/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/lib/liblagrangianCFDEM-PUBLIC-2.3.x.so: undefined reference to `Foam::operator<<(Foam::Ostream&, std::__cxx11::basic_string, std::allocator > const&)'
collect2: error: ld returned 1 exit status
/home/heliana/OpenFOAM/OpenFOAM-2.3.x/wmake/Makefile:149: recipe for target '/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/bin/cfdemPostproc' failed
make: *** [/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/bin/cfdemPostproc] Error 1

................

So as I understand the solvers won't compile :(

I have been trying to compile them one by one (and include some libraries in the Make/options that might have been missing like: -I$(LIB_SRC)/meshTools/lnInclude and -lmeshTools ) and I get this error:

g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/transportModels -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/incompressible/singlePhaseTransportModel -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I/home/heliana/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/lagrangian/cfdemParticle/lnInclude -I/home/heliana/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/lagrangian/cfdemParticle/cfdTools -IlnInclude -I. -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/cfdemSolverPisoScalar.o -L/home/heliana/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib \
-L/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/lib-lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -lmeshTools -llagrangianCFDEM-PUBLIC-2.3.x -lOpenFOAM -ldl -lm -o /home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverPisoScalar
/usr/bin/ld: cannot find -llagrangianCFDEM-PUBLIC-2.3.x
collect2: error: ld returned 1 exit status
/home/heliana/OpenFOAM/OpenFOAM-2.3.x/wmake/Makefile:149: recipe for target '/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverPisoScalar' failed
make: *** [/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverPisoScalar] Error 1

Do you guys have any idea what I could have been doing wrong?

Thanks a lot!

Heliana

ural | Tue, 09/15/2015 - 14:39

Hi there, well i was having the same troubles and finaly managed to work it out!
1) The man says that you should use works with OF 2.3.x ( commit: 4d6f4a3115ff76ec4154c580eb041bc95ba4ec09) the commit is pretty important thing but it didn't work for me
2) You sholud use Ubuntu 14.04 LTS, codename trusty (i use 14.04.3)
SO that is what i've done:
1) i installed OF using thing procedure http://www.openfoam.org/download/ubuntu.php but i changed 240 to 231 and i didn't install Parafoam (couse i installed the last paraview version from their site)
2) i installed Octave package sudo apt-get install octave i will not be able to see any graphic in tutorials with out it
3) Then i used this manual http://www.cfdem.com/system/files/githubaccess_public.pdf
Pay attention to the step 3 it works fine, be extreamly attentive when you make changes to bashrc and allways open a new term when you change smth

Good luck and here is my skype Brainpitcher i will be glad to be able to help you

Poormanphysics | Mon, 10/05/2015 - 23:35

Thanks Brainpitcher after much retries when I recently came back doing this after sometime your steps lead me to a success. You're right for this CFDEM version the matching OpenFOAM is 2.3.1 and that is available at their archives already (as the newer 2.4.x is what appears in the website) same procedure to follow as OpenFOAM shows it here http://www.openfoam.org/archive/2.3.1/download/ubuntu.php. Also at some point where its looks for the result from an octave call your Step 2 solved my issue of a missing .eps file. All the rest of the steps from CFDEM documentation worked as usual as well as the tests for path, compilation for the LIGGGHTS and CFDEM and a beautifully executed cfdemTestTUT - all of the tutorials got executed one by one to the finish - very nice first time to see them worked liked that!

USC Phil-LiDAR Research Center
University of San Carlos

heliana60 | Tue, 09/22/2015 - 10:14

Hi there,

Well I have been working with OpenFOAM for a while and I use OF 2.3.x which I installed some time ago. I also used the manual to install/compile CFDEM.
I could finally compile and create the lagrangian library (finally cfdemParticle is compiled :)) but when I compile the solvers, the lagrangian library cannot be found, I have even set it manually and it doesn't find it. I have check the bashrc and cfdemPartcile/etc/bash and it all seems fine... I am a bit desperated and frustrated, I am not sure what to do anymore. I am compile each solver one by one with wmake.

Do you have any other tip? :)

Thanks for answering!

heliana

ural | Wed, 09/23/2015 - 13:08

Well, as it was written before i used OF 231 not 23x and i used the repository build instead of OF compilation, maybe i am just a lucky guy but i'd managed to install it for a few times from a cleen sheet and now it works great and gives us some good results. if i were you i'd get a virtual machine like a vmware for example and absolutly clean and updated Ubuntu 14.04 build then i would try to install OF231 (not 23x) and then i would follow CFDEM man step by step. Good luck and turn off the desperational mode:)
PS i think i can make a video installation tutorial... i mean to show how i worked it out, i mean from the clean sheet. Are you interested?

heliana60 | Wed, 09/23/2015 - 16:45

I actually could manage to create the libraries :) my option files were a little bit strange but cfdemParticle compiles. New problem is, though it is created in the log file I find this:

Making dependency list for source file derived/cfdemCloudIB/cfdemCloudIB.C
could not open file omp.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file ompi/mpi/cxx/pmpicxx.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file ompi/mpi/cxx/pop_inln.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file ompi/mpi/cxx/pgroup_inln.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file ompi/mpi/cxx/pstatus_inln.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file ompi/mpi/cxx/prequest_inln.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
Making dependency list for source file cfdTools/global.C
Making dependency list for source file cfdTools/newGlobal.C
Making dependency list for source file subModels/forceModel/forceModel/forceModel.C
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
Making dependency list for source file subModels/forceModel/forceModel/newForceModel.C
Making dependency list for source file subModels/forceModel/noDrag/noDrag.C
Making dependency list for source file subModels/forceModel/checkCouplingInterval/checkCouplingInterval.C
could not open file omp.h for source file subModels/forceModel/checkCouplingInterval/checkCouplingInterval.C due to No such file or directory
could not open file ompi/mpi/cxx/pmpicxx.h for source file subModels/forceModel/checkCouplingInterval/checkCouplingInterval.C due to No such file or directory
could not open file ompi/mpi/cxx/pop_inln.h for source file subModels/forceModel/checkCouplingInterval/checkCouplingInterval.C due to No such file or directory
could not open file ompi/mpi/cxx/pgroup_inln.h for source file subModels/forceModel/checkCouplingInterval/checkCouplingInterval.C due to No such file or directory
could not open file ompi/mpi/cxx/pstatus_inln.h for source file subModels/forceModel/checkCouplingInterval/checkCouplingInterval.C due to No such file or directory
could not open file ompi/mpi/cxx/prequest_inln.h for source file subModels/forceModel/checkCouplingInterval/checkCouplingInterval.C due to No such file or directory

........................... etc

then when I compile the solvers/utilities I get this error:

/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/lib/liblagrangianCFDEM-PUBLIC-2.3.x.so: undefined reference to `Foam::UOPstream::writeQuoted(std::__cxx11::basic_string, std::allocator > const&, bool)'
/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/lib/liblagrangianCFDEM-PUBLIC-2.3.x.so: undefined reference to `Foam::operator<<(Foam::Ostream&, std::__cxx11::basic_string, std::allocator > const&)'
collect2: error: ld returned 1 exit status
/home/heliana/OpenFOAM/OpenFOAM-2.3.x/wmake/Makefile:149: recipe for target '/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverIB' failed
make: *** [/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverIB] Error 1

So i can't really compile them...!

Do you have any idea? A video would be AWESOME :)

P.s: I'll try to remain calm ;)

ural | Thu, 09/24/2015 - 06:13

I have a lot of work to do, but i'll try to prepare everything till monday. you will spend a good weekend, get some rest and good emotions:) there is no need to compile smth on weekend. Have a nice day

j-kerbl's picture

j-kerbl | Wed, 09/30/2015 - 11:03

Hi Heliana,

firstly, please check the settings of OFversion.H in the cfdem etc folder. This is reachable via the shortcut cfdemEtc, then in the OFversion folder, there is a OFversion.H file. Please define the 2.3.x version.

Secondly, are you using the ThirdParty OpenMPI of OpenFOAM?
If so, please check the Allwmake.sh script in the ThirdParty Folder and remove the build command "--disable-mpi-cxx" and recompile it.
CFDEM needs the cxx stuff OpenMPI.

Please tell me, if it worked, or if there are other problems.

Update:
I just figured out some other stuff:
Is the OF-commit the latest compatible one? -> goto OF Folder and run 'git rev-parse HEAD' and compare it with the entry in src/lagrangian/cfdemParticle/cfdTools/versionInfo.H

If they are not identical, you could checkout the correct commit via: git checkout 4d6f4a3115ff76ec4154c580eb041bc95ba4ec09
Or you need to check what the first error is. Most probably it is during compilation of the solvers and their options file needs to be updated as in
http://www.cfdem.com/forums/errors-while-compiling-cfdemsolverpisoscalar

I tested the following settings to the "options" file within
$CFDEM_SOLVER_DIR/cfdemSolverPiso/Make
and
$CFDEM_SOLVER_DIR/cfdemSolverPisoScalar/Make
(added the meshTools lines)

include $(CFDEM_ADD_LIBS_DIR)/additionalLibs

EXE_INC = \
-I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/lnInclude \
-I$(CFDEM_SRC_DIR)/lagrangian/cfdemParticle/cfdTools \

EXE_LIBS = \
-L$(CFDEM_LIB_DIR)\
-lincompressibleRASModels \
-lincompressibleLESModels \
-lincompressibleTransportModels \
-lfiniteVolume \
-lmeshTools \
-l$(CFDEM_LIB_NAME) \
$(CFDEM_ADD_LIB_PATHS) \
$(CFDEM_ADD_LIBS)

Please keep me updated.

Cheers,
Josef

heliana60 | Wed, 03/02/2016 - 12:07

Hi Josef,

How are you? I am sorry for replying more than half a year later. I was encountering other parts of my phd project, and now I am back to where CFDEM is included (I started again yesterday) :)

Anyways, I have manage to solve some compilation problems I had long time ago, but I still encounter the mpi problem, since next files are not there:

could not open file omp.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file ompi/mpi/cxx/pmpicxx.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file ompi/mpi/cxx/pop_inln.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file ompi/mpi/cxx/pgroup_inln.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file ompi/mpi/cxx/pstatus_inln.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file ompi/mpi/cxx/prequest_inln.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory

I have recompiled ThirdParty directory disabling the --disable-mpi-cxx in the Allwmake file and recompile. I check my /usr/lib directories (/usr/lib/openmpi/include/openmpi/ompi/mpi/) and files are there (funnily) without the p in front of the name (i.e. mpicxx.h etc).

In the end that part is missing and the OpenFOAM part does not run. Do you have any other idea? Does the git commit have to do with it?

I am waiting for your wise words of help :)

Heliana

ural | Thu, 10/01/2015 - 07:17

Sorry for making you wait here is my own manual which works for me (i hope that guys from the CFDEM team will forgive me)

1)lets install OF231 following the procedure

http://openfoam.org/download/ubuntu.php

(instead of sudo apt-get install openfoam240 you should use sudo apt-get install openfoam231)

2)lets install GIT following this man part

sudo apt-get install libvtk5-dev libeigen2-dev libopenmpi-dev g++ git-core

3)lets clone LIGGGHTS, follow the manual
If not already done, open a terminal and create a directory for LIGGGHTS(R) in $HOME:

cd
mkdir LIGGGHTS
cd LIGGGHTS

To clone the public LIGGGHTS repository, open a terminal and execute:

git clone git://github.com/CFDEMproject/LIGGGHTS-PUBLIC.git LIGGGHTS-PUBLIC

4)now the CFDEM

cd
mkdir CFDEM
cd CFDEM

Make sure that OpenFOAM(R) is already set up correctly!
To clone the public CFDEM(R)coupling repository, open a terminal and execute:

git clone git://github.com/CFDEMproject/CFDEMcoupling-PUBLIC.git CFDEMcoupling-PUBLIC-$WM_PROJECT_VERSION

5)Install LPP
Optionally you can install lpp which will help you convert the DEM (dump) data to VTK format. For standard
CFD-DEM runs this will not be necessary. To get the DEM postporcessing tool "lpp" you need python-numpy
package installed:

sudo apt-get install python-numpy

You can pull the latest version of lpp with:

cd $HOME/LIGGGHTS
git clone git://cfdem.git.sourceforge.net/gitroot/cfdem/lpp mylpp

6)Set Environment Variables:
Now you need to set some environment variables in ~/.bashrc (if you use c-shell, manipulate ~/.cshrc
accordingly). Open ~/.bashrc

gedit ~/.bashrc

add the lines (you find them also in .../cfdemParticle/etc/bashrc and cshrc respectively):
#================================================#
#- source cfdem env vars
export CFDEM_VERSION=PUBLIC
export CFDEM_PROJECT_DIR=$HOME/CFDEM/CFDEMcoupling-$CFDEM_VERSION-$WM_PROJECT_VERSION
export CFDEM_SRC_DIR=$CFDEM_PROJECT_DIR/src
export CFDEM_SOLVER_DIR=$CFDEM_PROJECT_DIR/applications/solvers
export CFDEM_DOC_DIR=$CFDEM_PROJECT_DIR/doc
export CFDEM_UT_DIR=$CFDEM_PROJECT_DIR/applications/utilities
export CFDEM_TUT_DIR=$CFDEM_PROJECT_DIR/tutorials
export CFDEM_PROJECT_USER_DIR=$HOME/CFDEM/$LOGNAME-$CFDEM_VERSION-$WM_PROJECT_VERSION
export CFDEM_bashrc=$CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/bashrc
export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/LIGGGHTS-PUBLIC/src
export CFDEM_LIGGGHTS_MAKEFILE_NAME=fedora_fpic
export CFDEM_LPP_DIR=$HOME/LIGGGHTS/mylpp/src
export CFDEM_PIZZA_DIR=$HOME/LIGGGHTS/PIZZA/gran_pizza_17Aug10/src
. $CFDEM_bashrc
#================================================#
Save the ~/.bashrc, open a NEW TERMINAL and test the settings. The commands:

$CFDEM_PROJECT_DIR
$CFDEM_SRC_DIR
$CFDEM_LIGGGHTS_SRC_DIR

should give "...: is a directory" otherwise something went wrong and the environment variables in ~/bashrc are
not set correctly.

8)You may install OCTAVE to be able to open eps graphics

sudo apt-get install octave

9)If above settings were done correctly, you can compile LIGGGHTS(R) by typing:

cfdemCompLIG

10)then compile CFDEM(R)coupling by typing:

cfdemCompCFDEM

DONE!!!

saneku's picture

saneku | Wed, 12/09/2015 - 14:07

Hello All!
Regarding the following error message " /home/heliana/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/cyclicAMIFvPatch.H:39:35: fatal error: cyclicAMILduInterface.H: No such file or directory"
It appears when you upgrade OF from 2.3.x to 2.4.x.

cfdemSolverPiso is based on pisoFoam
and if you compare the options file of pisoFoam (version 2.4.x) with the same file from 2.3.x version you will notice that they differ by:
-I$(LIB_SRC)/meshTools/lnInclude

So, you only need to add this string to options file of cfdemSolverPiso solver