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

Removing periodic boundary conditions #97

Closed
edwinb-ai opened this issue Feb 18, 2024 · 2 comments
Closed

Removing periodic boundary conditions #97

edwinb-ai opened this issue Feb 18, 2024 · 2 comments

Comments

@edwinb-ai
Copy link

Is it possible to remove the periodic boundary conditions at some point using the PeriodicSystems interface?

My use case is to compute and save to disk the unwrapped particle coordinates (without applying periodic boundary conditions) for computing dynamical quantities such as the mean squared displacement.

@lmiq
Copy link
Member

lmiq commented Feb 19, 2024

But does the system has periodic boundary conditions or not? CellListMap does not modify the original coordinates provided, so if you propagate your coordinates in you simulation without wrapping them manually, they will "appear" as not having periodic boundary conditions and the MSD will be the one expected. This is what one normally expects: the system does have PBCs, but the coordinates can be saved without wrapping, thus facilitating the computation of these quantities. Is this the case?

@edwinb-ai
Copy link
Author

I see, you are right, I have now implemented periodic boundary conditions and it works as expected.

Maybe I had the wrong impression of having to specify a unit cell in the neighborlist function, as per the documentation, but I understand now that this is not enforced by the cells themsleves, it is a matter of how the coordinates are propagated.

Thanks for the clarification.

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

2 participants