← Back to team overview

yade-users team mailing list archive

Re: [Question #650554]: Is something going on in the background when pack.randomDensePack() is used?

 

Question #650554 on Yade changed:
https://answers.launchpad.net/yade/+question/650554

Jan Stránský posted a new comment:
randomDensePack has two "modes"

1) (without spheresInCell)
generates randomly all needed spheres compress them around predicate and crop them.
For small number of particles it works ok, but for increasing number it take more and more time and becomes practically impossible to use. I would not like to use it for 500k particles :-)

2) spheresInCell = someValue
uses just relatively few particles (someValue).
Compress this limited number using periodic contact detection resulting in a periodic cube
the resulting compressed packing is periodic, if you copy it by one period to any (axis) direction, the pieces fit together
copy such periodic cube wherever necessary to fill the predicate, and crop to final shape
So it uses (almost) the same time for any predicate size

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.