Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LB GPU uses uniform random numbers instead of normal distributed #2357

Closed
KaiSzuttor opened this issue Nov 2, 2018 · 10 comments
Closed

LB GPU uses uniform random numbers instead of normal distributed #2357

KaiSzuttor opened this issue Nov 2, 2018 · 10 comments

Comments

@KaiSzuttor
Copy link
Member

No description provided.

@KaiSzuttor KaiSzuttor changed the title LB GPU uses uniform random numbers instead or normal distributed LB GPU uses uniform random numbers instead of normal distributed Nov 2, 2018
@RudolfWeeber
Copy link
Contributor

RudolfWeeber commented Nov 2, 2018 via email

@KaiSzuttor
Copy link
Member Author

Yeah but... check lb.cpp line 101

@KaiSzuttor
Copy link
Member Author

Btw it's also not tested that LB thermostat gives the right maxwell distribution of velocities.

@RudolfWeeber
Copy link
Contributor

I did a quick check. With Gauss random cut, the standard deviations in cpu and gpu are similar.
I'll open a pr fixing lbcpu with other noise types

@KaiSzuttor
Copy link
Member Author

Why is that actually switchable by the user?

@mkuron
Copy link
Member

mkuron commented Nov 2, 2018

As far as I know, the actual random number distribution does not matter as long as their mean and variance is correct. There might be a publication by Alexander Wagner on this topic, but I couldn't find it. The switch may have been added for testing purposes at some point.

@jonaslandsgesell
Copy link
Member

Please cite this paper in a comment in the corresponding parts of the code. This question will pop up in each developer generation.

@KaiSzuttor KaiSzuttor mentioned this issue Jan 11, 2019
3 tasks
@KaiSzuttor
Copy link
Member Author

Dünweg, Burkhard, and Wolfgang Paul. "Brownian dynamics simulations without Gaussian random numbers." International Journal of Modern Physics C 2.03 (1991): 817-827.

@jonaslandsgesell
Copy link
Member

Please cite in source as documentation!

@KaiSzuttor
Copy link
Member Author

Ladd, Anthony JC. "A fast random number generator for stochastic simulations." Computer Physics Communications 180.11 (2009): 2140-2142.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants