Hello. I have a question about the installation for Ubuntu.
I'm installing CFDEM®coupling following the documentation(https://www.cfdem.com/media/CFDEM/docu/CFDEMcoupling_Manual.html#install...).
When I set environment variables and paths, I added the STANDARD block to the end of my bashrc.
#================================================#
#- source cfdem env vars
export CFDEM_VERSION=PUBLIC
export CFDEM_PROJECT_DIR=$HOME/CFDEM/CFDEMcoupling-$CFDEM_VERSION-$WM_PROJECT_VERSION
export CFDEM_PROJECT_USER_DIR=$HOME/CFDEM/$LOGNAME-$CFDEM_VERSION-$WM_PROJECT_VERSION
export CFDEM_bashrc=$CFDEM_PROJECT_DIR/src/lagrangian/cfdemParticle/etc/bashrc
export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/LIGGGHTS-PUBLIC/src
export CFDEM_LIGGGHTS_MAKEFILE_NAME=auto
export CFDEM_LPP_DIR=$HOME/LIGGGHTS/lpp/src
. $CFDEM_bashrc
#================================================#
Then, I can't use terminal. When I open that, it show nothing and close in a few second.
I found that problem is caused by ". $CFDEM_bashrc".
Because I'm a beginner of Ubuntu, this may be basic problem. However, I would be grateful if you would taught me the solution.
alice | Thu, 09/07/2017 - 16:02
Hi panouarashisa-kasu,
Hi panouarashisa-kasu,
what the line ". $CFDEM_bashrc" does is sourcing a bashrc file that contains for example the definition of additional environment variables needed for running CFDEMcoupling. The closing of the terminal could mean that the path of the file is wrong. Please have a look at its definition (type "echo $CFDEM_bashrc" in a terminal) and check, if the given file exists at the given location. If this is not the case, you can change the path in the definition (i.e. in the line that says "export CFDEM_bashrc=$CFDEM_PROJECT..."). Please note, that in this case you might also have to change the other variables that are given in the block that you posted above.
However, I would strongly recommend to use standard locations (i.e. create a CFDEM folder in you $HOME directory and clone CFDEMcoupling-PUBLIC-[OpenFOAM version] there, beacuse this will make your life a lot easier.
Cheers,
Alice
panouarashisa-kasu | Fri, 09/08/2017 - 18:27
Hello. I found my mistake and
Hello. I found my mistake and succeeded tutorial run.
Thank you for your kind advices.