← Back to team overview

yade-users team mailing list archive

Re: [Question #670169]: informations about packing

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

> spheres=pack.randomDensePack(...

randomDensePack, as the name of the function suggests, creates a random
packing. You have different packing and therefore different results for
each run.

A solution is to run the randomDensePack once (in an external script?),
save the positions and use the saved values for all next runs. You can
also specify memoizeDb parameter to save/load the packing automatically
to a file.

Another option is to use SpherePack.makeCloud with seed parameter.

Also running the program on multiple cores leads to non-unique results
(too lazy to search corresponding question :-)

cheers
Jan

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