Is it possible to set distance constraints between
particles in LAMMPS? If so, could you tell me the
command for it. I do not wish to use the 'fix rigid'
command to do this. I specifically want to constrain
the distance between two particles or two groups of
See the fix spring command and its variants.