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

Created new compute ADF for angular distribution function #1168

merged 9 commits into from Oct 21, 2018


None yet
2 participants
Copy link

athomps commented Oct 20, 2018


This compute is similar to compute rdf, but bins angles instead of distances.



Backward Compatibility

No issue. I made some small changes to eliminate redundant code in compute_rdf.cpp

Implementation Notes

I tested a variety of cases. For water I got results similar to what others have published, but did not attempt to get an exact match.

Post Submission Checklist

Please check the fields below as they are completed

  • The feature or features in this pull request is complete
  • Suitable new documentation files and/or updates to the existing docs are included
  • One or more example input decks are included
  • The source code follows the LAMMPS formatting guidelines

Further Information, Files, and Links

Put any additional information here, attach relevant text or image files, and URLs to external sites (e.g. DOIs or webpages)

athomps added some commits Oct 20, 2018

@akohlmey akohlmey self-requested a review Oct 20, 2018

@akohlmey akohlmey self-assigned this Oct 20, 2018

@akohlmey akohlmey added this to the Stable Release Fall 2018 milestone Oct 20, 2018


This comment has been minimized.

Copy link

akohlmey commented Oct 20, 2018

@athomps i've fully integrated the .txt file into the manual and fixed a dangling link, that would have been correct with the manual before steve's most recent refactoring.
I've also added an example input deck for both RDF and ADF. this exposed a bug due to uninitialized data, which i fixed as well. please have a look.

@akohlmey akohlmey requested a review from sjplimp Oct 20, 2018


This comment has been minimized.

Copy link

athomps commented Oct 20, 2018

@akohlmey thank you for the additions. I got my own valgrind back working and found another memory error. Also cleaned up a few more things. I also changed your nice example to sample the O-H...O angles, perhaps what you had intended, giving about 1 angle/atom, instead of almost none. I think it is ready to go.

@akohlmey akohlmey merged commit 3661836 into lammps:master Oct 21, 2018

5 checks passed

lammps/pull-requests/build-docs-pr head run ended
lammps/pull-requests/kokkos_omp head run ended
lammps/pull-requests/openmpi-pr head run ended
lammps/pull-requests/serial-pr head run ended
lammps/pull-requests/shlib-pr head run ended
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment