Forums
Hi all,
I am currently using CFDEM2.7.1 with LIGGGHTS 3.0.7. I want to try with higher version CFDEM2.9.0 coupled with LIGGGHTS 3.1.0 or LIGGGHTS 3.2.0. How can I do compiling the new version CFDEM2.9.0 without any influence on my current CFDEM2.7.1. In other words, I would like to keep both versions of CFDEM work in parallel on the same computer. I think modifying variables can enable this. Any hint, please.
Thank you,
Regards,
Hi,
Hi,
you can move the CFDEM environment variables to separate files and source them on demand. So you can choose which set of CFDEM and LIGGGHTS you want to use. However, I strongly suggest to move the OF stuff there as well and to prepend a variable with some identifier. This should then be used in the OF-bashrc WM_PROJECT_USER_DIR variable to prohibit overwriting of the different executables. Or else there is a mix-up rather soon.
Cheers
Josef
Variables of several CFDEM versions
Hi Josef,
Thank for your hints. Can we add variables of different CFDEM versions in only one bash file and source one time only?
I have particular cases below, could you please advise?
- Current installation: CFDEM2.7.1, coupling OpenFOAM2.3.0 with LIGGGHTS3.0.7.
- Expected installation: CFDEM2.9.0, coupling OpenFOAM2.4.0 with LIGGGHTS3.2.0.
Can I modify the variables for CFDEM2.9.0 as below:
export CFDEM290_PROJECT_DIR=$HOME/CFDEM2.9.0/CFDEMcoupling-$CFDEM_VERSION-$WM_PROJECT_VERSION
export CFDEM290_SRC_DIR=$CFDEM290_PROJECT_DIR/src
export CFDEM290_SOLVER_DIR=$CFDEM290_PROJECT_DIR/applications/solvers
export CFDEM290_DOC_DIR=$CFDEM290_PROJECT_DIR/doc
export CFDEM290_UT_DIR=$CFDEM290_PROJECT_DIR/applications/utilities
export CFDEM290_TUT_DIR=$CFDEM290_PROJECT_DIR/tutorials
export CFDEM290_PROJECT_USER_DIR=$HOME/CFDEM/$LOGNAME-$CFDEM_VERSION-$WM_PROJECT_VERSION
export CFDEM290_bashrc=$CFDEM290_SRC_DIR/lagrangian/cfdemParticle/etc/bashrc
export CFDEM290_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS3.20_BOND_PLUGIN/src
-----------------------------------------------------------------------------------------------------------------------
Here the CFDEM290 indicates the version 2.90 of CFDEM.
My problems are now: How can I modify the compiling commands of CFDEM? For example, "cfdemCompLIG" and "cfdemCompCFDEM"?
Thanks,
Regards,
Nathan,
Hi Nathan,
Hi Nathan,
I think the change in the variable names won't work, since they are called by their names explicitely.
Since you use two different OF versions and the FOAM_USER_APPBIN path contains the $WM_PROJECT_VERSION, the binaries won't affect each other.
In your case I would create 2 files containing each:
"OF settings" (WM_NCOMPPROCS etc)
source "OF bashrc"
"CFDEM variables"
export CFDEM_PROJECT_DIR=$HOME/CFDEM2.X.0/CFDEMcoupling-$CFDEM_VERSION-$WM_PROJECT_VERSION
...
Now you can source the files on demand and the cfdemShortcuts work for your current version.
I hope this is what you expect.
Cheers
Josef