Revised velocity verlet scheme to prevent unphysical sticking in DEM simulations.#4351
Conversation
|
@dhairyaiitb please go to the src folder, type |
|
As discussed, a few changes are needed:
|
|
I have cleaned up the comments and added a test example. I will add documentation and possibly another example in the coming days. |
|
Wishing you a very Happy New Year, Joel! I have updated the documentation with examples illustrating how to use this modification. Additionally, I have some good news: we have received reviews from the journal Computer Physics Communications. The reviewers suggested a few minor changes, which are related to presentation rather than the algorithm. I have also cited this paper into the documentation. Please note that this version of documentation is not for publishing online but specifically for you to review the documentation. I will update the details once the paper is accepted and published online, which will hopefully happen soon. |
|
@dhairyaiitb your pull request has a conflict with upstream. You need to check out the current develop branch and merge it into your feature branch and resolve the merge conflict in the process and push it back. Please also note that your branch has whitespace issues again(!). |
|
Thanks for the update, glad to hear you got good reviews. I'll try and find some time to review soon, hopefully next week. |
|
Thanks, those changes cover all my major comments. There are a few minor stylistic changes (e.g. spacing and variable names) I want to make. Then, if those look good with you, I'll get Dan to review. |
|
Thanks Joel. |
|
Hey Dhairya, can you check the changes I just made? Primarily, I swapped the example so synchronization is the default (and added a wall so particles don't get lost) and renaming nx->nx_unrotated and nxuse->nx so the default name is more intuitive. Thanks! I'll ping Dan to review. |
jtclemm
left a comment
There was a problem hiding this comment.
Blocking comment until Dan can review
Looks great. Thanks Joel. |
|
Dhairya, |
|
Hi Dan, Thank you for reviewing the code and paper. Glad it looks good to you. We were able to implement it thanks to your and Joel’s help. I really appreciate both of your guidance and support! |
Summary
The half-step lag in the standard velocity-Verlet can lead to errors in DEM simulations. These errors accumulate when we calculate the integral history term using velocity components which have been calculated using velocities from half-step and positions from full step. The revised velocity-Verlet approach resolves this issue.
Related Issue(s)
Author(s)
Dhairya R. Vyas, Postdoctoral researcher, Department of Mechanical Engineering, Northwestern University
Licensing
By submitting this pull request, I agree, that my contribution will be included in LAMMPS and redistributed under either the GNU General Public License version 2 (GPL v2) or the GNU Lesser General Public License version 2.1 (LGPL v2.1).
Backward Compatibility
Implementation Notes
Post Submission Checklist
Further Information, Files, and Links