How to get position (x,y,z) for atoms in chunk?

Hello! all!

I am wondering if lammps has function to get get position (x,y,z) for atoms in chunk?

My data have chunk 0, 1, 2, 3.

And I want to have positions of each atoms of chuck 2 & 3.

Finally, I want to get a file the positions by using fix command or dump file.

I know chunk can give center of mass(COM) and MSD for each chunk.

However, I want to get the each atom’s postions of each chunk.

Does the function exist in lammps?

You can dump the positions of all atoms

along with their chunk ID.
Then post-process to only keep the atoms
you want.

Or you can define

a group that has only the atoms in chunks 2.3,

by using an atom-style variable and the group

variable option. If you use that group wtih

the dump, you’ll only get those atoms in

the dump file.

Steve