cfdemParticle compilation error - undefined Foam::calc

Submitted by Kun Xue on Wed, 02/08/2012 - 09:46

Hi:
I am compiling CFDEM_2 based on OpenFOAM2.0.x and LIGGGHTS1.3.3.
When compiling cfdemParticle there is an error reported
--
/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libopenfoam_zp.a(postCalc.o): In function `Foam::tryCalc(Foam::argList const&, Foam::Time const&, Foam::fvMesh const&)':
(.text+0x81): undefined reference to `Foam::calc(Foam::argList const&, Foam::Time const&, Foam::fvMesh const&)'
collect2: ld returned 1 exit status
--
I searched OpenFOAM source code and did not find definition of function calc. Could anyone give some suggestions?

By the way, I downloaded liggghts GIT version 1.5.1. However I did not find file library_cfd_coupling.cpp and functions declaration such as liggghts_get_maxtag and data_of_to_liggghts. Does this mean that even liggghts downloaded from cfdem.git.sourceforge.net does not work with cfdem?

Thank you very much.
Kun

dbcmih001 | Wed, 02/08/2012 - 15:40

I have also been trying to compile but it has been problematic.

Firstly when I try to install liggghts make fedora_fpic -j results in

... text data bss dec hex filename
2991792 103760 16 3095568 2f3c10 ../lmp_fedora_fpic
make[1]: Leaving directory `/home/miki/LIGGGHTS/liggghts_GIT/src/Obj_fedora_fpic'

Then after make makelib gives the following

miki@miki-laptop:~/LIGGGHTS/liggghts_GIT/src$ make makelib
grep: cfd_datacoupling_*.h: No such file or directory
grep: cfd_regionmodel_*.h: No such file or directory
miki@miki-laptop:~/LIGGGHTS/liggghts_GIT/src$

Then if I continue as per instruction sheet till compiling src wmake libso it produces error output make [1] ... exit

I have installed the CFDEM on another PC successfully using the same instruction sheet. please could you help

Thanks

Kun Xue | Sun, 02/19/2012 - 05:22

Hi Chris:
Thanks. I read the link before but when I compile cfdem with liggghts1.5.1 from cfdem.com, the file style_cfd_datacoupling.h is empty and i did not find functions "data_liggghts_to_of", "liggghts_get_maxtag" in the source of liggghts. This finally leads to compilation error of cfdem.
I also check all liggghts version I have, only version 1.3.3 have these functions defined.
Can you help me by letting me know how can I get over these problems?
Thank you.
Kun