Hi,
I am trying to install cfdem coupling. I compiled OpenFOAM-1.7.1 from source. then I compiled 'liggghts-1p4p6' as library using 'make openmpi' and 'ln -s .....lmp_openmpi /usr/bin/liggghts' . The compilation of CFDEM src was successful. But when I try to compile the solver 'cfdemDolverPiso_shared', it gives the following error. Majorly "undefined reference to `Foam::cfdemCloud::cfdemCloud(Foam::fvMesh const&)'". Please see below. I was able to compile openFOAM solver 'icoFoam'. What may be the proble? any idea? or am i missing somethong obvious?
root@cfd cfdemSolverPiso_shared]# wmake
SOURCE=cfdemSolverPiso.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/root/OpenFOAM/OpenFOAM-1.7.1/src/turbulenceModels/incompressible/turbulenceModel -I/root/OpenFOAM/OpenFOAM-1.7.1/src/transportModels -I/root/OpenFOAM/OpenFOAM-1.7.1/src/transportModels/incompressible/singlePhaseTransportModel -I/root/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -I/root/OpenFOAM/root-1.7.1/run/../src/lagrangian/cfdemParticle/lnInclude -I/root/OpenFOAM/OpenFOAM-1.7.1/src/dynamicFvMesh/lnInclude -I/root/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/openmpi-1.4.1/include -I/usr/local/src/liggghts_1p4p6/src -IlnInclude -I. -I/root/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/root/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/cfdemSolverPiso.o
/root/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’:
/root/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H:11: warning: unused variable ‘transonic’
/root/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude/readPISOControls.H:14: warning: unused variable ‘nOuterCorr’
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/root/OpenFOAM/OpenFOAM-1.7.1/src/turbulenceModels/incompressible/turbulenceModel -I/root/OpenFOAM/OpenFOAM-1.7.1/src/transportModels -I/root/OpenFOAM/OpenFOAM-1.7.1/src/transportModels/incompressible/singlePhaseTransportModel -I/root/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -I/root/OpenFOAM/root-1.7.1/run/../src/lagrangian/cfdemParticle/lnInclude -I/root/OpenFOAM/OpenFOAM-1.7.1/src/dynamicFvMesh/lnInclude -I/root/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/openmpi-1.4.1/include -I/usr/local/src/liggghts_1p4p6/src -IlnInclude -I. -I/root/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/root/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/cfdemSolverPiso.o -L/root/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt \
-L/root/OpenFOAM/root-1.7.1/lib/linux64GccDPOpt -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -ldynamicMesh -L/root/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/openmpi-1.4.1/lib -llagrangianCFDEM_shared -lOpenFOAM -liberty -ldl -lm -o /root/OpenFOAM/root-1.7.1/applications/bin/linux64GccDPOpt/cfdemSolverPiso_shared
Make/linux64GccDPOpt/cfdemSolverPiso.o: In function `main':
cfdemSolverPiso.C:(.text+0x23bd): undefined reference to `Foam::cfdemCloud::cfdemCloud(Foam::fvMesh const&)'
cfdemSolverPiso.C:(.text+0x27c5): undefined reference to `Foam::cfdemCloud::evolve(Foam::GeometricField&, Foam::GeometricField, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField, Foam::fvPatchField, Foam::volMesh>&)'
cfdemSolverPiso.C:(.text+0x3983): undefined reference to `Foam::cfdemCloud::~cfdemCloud()'
cfdemSolverPiso.C:(.text+0x5afe): undefined reference to `Foam::cfdemCloud::~cfdemCloud()'
collect2: ld returned 1 exit status
make: *** [/root/OpenFOAM/root-1.7.1/applications/bin/linux64GccDPOpt/cfdemSolverPiso_shared] Error 1
[root@cfd cfdemSolverPiso_shared]#
Regards,
Manoj
run_cfd | Sat, 12/03/2011 - 14:31
successful with fedora_fpic
Hi Chris,
I gave another trial. i compiled liggghts with 'Makefile.fedora_pic' then everything went smoothly. Finally cfdem solver compiled.
Then, I ran test case 'settllingTest' and 'HopperCase' with mpirun and converted the result to vtk by foamToVTK and pizza. I viewd teh result with paraview-3.10. but I was not able to see any particle. I am new to using these softwares. I would be grateful if you can suggest something on postprocessing the result.
Thanks and best regards,
Manoj