[lammps-users] Help with freezing atoms in lammps

Hi,

I was trying to freeze a group of atoms in my simulation by setting
the velocities and forces into zero. However I cannot find such
function in lammps. The similar fix command fix freeze does not work,
as it seems additional pair is required. However, I'm using eam/alloy
only. fix rigid single also gives error "Bad principle moments", and I
cannot find useful help from the Documentations. My objective is to
freeze or restrain atoms on simulation box boundaries so that atoms.
Thanks for any suggestions.

Best,
Xiaoyin Ji

Hi,

I was trying to freeze a group of atoms in my simulation by setting
the velocities and forces into zero. However I cannot find such
function in lammps. The similar fix command fix freeze does not work,
as it seems additional pair is required. However, I'm using eam/alloy
only. fix rigid single also gives error "Bad principle moments", and I
cannot find useful help from the Documentations. My objective is to

you have not looked close enough.

you can keep atoms from moving using fix setforce and initializing the
respective velocities to zero. a second options is to not integrate
the equations
of motion for those atoms.

you can restrain atoms with fix spring/self.

freeze or restrain atoms on simulation box boundaries so that atoms.

...so that the atoms .... what?

cheers,
    axel.

1 Like