Hi,
I have been trying to compile CFDEM 2.7.1 on my Ubuntu 12.04 machine.
I have successfully installed OpenFoam 2.3.x, demonstrated by running the tutorial cavity. I have also successfully installed Liggghts 3.0.3, demonstrated by running the tutorial conveyor. Liggghts was installed with the cfdemCompLIG command to compile as a library. Prior to this I ran cfdemSysTest command which produced the following results:
chris@muse:~$ cfdemSysTest
*******************
system settings:
*******************
CFDEM_VERSION=PUBLIC
couple to OF_VERSION=2.3.x
compile option=Opt
check if paths are set correctly
valid:yes critical:yes - $CFDEM_PROJECT_DIR = /home/chris/CFDEM/CFDEMcoupling-PUBLIC-2.3.x
valid:yes critical:no - $CFDEM_PROJECT_USER_DIR = /home/chris/CFDEM/chris-PUBLIC-2.3.x
valid:yes critical:yes - $CFDEM_SRC_DIR = /home/chris/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src
valid:yes critical:yes - $CFDEM_SOLVER_DIR = /home/chris/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/applications/solvers
valid:yes critical:yes - $CFDEM_TUT_DIR = /home/chris/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/tutorials
valid:yes critical:yes - $CFDEM_LIGGGHTS_SRC_DIR = /home/chris/LIGGGHTS/LIGGGHTS-PUBLIC/src
valid:yes critical:yes - $CFDEM_LPP_DIR = /home/chris/LIGGGHTS/mylpp/src
valid:yes critical:no - $CFDEM_PIZZA_DIR = /home/chris/LIGGGHTS/PIZZA/pizza-7Feb14/src
valid:yes critical:no - $CFDEM_TEST_HARNESS_PATH = /home/chris/CFDEM/chris-PUBLIC-2.3.x/log/logFilesCFDEM-PUBLIC-2.3.x
library names
$CFDEM_LIGGGHTS_LIB_NAME = lmp_openmpi
$CFDEM_LIB_NAME = lagrangianCFDEM-PUBLIC-2.3.x
$LD_LIBRARY_PATH = /home/chris/OpenFOAM/ThirdParty-2.3.x/platforms/linux64Gcc/gperftools-svn/lib:/home/chris/OpenFOAM/ThirdParty-2.3.x/platforms/linux64Gcc/ParaView-4.1.0/lib/paraview-4.1:/home/chris/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/openmpi-1.6.5:/home/chris/OpenFOAM/ThirdParty-2.3.x/platforms/linux64GccDPOpt/lib/openmpi-1.6.5:/home/chris/OpenFOAM/ThirdParty-2.3.x/platforms/linux64Gcc/openmpi-1.6.5/lib:/home/chris/OpenFOAM/ThirdParty-2.3.x/platforms/linux64Gcc/openmpi-1.6.5/lib64:/home/chris/OpenFOAM/chris-2.3.x/platforms/linux64GccDPOpt/lib:/home/chris/OpenFOAM/site/2.3.x/platforms/linux64GccDPOpt/lib:/home/chris/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib:/home/chris/OpenFOAM/ThirdParty-2.3.x/platforms/linux64GccDPOpt/lib:/home/chris/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib/dummy:/home/chris/LIGGGHTS/LIGGGHTS-PUBLIC/lib:/home/chris/LIGGGHTS/LIGGGHTS-PUBLIC/src
$WM_NCOMPPROCS =
*******************
g++:
/usr/bin/g++
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 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/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 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/chris/OpenFOAM/ThirdParty-2.3.x/platforms/linux64Gcc/openmpi-1.6.5/bin/mpic++
c++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 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/chris/OpenFOAM/ThirdParty-2.3.x/platforms/linux64Gcc/openmpi-1.6.5/bin/mpirun
mpirun (Open MPI) 1.6.5
Report bugs to http://www.open-mpi.org/community/help/
chris@muse:~$
However, on running cfdemCompCFDEM the log_compileCFDEMcoupling_cfdemSolverIB file shows:
// log_compileCFDEMcoupling_cfdemSolverIB_cfdemSolverIB-2014-10-15-12:23 //
/home/chris/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/applications/solvers/cfdemSolverIB
removing all .dep files ...
Making dependency list for source file cfdemSolverIB.C
could not open file RASModel.H for source file cfdemSolverIB.C due to No such file or directory
could not open file meshToMeshNew.H for source file cfdemSolverIB.C due to No such file or directory
SOURCE=cfdemSolverIB.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/transportModels -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/incompressible/singlePhaseTransportModel -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/home/chris/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/lagrangian/cfdemParticle/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/dynamicFvMesh/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/dynamicFvMesh/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/dynamicMesh/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/fvOptions/lnInclude -IlnInclude -I. -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/cfdemSolverIB.o
/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’:
/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/readPISOControls.H:3:15: warning: unused variable ‘nOuterCorr’ [-Wunused-variable]
/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude/readPISOControls.H:15:16: warning: unused variable ‘transonic’ [-Wunused-variable]
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/transportModels -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/transportModels/incompressible/singlePhaseTransportModel -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/home/chris/CFDEM/CFDEMcoupling-PUBLIC-2.3.x/src/lagrangian/cfdemParticle/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/dynamicFvMesh/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/dynamicFvMesh/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/dynamicMesh/dynamicMesh/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/fvOptions/lnInclude -IlnInclude -I. -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/home/chris/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/cfdemSolverIB.o -L/home/chris/OpenFOAM/OpenFOAM-2.3.x/platforms/linux64GccDPOpt/lib \
-L/home/chris/OpenFOAM/chris-2.3.x/platforms/linux64GccDPOpt/lib -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -ldynamicFvMesh -ldynamicMesh -lfvOptions -llagrangianCFDEM-PUBLIC-2.3.x -lOpenFOAM -ldl -lm -o /home/chris/OpenFOAM/chris-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverIB
/home/chris/OpenFOAM/chris-2.3.x/platforms/linux64GccDPOpt/lib/liblagrangianCFDEM-PUBLIC-2.3.x.so: undefined reference to `LAMMPS_NS::LAMMPS::LAMMPS(int, char**, ompi_communicator_t*)'
collect2: ld returned 1 exit status
make: *** [/home/chris/OpenFOAM/chris-2.3.x/platforms/linux64GccDPOpt/bin/cfdemSolverIB] Error 1
And I am unable to run the twoSpheresGlowinskiMPI tutorial.
Please assist.
Regards,
Chris Blyton
Attachment | Size |
---|---|
log_compilecfdemcoupling_cfdemparticle.txt | 121.23 KB |
log_compilecfdemcoupling_cfdemsolverib.txt | 3.99 KB |
log_compileliggghts.txt | 329.48 KB |
dhesse | Tue, 10/21/2014 - 17:22
Concur
I have experienced exactly the same problem as experienced by Chris Blyton. Using csh under Red Hat Enterprise Linux.
Dave Hesse
c.blyton | Tue, 10/21/2014 - 17:56
Hi Dave,
Hi Dave,
Have you made any progress on a solution? I have not myself unfortunately.
Regards,
Chris Blyton
cgoniva | Tue, 10/21/2014 - 19:07
Hi,
Hi,
could you please provid some more information...
what is the output of "cfdemComLIG" (it should produce a log file in lagrangian/cfdemParticle/etc.
Same for "cfdemCompCFDEMsrc".
Same for "cfdemCompCFDEMsol".
Kind regards,
Chris
c.blyton | Tue, 10/21/2014 - 20:29
Hi Chris,
Hi Chris,
I have run the commands you suggested and attached the log files produced to the original forum post above. Please let me know what you work out from these. Thanks in advance.
Regards,
Chris Blyton
dhesse | Wed, 10/22/2014 - 18:07
No luck so far
Chris,
No ... unfortunately I have not yet figured out a solution ...
Dave