LB-DEM coupling, ibCompositeDynamics3D.h causing errors.

Submitted by bnn on Tue, 07/14/2015 - 21:26

Hello,
I ran some examples from Palabos and LIGGGHTS and both softwares work fine separately. I followed all the instructions from https://github.com/ParticulateFlow/LBDEMcoupling-public. Unfortunetely I got some errors (see attached screenshot or text file). Does anyone know how to fix it? I am working on macosx 10.10.

Regards,
Mateusz

AttachmentSize
Image icon lbdemerror.png172.51 KB
Plain text icon lbdemerror.txt3.15 KB
Philippe's picture

Philippe | Wed, 07/15/2015 - 15:09

Hello Mateusz,

I am the author of LBDEMcoupling. In order to help you, it would be great if you could describe in more detail what you did, so I can try to reproduce the error which I have never seen before. Also, some more information about your system (which versions of Palabos&LIGGGHTS, which compiler etc) would be helpful.

best
Philippe

gang | Mon, 06/26/2023 - 05:35

Hello philippe,
is LBDEMcoupling compatible with LIGGGHTS3.8 version so far? In addition, does LBDEMcoupling support multi-sphere model? Looking forward to your reply.
best
gang

bnn | Mon, 07/20/2015 - 20:11

Hello Philippe,
thank you for your fast reply. I couldn't respond sooner, because I was on vacation :)
I downloaded palabos 1.51 and LIGGGHTS 3.2.0. I builded LIGGGHTS as a static library by typing:
make makelib
make -f Makefile.lib fedora

I switched to the machine with Ubuntu.

Now I only have one Multiple definition error:

/home/bnn/LBDEMcoupling-public/src/liggghtsCouplingWrapper.o: In function `plb::stringToTwoPhaseModel(std::string)':
liggghtsCouplingWrapper.cpp:(.text+0x0): multiple definition of `plb::stringToTwoPhaseModel(std::string)'
showcaseRectChannel.o:showcaseRectChannel.cpp:(.text+0x700): first defined here
/home/bnn/LBDEMcoupling-public/src/latticeDecomposition.o: In function `plb::stringToTwoPhaseModel(std::string)':
latticeDecomposition.cpp:(.text+0x0): multiple definition of `plb::stringToTwoPhaseModel(std::string)'
showcaseRectChannel.o:showcaseRectChannel.cpp:(.text+0x700): first defined here
collect2: error: ld returned 1 exit status

I read this thread http://www.palabos.org/forum/read.php?11,6746,7581#msg-7581. Unfortunately I couldn't find definition of plb::stringToTwoPhaseModel(std::string) in multiGridGenerator3D.hh or anywhere else in palabos folder. I tried other version of palabos (1.50 and 1.41) but I ended with more multiple definiton errors.

Philippe's picture

Philippe | Tue, 07/28/2015 - 14:49

Hi Mateusz,

sorry for the late reply, I was on a conference and just returned yesterday.

I was able to reproduce the error. You need to declare the function 'stringToTwoPhaseModel' in $PALABOS_ROOT/src/multiPhysics/twoPhaseModel.h as inline to compile the code. I also posted a reply in the thread you linked to so other people find this.

best
Philippe

bnn | Thu, 07/30/2015 - 11:31

Thank you very much. I made some error in my searching script hence I could not find it. Examples are finally compiled :)
Regards,
Mateusz