Potential Particles

Asked by Bettina Suhr

Dear all,
I would like to play with particle shape modelling and saw that potential particles are implemented in yade. Since I try to use them, I’m having troubles to make yade compile/run. Dou you know if this part of the code is frequently used/well tested or rather experimental?

Before, I had yade-2018.02b installed on kubuntu 18.04. My old and working version of yade was compiled with the following flags (potential particles were automatically disabled):
cmake -DCMAKE_INSTALL_PREFIX=../install ../trunk -DCMAKE_CXX_FLAGS="-frounding-math" -DUSE_QT5=1 -DENABLE_TWOPHASEFLOW=0 -DENABLE_PFVFLOW=0 -DENABLE_LBMFLOW=0 -DENABLE_LINSOLV=0

Just adding -DENABLE_POTENTIAL_PARTICLES=1 led to an error during compilation:
In file included from /home/bettinasuhr/TestYade2018/trunk/pkg/common/Gl1_PotentialParticle.cpp:37:0:
/home/bettinasuhr/TestYade2018/trunk/lib/opengl/OpenGLWrapper.hpp:12:2: error: #error "This build doesn't support openGL. Therefore, this header must not be used."
 #error "This build doesn't support openGL. Therefore, this header must not be used."

Reading my cmake output, I tried to run cmake with:
cmake -DCMAKE_INSTALL_PREFIX=../install ../trunk -DCMAKE_CXX_FLAGS="-frounding-math" -DUSE_QT5=1 -DENABLE_TWOPHASEFLOW=0 -DENABLE_PFVFLOW=0 -DENABLE_LBMFLOW=0 -DENABLE_LINSOLV=0 -DENABLE_POTENTIAL_PARTICLES=1 -DOpenGL_GL_PREFERENCE="GLVND"

This time cmake, make and make install finished without errors. But when I run yade, it crashes:
bettinasuhr@innb01534-kub:~/TestYade2018/build$ ../install/bin/yade-2018.02b
Welcome to Yade 2018.02b
Traceback (most recent call last):
  File "../install/bin/yade-2018.02b", line 129, in <module>
    import yade
  File "/home/bettinasuhr/TestYade2018/install/lib/x86_64-linux-gnu/yade-2018.02b/py/yade/__init__.py", line 65, in <module>
    import boot
ImportError: /home/bettinasuhr/TestYade2018/install/lib/x86_64-linux-gnu/yade-2018.02b/libyade.so: undefined symbol: dgesv_

I have no idea, what the problem could be. Any help will be appreciated.

Thanks,
Bettina

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Bettina Suhr
Solved:
Last query:
Last reply:
Revision history for this message
Janek Kozicki (cosurgi) said :
#1

You may want to have a look at Attachment: PotentialParticles_PotentialBlocks_guide.docx in https://lists.launchpad.net/yade-dev/msg14517.html

Also, some stuff was fixed pretty recently with PotentialParticles, it is better if you try to compile either version 2019.01a (e.g. https://packages.ubuntu.com/disco/yade ) or git clone https://gitlab.com/yade-dev/trunk.git

Actually the commit https://gitlab.com/yade-dev/trunk/commit/b489d794d0dec8ba553e8441ddd306f23d1b0d16
was done just one day after releasing yade version 2019.01a, so you better try to work with git clone https://gitlab.com/yade-dev/trunk.git

Revision history for this message
Vasileios Angelidakis (vsangelidakis) said :
#2

Hi Bettina,

I personally prefer the "Potential Blocks" code, to simulate particles with sharp edges.
For the "Potential Blocks", you can consult Chia Weng Boon's papers, where you can find several validating examples/applications.
I think the "Potential Particles" code hasn't been used so much yet, besides the paper of Boon et al (2013) and CW Boon's thesis, where the code was introduced.

I compiled with the flags you use on Ubuntu 18.04 and everything works, using the distribution from git clone, as Janek said above. I wouldn't know what's wrong with OpenGL in Kubuntu, sorry.

FYI, in the coming days I will upload a documentation on how to use the Potential Particles and the Potential Blocks codes if you are interested. :)

All the best,
Vasileios

Revision history for this message
Bettina Suhr (bettina-suhr) said :
#3

Dear Janek and Vaseileios,

thank you very much for your answers! This information helps a lot.
I will try to compile the 2019.01a version or the git clone and see if it works.

Best regards,
Bettina