[solved] random particle distribution

Submitted by rob1 on Sat, 07/23/2016 - 16:53

Hello, I would like to change the random position of particles before starting a simulation (I want to do different simulations only changing the starting distribution, just to compare average quantities).
Anyway I am changing the seed number in:
- particletemplate/sphere
- particledistribution/discrete
- insert/pack
in all these 3 commands and anything change! Impossible, there is surely a bug. What I see is that seed is not working.

Thank you,
rob1

ckloss's picture

ckloss | Mon, 07/25/2016 - 23:57

Hi Rob1,

I am sure the bug that you think is there does not exist.
But if you think there is a bug you should present clear statistical evidence and a detailed report, rather than a sloppy statement!

Christoph

rob1 | Wed, 07/27/2016 - 11:03

Hello Christoph,

My problem was that I have an insertion of 4 different particle distributions: changing the seed to 3 out of 4 was not sufficient to have different random positions, but I needed to change all the 4 seeds.

So I have solved my problem and I agree with you that the bug does not exist... sorry for my previous message.
Anyway the documentation sometimes is vague and this issue should have been written.

Thank you and have a nice day,
rob1

ckloss's picture

ckloss | Tue, 09/13/2016 - 15:03

Hi Rob,

we tackled this in 3.5. by enforcing that seeds are prime and different from each other

Best wishes!
Christoph