Help - Running LIGGGHTS and CFDEMCoupling with OpenFoam 2.2.2

Submitted by ziv on Sun, 02/02/2014 - 14:15

Hi,

Is it there a way to install and run LIGGGHTS and CFDEMCoupling with OpenFoam 2.2.2 ?

Best,
zivg

ziv | Mon, 02/03/2014 - 13:39

Thank you for the fast replay.

I wanted the OpenFoam 2.2.2 since it has new updated features that interest me ( specifically on phase change). Yet, I tried to install OpenFoam 2.2.2, it worked with LIGGGHTS but failed with CFDEM.
Taking your advice, I followed your links and tried to install OpenFoam 2.2.1 which required me to use superuser (sudo) to complete the installation. The Git s worked, But trying to compile LIGGGHTS failed, as I got many Permission denials as the following :

cp: cannot create regular file ‘Obj_ubuntuVTK/version.h’: Permission denied

I also inserted my .bashrc the required paths and there is an error with the cfdemSysTest check due to a wrong definition of a path in the original paths duplicating the path : /lagrangian/cfdemParticle
By the use of the definition :
export CFDEM_SRC_DIR=$CFDEM_PROJECT_DIR/src/lagrangian/cfdemParticle

and later use in some files of : $CFDEM_SRC_DIR/lagrangian/cfdemParticle
Since trying to fix the emanating duplicated path "/lagrangian/cfdemParticle/lagrangian/cfdemParticle" in the files didn't help(maybe there are places that I missed), I just created a duplicated "/etc" directory of nested in CFDEM_SRC_DIR. I'm sure that there is a prettier but at least cfdemSysTest works that way.
To summerize - OpenFoam 2.2.1 works. LIGGGHTS and CFDEM do not.

Can you help ?

Ziv

alice's picture

alice | Mon, 02/03/2014 - 15:41

Hello Ziv,
I didn't try installing OF 2.2.1, but be careful with the use of sudo during the installation process. This can easily lead to error messages such as "permission denied", as it changes the owner of a directory (perhaps the one that is later on (so after the installation of CFDEMcoupling) , which is meant to contain the CFDEMcoupling libraries, to root...
I can't tell whether this is the reason for you failing installation, but I encountered problems with sudo installations in the past...
Cheers,
Alice

ziv | Mon, 02/03/2014 - 16:21

Hi Alice,

Thanks for the reply.
As I wrote, installing OpenFoam 2.2.1 required me using superuser (sudo) to complete the installation.
Best,
Ziv

richti83's picture

richti83 | Mon, 02/03/2014 - 18:07

Hi Ziv,
I guess you did not install OpenFoam in your USER Directory, often the OpenFoam-Path is set accidently to /opt or other locations in bashrc or openfoam/etc/bashrc.

I would advice you to keep the following structure:

[+]/home/username/
|->LIGGGHTS
|->LIGGGHTS-PUBLIC/
|->OpenFOAM/
|->ThirdParty-2.2.1/
|->OpenFOAM-2.2.1/


What Linux-Distribution do you use ?
Don't forget to source your bashrc file after any changes.
Good Luck,
Christian.

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact

ziv | Tue, 02/04/2014 - 13:59

Hi,
- I installed OpenFoam 2.2.1 successfully with no sudo.

- Compiling LIGGGHTS was possible only after fixing the wrong paths with the duplicated '/lagrangian/cfdemParticle,
when $CFDEM_SRC_DIR/lagrangian/cfdemParticle appears. And after adding the Makefile the line :
@cp -p *.cpp *.h Obj_$@

- Trying to run the "settlingTestMPI" tutorial (listed in CFDEM tutorials) DEM part by using :
lmp_ubuntuVTK < in.liggghts_init

gives the next error :
pair_style gran/hooke/history #Hookean without cohesion
ERROR: Invalid pair style (force.cpp:295)

- I looked again at the compilation results of 'cfdemCompCFDEM'.
It seems there are problems :
1.
/home/zivg/CFDEM/CFDEMcoupling-PUBLIC/src/lagrangian/cfdemParticle/etc/functions.sh: line 74: rmdepall: command not found
/home/zivg/CFDEM/CFDEMcoupling-PUBLIC/src/lagrangian/cfdemParticle/etc/functions.sh: line 75: wclean: command not found
/home/zivg/CFDEM/CFDEMcoupling-PUBLIC/src/lagrangian/cfdemParticle/etc/functions.sh: line 77: wmake: command not found

2. The next errors at lines 115, 116, 118 are for three solvers :
/home/zivg/CFDEM/CFDEMcoupling-PUBLIC/src/lagrangian/cfdemParticle/etc/functions.sh: line 115: rmdepall: command not found
/home/zivg/CFDEM/CFDEMcoupling-PUBLIC/src/lagrangian/cfdemParticle/etc/functions.sh: line 116: wclean: command not found
/home/zivg/CFDEM/CFDEMcoupling-PUBLIC/src/lagrangian/cfdemParticle/etc/functions.sh: line 118: wmake: command not found

The solvers paths are :
First solver :
/home/zivg/CFDEM/CFDEMcoupling-PUBLIC/applications/solvers/cfdemSolverPiso
Second solver :
/home/zivg/CFDEM/CFDEMcoupling-PUBLIC/applications/solvers/cfdemSolverIB
Third solver :
/home/zivg/CFDEM/CFDEMcoupling-PUBLIC/applications/solvers/cfdemSolverPisoScalar

The same error is reported for the utility :

/home/zivg/CFDEM/CFDEMcoupling-PUBLIC/applications/utilities/cfdemPostproc

How can those errors can be fixed ?
I need both DEM and CFD to run (coupled :-))

Best regards,
Ziv

P.S.The system has Ubuntu 13.10, OpenFoam 2.2.1, VTK 5.8,
paraview 3.12, mpirun (Open MPI) 1.4.5.

richti83's picture

richti83 | Thu, 02/06/2014 - 08:24

Hi
ERROR: Invalid pair style (force.cpp:295)
there was a change between LIGGGHTS2 and LIGGGHTS3 in the pair- and wall style ! See examples/LIGGGHTS/ for details.
It would be better for you to use LIGGGHT2, bc. I think all CFDEM examples are in LIGGGHTS2 syntax !
Good Luck,
Christian.

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact