Hi all,
My team and I are working on obtaining the per-atom forces using a post-processing program after LAMMPS is run. To do this, we took the derivatives of the energy formulas posted on each part of the doc pages to obtain equations for forces, then used the forcefield coefficients and outputted positions to calculate forces. Specifically, we are using class2 for all types.
Using small nonperiodic systems of a few atoms we have verified that the pair, bond, angle, and dihedral force contributions are working as intended by comparing them to the LAMMPS output for forces. However, when an improper is introduced into the system, the forces are not computed correctly via the program. We have error-checked it many times over now, but the problem still exists. I figure there’s probably something small wrong with it, but in the meantime I’m checking all possible sources for mistakes.
My question is concerning the improper force calculations done in LAMMPS. Is there any chance there’s more going on than the improper and angleangle terms that we perhaps missed? Following the doc pages should encompass everything, but I fear there is a missed term or some contribution not accounted for.
We are looking for a way to examine the per-atom forces on a particular subset of atoms while cutting off relations to other outside the set, and using this post-processing tool seemed to be the best mode of action since the suggested commands in LAMMPS could not achieve what we wanted.
Thanks for your time,
John Jasa
Mechanical and Materials Engineering
University of Nebraska-Lincoln