regarding specifyng group of atoms

Hello everyone,

which command is best for setting some group of atoms to a particular type
out of two

group … type 2
set group … type 2

Regards

Hello everyone,

which command is best for setting some group of atoms to a particular type
out of two

group ... type 2
set group ... type 2

​those two commands do very different things. only one of them does what
you are asking for. please confirm through (more) careful reading of the
LAMMPS manual, which is the one you want.

axel.

According to my limited understanding, what I feel that group command (with style type) associates the collection of atoms (with one type or many atom types) to a particular group ID.

and set command (with style type) assigns the group to a particular atom type.

Could You throw some more light?? I am still confused!!!

no, the set command assigns the specified type to the atoms in the group.

Steve