yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #14539
Re: Potential Blocks and Potential Particles - Documentation
-
To:
yade-dev@xxxxxxxxxxxxxxxxxxx
-
From:
Janek Kozicki <janek_listy@xxxxx>
-
Date:
Thu, 24 Jan 2019 20:07:25 +0100
-
Face:
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEUBAQEtLS1KSkpRUVFXV1dYWFhjY2Nzc3N3d3eHh4eKioqdnZ24uLjLy8vc3NxVIagyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AIVEzgS1fgQtQAAAjRJREFUOMtt1DFv00AUAOAzFQNbjigSyoQaRaBMhKgLUyKXpVNNeUpk9vyDqFJhQ1kiBuaqAwJCqvPtSLY7RlTn5+5IdnYkkt/AOyfxXVLe5vf53Z1875kd34tOEax8djmj6GyjhB5bxz50GdsVZr9fqRjZwAtKOJw5Wqs2MMZ16ALHsaDncF7xAHix1oEFHAB8f+pRjcO4gfZDykcYzbiucRolOLUJ6kjA0xtVt+A6TySlM0RajIpK6DzwKZ/nOYbF/gclHMo1ZOHYY/+Ha+AWuM+3oMS4eeqYzZ8FiCltgUqI8cd2wwAVpJk+8LWYjBtnJdQpHQqJMd4Oxt4bU9ESiFGc5hkqaH74asAX4iabP5I5gZ+qjgGlJCqZa3h3lxhoeVcSE1qLQC4sqKOK9MGW9E3izFqqHokoztLFEgXg31sbZEKnWi2T74A4NxfVQqlkjKtcAWD+zcArFEES01dR0E/nnV0IgugmDd/2L84sOAouRBBHEc7gtc8teDkRlE0iNQPo2w3Xhh/D4TCIQ4LRLoTvgwjj6RRgavdurxYGMaIuGOyAW/PpNlCcU9/93AHenAWYjPoAwa+G3e3to/MgFNTAEKvKDjzuCzHTnY3qqdXtx24VijzQfZ0yewZ5cwRFQaa+mIYr1uI0I76+3W4xhlvoVRwOA0Fdl64HlJnxP6T8YpX/Lga4Wv4A3ErrU5oTfN7Mu/llXMl8RXEPji/lQkN3H7qXqgC2By47EXeU/7PJ/wPxRKMnuZwIeAAAAABJRU5ErkJggg==
-
In-reply-to:
<c0541cff-c739-af1a-f068-bd236fdbfff3@grenoble-inp.fr>
Bruno Chareyre said: (by the date of Wed, 23 Jan 2019 11:03:27 +0100)
> On 1/22/19 2:38 PM, Chia Weng Boon wrote:
> >
> > Can someone lead me to the file for polyhedra display in YADE? Maybe I
> > can try to get the display to work in qt. I can't recall how I made
> > it work for Potential Particles in qt. At one point in time, I always
> > playing with marching cubes..but it used too much memory and the
> > rendering was not very nice.
> >
>
> Hi,
> I don't know the marching cube method but if potential blocks are
> Minkowski sums of polyhedra and spheres - as I think they are, then it
> should be enough to combine existing functors since that's exactly how
> PFacet polyhedra are displayed. And it should be efficient.
> Let me know.
> See the figures in [1], they are from yade GUI for most of them.
> Bruno
Actually PotentialParticles are not Minkowski sums. This would be the
case if a sphere was not added to the particle shape. Previous
sentence might sound weird, but that's actually how it works. Chia
defines a formula for the shape of the particle (declaring each side
of a polyhedral). The isosurface at which this formula==0 is the
surface of this particle. Up to this point it would be directly a
Minkowski sum. But afterwards he adds x^2+y^2+z^2-R^2 to this
formula. This means that he is adding a sphere to this formula, and
all the shapes suddenly look like cushions with soft corners instead
of polyhedral Minkowki sums.
Chia, I have discovered that setting Gl1_PotentialParticle().store=True
fixes all the display problems which I had with
examples/PotentialParticles/cubePBscaled.py
Why did you set it to false by default in C++ code?
When it was false the marching cubes algorithm was executed for every
display refresh, and when drawing just one particle it was
recalculating marching cubes for all perticles. No wonder it was
slow. Like n^2 slow.
So after setting store=True, the display now works nicely. But still
the collisions do not work. I hope that you can fix that. I made a
short video to demonstrate what I'm talking about:
https://www.youtube.com/watch?v=1XEtGrbo7lM
Regarding other two examples:
PotentialBlocks/WedgeYADE.py
PotentialBlocks/cubePBscaled.py
I could not get them to work no matter what. The particles just sit
there and never move. I will write next mail about that, because I
have done some analysis of your C++ code and it might be useful to
someone who plans to continue working on PotentailParticles, maybe
Vasileios?
best regards
Janek Kozicki
Follow ups
References