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
Comments
I thought that could be switched at compile time?
The CPU and GPU ones using different distributions might also be a
cause of the different width of the temperature fluctuations
|
Yeah but... check lb.cpp line 101 |
Btw it's also not tested that LB thermostat gives the right maxwell distribution of velocities. |
I did a quick check. With Gauss random cut, the standard deviations in cpu and gpu are similar. |
Why is that actually switchable by the user? |
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. |
Please cite this paper in a comment in the corresponding parts of the code. This question will pop up in each developer generation. |
Dünweg, Burkhard, and Wolfgang Paul. "Brownian dynamics simulations without Gaussian random numbers." International Journal of Modern Physics C 2.03 (1991): 817-827. |
Please cite in source as documentation! |
Ladd, Anthony JC. "A fast random number generator for stochastic simulations." Computer Physics Communications 180.11 (2009): 2140-2142. |
No description provided.
The text was updated successfully, but these errors were encountered: