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

Update RDF calculation sample.py #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ctudpython
Copy link

Fixed RDF calculation: the results were giving the wrong order of magnitude and the units of the equation were not correct.

Added the lacking "2dr" for 2D-Simulations.

Note: "len(system.distances)/(system.number_of_particles - 1)" is the same as "system.number_of_particles*0.5" but it was not clear to me where that came from.

Fixed RDF calculation: the results were giving the wrong order of magnitude and the units of the equation were not correct. 

Added the lacking "2dr" for 2D-Simulations.

Note: "len(system.distances)/(system.number_of_particles - 1)" is the same as "system.number_of_particles*0.5" but it was not clear to me where that came from.
@ctudpython ctudpython changed the title Update sample.py Update RDF calculation sample.py Jul 17, 2024
@maximillian-dolan
Copy link
Contributor

Hi, I am currently working on the package. Just wondering if you can walk me through how the current method is wrong, and vice-versa how your's is right.

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

Successfully merging this pull request may close these issues.

2 participants