diff --git a/doc/read_data.html b/doc/read_data.html index 91b46b681a..7efc64cc61 100644 --- a/doc/read_data.html +++ b/doc/read_data.html @@ -248,7 +248,11 @@ integers (1, not 1.0).
An Atoms section must appear in the data file if natoms > 0 in the header section. The atoms can be listed in any order. These are the -line formats for each atom style in LAMMPS: +line formats for each atom style in LAMMPS. As +discussed below, each line can optionally have 3 flags (nx,ny,nz) +appended to it, which indicate which image of a periodic simulation +box the atom is in. These may be important to include for some kinds +of analysis.
| angle | atom-ID molecule-ID atom-type x y z |
| hybrid | atom-ID atom-type x y z sub-style1 sub-style2 ... |
where the keywords have these meanings: +
The keywords have these meanings:
atom-ID atom-type x y z q diameter density-
Atom lines (all lines or none of them) can optionally list 3 final +
Atom lines (all lines or none of them) can optionally list 3 trailing integer values: nx,ny,nz. For periodic dimensions, they specify which image of the box the atom is considered to be in. An image of 0 means -the box as defined. A value of 2 means add 2 box lengths to get the -true value. A value of -1 means subtract 1 box length to get the true -value. LAMMPS updates these flags as atoms cross periodic boundaries -during the simulation. The flags can be output with atom snapshots -via the dump command. If nx,ny,nz values are not set in -the data file, LAMMPS initializes them to 0. +it is inside the box as defined. A value of 2 means add 2 box lengths +to get the true value. A value of -1 means subtract 1 box length to +get the true value. LAMMPS updates these flags as atoms cross +periodic boundaries during the simulation. The flags can be output +with atom snapshots via the dump command. +
+If nx,ny,nz values are not set in the data file, LAMMPS initializes +them to 0. If image information is needed for later analysis and they +are not all initially 0, it's important to set them correctly in the +data file. Also, if you plan to use the replicate +command to generate a larger system, these flags must be listed +correctly for bonded atoms when the bond crosses a periodic boundary. +I.e. the values of the image flags should be different by 1 (in the +appropriate dimension) for the two atoms in such a bond.
Atom velocities and other atom quantities not defined above are set to -0.0 when the Atoms section is read. They may later be set by a -Velocities section in the data file or by a velocity -or set command in the input script. +0.0 when the Atoms section is read. Velocities can be set later by +a Velocities section in the data file or by a +velocity or set command in the input +script.