Skip to content

aperiodic randomDensePack huge overlaps and strange behavior

Based on question https://answers.launchpad.net/yade/+question/473518, I did some simple tests using Yade 1.20.0 on Ubuntu 16.04

########################
from yade import pack
pred=pack.inAlignedBox((0,0,0),(2,1,1))
spheres=pack.randomDensePack(pred, radius=0.1)
O.bodies.append(spheres)
O.step()
print max(i.geom.penetrationDepth for i in O.interactions)
O.bodies.append(box((1,.5,.5),(1,.5,.5),wire=True))
########################

I got:

  • packing smaller than predicate
  • huge overlaps: r=0.1, max penetrationDepth=0.09 (!)

playing with cropLayers and dim parameters did not help much (especially concerning the overlaps).

Am I missing something, or is the default behavior that bad?

cheers Jan

Original bug report by Jan Stránský on 2017-02-22 : https://bugs.launchpad.net/yade/+bug/1666838

Edited by Janek Kozicki