Set command

LAMMPS users,

I am having some difficulty with the set command. I want to change the atom type in a certain group to type 2.

However, when I Type:

set group exterior type 2

I get a “invalid value is set command” error.

The doc page says one example is:

set group solvent type 2

I have done exactly this except am using my own group assignment. I had previously defined the region and group as such:

region rexterior block 0 10 0 10 0 10
group exterior region rexterior

Does anyone see where I went wrong? I am guessing it is most likely trivial but I have not been able to find the solution. The version of LAMMPS I am using is August 8, 2014

LAMMPS users,

I am having some difficulty with the set command. I want to change the atom
type in a certain group to type 2.

However, when I Type:

set group exterior type 2

I get a "invalid value is set command" error.

did you leave space for two atom types when you defined the box?

axel.

No I didn’t. I’ll have to write a data file and allow for more atom types, to overcome the issue.

Thanks.