Hi all,
I installed OpenFOAM 3.0.x and compiled the latest version of LIGGGHTS with cfdemCompLIG without any problems. The cfdemSysTest looks as follows:
*********************************************
* 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=3.0.x
compile option=Opt
check if paths are set correctly
valid:yes critical:yes - $CFDEM_PROJECT_DIR = /home/jan/CFDEM/CFDEMcoupling-PUBLIC-3.0.x
valid:yes critical:no - $CFDEM_PROJECT_USER_DIR = /home/jan/CFDEM/jan-PUBLIC-3.0.x
valid:yes critical:yes - $CFDEM_SRC_DIR = /home/jan/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/src
valid:yes critical:yes - $CFDEM_SOLVER_DIR = /home/jan/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/applications/solvers
valid:yes critical:yes - $CFDEM_TUT_DIR = /home/jan/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/tutorials
valid:yes critical:yes - $CFDEM_LIGGGHTS_SRC_DIR = /home/jan/LIGGGHTS-PUBLIC/src
valid:yes critical:yes - $CFDEM_LPP_DIR = /home/jan/LPP/src
valid:yes critical:yes - $CFDEM_ADD_LIBS_DIR = /home/jan/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/src/lagrangian/cfdemParticle/etc/addLibs_universal
valid:yes critical:no - $CFDEM_PIZZA_DIR = /home/jan/PIZZA/pizza-9Oct15/src
valid:NO critical:no - $CFDEM_TEST_HARNESS_PATH = /home/jan/CFDEM/jan-PUBLIC-3.0.x/log/logFilesCFDEM-PUBLIC-3.0.x does not exist
valid:NO critical:no - $C3PO_SRC_DIR = does not exist
library names
$CFDEM_LIGGGHTS_LIB_NAME = lmp_fedora_fpic
$CFDEM_LIB_NAME = lagrangianCFDEM-PUBLIC-3.0.x
$LD_LIBRARY_PATH = /home/jan/OpenFOAM/ThirdParty-3.0.x/platforms/linux64Gcc/gperftools-svn/lib:/home/jan/OpenFOAM/ThirdParty-3.0.x/platforms/linux64Gcc/ParaView-4.4.0/lib/paraview-4.4:/home/jan/OpenFOAM/OpenFOAM-3.0.x/platforms/linux64GccDPInt32Opt/lib/openmpi-system:/home/jan/OpenFOAM/ThirdParty-3.0.x/platforms/linux64GccDPInt32Opt/lib/openmpi-system:/usr/lib/openmpi/lib:/home/jan/OpenFOAM/jan-3.0.x/platforms/linux64GccDPInt32Opt/lib:/home/jan/OpenFOAM/site/3.0.x/platforms/linux64GccDPInt32Opt/lib:/home/jan/OpenFOAM/OpenFOAM-3.0.x/platforms/linux64GccDPInt32Opt/lib:/home/jan/OpenFOAM/ThirdParty-3.0.x/platforms/linux64GccDPInt32Opt/lib:/home/jan/OpenFOAM/OpenFOAM-3.0.x/platforms/linux64GccDPInt32Opt/lib/dummy
$WM_NCOMPPROCS = 4
$WM_LABEL_SIZE = 32
Additional lib settings
VTK_PATH = -L/usr/lib/
VTK_LIB = -lvtkCommon -lvtkFiltering -lvtkIO -lvtkParallel -lvtkGraphics
VTK_INC = -I/usr/include/vtk-5.10
CFDEM_ADD_LIB_PATHS = -L/usr/lib/
CFDEM_ADD_LIBS = -lvtkCommon -lvtkFiltering -lvtkIO -lvtkParallel -lvtkGraphics
*******************
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:
/home/jan/OpenFOAM/OpenFOAM-3.0.x/bin/mpirun
mpirun (Open MPI) 1.10.2
Report bugs to http://www.open-mpi.org/community/help/
**********************
additional packages...
When I try to compile the solvers with cfdemCompCFDEMsol I get the errors as indicated in the enclosed log file for the SolverPiso.
Does anyone know how to fix these errors?
Kind regards,
Jan
Attachment | Size |
---|---|
![]() | 5.68 KB |
j-kerbl | Mon, 04/10/2017 - 18:08
Hi Jan,
Hi Jan,
quick question, have you also ran cfdemCompCFDEMsrc to compile the lagrangian library?
cfdemCompCFDEMall would compile LIGGGHTS as library, the CFDEM lagrangian library and in the end the solvers.
cfdemCompCFDEM will compile he CFDEM lagrangian library and the solvers.
To the other issue:
what happens if you type "echo $CFDEM_WM_PROJECT_VERSION" ?
This variable should be set during the sourcing of the CFDEM bashrc ( $CFDEM_bashrc ). Since you have the proper commands available, the sourcing should have worked.
Please also tell me the output of "echo $WM_PROJECT_VERSION" .
Cheers,
Josef
JanvandenBroecke | Tue, 04/11/2017 - 09:57
Hi Josef,
Hi Josef,
First of all, thanks for your reply. When I run cfdemCompCFDEMall Liggghts is succesfully compiled as library. The problems begin when the CFDEM lagrangian library is compiled:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Please provide the libraries to be compiled in the /home/jan/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/src/lagrangian/cfdemParticle/etc/library-list.txt file.
will change path and create lnInclude...
will change path and create lnInclude...
will change path and create lnInclude...
\n Creation of lnInclude directories finished!
will change path...
rm: cannot remove '/home/jan/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/src/lagrangian/cfdemParticle/etc/log/log_compileCFDEMcoupling_cfdemParticle': No such file or directory
// log_compileCFDEMcoupling_cfdemParticle-2017-04-07-12:53 //
/home/jan/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/src/lagrangian/cfdemParticle
Compiling a incompressible library.
removing all .dep files ...
rm: cannot remove '/home/jan/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/src/lagrangian/cfdemParticle/Make/cfdemParticle': No such file or directory
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file subModels/smoothingModel/constDiffSmoothing/constDiffSmoothing.C
Making dependency list for source file subModels/smoothingModel/noSmoothing/noSmoothing.C
Making dependency list for source file subModels/smoothingModel/smoothingModel/smoothingModel.C
Making dependency list for source file subModels/smoothingModel/smoothingModel/newSmoothingModel.C
could not open file omp.h for source file subModels/smoothingModel/smoothingModel/newSmoothingModel.C due to No such file or directory
could not open file omp.h for source file subModels/smoothingModel/noSmoothing/noSmoothing.C due to No such file or directory
could not open file omp.h for source file subModels/smoothingModel/constDiffSmoothing/constDiffSmoothing.C due to No such file or directory
could not open file ompi/mpi/cxx/pmpicxx.h for source file subModels/smoothingModel/noSmoothing/noSmoothing.C due to No such file or directory
could not open file omp.h for source file subModels/smoothingModel/smoothingModel/smoothingModel.C due to No such file or directory
could not open file ompi/mpi/cxx/pmpicxx.h for source file subModels/smoothingModel/smoothingModel/newSmoothingModel.C due to No such file or directory
could not open file ompi/mpi/cxx/pmpicxx.h for source file subModels/smoothingModel/constDiffSmoothing/constDiffSmoothing.C due to No such file or directory
could not open file ompi/mpi/cxx/pop_inln.h for source file subModels/smoothingModel/smoothingModel/newSmoothingModel.C du
And finishes with:
lnInclude/OFversion.H:1:27: error: operator '==' has no left operand
#if(CFDEMWMPROJECTVERSION == 40)
^
In file included from lnInclude/cfdemCloud.H:46:0,
from derived/cfdemCloudIB/cfdemCloudIB.H:44,
from derived/cfdemCloudIB/cfdemCloudIB.C:33:
lnInclude/OFversion.H:1:27: error: operator '==' has no left operand
#if(CFDEMWMPROJECTVERSION == 40)
^
lnInclude/OFversion.H:3:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 24)
^
lnInclude/OFversion.H:5:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 30)
^
lnInclude/OFversion.H:7:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 132)
^
lnInclude/OFversion.H:9:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 1606)
^
lnInclude/OFversion.H:11:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 1612)
^
lnInclude/OFversion.H:3:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 24)
^
lnInclude/OFversion.H:5:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 30)
^
lnInclude/OFversion.H:7:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 132)
^
lnInclude/OFversion.H:9:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 1606)
^
lnInclude/OFversion.H:11:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 1612)
^
In file included from lnInclude/cfdemCloud.H:46:0,
from cfdTools/global.H:43,
from cfdTools/global.C:33:
lnInclude/OFversion.H:1:27: error: operator '==' has no left operand
#if(CFDEMWMPROJECTVERSION == 40)
^
lnInclude/OFversion.H:3:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 24)
^
lnInclude/OFversion.H:5:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 30)
^
lnInclude/OFversion.H:7:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 132)
^
lnInclude/OFversion.H:9:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 1606)
^
lnInclude/OFversion.H:11:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 1612)
^
cfdTools/IOtools/json/json.C: In constructor ‘Foam::jsonFile::jsonFile(std::__cxx11::string, std::__cxx11::string)’:
cfdTools/IOtools/json/json.C:257:20: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system(buf);
^
cfdTools/IOtools/json/json.C: In member function ‘void Foam::jsonFile::write()’:
cfdTools/IOtools/json/json.C:385:20: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system(buf);
^
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -DGITVERSION=\"3.6.1-dirty\" -DDEBUGFLAG=\"\" -DCFDEMWMPROJECTVERSION="" -I/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent -I/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread -I ./cfdemParticle -I/home/jan/OpenFOAM/OpenFOAM-3.0.x/src/finiteVolume/lnInclude -I/home/jan/OpenFOAM/OpenFOAM-3.0.x/src/transportModels -I/home/jan/OpenFOAM/OpenFOAM-3.0.x/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/jan/OpenFOAM/OpenFOAM-3.0.x/src/TurbulenceModels/incompressible/lnInclude -I/home/jan/OpenFOAM/OpenFOAM-3.0.x/src/fvOptions/lnInclude -I/home/jan/OpenFOAM/OpenFOAM-3.0.x/src/meshTools/lnInclude -I/home/jan/OpenFOAM/OpenFOAM-3.0.x/src/lagrangian/basic/lnInclude -I/home/jan/OpenFOAM/OpenFOAM-3.0.x/src/OpenFOAM/containers/HashTables/labelHashSet -I/home/jan/LIGGGHTS-PUBLIC/src -I/home/jan/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/src/cfdTools -IlnInclude -I. -I/home/jan/OpenFOAM/OpenFOAM-3.0.x/src/OpenFOAM/lnInclude -I/home/jan/OpenFOAM/OpenFOAM-3.0.x/src/OSspecific/POSIX/lnInclude -fPIC -c cfdTools/newGlobal.C -o Make/linux64GccDPInt32Opt/cfdTools/newGlobal.o
In file included from lnInclude/cfdemCloud.H:46:0,
from cfdTools/global.H:43,
from cfdTools/newGlobal.C:34:
lnInclude/OFversion.H:1:27: error: operator '==' has no left operand
#if(CFDEMWMPROJECTVERSION == 40)
^
lnInclude/OFversion.H:3:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 24)
^
lnInclude/OFversion.H:5:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 30)
^
lnInclude/OFversion.H:7:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 132)
^
lnInclude/OFversion.H:9:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 1606)
^
lnInclude/OFversion.H:11:29: error: operator '==' has no left operand
#elif(CFDEMWMPROJECTVERSION == 1612)
^
In file included from lnInclude/cfdemCloud.H:570:0,
from derived/cfdemCloudIB/cfdemCloudIB.H:44,
from derived/cfdemCloudIB/cfdemCloudIB.C:33:
lnInclude/cfdemCloudI.H:353:1: error: expected unqualified-id before ‘{’ token
{
^
In file included from lnInclude/cfdemCloud.H:570:0,
from cfdTools/global.H:43,
from cfdTools/global.C:33:
lnInclude/cfdemCloudI.H:353:1: error: expected unqualified-id before ‘{’ token
{
^
In file included from cfdemCloud/cfdemCloud.H:570:0,
from cfdemCloud/cfdemCloud.C:33:
cfdemCloud/cfdemCloudI.H:353:1: error: expected unqualified-id before ‘{’ token
{
^
cfdemCloud/cfdemCloud.C: In constructor ‘Foam::cfdemCloud::cfdemCloud(const Foam::fvMesh&)’:
cfdemCloud/cfdemCloud.C:132:5: error: class ‘Foam::cfdemCloud’ does not have any field named ‘turbulence_’
turbulence_
^
cfdemCloud/cfdemCloud.C:204:21: warning: use of old-style cast [-Wold-style-cast]
(char *)"none",
^
cfdemCloud/cfdemCloud.C:205:21: warning: use of old-style cast [-Wold-style-cast]
(char *)"none"
^
cfdemCloud/cfdemCloud.C: In member function ‘Foam::tmp > Foam::cfdemCloud::voidfractionNuEff(Foam::volScalarField&) const’:
cfdemCloud/cfdemCloud.C:965:54: error: ‘turbulence_’ was not declared in this scope
new volScalarField("viscousTerm", ( turbulence_.nut()
^
cfdemCloud/cfdemCloud.C:984:67: error: ‘turbulence_’ was not declared in this scope
new volScalarField("viscousTerm", voidfraction*( turbulence_.nut()
^
/home/jan/OpenFOAM/OpenFOAM-3.0.x/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/cfdTools/global.o' failed
make: *** [Make/linux64GccDPInt32Opt/cfdTools/global.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from lnInclude/cfdemCloud.H:570:0,
from cfdTools/global.H:43,
from cfdTools/newGlobal.C:34:
lnInclude/cfdemCloudI.H:353:1: error: expected unqualified-id before ‘{’ token
{
^
/home/jan/OpenFOAM/OpenFOAM-3.0.x/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/derived/cfdemCloudIB/cfdemCloudIB.o' failed
make: *** [Make/linux64GccDPInt32Opt/derived/cfdemCloudIB/cfdemCloudIB.o] Error 1
/home/jan/OpenFOAM/OpenFOAM-3.0.x/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/cfdTools/newGlobal.o' failed
make: *** [Make/linux64GccDPInt32Opt/cfdTools/newGlobal.o] Error 1
/home/jan/OpenFOAM/OpenFOAM-3.0.x/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/cfdemCloud/cfdemCloud.o' failed
make: *** [Make/linux64GccDPInt32Opt/cfdemCloud/cfdemCloud.o] Error 1
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
"Echo $WM_PROJECT_VERSION" returns "3.0.x", just as it should. However, "Echo $CFDEM_WM_PROJECT_VERSION" returns a blank line.
Kind regards,
Jan
JanvandenBroecke | Wed, 04/12/2017 - 18:42
Hi Josef,
Hi Josef,
I fixed the $CFDEM_WM_PROJECT_VERSION issue, I made a mistake in the .bashrc file.
However, now i get new errors. I made a new forum topic because I could not attach my log files for some reason.
https://cfdem.com/forums/cfdem-coupling-error-0
Kind regards,
Jan