OpenFOAM version is not supported!

Submitted by Zekun Wang on Sat, 12/17/2016 - 12:38

************************************
ERROR from your CFDEM code!
ERROR: your OpenFOAM(R) version is not supported!
Please use a version that is supported, i.e., see the bashrc file in the source directory!
************************************
My system is Ubuntu 16.04 and i have downloaded OpenFOAM3.0.x and LIGGGHTS 3.5.0 on my computer, and it seems that the versions of the softwares are all correct ,but I can't compile them ,why?please help me, and I am new in Ubuntu.(Do I need to open OpenFOAM (of30x) before I complie them? Do I need to change environmental variables? Do I need to "mkdir LIGGGHTS" and clone gits since I have installed LIGGGHTS, thx!)

j-kerbl's picture

j-kerbl | Wed, 12/21/2016 - 16:11

Hi Zekun,

to compile CFDEMcoupling you need to have the OF variables within your environment. And these need to be sourced before you add the CFDEM env-variables, since they depend on them. CFDEMcoupling needs OF libraries.
If the problem persists, please post the output of cfdemSysTest.

Regards,
Josef

DINESH KUMAR | Wed, 05/03/2017 - 07:19

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=dev
compile option=Opt

check if paths are set correctly
valid:yes critical:yes - $CFDEM_PROJECT_DIR = /home/test/CFDEM/CFDEMcoupling-PUBLIC-dev
valid:yes critical:no - $CFDEM_PROJECT_USER_DIR = /home/test/CFDEM/test-PUBLIC-
valid:yes critical:yes - $CFDEM_SRC_DIR = /home/test/CFDEM/CFDEMcoupling-PUBLIC-dev/src
valid:yes critical:yes - $CFDEM_SOLVER_DIR = /home/test/CFDEM/CFDEMcoupling-PUBLIC-dev/applications/solvers
valid:yes critical:yes - $CFDEM_TUT_DIR = /home/test/CFDEM/CFDEMcoupling-PUBLIC-dev/tutorials
valid:yes critical:yes - $CFDEM_LIGGGHTS_SRC_DIR = /home/test/LIGGGHTS/LIGGGHTS-PUBLIC/src
valid:yes critical:yes - $CFDEM_LPP_DIR = /home/test/LIGGGHTS/mylpp/src
valid:yes critical:yes - $CFDEM_ADD_LIBS_DIR = /home/test/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/addLibs_universal
valid:NO critical:no - $CFDEM_PIZZA_DIR = /home/test/LIGGGHTS/PIZZA/gran_pizza_17Aug10/src does not exist
valid:yes critical:no - $CFDEM_TEST_HARNESS_PATH = /home/test/CFDEM/test-PUBLIC-/log/logFilesCFDEM-PUBLIC-
valid:NO critical:no - $C3PO_SRC_DIR = does not exist

library names
$CFDEM_LIGGGHTS_LIB_NAME = lmp_fedora_fpic
$CFDEM_LIB_NAME = lagrangianCFDEM-PUBLIC-
$LD_LIBRARY_PATH = /opt/ThirdParty-dev/platforms/linux64Gcc/gperftools-svn/lib:/opt/paraviewopenfoam50/lib/paraview-5.0:/opt/openfoam-dev/platforms/linux64GccDPInt32Opt/lib/openmpi-system:/opt/ThirdParty-dev/platforms/linux64GccDPInt32/lib/openmpi-system:/usr/lib/openmpi/lib:/home/test/OpenFOAM/test-dev/platforms/linux64GccDPInt32Opt/lib:/opt/site/dev/platforms/linux64GccDPInt32Opt/lib:/opt/openfoam-dev/platforms/linux64GccDPInt32Opt/lib:/opt/ThirdParty-dev/platforms/linux64GccDPInt32/lib:/opt/openfoam-dev/platforms/linux64GccDPInt32Opt/lib/dummy
$WM_NCOMPPROCS =
$WM_LABEL_SIZE = 32

Additional lib settings
.Makefile_vtk_tmp:1: /home/test/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_: No such file or directory
make: *** No rule to make target '/home/test/CFDEM/CFDEMcoupling-PUBLIC-dev/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_'. Stop.

*******************
g++:
/usr/bin/g++
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 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 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 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++:
/usr/bin/mpic++
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 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:
/usr/bin/mpirun
mpirun (Open MPI) 1.10.2

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

j-kerbl's picture

j-kerbl | Wed, 05/10/2017 - 16:30

Hi Zekun,

the above mentioned warning occurs, when a version of OF is used, which isn't officially supported.
Since you are on the dev branch, your OF is probably on OF4 status?
The Public CFDEMcoupling should compile with OF4, but some syntax for the cases have changed, but you can try running them.

The latest compatible version can be found within your CFDEMcoupling installation, as mentioned in the install guide.
https://github.com/CFDEMproject/CFDEMcoupling-PUBLIC/blob/master/src/lagrangian/cfdemParticle/cfdTools/versionInfo.H

Did the compilation work on your end?

Cheers,
Josef

DINESH KUMAR | Thu, 05/11/2017 - 06:47

Thanks for your reply

i had some changes in controldict and install c3po so that its working well

with regards
Dinesh Kumar

shahab.zaman | Mon, 04/09/2018 - 16:45

Dear guys
I have the same problem and I am using the following versions as it is mentioned in versioninfo.H
word CFDEMversion="cfdem-3.8.1";
word compatibleLIGGGHTSversion="3.8.0";
word OFversion="5.x-commit-538044ac05c4672b37c7df607dca1116fa88df88";

and this 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=5.x
compile option=Opt

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

library names
$CFDEM_LIGGGHTS_LIB_NAME = lmp_auto
$CFDEM_LIB_NAME = lagrangianCFDEM-PUBLIC-5.x
$LD_LIBRARY_PATH = /home/administrator/CFDEM/administrator-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib:/home/administrator/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib:/home/administrator/CFDEM/administrator-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib:/home/administrator/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib:/home/administrator/OpenFOAM/ThirdParty-5.x/platforms/linux64Gcc/gperftools-svn/lib:/home/administrator/OpenFOAM/OpenFOAM-5.x/platforms/linux64GccDPInt32Opt/lib/openmpi-system:/home/administrator/OpenFOAM/ThirdParty-5.x/platforms/linux64GccDPInt32/lib/openmpi-system:/usr/lib/openmpi/lib:/home/administrator/OpenFOAM/administrator-5.x/platforms/linux64GccDPInt32Opt/lib:/home/administrator/OpenFOAM/site/5.x/platforms/linux64GccDPInt32Opt/lib:/home/administrator/OpenFOAM/OpenFOAM-5.x/platforms/linux64GccDPInt32Opt/lib:/home/administrator/OpenFOAM/ThirdParty-5.x/platforms/linux64GccDPInt32/lib:/home/administrator/OpenFOAM/OpenFOAM-5.x/platforms/linux64GccDPInt32Opt/lib/dummy
$WM_NCOMPPROCS =
$WM_LABEL_SIZE = 32

Additional lib settings
CFDEM_ADD_LIBS_DIR/CFDEM_ADD_LIBS_NAME = /home/administrator/CFDEM/CFDEMcoupling-PUBLIC-5.x/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_5.x
CFDEM_ADD_LIB_PATHS =
CFDEM_ADD_LIBS =

LIGGGHTS library link (created during compilation of CFDEM)
lrwxrwxrwx 1 administrator administrator 63 Apr 9 16:12 /home/administrator/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so -> /home/administrator/LIGGGHTS/LIGGGHTS-PUBLIC/src/liblmp_auto.so
*******************
g++:
/usr/bin/g++
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
Copyright (C) 2015 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 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
Copyright (C) 2015 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++:
/usr/bin/mpic++
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
Copyright (C) 2015 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:
/usr/bin/mpirun
mpirun (Open MPI) 1.10.2

Report bugs to http://www.open-mpi.org/community/help/
**********************
additional packages...
I am really going to thankfull for your help.
Best regards
Shahab

j-kerbl's picture

j-kerbl | Fri, 04/13/2018 - 10:43

Hi Shahab,

did you follow the instructions to get the correct Foam version here?
https://www.cfdem.com/media/CFDEM/docu/CFDEMcoupling_Manual.html#install-3

Cheers,
Josef