diff -Naur lammps-1Sep09/doc/dump.html lammps-2Sep09/doc/dump.html --- lammps-1Sep09/doc/dump.html 2009-06-30 08:49:32.000000000 -0600 +++ lammps-2Sep09/doc/dump.html 2009-09-02 10:20:52.000000000 -0600 @@ -19,7 +19,7 @@
atom args = none bond args = none + cfg args = same as custom args, see below dcd args = none xtc args = none xyz args = none @@ -71,6 +72,8 @@ dump 2 subgroup atom 50 dump.run.bin dump 4a all custom 100 dump.myforce.* id type x y vx fx dump 4b flow custom 100 dump.%.myforce id type c_myF[3] v_ke +dump 2 inner cfg 10 dump.snap.*.cfg id type xs ys zs vx vy vz +dump snap all cfg 100 dump.config.*.cfg id type xs ys zs id type c_Stress2 dump 1 all xtc 1000 file.xtc
Description: @@ -96,7 +99,9 @@ atom, bond, and custom styles. It is also the case for the xyz style if the dump group is not all. It is not the case for the dcd and xtc styles which always write atoms in sorted order. -So does the xyz style if the dump group is all. +So does the xyz style if the dump group is all. The cfg style +supports the sort option of the dump_modify +command which allows for allows sorting to be turned on or off.
Style cfg has the same command syntax as style custom and writes +extended CFG format files, as used by the +AtomEye visualization +package. Since the extended CFG format uses a single snapshot of the +system per file, a wild-card "*" must be included in the filename, as +discussed below. The list of atom attributes for style cfg must +begin with "id tag xs ys zs", since these quantities are needed to +write the CFG files in the appropriate format (though the "id" and +"type" fields do not appear explicitly in the file). Any remaining +attributes will be stored as "auxiliary properties" in the CFG files. +Note that you will typically want to use the dump_modify +element command with CFG-formatted files, to +associate element names with atom types, so that AtomEye can render +atoms appropriately. +
The dcd style writes DCD files, a standard atomic trajectory format used by the CHARMM, NAMD, and XPlor molecular dynamics packages. DCD files are binary and thus may not be portable to different machines. @@ -243,7 +263,7 @@
This section explains the atom quantities that can be specified as -part of the custom style. +part of the custom and cfg styles.
The id, mol, type, vx, vy, vz, fx, fy, fz, q keywords are self-explanatory. diff -Naur lammps-1Sep09/doc/dump.txt lammps-2Sep09/doc/dump.txt --- lammps-1Sep09/doc/dump.txt 2009-06-30 08:49:32.000000000 -0600 +++ lammps-2Sep09/doc/dump.txt 2009-09-02 10:20:52.000000000 -0600 @@ -14,12 +14,13 @@ ID = user-assigned name for the dump :ulb,l group-ID = ID of the group of atoms to be dumped :l -style = {atom} or {bond} or {dcd} or {xtc} or {xyz} or {custom} :l +style = {atom} or {bond} or {cfg} or {dcd} or {xtc} or {xyz} or {custom} :l N = dump every this many timesteps :l file = name of file to write dump info to :l args = list of arguments for a particular style :l {atom} args = none {bond} args = none + {cfg} args = same as {custom} args, see below {dcd} args = none {xtc} args = none {xyz} args = none @@ -61,6 +62,8 @@ dump 2 subgroup atom 50 dump.run.bin dump 4a all custom 100 dump.myforce.* id type x y vx fx dump 4b flow custom 100 dump.%.myforce id type c_myF\[3\] v_ke +dump 2 inner cfg 10 dump.snap.*.cfg id type xs ys zs vx vy vz +dump snap all cfg 100 dump.config.*.cfg id type xs ys zs id type c_Stress[2] dump 1 all xtc 1000 file.xtc :pre [Description:] @@ -86,7 +89,9 @@ {atom}, {bond}, and {custom} styles. It is also the case for the {xyz} style if the dump group is not {all}. It is not the case for the {dcd} and {xtc} styles which always write atoms in sorted order. -So does the {xyz} style if the dump group is {all}. +So does the {xyz} style if the dump group is {all}. The {cfg} style +supports the {sort} option of the "dump_modify"_dump_modify.html +command which allows for allows sorting to be turned on or off. :line @@ -142,6 +147,21 @@ the timestep. An explanation of the dump custom quantities is given below. +Style {cfg} has the same command syntax as style {custom} and writes +extended CFG format files, as used by the +"AtomEye"_http://mt.seas.upenn.edu/Archive/Graphics/A visualization +package. Since the extended CFG format uses a single snapshot of the +system per file, a wild-card "*" must be included in the filename, as +discussed below. The list of atom attributes for style {cfg} must +begin with "id tag xs ys zs", since these quantities are needed to +write the CFG files in the appropriate format (though the "id" and +"type" fields do not appear explicitly in the file). Any remaining +attributes will be stored as "auxiliary properties" in the CFG files. +Note that you will typically want to use the "dump_modify +element"_dump_modify.html command with CFG-formatted files, to +associate element names with atom types, so that AtomEye can render +atoms appropriately. + The {dcd} style writes DCD files, a standard atomic trajectory format used by the CHARMM, NAMD, and XPlor molecular dynamics packages. DCD files are binary and thus may not be portable to different machines. @@ -233,7 +253,7 @@ :line This section explains the atom quantities that can be specified as -part of the {custom} style. +part of the {custom} and {cfg} styles. The {id}, {mol}, {type}, {vx}, {vy}, {vz}, {fx}, {fy}, {fz}, {q} keywords are self-explanatory. diff -Naur lammps-1Sep09/doc/dump_modify.html lammps-2Sep09/doc/dump_modify.html --- lammps-1Sep09/doc/dump_modify.html 2009-08-12 10:45:55.000000000 -0600 +++ lammps-2Sep09/doc/dump_modify.html 2009-09-02 10:20:52.000000000 -0600 @@ -19,23 +19,24 @@
format arg = C-style format string for one line of output - scale arg = yes or no - image arg = yes or no - flush arg = yes or no - unwrap arg = yes or no +element args = E1 E2 ... EN, where N = # of atom types + E1,...,EN = element name, e.g. C or Fe or Ga every arg = N N = dump every this many timesteps + format arg = C-style format string for one line of output + flush arg = yes or no + image arg = yes or no precision arg = power-of-10 value from 10 to 1000000 region arg = region-ID or "none" + scale arg = yes or no thresh args = attribute operation value attribute = same attributes (x,fy,etotal,sxx,etc) used by dump custom style operation = "<" or "<=" or ">" or ">=" or "==" or "!=" value = numeric value to compare to these 3 args can be replaced by the word "none" to turn off thresholding - + unwrap arg = yes or no@@ -51,72 +52,83 @@Modify the parameters of a previously defined dump command. Not all parameters are relevant to all dump styles.
+The element keyword applies only to the the dump cfg style. It +associates element names (e.g. H, C, Fe) with LAMMPS atom types, so +that the AtomEye +visualization package can render atoms with the appropriate size and +color. An element name is specified for each atom type (1 to Ntype) +in the simulation. The same element name can be given to multiple +atom types. +
+The every keyword changes the dump frequency originally specified by +the dump command to a new value which must be > 0. The +dump frequency cannot be changed for the dump dcd style. +
+The flush keyword determines whether a flush operation in invoked +after a dump snapshot is written to the dump file. A flush insures +the output in that file is current (no buffering by the OS), even if +LAMMPS halts before the simulation completes. Flushes cannot be +performed with dump style xtc. +
The text-based dump styles have a default C-style format string which simply specifies %d for integers and %g for real values. The format keyword can be used to override the default with a new C-style format string. Do not include a trailing "\n" newline character in the format string. This option has no effect on the dcd and xtc dump -styles since they write binary files. -
-The scale and image keywords apply only to the dump atom style. -
-A scale value of yes means atom coords are written in normalized -units from 0.0 to 1.0 in each box dimension. If the simluation box is -triclinic (tilted), then all atom coords will still be between 0.0 and -1.0. A value of no means they are written in absolute distance -units (e.g. Angstroms or sigma). -
-If the image value is yes, 3 flags are appended to each atom's -coords which are the absolute box image of the atom in each dimension. -For example, an x image flag of -2 with a normalized coord of 0.5 -means the atom is in the center of the box, but has passed thru the -box boundary 2 times and is really 2 box lengths to the left of its +styles since they write binary files. Note that for the cfg style, +the first two fields (atom id and type) are not actually written into +the CFG file, though you must include formats for them in the format +string. +
+The image keyword applies only to the dump atom style. If the +image value is yes, 3 flags are appended to each atom's coords which +are the absolute box image of the atom in each dimension. For +example, an x image flag of -2 with a normalized coord of 0.5 means +the atom is in the center of the box, but has passed thru the box +boundary 2 times and is really 2 box lengths to the left of its current coordinate. Note that for dump style custom these various values can be printed in the dump file by using the appropriate atom attributes in the dump command itself.
-The flush option determines whether a flush operation in invoked -after a dump snapshot is written to the dump file. A flush insures -the output in that file is current (no buffering by the OS), even if -LAMMPS halts before the simulation completes. Flushes cannot be -performed with dump style xtc. -
-The unwrap option only applies to the dump dcd and xtc styles. -If set to yes, coordinates will be written "unwrapped" by the image -flags for each atom. Unwrapped means that if the atom has passed thru -a periodic boundary one or more times, the value is printed for what -the coordinate would be if it had not been wrapped back into the -periodic box. Note that these coordinates may thus be far outside the -box size stored with the snapshot. -
-The every option changes the dump frequency originally specified by -the dump command to a new value which must be > 0. The -dump frequency cannot be changed for the dump dcd style. -
-The precision option only applies to the dump xtc style. A +
The precision keyword only applies to the dump xtc style. A specified value of N means that coordinates are stored to 1/N nanometer accuracy, e.g. for N = 1000, the coordinates are written to 1/1000 nanometer accuracy.
-The region keyword only applies to the dump custom style. If -specified, only atoms in the region will be written to the dump file. -Only one region can be applied as a filter (the last one specified). -See the region command for more details. Note that a -region can be defined as the "inside" or "outside" of a geometric -shape, and it can be the "union" or "intersection" of a series of -simpler regions. -
-The thresh keyword only applies to the dump custom style. -Multiple thresholds can be specified. Specifying "none" turns off -all threshold criteria. If thresholds are specified, only atoms -whose attributes meet all the threshold criteria are written to the -dump file. The possible attributes that can be tested for are the +
The region keyword only applies to the dump custom and cfg +styles. If specified, only atoms in the region will be written to the +dump file. Only one region can be applied as a filter (the last one +specified). See the region command for more details. +Note that a region can be defined as the "inside" or "outside" of a +geometric shape, and it can be the "union" or "intersection" of a +series of simpler regions. +
+The scale keyword applies only to the dump atom style. A scale +value of yes means atom coords are written in normalized units from +0.0 to 1.0 in each box dimension. If the simluation box is triclinic +(tilted), then all atom coords will still be between 0.0 and 1.0. A +value of no means they are written in absolute distance units +(e.g. Angstroms or sigma). +
+The thresh keyword only applies to the dump custom and cfg +styles. Multiple thresholds can be specified. Specifying "none" +turns off all threshold criteria. If thresholds are specified, only +atoms whose attributes meet all the threshold criteria are written to +the dump file. The possible attributes that can be tested for are the same as those that can be specified in the dump custom command. Note that different attributes can be output by the dump custom command than are used as threshold criteria by the dump_modify command. E.g. you can output the coordinates and stress of atoms whose energy is above some threshold.
+The unwrap keyword only applies to the dump dcd and xtc styles. +If set to yes, coordinates will be written "unwrapped" by the image +flags for each atom. Unwrapped means that if the atom has passed thru +a periodic boundary one or more times, the value is printed for what +the coordinate would be if it had not been wrapped back into the +periodic box. Note that these coordinates may thus be far outside the +box size stored with the snapshot. +
Restrictions: none
Related commands: @@ -125,10 +137,17 @@
Default:
-The option defaults are format = %d and %g for each integer or -floating point value, scale = yes, image = no, flush = yes (except for -the dump xtc style), unwrap = no, every = whatever it was set to via -the dump command, precision = 1000, region = none, and -thresh = none. +
The option defaults are
+