Install CFDEM coupling

Submitted by shokeyi on Thu, 01/17/2013 - 22:59

Hi,
Is there anyone knowing how to set the environment variables? I tried to paste the lines at the beginning, middle and last of the "bashrc.file" . However, when I run "$CFDEM_PROJECT_DIR", "$CFDEM_SRC_DIR" and "$CFDEM_LIGGGHTS_SRC_DIR", it has no results shown the variables are not set correctly. Do anyone know how to modify it? Thank you.

alice's picture

alice | Fri, 01/18/2013 - 10:53

Hello shokeyi,
please make sure that the .bashrc-file you modified is the one in use and not only an old copy or something (It should be located in your home directory, the exact spelling is ".bashrc"). It doesn't really matter where you put the variables. Did you remove the hash (#) at the beginning of each line? (-> uncommenting)
When you open the .bashrc in a terminal and modify it, you will have to refresh the terminal (type bash), or - even better - use a new one.
Cheers,
Alice

shokeyi | Fri, 01/18/2013 - 13:28

Hi Alice,
I open the file from .../cfdemParticle/etc/bashrc instead of the terminal as the file opened by terminal is the ".bashrc" file of openFOAM. I tried it with and without the hash at the beginning of each line, but it shows the same result. What do you mean by the file is the one in use? I installed it followed by the githubAccess.pdf. After I save the file , I opened a new terminal to try it. In addition, I re-downloaded it again but it also did not work. Do you know where else maybe the reason caused it? Thank you.
shokeyi

alice's picture

alice | Fri, 01/18/2013 - 13:49

Hello,
by "file in use" I simply mean: there is the file ".bashrc" in your kome directory, that's the one that contains a number of definitions etc, which can be called from the terminals you open. It is important to copy and paste the lines from the .../etc/bashrc-file to the ~/.bashrc file. After doing so save the file and open a new terminal. If you got all the pathes right, typing "$CFDEM_PROJECT_DIR" should return a message like "bash: /home/user/CFDEM/CFDEMcoupling-PUBLIC-2.1.x: Is a directory".
Cheers,
Alice

shokeyi | Fri, 01/18/2013 - 16:36

Hi Alice,
Is the hash will influence it or not? I tried one without hash at the beginning of each line and when I open a new terminal, it shows "bash: /home/CFDEM/CFDEMcoupling-PUBLIC-/src/lagrangian/cfdemParticle/etc/bashrc: No such file or directory". Then I add the hash, and it shows the same result as before.
Regards,
shokeyi

shokeyi | Fri, 01/18/2013 - 20:42

Hi,
This problem has been sloved and when I try "cfdemCompLIG", the computer will be dead and could not shut down. I do not know why this would happen.

shokeyi | Sun, 01/20/2013 - 16:21

In addition,
when I use "cfdemCompCFDEM" directly without the "cfdemCompLIG" command, it shows an error as follows:
-lm -o /home/OpenFOAM/evxqx3-2.0.0/platforms/linuxGccDPOpt/bin/cfdemSolverPisoScalar
/usr/bin/ld: cannot find -llagrangianCFDEM-PUBLIC-2.0.0
collect2: ld returned 1 exit status
make: *** [/home/OpenFOAM/evxqx3-2.0.0/platforms/linuxGccDPOpt/bin/cfdemSolverPisoScalar] Error 1
Note: the list of solvers compiled might be incomplete.
please check /home/evxqx3/CFDEM/CFDEMcoupling-PUBLIC-2.0.0/applications/solvers for more solvers available

Is it related to the compile of LIGGHTS? Does anyone know how to modify it? Thank you.

alice's picture

alice | Mon, 01/21/2013 - 08:11

Hello,
well I didn't expect that to happen either... A hash in a bash-file means that you commented the line. The reason for seening no efefct is that you always have to type "bash" (or even better open a new terminal) for getting the changes in the .bashrc effective.
"No such file or directory" simply means that the pathes are set wrongly. Are your files located in the places given in the bashrc?
Compiling the cloud without a working compilation of liggghts would result in an error-message (even though the one you postet already results from an earlier message, where a certain library couldn't be found).
So I would suggest to double-check the correctness of the pathes and then follog the instructions in the installation manual.
Good luck ;)
Ceers,
Alice

shokeyi | Wed, 01/23/2013 - 14:42

Hi, Alice
I have downloaded and installed it again. It was all run well until the "cfdemCompLIG". I run "$CFDEM_PROJECT_DIR", "$CFDEM_SRC_DIR" and "$CFDEM_LIGGGHTS_SRC_DIR", it showed "... is a directory", so I think the path is right and the "cfdemSysTest" shows no error. However, when I compiled with LIGGGHTS, the computer dead again. Is it related to the LIGGGHTS? Thanks.