← Back to team overview

yade-users team mailing list archive

[Question #689026]: Trouble with makeCloud's parameter "seed" and yadedaily

 

New question #689026 on Yade:
https://answers.launchpad.net/yade/+question/689026

Hello,

I was trying to generate the same cloud of particles each time I run a script by setting the "seed" parameter of makeCloud at a fixed value. It works well when I run my script with yade 2018.02b but when I use yadedaily 20191105-2658~35899c7~bionic1 I can't get the same cloud twice.

Here is a MWE:

##################

sp = SpherePack()
sp.makeCloud((0,0,0), (1,1,1), rMean=1e-1, rRelFuzz=1e-2, seed=42)
sp.toSimulation()

s = 0
for b in O.bodies: s += b.state.pos[0]

print(s)

##################

yade 2018.02b outputs 31.0396276461 every time I run the script .
yadedaily 20191105-2658~35899c7~bionic1 outputs different values for each run (for instance  28.83197591069974 ;  26.124028261554287 ; ...)

Is there something else to set with yadedaily in order to generate the same cloud twice?

Thanks in advance


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