LIGGGHTS compiling problem

Submitted by hse3 on
richti83

afaik you need to use OpenFoam 2.2.x, and make sure you checked out the commit 61b850bc107bdd60bbf1bf9a6417b9faf701d128 (last one compatibel with CFDEMCouplingToolbox)

cd $HOME
mkdir OpenFOAM
cd OpenFOAM
git clone https://github.com/OpenFOAM/OpenFOAM-2.2.x.git
git checkout 61b850bc107bdd60bbf1bf9a6417b9faf701d128
cd $HOME/OpenFoam/OpenFoam-2.2.x/
./Allmake

Make sure to adapt the .bashrc to the right paths for OF2.2.X and source it new !

The output of cfdemCompLIG does not seems to be an error, only a message what happend there / next - not critical in my opinion.

Best,
Christian

Sat, 5 Jul 2014 - 22:06 Permalink
hse3

In reply to by richti83

Hi Christian, Thanks for your reply. I installed OF2.2.x as you suggested I also tried OF2.1.x just in case but after Liggghts compilation (cfdemCompLIG) I still got the same results in each case.
".
.
a - write_data.o
a - write_dump.o
a - write_restart.o
make[1]: Leaving directory `/home/almsahli12/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_fedora_fpic'

Compiling sub-libraries of LIGGGHTS now...
Please provide the libraries to be compiled in the //home/almsahli12/CFDEM/CFDEMcoupling-PUBLIC-/src/lagrangian/cfdemParticle/etc/library-liggghts-list.txt file.
Libraries must be in the /home/almsahli12/LIGGGHTS/LIGGGHTS-PUBLIC/src/../lib directory."

Do you think that I might be still missing something else?

Thanks,

Hasan

Sun, 6 Jul 2014 - 22:19 Permalink
richti83

I think this output is OK, can't see any error.
You can check if there is a lmp_fedora_fpic and a liblmp_fedora_fpic.a in your LIGGGHTS/LIGGGHTS-PUBLIC/src/ directory.

Next step is to type cfdemCompCFDEM and see what happens. After that you can test the Tutorials in the CFDEM folder.

Best,
Christian

Tue, 8 Jul 2014 - 10:58 Permalink
hse3

In reply to by richti83

Thanks Christian, the CFDEM(R) compiled quite fine this time I think. But I have got an error when running tutorial cases ( using cfdemTestTUT and Allrun.sh)
.. ..................................
(Under the console screen of "cfdemSolverPiso settlingTest CFD" gives:)
.
.
** (evince:29668): WARNING **: Error setting file metadata: No such file or directory

** (evince:29668): WARNING **: Error setting file metadata: No such file or directory
.......................................
(and under the "Document Viewer" gives :)

Unable to open document “file:///home/almsahli8/CFDEM/CFDEMcoupling-PUBLIC-2.2.x/tutorials/cfdemSolverPiso/settlingTestMPI/CFD/octave/cfdemSolverPiso_settlingTestMPI.eps”.

Error opening file: No such file or directory
.......................................

Runing the other tutorial cases give similar results.

Do you have any suggestion what could have caused this problem.

Many Thanks,
Hasan

Tue, 8 Jul 2014 - 18:21 Permalink
richti83

I predict you did not install octave to convert the result files into a chart. Can you post the full log of the cfdemrun terminal ?
When there is one line which tells you the system did not find octave and you are on a ubuntu/debian system just type

sudo apt get install ocatve

A good way to check the results is to use ParaView:
install the latest binary from paraview.org (4.0.1).
create an alias in in your bashrc to the binary of paraview for example:

alias paraview='$HOME/Downloads/ParaView-4.1.0-Linux-64bit/bin/paraview --use-old-panels'

Than in the terminal where you typed Allrun type:

source $HOME/.bashrc
touch mycase.foam
paraview

Open the mycase.foam file and watch the beautiful colors of your simulation.

Tue, 8 Jul 2014 - 18:54 Permalink
NTT1508

HI Hassan,

I got the same problems when doing cfdemCompLIG, it states that " Please provide the libraries to be compiled in the... and Libraries must be in..."

I have checked mp_fedora_fpic and a liblmp_fedora_fpic.a and found them avaiable in the directory.

Please advise my problems,

Thanks,

Regards,

Sat, 18 Oct 2014 - 07:32 Permalink

Hi Everybody,

I am trying to set up CFDEMproject on ubuntu 14.04 LTS, and I am following the same exact steps on githubAccess_public.pdf.

I installed OpenFOAM-2.3.x successfully, and everything went fine up to

cfdemSysTest

and I get some information confirming that the paths are set correctly.

Then I started compiling LIGGGHTS(R) by typing:
cfdemCompLIG

The compilation run for a while and in the end gave me the following :
“.
.
.
a - write_dump.o
a - write_restart.o
make[1]: Leaving directory `/home/almsahli6/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_fedora_fpic'

Compiling sub-libraries of LIGGGHTS now...
Please provide the libraries to be compiled in the //home/almsahli6/CFDEM/CFDEMcoupling-PUBLIC-/src/lagrangian/cfdemParticle/etc/library-liggghts-list.txt file.
Libraries must be in the /home/almsahli6/LIGGGHTS/LIGGGHTS-PUBLIC/src/../lib directory.
”

I am not sure what Libraries I need to provide or change.

Because also compiling CFDEM(R)coupling after that broke very quick.

Could someone help me to solve this matter please , or if you recommended better installation guide.

Regards,

Hasan