Best Way To Constrain Distance

Hello All,

I’m trying to constrain the distance between 2 atoms in 2 molecules

I’m using LAMMPS (12 Apr 2013)

My Input is:

Try fix restrain

http://lammps.sandia.gov/doc/fix_restrain.html