yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #18426
Re: [Question #676326]: Can I control the seed in randomdensepack?
Question #676326 on Yade changed:
https://answers.launchpad.net/yade/+question/676326
Status: Open => Answered
Jan Stránský proposed the following answer:
Hello,
randomDensePack currently does not support seed.
options:
1) rewrite (copy-paste) the function with seed parameter
2) run randomDensePack once, save the results* and the next time use the saved results
* using memoizeDB parameter of randomDensePack [1] or using save and
load functions of SpherePack [2,3] or ... (plenty of ways)
cheers
Jan
[1] https://yade-dem.org/doc/yade.pack.html#yade.pack.randomDensePack
[2] https://yade-dem.org/doc/yade.pack.html#yade._packSpheres.SpherePack.save
[3] https://yade-dem.org/doc/yade.pack.html#yade._packSpheres.SpherePack.load
--
You received this question notification because your team yade-users is
an answer contact for Yade.