>
> Dear axel,
>
> So it means that, as an example of a water molecule which one hydrogen atom lie over the periodic boundary, it will cause problem with bonds when I restart simulation with only coordinate information. Right?
assuming, that your dump file only outputs the x, y, z coordinate and
neither xu, yu, zu, or ix, iy, iz, yes. that would be what is causing
the "inconsistent image flag" message.
> If this is right, can I fix this problem when I adjust original coordinates with periodic boundary(e.g. plus or minus box length), so particles are set to be unwrapped.
theoretically, yes.
There was a recent discussion of how to use VMD to fix image flag
problems in LAMMPS data files (which can be generated from dump files
using the "read_dump" and "write_data" commands in lammps).
https://sourceforge.net/p/lammps/mailman/message/36532759/
lammps.sandia.gov/doc/read_dump.html
lammps.sandia.gov/doc/write_data.html
Incidentally, for what it's worth, here is the "dump" command I use to
insure that the ix,iy,iz and mol attributes of every atom are saved:
dump 1 all custom 100000 traj.lammpstrj id mol type x y z ix iy iz
(of course, you will want to modify the dump-ID, "1", or interval
"100000" to suit your needs)
I suggest using a similar dump command when running future simulations.
Andrew
P.S. If your dump file contains the "mol" attribute (molecule-ID
number), you can bypass VMD and write a script which will make sure
that none of the atoms in the same molecule (ie., with the same "mol"
attribute) cross the periodic boundary conditions. If your molecule
is small compared to the periodic boundary conditions, then you can
simply add multiples of the periodic box dimensions to the x,y,z
coordinates of each atom until the distance from that atom to the
center of mass of the other atoms in the molecule is as small as
possible. Do this starting from one atom in the molecule, and keep
adding new atoms to thismolecule until all the atoms in that molecule
are included, updating the center of mass as you go along. (This way
you don't have to worry about which atoms are bonded together which is
a pain.)