Installation of CFDEM

Submitted by chandi on Fri, 12/09/2011 - 14:08

Hi everyone,

I am a new user in CFDEM foram. I don't have any idea how to install it. Can anyone help me about the step by step procedure for its installation.

Regards,

Chandi

Oliver.pasqual | Fri, 12/09/2011 - 14:37

hi Chandi,
A detailed description of the installation process is atached in the "Downloads" item on the left pannel.
from the installation of openfoam to the liggghts..swak4...liggghts and others.
Hope this help.
Oliver P

e.derakhshani | Tue, 12/13/2011 - 14:48

Dear Friends,
I more than 3 times followed this instruction: "setup_LIGGGHTS__OpenFoamR_CFDEM_2p0_on_Ubuntu1004_24052011.txt".
But when I want to compile src in the end of compiling process these errors are appeared :

In file included from subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:30:

subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H:47:62: error: lammps.h: No such file or directory
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H:48:19: error: input.h: No such file or directory
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H:49:18: error: atom.h: No such file or directory
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H:50:21: error: library.h: No such file or directory
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H:52:34: error: library_cfd_coupling.h: No such file or directory
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H:53:20: error: update.h: No such file or directory
In file included from subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:30:
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H:83: error: ‘LAMMPS_NS’ has not been declared
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H:83: error: ISO C++ forbids declaration of ‘LAMMPS’ with no type
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H:83: error: expected ‘;’ before ‘*’ token
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:96: error: ‘lmp’ was not declared in this scope
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:96: error: expected type-specifier before ‘LAMMPS_NS’
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:96: error: expected ‘;’ before ‘LAMMPS_NS’
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:109: error: ‘lmp’ was not declared in this scope
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:113: error: ‘lmp’ was not declared in this scope
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: error: ‘lmp’ was not declared in this scope
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: error: ‘lmp’ was not declared in this scope
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: error: ‘lmp’ was not declared in this scope
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: error: ‘lmp’ was not declared in this scope
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: ‘lmp’ was not declared in this scope
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:215: error: ‘lmp’ was not declared in this scope
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:222: error: ‘lmp’ was not declared in this scope
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....
sderakhshani@ubuntu:~/OpenFOAM/sderakhshani-1.7.x/src/lagrangian/cfdemParticle$

Unfortunately I did not see the following message at the end of compiling:
"'/home/user/OpenFOAM/user-1.7.1/lib/linuxGccDPOpt/liblagrangianCFDEM_shared.so' is up to date."

I would appreciate any tips how I could solve this problem.

With very warmest regards,
Ebrahim

alice's picture

alice | Tue, 12/13/2011 - 18:23

Hi Ebrahim,
are you sure that you got all the paths and the name of the CFDEM_LIGGGHTS_LIB_NAME right in [...]/src/lagrangian/cfdemParticle/etc/bashrc?
The latter one is the name of the library you created when compiling liggghts and which is located in the src-directory of your LIGGGHTS-version.
Best,
Alice

e.derakhshani | Fri, 12/16/2011 - 16:18

Hi Alice,
I checked again all process. unfortunately until now I can not install cfdem.
I really appreciate to tell me what should Ido about this part of installing instruction:

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)

I can not understand the meaning of the sentence after comment.

Thanks alot
Ebrahim

cgoniva's picture

cgoniva | Mon, 12/19/2011 - 10:12

Hi!

This is a soft link between the LIGGGHTS library you compiled (lmp_fedora_fpic) and /usr/bin/liggghts.

With this link, the command liggghts will execute lmp_fedora_fpic.

Cheers,
Chris

e.derakhshani | Mon, 12/19/2011 - 14:50

Dear Chris,

Thank you for your attention.
How can I make sure that /usr/bin is in the $PATH ?
Also, what does mean the $PATH ?

Best Regards,
Ebrahim

e.derakhshani | Tue, 12/20/2011 - 10:19

Dear friends,

I checked this text file : Makefile.fedora_fpic
I found that there is not any address in front of the following lines:

MPI_INC = -DMPICH_IGNORE_CXX_SEEK
MPI_PATH =
MPI_LIB =
.
.
.
FFT_INC = -DFFT_NONE
FFT_PATH =
FFT_LIB =

Is it the problem of installing process?

Still I do not know how can I define usr/bin for the $PATH?
Also what is $PATH ?
I have followed all commands but I think this communication has not been appeared !!
Thanks for your help,
Ebrahim

alice's picture

alice | Tue, 12/20/2011 - 16:35

Hi Ebrahim,
$PATH is an (ubuntu) environment-variable, that contains the pathes of all directories, that are - after a program call - searched for the specific program, so:

open a terminal and type
>> echo $PATH

this will show you a number of pathes, seperated from each other by colons. Read through the list, check for ...:/usr/bin:... . If it is not contained, please add this path to the variable (check some ubuntu-forum for specifics on that topic).

cheers,
alice

e.derakhshani | Wed, 12/21/2011 - 15:04

Dear Alice,

Thank you for your nice advice.
I checked this command : echo $PATH
Fortunately I could find ":/usr/bin:" .

I think the error in installing process is generated in other lines.

Best regards,
Ebrahim

e.derakhshani | Fri, 12/30/2011 - 12:00

Hi Alice,
I checked all installing process separately and all of them was working right.Also, I compiled OpenFoam , Liggghts and run some examples. I believed that here is not any error related to them.

May I ask you to explain more about your past recommendation:

"are you sure that you got all the paths and the name of the
CFDEM_LIGGGHTS_LIB_NAME right in [...]/src/lagrangian/cfdemParticle/etc/bashrc?"

I have not any idea about this recommendation and I do not know how I can check it.

In addition, when I enter this command: wmake libso , the following erorr was appeared. I put here first part of erorr because it was very long.

sderakhshani@ubuntu:~/OpenFOAM/sderakhshani-1.7.x/src/lagrangian/cfdemParticle$ wclean
sderakhshani@ubuntu:~/OpenFOAM/sderakhshani-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 derived/cfdemCloudIB/cfdemCloudIB.C
could not open file RASModel.H for source file cfdemCloud/cfdemCloud.C

I completely confused and I do not know what I should do to remove these errors in installing CFDEM. I am new in Linux environment and need your help.

Thanks in advance

Best Regards,
Ebrahim

alice's picture

alice | Fri, 12/30/2011 - 12:52

Hi Ebrahim,
the messages you see here are some pre-processor statements, no errors. They do not indicate success of failure of the compilation, don't worry about those. In case the compilation process is not completed, we will need more information to make a statement...
Cheers,
Alice

e.derakhshani | Fri, 12/30/2011 - 14:31

Dear Alice,

Thanks for your fast response.
I have copied the message which produced during compiling process on a note file.
How can I inform you (message text is too long and I think it is not reasonable to put it here)?

Also, this message did not appeared at the end of compiling src:
'/home/user/OpenFOAM/user-1.7.1/lib/linuxGccDPOpt/liblagrangianCFDEM_shared.so' is up to date.

Best regards,
Ebrahim

alice's picture

alice | Fri, 12/30/2011 - 14:50

Hi Ebrahim,
did you have a look at the thread "Install CFDEM 2.3.0 along with OpenFoam 2.1.0 and Liggghts 1.5", just beyond this one? Does your output-message look anything like this?
Cheers,
Alice