dump dump_topo particles local 1 ${fname_write_dump_topo} c_final_geometry[*] c_final_topology[*]
It is known that in the in granular pair style, force represents the magnitude of the normal force acting between the pair of atoms, and P4 denotes the magnitude of the tangential force. According to the tangential mindlin_rescale/force option, the magnitude of the tangential force should be limited to μFn, where μ is the tangential friction coefficient and Fn is the normal force magnitude. Based on the final_topology definition, final_topology[1] should correspond to Fn, and final_topology[2] to Ft. Using a LAMMPS version dated 23 June 2022 gives results with Ft<Fn. However using a LAMMPS version of 28 March 2023 gives Ft>Fn.
Is it possible that the order of reporting Ft and Fn in final_topology has been swapped in the LAMMPS version from 28 March 2023? If not, what could be the potential issue?
Thank you so much for the information.
Does this imply that we need to re-run all the simulations using a newer (or perhaps older) version of LAMMPS? Since we’ve already invested a lot of time in running these long simulations, I’m looking for a way to avoid unnecessary repetition.
Without knowing the specific simulations/existing data/analysis, I cannot comment on what actions you might take. With that being said, this bug does not affect trajectories and only affects the reported normal force from this one command.
Depending on what data you output and what you need, you could use post processing to calculate damping forces and add them as required. Moving to another version is also an option. But if you have restart files for which you want to maintain compatibility, you could also just update this one method in the file and recompile. Either way, you may want to first confirm this change corrects the reported issue in your system.