← Back to team overview

yade-users team mailing list archive

Re: [Question #670169]: informations about packing


Question #670169 on Yade changed:

    Status: Open => Answered

Jan Stránský proposed the following answer:

> 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 :-)


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