Error compiling CFDEM coupling

Submitted by giorgianig on Tue, 07/11/2023 - 16:48

Dear all,

I am trying to compile CFDEMcoupling on Ubuntu 18.04 hosted on wsl. I am following the instructions here: https://www.cfdem.com/media/CFDEM/docu/CFDEMcoupling_Manual.html#install...

When I run cfdemCompCFDEMall, LIGGGHTS seems to be compiling fine, but the installation of CFDEM is failing.
I am attaching the output of the terminal. There are a lot of lines starting with "could not open file ". I have seen that this might not be a problem, but in my case the tutorials are not working. Seems to me the executables are not compiled.

Also, here is the output of cfdemSysTest

*********************************************
* C F D E M (R) c o u p l i n g *
* *
* by DCS Computing GmbH *
* www.dcs-computing.com *
*********************************************

*********************************
CFDEM(R)coupling system settings:
*********************************
CFDEM_VERSION=PUBLIC
couple to OF_VERSION=4.1
compile option=Opt

check if paths are set correctly
valid:yes critical:yes - $CFDEM_PROJECT_DIR = /home/giorgio/CFDEM/CFDEMcoupling-PUBLIC-4.1
valid:yes critical:no - $CFDEM_PROJECT_USER_DIR = /home/giorgio/CFDEM/giorgio-PUBLIC-4.1
valid:yes critical:yes - $CFDEM_SRC_DIR = /home/giorgio/CFDEM/CFDEMcoupling-PUBLIC-4.1/src
valid:yes critical:yes - $CFDEM_SOLVER_DIR = /home/giorgio/CFDEM/CFDEMcoupling-PUBLIC-4.1/applications/solvers
valid:yes critical:yes - $CFDEM_TUT_DIR = /home/giorgio/CFDEM/CFDEMcoupling-PUBLIC-4.1/tutorials
valid:yes critical:yes - $CFDEM_LIGGGHTS_SRC_DIR = /home/giorgio/LIGGGHTS/LIGGGHTS-PUBLIC/src
valid:yes critical:yes - $CFDEM_LIGGGHTS_LIB_PATH = /home/giorgio/LIGGGHTS/LIGGGHTS-PUBLIC/src
valid:NO critical:yes - $CFDEM_LPP_DIR = /home/giorgio/LIGGGHTS/lpp/src does not exist
valid:yes critical:yes - $CFDEM_ADD_LIBS_DIR = /home/giorgio/CFDEM/CFDEMcoupling-PUBLIC-4.1/src/lagrangian/cfdemParticle/etc/addLibs_universal
valid:yes critical:yes - $CFDEM_LIB_DIR = /home/giorgio/CFDEM/CFDEMcoupling-PUBLIC-4.1/platforms/linux64GccDPInt32Opt/lib
valid:yes critical:yes - $CFDEM_APP_DIR = /home/giorgio/CFDEM/CFDEMcoupling-PUBLIC-4.1/platforms/linux64GccDPInt32Opt/bin
valid:yes critical:no - $CFDEM_USER_LIB_DIR = /home/giorgio/CFDEM/giorgio-PUBLIC-4.1/platforms/linux64GccDPInt32Opt/lib
valid:yes critical:no - $CFDEM_USER_APP_DIR = /home/giorgio/CFDEM/giorgio-PUBLIC-4.1/platforms/linux64GccDPInt32Opt/bin
valid:yes critical:no - $CFDEM_TEST_HARNESS_PATH = /home/giorgio/CFDEM/giorgio-PUBLIC-4.1/log/logFilesCFDEM-PUBLIC-4.1
valid:NO critical:no - $C3PO_SRC_DIR = does not exist

library names
$CFDEM_LIGGGHTS_LIB_NAME = lmp_auto
$CFDEM_LIB_NAME = lagrangianCFDEM-PUBLIC-4.1
$LD_LIBRARY_PATH = /home/giorgio/CFDEM/giorgio-PUBLIC-4.1/platforms/linux64GccDPInt32Opt/lib:/home/giorgio/CFDEM/CFDEMcoupling-PUBLIC-4.1/platforms/linux64GccDPInt32Opt/lib:/home/giorgio/foam/foam-extend-4.1/ThirdParty/packages/scotch-6.0.4/platforms/linux64GccDPInt32Opt/lib:/home/giorgio/foam/foam-extend-4.1/ThirdParty/packages/libccmio-2.6.1/platforms/linux64GccDPInt32Opt/lib:/home/giorgio/foam/foam-extend-4.1/ThirdParty/packages/ParMGridGen-1.0/platforms/linux64GccDPInt32Opt/lib:/home/giorgio/foam/foam-extend-4.1/ThirdParty/packages/metis-5.1.0/platforms/linux64GccDPInt32Opt/lib:/home/giorgio/foam/foam-extend-4.1/ThirdParty/packages/openmpi-1.8.8/platforms/linux64GccDPInt32Opt/lib:/home/giorgio/foam/giorgio-4.1/lib/linux64GccDPInt32Opt:/home/giorgio/foam/site/4.1/lib/linux64GccDPInt32Opt:/home/giorgio/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt
$WM_NCOMPPROCS = 8
$WM_LABEL_SIZE = 32

Additional lib settings
CFDEM_ADD_LIBS_DIR/CFDEM_ADD_LIBS_NAME = /home/giorgio/CFDEM/CFDEMcoupling-PUBLIC-4.1/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_4.1
CFDEM_ADD_LIB_PATHS =
CFDEM_ADD_LIBS =

LIGGGHTS library link (created during compilation of CFDEM)
lrwxrwxrwx 1 giorgio giorgio 57 Jul 11 16:37 /home/giorgio/CFDEM/CFDEMcoupling-PUBLIC-4.1/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so -> /home/giorgio/LIGGGHTS/LIGGGHTS-PUBLIC/src/liblmp_auto.so
*******************
g++:
/usr/bin/g++
g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gcc:
/usr/bin/gcc
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mpic++:
/home/giorgio/foam/foam-extend-4.1/ThirdParty/packages/openmpi-1.8.8/platforms/linux64GccDPInt32Opt/bin/mpic++
g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mpirun:
/home/giorgio/foam/foam-extend-4.1/ThirdParty/packages/openmpi-1.8.8/platforms/linux64GccDPInt32Opt/bin/mpirun
mpirun (Open MPI) 1.8.8

Report bugs to http://www.open-mpi.org/community/help/
**********************
additional packages...

Thanks in advance,
Giorgio

AttachmentSize
Plain text icon output.txt650.93 KB

Daniel Queteschiner | Thu, 08/03/2023 - 11:48

a) You seem to be using foam-extend-4.1. The officially supported version is OpenFOAM 5.x (https://github.com/OpenFOAM/OpenFOAM-5.x) and the manual states that
"Other OpenFOAM® versions can be used for compilation, but aren’t officially supported. The list includes 4.x, 3.x, 2.4.x, 1612+, 1606+ and extend-3.2"
which means that they are not guaranteed to work properly.

b) Compilation fails due to not finding the OpenFOAM header turbulenceModel.H. The foam-specific environment variables seem to be set up correctly, since the sys test at least seems to know WM_PROJECT_VERSION.
So I suppose that the include directories are not set up correctly ... I don't know by heart where foam-extend-4.1 puts the relevant header files, but if you figure that out you can adjust the directories in the Make/options files in CFDEMcoupling (you probably have to do this for all libs and solvers then) ... or simply try to use the officially supported version.