Hello
I am interested in using the PFM version of the cfdem coupled model. However, I need some help with the compilation process and changes that are required to be made in the bashrc file.
A project by DCS Computing and CFDEMresearch
This website uses cookies to ensure you get the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies. This website uses cookies. By continuing to browse the site you are agreeing to our use of cookies. More info
Daniel Queteschiner | Sun, 08/27/2023 - 10:15
PFM version
There are some installation instructions given in the manual
https://github.com/ParticulateFlow/LIGGGHTS-PFM/releases/download/23.02/...
https://github.com/ParticulateFlow/CFDEMcoupling-PFM/releases/download/2...
The compilation process is not too different from the DCS/PUBLIC version, though.
May I ask which settings in the bashrc file are not clear to you?
jennifer | Thu, 04/25/2024 - 18:31
ERROR WHEN COMPILING CFDEMCOUPLING-PFM
Hello, Daniel Queteschiner. Thanks for your links and tutorials. I am trying to compile the full CFDEM-PFM, and I have successfully installed OpenFOAM-6 and the corresponding version of paraview. What bothers me is that errors are reported during the compilation of CFDEMcoupling-PFM, specifically during the compilation of LIGGGHTS. When I was in terminal input cfdemCompLIG cfdemCompCFDEMall, or direct input error is:
[96%] Building CXX object CMakeFiles/liggghts dir/tet_mesh CPP. O
[ 96%] Building CXX object CMakeFiles/liggghts.dir/thermo.cpp.o
[ 96%] Building CXX object CMakeFiles/liggghts.dir/timer.cpp.o
[ 97%] Building CXX object CMakeFiles/liggghts.dir/tri_mesh.cpp.o
[ 97%] Building CXX object CMakeFiles/liggghts.dir/tri_mesh_planar.cpp.o
[ 97%] Building CXX object CMakeFiles/liggghts.dir/universe.cpp.o
[ 97%] Building CXX object CMakeFiles/liggghts.dir/update.cpp.o
[ 97%] Building CXX object CMakeFiles/liggghts.dir/variable.cpp.o
[ 98%] Building CXX object CMakeFiles/liggghts.dir/velocity.cpp.o
[ 98%] Building CXX object CMakeFiles/liggghts.dir/verlet.cpp.o
[ 98%] Building CXX object CMakeFiles/liggghts.dir/verlet_implicit.cpp.o
[ 98%] Building CXX object CMakeFiles/liggghts.dir/write_data.cpp.o
[ 99%] Building CXX object CMakeFiles/liggghts.dir/write_dump.cpp.o
[ 99%] Building CXX object CMakeFiles/liggghts.dir/write_restart.cpp.o
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [CMakeFiles/liggghts.dir/build.make:3911: CMakeFiles/liggghts.dir/granular_styles.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:106: CMakeFiles/liggghts.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
I suspect that my own CFDEMcoupling environment variable is not configured properly. I compiled CFDEMcoupling-PUBLIC earlier and added the following code at the end of the .bashrc file:
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = #
#- source cfdem env vars
export CFDEM_VERSION=PUBLIC
export CFDEM_PROJECT_DIR=$HOME/CFDEM/CFDEMcoupling-$CFDEM_VERSION-$WM_PROJECT_VERSI ON
export CFDEM_PROJECT_USER_DIR=$HOME/CFDEM/$LOGNAME-$CFDEM_VERSION-$WM_PROJECT_VERSI ON
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
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = #
But, I found the CFDEMcoupling PFM/SRC/Lagrangian/cfdemParticle not the etc folder, so because I don't know how to properly configure CFDEMcooupling - compilation of PFM environment variables. I hope someone can answer that question. Thank you very much!
The reason for this error is just my personal shallow guess, if you have different opinions, I hope you can clarify for me, thank you.
amiya1202 | Fri, 09/22/2023 - 11:37
Allrun.sh error
Hi Daniel
Thanks to the manual, I was able to install cfdem with ease and even cfdemTestTUT also works fine. But when try to run a tutorial case by executing the AllRun.sh...I encountered this error.
Allrun.sh
./Allrun.sh: line 12: /etc/functions.sh: No such file or directory
mesh was built before - using old mesh
./Allrun.sh: line 44: DEMrun: command not found
./Allrun.sh: line 49: python: command not found
rm: cannot remove '/home/amiya/CFDEM/CFDEMcoupling/tutorials/cfdemPostproc/fillCylinder/CFD/0.*': No such file or directory
./Allrun.sh: line 68: CFDrun: command not found
Any help ??
Thanks
JirayutS53 | Tue, 11/07/2023 - 07:41
Same problem
Hi! Amiya
I'm working on the same coupling and faced the same problem as yours. Have you already fixed it? Thank you in advance!
Regard,
Jirayut
Daniel Queteschiner | Mon, 09/25/2023 - 14:53
source etc/bashrc
Looks to me like you're running in a terminal with the CFDEMcoupling bashrc not being sourced correctly.
JirayutS53 | Tue, 11/14/2023 - 07:14
ALLRUN.SH ERROR FIXED
Hi! Amiya
I spent my time investigating the source etc/bashrc, thanks to Mr. Queteschiner. I changed the 'source CFDEM env vars' and 'include functions' in parCFDDEMrun.sh to navigate directly to where the etc/bashrc is located. In my case, the CFDEMcoupling-PFM is stored in the CFDEM2 folder, so, my edit in the parCFDDEMrun.sh will look like this;
-----------------------------------------------------------------------------------------------
#- source CFDEM env vars
. ~/CFDEM2/CFDEMcoupling-PFM/etc/bashrc
#- include functions
source ~/CFDEM2/CFDEMcoupling-PFM/etc/functions.sh
-----------------------------------------------------------------------------------------------
Have a nice day!
Regard,
Jirayut