[lammps-users] confining potential

Hi Lammps users,

I’d like to simulate lennard-jones fluid confined within some geometry and without periodic boundary conditions. Is there a way I could add on an external potential (e.g. harmonic) which confines the particles within a certain region?


How about using fix spring tether command? Here is the ling for the
documentation of this fix http://lammps.sandia.gov/doc/fix_spring.html