[lammps-users] How to get forces between two atoms

Hi,

Is there any compute command or variables that can give the force exerted by atom j on atom i. i and j are atoms in two groups. Thanks a lot

Regards,
Liang

Hi,
Is there any compute command or variables that can give the force exerted by
atom j on atom i. i and j are atoms in two groups. Thanks a lot

compute group/group can do this.

if you need this for more than a few atoms (why?) then you
probably need to modify the code.

axel.