yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #04530
[Question #159764]: randomDensePack
New question #159764 on Yade:
https://answers.launchpad.net/yade/+question/159764
Hi,
I don't understand everything about randomDensePack.
What does this code mean?
"spheres=pack.randomDensePack(pack.inAlignedBox((-.25,-.25,-.5),(.25,.25,.5)),spheresInCell=1000,radius=.01,memoizeDb='/tmp/triaxPackCache.sqlite')
O.bodies.append(spheres)"
I was thinking that meant: we specify the lowest corner and the highest corner of a box (which are here ((-.25,-.25,-.5),(.25,.25,.5))); then we specify that we just want 1000 spheres in that box with a radius of .01.
But I'm wrong. "spheresInCell – if given, the packing will be periodic, with given number of spheres in the periodic cell."
What does that mean ? I can change spheresinCell from 65 to 1000 for example and the number of spheres will be around 2000 anyway.
Thanks !
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.