Hi,
I used OF and LAMMPS before, but I am quite new to LIGGGHTS and the CFDEM coupling.
I successfully compiled OF and ParaView and configures the paths.
The system test and the LIGGGHTS compillations seem to work fine, but I cannot get the CFDEM-couling compilled.
Below a more detailed description of the error messages. Any help and hints are appreciated.
Thanks a lot
hansjoerg
=============================================================================
~>cfdemSysTest
reports no problems:
=============================================================================
*******************
system settings:
*******************
CFDEM_VERSION=PUBLIC
couple to OF_VERSION=2.1.1
check if paths are set correctly
valid:yes critical:yes - $CFDEM_LIGGGHTS_SRC_DIR = /opt/LIGGGHTS/LIGGGHTS-PUBLIC/src
valid:yes critical:yes - $CFDEM_PROJECT_DIR = /opt/OpenFOAM/CFDEM/CFDEMcoupling-PUBLIC-2.1.1
valid:yes critical:no - $CFDEM_PROJECT_USER_DIR = /home/hansjoerg/Projects/Particles_in_Flow/CFDEM/hansjoerg-PUBLIC-2.1.1
valid:yes critical:yes - $CFDEM_SRC_DIR = /opt/OpenFOAM/CFDEM/CFDEMcoupling-PUBLIC-2.1.1/src/lagrangian/cfdemParticle
valid:yes critical:yes - $CFDEM_SOLVER_DIR = /opt/OpenFOAM/CFDEM/CFDEMcoupling-PUBLIC-2.1.1/applications/solvers
valid:yes critical:yes - $CFDEM_TUT_DIR = /opt/OpenFOAM/CFDEM/CFDEMcoupling-PUBLIC-2.1.1/tutorials
valid:yes critical:yes - $CFDEM_LIGGGHTS_SRC_DIR = /opt/LIGGGHTS/LIGGGHTS-PUBLIC/src
valid:yes critical:yes - $CFDEM_LPP_DIR = /home/hansjoerg/Projects/Particles_in_Flow/CFDEM/LIGGGHTS/mylpp/src
valid:yes critical:no - $CFDEM_PIZZA_DIR = /opt/LIGGGHTS/PIZZA/gran_pizza_17Aug10/src
valid:yes critical:no - $CFDEM_TEST_HARNESS_PATH = /home/hansjoerg/Projects/Particles_in_Flow/CFDEM/hansjoerg-PUBLIC-2.1.1/log/logFilesCFDEM-PUBLIC-2.1.1
library names
$CFDEM_LIGGGHTS_LIB_NAME = lmp_Ubuntu_fpic
$CFDEM_LIB_NAME = lagrangianCFDEM-PUBLIC-2.1.1
$LD_LIBRARY_PATH = /opt/OpenFOAM/ThirdParty-2.1.1/platforms/linux64Gcc/paraview-3.12.0/lib/paraview-3.12:/opt/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/openmpi-system:/opt/OpenFOAM/ThirdParty-2.1.1/platforms/linux64GccDPOpt/lib/openmpi-system:/lib:/lib64:/home/hansjoerg/OpenFOAM/hansjoerg-2.1.1/platforms/linux64GccDPOpt/lib:/opt/OpenFOAM/site/2.1.1/platforms/linux64GccDPOpt/lib:/opt/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib:/opt/OpenFOAM/ThirdParty-2.1.1/platforms/linux64GccDPOpt/lib:/opt/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/dummy:/usr/local/share/freefem++-3.13/lib/:usr/local/lib:/usr/local/share/getfem-4.1.1/lib/:/usr/local/share/marble/lib/osmlib:usr/local/lib:/usr/local/share/marble/lib/osmlib
*******************
g++:
/usr/bin/g++
g++ (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3
Copyright (C) 2009 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 4.4.3-4ubuntu5.1) 4.4.3
Copyright (C) 2009 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 4.4.3-4ubuntu5.1) 4.4.3
Copyright (C) 2009 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.4.1
Report bugs to http://www.open-mpi.org/community/help/
=============================================================================
~>cfdemCompLIG
seems to compille withut problems
=============================================================================
...
make[1]: Leaving directory `/opt/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_fedora_fpic'
=============================================================================
~>cfdemCompCFDEM
=============================================================================
Compillation fails with final error message:
/usr/bin/ld: cannot find -llagrangianCFDEM-PUBLIC-2.1.1
collect2: ld returned 1 exit status
but the problem occures before:
1. I found from the mailing list, that the first warning about not finding RASModel.H does nto seem to
be critical.
Making dependency list for source file subModels/liggghtsCommandModel/execute/execute.C
could not open file RASModel.H for source file subModels/liggghtsCommandModel/execute/execute.C
...
2. The compillation complains about the MPI settings for the twoWatMPI.C module. Here the relevant error messages:
=============================================================================
SOURCE=subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -I/include -I ./cfdemParticle -I/opt/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/opt/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/turbulenceModel -I/opt/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/containers/HashTables/labelHashSet -I/opt/LIGGGHTS/LIGGGHTS-PUBLIC/src -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/twoWayMPI.o
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C: In constructor ‘Foam::twoWayMPI::twoWayMPI(const Foam::dictionary&, Foam::cfdemCloud&)’:
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:74: error: ‘MPI_Comm_size’ was not declared in this scope
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:77: error: ‘MPI_UNDEFINED’ was not declared in this scope
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:79: error: ‘MPI_Comm_split’ was not declared in this scope
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:87: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:95: error: ‘MPI_Abort’ was not declared in this scope
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:109: error: ‘MPI_INT’ was not declared in this scope
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:109: error: ‘MPI_Bcast’ was not declared in this scope
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:111: error: ‘MPI_CHAR’ was not declared in this scope
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C: In member function ‘virtual void Foam::twoWayMPI::getData(Foam::word, Foam::word, double** const&, Foam::label) const’:
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:146: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:146: warning: deprecated conversion from string constant to ‘char*’
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C: In member function ‘virtual void Foam::twoWayMPI::getData(Foam::word, Foam::word, int** const&, Foam::label) const’:
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:159: warning: use of old-style cast
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:159: warning: deprecated conversion from string constant to ‘char*’
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C: In member function ‘virtual void Foam::twoWayMPI::giveData(Foam::word, Foam::word, double** const&, const char*) const’:
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:173: warning: use of old-style cast
make: *** [Make/linux64GccDPOpt/twoWayMPI.o] Error 1
=============================================================================
It seems that the compillation script tries to use the g++ compiller instead of the mpic++
=============================================================================
I also get the error:
mkdir: cannot create directory `log': File exists
// log_compileCFDEMcoupling_cfdemSolverPiso_cfdemSolverPiso-2013-02-25-10:07 //
where I dont know to which directory the scipt tries to write the log files.
alice | Tue, 02/26/2013 - 12:46
Hello hseybold,
Hello hseybold,
to be honest I have no experiences with using OpenFOAM 2.1.1 and CFDEMcoupling alongside, but generally I would recommend to use OpenFOAM's 2.1.x version anyway.
Cheers,
Alice
hseybold | Tue, 02/26/2013 - 19:28
Hi,
Hi,
Thanks for the reply. Which are he recommended versions for OF+LIGGGHTS+CFDEM which work well together?
cheers hj
alice | Wed, 02/27/2013 - 07:36
Good morning,
Good morning,
I would suggest to get OF 2.1.x plus the most recent versions of CFDEMcoupling and LIGGGHTS (-> git).
Cheers,
Alice
cgoniva | Wed, 02/27/2013 - 19:39
Hi,
Hi,
I agree with Alice when it comes to the versions.
Your error indicates, that the mpi library is not found. (does it say mpi.h not found or similar?) This is usually not an issue of the version , but setup of the environment variables.
Cheers,
Chris