Read_dump unwrapped coordinates

lammps version – LAMMPS (22 Jul 2025 - Update 1)

I am was trying to read unwrapped coordinates from a native dump file using the following command

read_dump dump.lammpstrj 1 xu yu zu box yes

ITEM: ATOMS id xu yu zu
1 120.429 0.173 7.989

I do have atom ids in my dump file (see above)
but I get an error Read_dump must use at least either ‘id’ or ‘type’ field

I used id field still the same error. However when I use x y z I get no error although that field is not in the dump file

Not sure if I am missing something here. I want to replace the current simulation coordinates as read from read_data with unwrapped coordinates using the read_dump command
any help is appreciated

Thanks
Arun

This could be the same issue as was discussed here: Lammps rerun failed with read_dump error

Thanks Axel.

If this is not clear from the discussion linked by @akohlmey: xu yu and zu are incorrect fields for the rerun or read_dump commands. (and so are xs, ys or zs)

The correct fields are x y z. The scaled and wrapped properties of the coordinates are determined through the use of the scaled and wrapped optional keywords.

3 Likes