[lammps-users] Question on fix/group command

Dear LAMMPS

During a MD simulation I want to define a group of particles as a rigid body according to their interdistances. My questions are

How and where should I add this definition of rigid body? I know fix command assign particles as a group but where can I add the condition of the group?

Bests,
Sunhwan.

Sunhwan,

See this page:

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

Also note that you should not use fix rigid if you just want to hold
group of atoms stationary. A better way to do this is to not include
those atoms in your time integration fix. E.g. use "fix 1 mobile nve"
instead of "fix 1 all nve", where "mobile" is the group of atoms that
you want to move."

Paul