2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
<!DOCTYPE html>
<!-- [if IE 8]><html class="no - js lt - ie9" lang="en" > <![endif] -->
<!-- [if gt IE 8]><! --> < html class = "no-js" lang = "en" > <!-- <![endif] -->
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
< title > dump command — LAMMPS 15 May 2015 version documentation< / title >
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
< link rel = "stylesheet" href = "_static/css/theme.css" type = "text/css" / >
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
< link rel = "stylesheet" href = "_static/sphinxcontrib-images/LightBox2/lightbox2/css/lightbox.css" type = "text/css" / >
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
< link rel = "top" title = "LAMMPS 15 May 2015 version documentation" href = "index.html" / >
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
< script src = "_static/js/modernizr.min.js" > < / script >
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
< / head >
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
< body class = "wy-body-for-nav" role = "document" >
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
< div class = "wy-grid-for-nav" >
< nav data-toggle = "wy-nav-shift" class = "wy-nav-side" >
< div class = "wy-side-nav-search" >
< a href = "Manual.html" class = "icon icon-home" > LAMMPS
< / a >
< div role = "search" >
< form id = "rtd-search-form" class = "wy-form" action = "search.html" method = "get" >
< input type = "text" name = "q" placeholder = "Search docs" / >
< input type = "hidden" name = "check_keywords" value = "yes" / >
< input type = "hidden" name = "area" value = "default" / >
< / form >
< / div >
< / div >
< div class = "wy-menu wy-menu-vertical" data-spy = "affix" role = "navigation" aria-label = "main navigation" >
< ul >
< li class = "toctree-l1" > < a class = "reference internal" href = "Section_intro.html" > 1. Introduction< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "Section_start.html" > 2. Getting Started< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "Section_commands.html" > 3. Commands< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "Section_packages.html" > 4. Packages< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "Section_accelerate.html" > 5. Accelerating LAMMPS performance< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "Section_howto.html" > 6. How-to discussions< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "Section_example.html" > 7. Example problems< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "Section_perf.html" > 8. Performance & scalability< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "Section_tools.html" > 9. Additional tools< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "Section_modify.html" > 10. Modifying & extending LAMMPS< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "Section_python.html" > 11. Python interface to LAMMPS< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "Section_errors.html" > 12. Errors< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "Section_history.html" > 13. Future and history< / a > < / li >
< / ul >
< / div >
< / nav >
< section data-toggle = "wy-nav-shift" class = "wy-nav-content-wrap" >
< nav class = "wy-nav-top" role = "navigation" aria-label = "top navigation" >
< i data-toggle = "wy-nav-top" class = "fa fa-bars" > < / i >
< a href = "Manual.html" > LAMMPS< / a >
< / nav >
< div class = "wy-nav-content" >
< div class = "rst-content" >
< div role = "navigation" aria-label = "breadcrumbs navigation" >
< ul class = "wy-breadcrumbs" >
< li > < a href = "Manual.html" > Docs< / a > » < / li >
< li > dump command< / li >
< li class = "wy-breadcrumbs-aside" >
< a href = "http://lammps.sandia.gov" > Website< / a >
< a href = "Section_commands.html#comm" > Commands< / a >
< / li >
< / ul >
< hr / >
< / div >
< div role = "main" class = "document" itemscope = "itemscope" itemtype = "http://schema.org/Article" >
< div itemprop = "articleBody" >
< div class = "section" id = "dump-command" >
< span id = "index-0" > < / span > < h1 > dump command< a class = "headerlink" href = "#dump-command" title = "Permalink to this headline" > ¶< / a > < / h1 >
< / div >
2015-08-19 23:38:41 +08:00
< div class = "section" id = "dump-h5md-command" >
< h1 > < a class = "reference internal" href = "dump_h5md.html" > < em > dump h5md< / em > < / a > command< a class = "headerlink" href = "#dump-h5md-command" title = "Permalink to this headline" > ¶< / a > < / h1 >
< / div >
2015-07-30 22:53:28 +08:00
< div class = "section" id = "dump-image-command" >
< h1 > < a class = "reference internal" href = "dump_image.html" > < em > dump image< / em > < / a > command< a class = "headerlink" href = "#dump-image-command" title = "Permalink to this headline" > ¶< / a > < / h1 >
< / div >
< div class = "section" id = "dump-movie-command" >
< h1 > < a class = "reference internal" href = "dump_image.html" > < em > dump movie< / em > < / a > command< a class = "headerlink" href = "#dump-movie-command" title = "Permalink to this headline" > ¶< / a > < / h1 >
< / div >
< div class = "section" id = "dump-molfile-command" >
< h1 > < a class = "reference internal" href = "dump_molfile.html" > < em > dump molfile< / em > < / a > command< a class = "headerlink" href = "#dump-molfile-command" title = "Permalink to this headline" > ¶< / a > < / h1 >
< div class = "section" id = "syntax" >
< h2 > Syntax< a class = "headerlink" href = "#syntax" title = "Permalink to this headline" > ¶< / a > < / h2 >
< div class = "highlight-python" > < div class = "highlight" > < pre > dump ID group-ID style N file args
< / pre > < / div >
< / div >
< ul class = "simple" >
< li > ID = user-assigned name for the dump< / li >
< li > group-ID = ID of the group of atoms to be dumped< / li >
2015-08-19 23:38:41 +08:00
< li > style = < em > atom< / em > or < em > atom/gz< / em > or < em > atom/mpiio< / em > or < em > cfg< / em > or < em > cfg/gz< / em > or < em > cfg/mpiio< / em > or < em > dcd< / em > or < em > xtc< / em > or < em > xyz< / em > or < em > xyz/gz< / em > or < em > xyz/mpiio< / em > or < em > h5md< / em > or < em > image< / em > or < em > movie< / em > or < em > molfile< / em > or < em > local< / em > or < em > custom< / em > or < em > custom/gz< / em > or < em > custom/mpiio< / em > < / li >
2015-07-30 22:53:28 +08:00
< li > N = dump every this many timesteps< / li >
< li > file = name of file to write dump info to< / li >
< li > args = list of arguments for a particular style< / li >
< / ul >
< pre class = "literal-block" >
< em > atom< / em > args = none
2015-08-19 23:38:41 +08:00
< em > atom/gz< / em > args = none
2015-07-31 00:49:30 +08:00
< em > atom/mpiio< / em > args = none
< em > cfg< / em > args = same as < em > custom< / em > args, see below
2015-08-19 23:38:41 +08:00
< em > cfg/gz< / em > args = same as < em > custom< / em > args, see below
2015-07-31 00:49:30 +08:00
< em > cfg/mpiio< / em > args = same as < em > custom< / em > args, see below
< em > dcd< / em > args = none
< em > xtc< / em > args = none
< em > xyz< / em > args = none
2015-07-30 22:53:28 +08:00
< / pre >
< pre class = "literal-block" >
2015-08-19 23:38:41 +08:00
< em > xyz/gz< / em > args = none
< / pre >
< pre class = "literal-block" >
2015-07-30 22:53:28 +08:00
< em > xyz/mpiio< / em > args = none
< / pre >
< pre class = "literal-block" >
2015-08-19 23:38:41 +08:00
< em > h5md< / em > args = discussed on < a class = "reference internal" href = "dump_h5md.html" > < em > dump h5md< / em > < / a > doc page
< / pre >
< pre class = "literal-block" >
2015-07-30 22:53:28 +08:00
< em > image< / em > args = discussed on < a class = "reference internal" href = "dump_image.html" > < em > dump image< / em > < / a > doc page
< / pre >
< pre class = "literal-block" >
< em > movie< / em > args = discussed on < a class = "reference internal" href = "dump_image.html" > < em > dump image< / em > < / a > doc page
< / pre >
< pre class = "literal-block" >
< em > molfile< / em > args = discussed on < a class = "reference internal" href = "dump_molfile.html" > < em > dump molfile< / em > < / a > doc page
< / pre >
< pre class = "literal-block" >
< em > local< / em > args = list of local attributes
2015-07-31 00:49:30 +08:00
possible attributes = index, c_ID, c_ID[N], f_ID, f_ID[N]
index = enumeration of local values
c_ID = local vector calculated by a compute with ID
c_ID[N] = Nth column of local array calculated by a compute with ID
f_ID = local vector calculated by a fix with ID
f_ID[N] = Nth column of local array calculated by a fix with ID
2015-07-30 22:53:28 +08:00
< / pre >
< pre class = "literal-block" >
2015-08-19 23:38:41 +08:00
< em > custom< / em > or < em > custom/gz< / em > or < em > custom/mpiio< / em > args = list of atom attributes
2015-07-31 00:49:30 +08:00
possible attributes = id, mol, proc, procp1, type, element, mass,
x, y, z, xs, ys, zs, xu, yu, zu,
xsu, ysu, zsu, ix, iy, iz,
vx, vy, vz, fx, fy, fz,
q, mux, muy, muz, mu,
radius, diameter, omegax, omegay, omegaz,
angmomx, angmomy, angmomz, tqx, tqy, tqz,
c_ID, c_ID[N], f_ID, f_ID[N], v_name
2015-07-30 22:53:28 +08:00
< / pre >
< pre class = "literal-block" >
id = atom ID
2015-07-31 00:49:30 +08:00
mol = molecule ID
proc = ID of processor that owns atom
procp1 = ID+1 of processor that owns atom
type = atom type
element = name of atom element, as defined by < a class = "reference internal" href = "dump_modify.html" > < em > dump_modify< / em > < / a > command
mass = atom mass
x,y,z = unscaled atom coordinates
xs,ys,zs = scaled atom coordinates
xu,yu,zu = unwrapped atom coordinates
xsu,ysu,zsu = scaled unwrapped atom coordinates
ix,iy,iz = box image that the atom is in
vx,vy,vz = atom velocities
fx,fy,fz = forces on atoms
q = atom charge
mux,muy,muz = orientation of dipole moment of atom
mu = magnitude of dipole moment of atom
radius,diameter = radius,diameter of spherical particle
omegax,omegay,omegaz = angular velocity of spherical particle
angmomx,angmomy,angmomz = angular momentum of aspherical particle
tqx,tqy,tqz = torque on finite-size particles
c_ID = per-atom vector calculated by a compute with ID
c_ID[N] = Nth column of per-atom array calculated by a compute with ID
f_ID = per-atom vector calculated by a fix with ID
f_ID[N] = Nth column of per-atom array calculated by a fix with ID
v_name = per-atom vector calculated by an atom-style variable with name
d_name = per-atom floating point vector with name, managed by fix property/atom
i_name = per-atom integer vector with name, managed by fix property/atom
2015-07-30 22:53:28 +08:00
< / pre >
< / div >
< div class = "section" id = "examples" >
< h2 > Examples< a class = "headerlink" href = "#examples" title = "Permalink to this headline" > ¶< / a > < / h2 >
< div class = "highlight-python" > < div class = "highlight" > < pre > dump myDump all atom 100 dump.atom
2014-01-23 02:32:56 +08:00
dump myDump all atom/mpiio 100 dump.atom.mpiio
2015-08-19 23:38:41 +08:00
dump myDump all atom/gz 100 dump.atom.gz
2006-09-22 00:22:34 +08:00
dump 2 subgroup atom 50 dump.run.bin
2014-01-23 02:32:56 +08:00
dump 2 subgroup atom 50 dump.run.mpiio.bin
2009-01-06 06:26:31 +08:00
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
2013-11-05 00:59:03 +08:00
dump 2 inner cfg 10 dump.snap.*.cfg mass type xs ys zs vx vy vz
2014-05-03 05:47:08 +08:00
dump snap all cfg 100 dump.config.*.cfg mass type xs ys zs id type c_Stress[2]
2015-07-30 22:53:28 +08:00
dump 1 all xtc 1000 file.xtc
< / pre > < / div >
< / div >
< / div >
< div class = "section" id = "description" >
< h2 > Description< a class = "headerlink" href = "#description" title = "Permalink to this headline" > ¶< / a > < / h2 >
< p > Dump a snapshot of atom quantities to one or more files every N
timesteps in one of several styles. The < em > image< / em > and < em > movie< / em > styles are
the exception: the < em > image< / em > style renders a JPG, PNG, or PPM image file
of the atom configuration every N timesteps while the < em > movie< / em > style
2014-05-03 05:47:08 +08:00
combines and compresses them into a movie file; both are discussed in
2015-07-30 22:53:28 +08:00
detail on the < a class = "reference internal" href = "dump_image.html" > < em > dump image< / em > < / a > doc page. The timesteps on
2014-05-03 05:47:08 +08:00
which dump output is written can also be controlled by a variable.
2015-07-30 22:53:28 +08:00
See the < a class = "reference internal" href = "dump_modify.html" > < em > dump_modify every< / em > < / a > command.< / p >
< p > Only information for atoms in the specified group is dumped. The
< a class = "reference internal" href = "dump_modify.html" > < em > dump_modify thresh and region< / em > < / a > commands can also
2011-04-12 03:49:41 +08:00
alter what atoms are included. Not all styles support all these
2015-07-30 22:53:28 +08:00
options; see details below.< / p >
< p > As described below, the filename determines the kind of output (text
2011-04-12 03:49:41 +08:00
or binary or gzipped, one big file or one per timestep, one big file
2015-07-30 22:53:28 +08:00
or multiple smaller files).< / p >
< div class = "admonition warning" >
< p class = "first admonition-title" > Warning< / p >
< p class = "last" > Because periodic boundary conditions are enforced only
2008-01-03 03:25:15 +08:00
on timesteps when neighbor lists are rebuilt, the coordinates of an
atom written to a dump file may be slightly outside the simulation
2015-07-30 22:53:28 +08:00
box.< / p >
< / div >
< div class = "admonition warning" >
< p class = "first admonition-title" > Warning< / p >
< p class = "last" > Unless the < a class = "reference internal" href = "dump_modify.html" > < em > dump_modify sort< / em > < / a > option
2010-09-16 06:15:54 +08:00
is invoked, the lines of atom information written to dump files
2010-09-03 07:27:22 +08:00
(typically one line per atom) will be in an indeterminate order for
2010-09-16 06:15:54 +08:00
each snapshot. This is even true when running on a single processor,
2015-07-30 22:53:28 +08:00
if the < a class = "reference internal" href = "atom_modify.html" > < em > atom_modify sort< / em > < / a > option is on, which it is
2010-09-16 06:15:54 +08:00
by default. In this case atoms are re-ordered periodically during a
simulation, due to spatial sorting. It is also true when running in
parallel, because data for a single snapshot is collected from
2015-07-30 22:53:28 +08:00
multiple processors, each of which owns a subset of the atoms.< / p >
< / div >
< p > For the < em > atom< / em > , < em > custom< / em > , < em > cfg< / em > , and < em > local< / em > styles, sorting is off by
default. For the < em > dcd< / em > , < em > xtc< / em > , < em > xyz< / em > , and < em > molfile< / em > styles, sorting by
atom ID is on by default. See the < a class = "reference internal" href = "dump_modify.html" > < em > dump_modify< / em > < / a > doc
page for details.< / p >
2015-08-19 23:38:41 +08:00
< p > The < em > atom/gz< / em > , < em > cfg/gz< / em > , < em > custom/gz< / em > , and < em > xyz/gz< / em > styles are identical
in command syntax to the corresponding styles without “ gz” , however,
they generate compressed files using the zlib library. Thus the filename
suffix ” .gz” is mandatory. This is an alternative approach to writing
compressed files via a pipe, as done by the regular dump styles, which
may be required on clusters where the interface to the high-speed network
disallows using the fork() library call (which is needed for a pipe).
For the remainder of this doc page, you should thus consider the < em > atom< / em >
and < em > atom/gz< / em > styles (etc) to be inter-changeable, with the exception
of the required filename suffix.< / p >
2015-07-30 22:53:28 +08:00
< p > As explained below, the < em > atom/mpiio< / em > , < em > cfg/mpiio< / em > , < em > custom/mpiio< / em > , and
< em > xyz/mpiio< / em > styles are identical in command syntax and in the format
2014-11-25 01:10:14 +08:00
of the dump files they create, to the corresponding styles without
2015-07-30 22:53:28 +08:00
“ mpiio” , except the single dump file they produce is written in
2014-11-25 01:10:14 +08:00
parallel via the MPI-IO library. For the remainder of this doc page,
2015-07-30 22:53:28 +08:00
you should thus consider the < em > atom< / em > and < em > atom/mpiio< / em > styles (etc) to
2014-11-25 01:10:14 +08:00
be inter-changeable. The one exception is how the filename is
2015-07-30 22:53:28 +08:00
specified for the MPI-IO styles, as explained below.< / p >
< hr class = "docutils" / >
< p > The < em > style< / em > keyword determines what atom quantities are written to the
2006-09-22 00:22:34 +08:00
file and in what format. Settings made via the
2015-07-30 22:53:28 +08:00
< a class = "reference internal" href = "dump_modify.html" > < em > dump_modify< / em > < / a > command can also alter the format of
individual values and the file itself.< / p >
< p > The < em > atom< / em > , < em > local< / em > , and < em > custom< / em > styles create files in a simple text
2007-04-13 07:23:28 +08:00
format that is self-explanatory when viewing a dump file. Many of the
2015-07-30 22:53:28 +08:00
LAMMPS < a class = "reference internal" href = "Section_tools.html" > < em > post-processing tools< / em > < / a > , including
< a class = "reference external" href = "http://www.sandia.gov/~sjplimp/pizza.html" > Pizza.py< / a > , work with this
format, as does the < a class = "reference internal" href = "rerun.html" > < em > rerun< / em > < / a > command.< / p >
< p > For post-processing purposes the < em > atom< / em > , < em > local< / em > , and < em > custom< / em > text
files are self-describing in the following sense.< / p >
< p > The dimensions of the simulation box are included in each snapshot.
For an orthogonal simulation box this information is is formatted as:< / p >
< div class = "highlight-python" > < div class = "highlight" > < pre > ITEM: BOX BOUNDS xx yy zz
2010-10-12 00:45:51 +08:00
xlo xhi
ylo yhi
2015-07-30 22:53:28 +08:00
zlo zhi
< / pre > < / div >
< / div >
< p > where xlo,xhi are the maximum extents of the simulation box in the
x-dimension, and similarly for y and z. The “ xx yy zz” represent 6
2011-04-12 03:49:41 +08:00
characters that encode the style of boundary for each of the 6
2011-04-14 05:56:07 +08:00
simulation box boundaries (xlo,xhi and ylo,yhi and zlo,zhi). Each of
the 6 characters is either p = periodic, f = fixed, s = shrink wrap,
or m = shrink wrapped with a minimum value. See the
2015-07-30 22:53:28 +08:00
< a class = "reference internal" href = "boundary.html" > < em > boundary< / em > < / a > command for details.< / p >
< p > For triclinic simulation boxes (non-orthogonal), an orthogonal
2010-10-15 07:23:43 +08:00
bounding box which encloses the triclinic simulation box is output,
along with the 3 tilt factors (xy, xz, yz) of the triclinic box,
2015-07-30 22:53:28 +08:00
formatted as follows:< / p >
< div class = "highlight-python" > < div class = "highlight" > < pre > ITEM: BOX BOUNDS xy xz yz xx yy zz
2010-10-12 00:45:51 +08:00
xlo_bound xhi_bound xy
ylo_bound yhi_bound xz
2015-07-30 22:53:28 +08:00
zlo_bound zhi_bound yz
< / pre > < / div >
< / div >
< p > The presence of the text “ xy xz yz” in the ITEM line indicates that
2011-04-14 05:56:07 +08:00
the 3 tilt factors will be included on each of the 3 following lines.
This bounding box is convenient for many visualization programs. The
2015-07-30 22:53:28 +08:00
meaning of the 6 character flags for “ xx yy zz” is the same as above.< / p >
< p > Note that the first two numbers on each line are now xlo_bound instead
of xlo, etc, since they repesent a bounding box. See < a class = "reference internal" href = "Section_howto.html#howto-12" > < span > this section< / span > < / a > of the doc pages for a geometric
2011-04-14 05:56:07 +08:00
description of triclinic boxes, as defined by LAMMPS, simple formulas
for how the 6 bounding box extents (xlo_bound,xhi_bound,etc) are
calculated from the triclinic parameters, and how to transform those
2015-07-30 22:53:28 +08:00
parameters to and from other commonly used triclinic representations.< / p >
< p > The “ ITEM: ATOMS” line in each snapshot lists column descriptors for
2010-10-12 00:45:51 +08:00
the per-atom lines that follow. For example, the descriptors would be
2015-07-30 22:53:28 +08:00
“ id type xs ys zs” for the default < em > atom< / em > style, and would be the atom
attributes you specify in the dump command for the < em > custom< / em > style.< / p >
< p > For style < em > atom< / em > , atom coordinates are written to the file, along with
2006-09-22 00:22:34 +08:00
the atom ID and atom type. By default, atom coords are written in a
scaled format (from 0 to 1). I.e. an x value of 0.25 means the atom
is at a location 1/4 of the distance from xlo to xhi of the box
boundaries. The format can be changed to unscaled coords via the
2015-07-30 22:53:28 +08:00
< a class = "reference internal" href = "dump_modify.html" > < em > dump_modify< / em > < / a > settings. Image flags can also be
added for each atom via dump_modify.< / p >
< p > Style < em > custom< / em > allows you to specify a list of atom attributes to be
2006-09-22 00:22:34 +08:00
written to the dump file for each atom. Possible attributes are
2007-12-14 02:16:20 +08:00
listed above and will appear in the order specified. You cannot
specify a quantity that is not defined for a particular simulation -
2015-07-30 22:53:28 +08:00
such as < em > q< / em > for atom style < em > bond< / em > , since that atom style doesn’ t
2006-09-22 00:22:34 +08:00
assign charges. Dumps occur at the very end of a timestep, so atom
attributes will include effects due to fixes that are applied during
2009-12-18 07:33:42 +08:00
the timestep. An explanation of the possible dump custom attributes
2015-07-30 22:53:28 +08:00
is given below.< / p >
< p > For style < em > local< / em > , local output generated by < a class = "reference internal" href = "compute.html" > < em > computes< / em > < / a >
and < a class = "reference internal" href = "fix.html" > < em > fixes< / em > < / a > is used to generate lines of output that is
2009-12-18 07:33:42 +08:00
written to the dump file. This local data is typically calculated by
each processor based on the atoms it owns, but there may be zero or
more entities per atom, e.g. a list of bond distances. An explanation
of the possible dump local attributes is given below. Note that by
2015-07-30 22:53:28 +08:00
using input from the < a class = "reference internal" href = "compute_property_local.html" > < em > compute property/local< / em > < / a > command with dump local,
2009-12-18 07:33:42 +08:00
it is possible to generate information on bonds, angles, etc that can
be cut and pasted directly into a data file read by the
2015-07-30 22:53:28 +08:00
< a class = "reference internal" href = "read_data.html" > < em > read_data< / em > < / a > command.< / p >
< p > Style < em > cfg< / em > has the same command syntax as style < em > custom< / em > and writes
2009-09-03 00:20:52 +08:00
extended CFG format files, as used by the
2015-07-30 22:53:28 +08:00
< a class = "reference external" href = "http://mt.seas.upenn.edu/Archive/Graphics/A" > AtomEye< / a > visualization
2009-09-03 00:20:52 +08:00
package. Since the extended CFG format uses a single snapshot of the
2015-07-30 22:53:28 +08:00
system per file, a wildcard “ *” must be included in the filename, as
discussed below. The list of atom attributes for style < em > cfg< / em > must
begin with either “ mass type xs ys zs” or “ mass type xsu ysu zsu”
2013-11-09 06:12:10 +08:00
since these quantities are needed to write the CFG files in the
2015-07-30 22:53:28 +08:00
appropriate format (though the “ mass” and “ type” fields do not appear
2013-11-09 06:12:10 +08:00
explicitly in the file). Any remaining attributes will be stored as
2015-07-30 22:53:28 +08:00
“ auxiliary properties” in the CFG files. Note that you will typically
want to use the < a class = "reference internal" href = "dump_modify.html" > < em > dump_modify element< / em > < / a > command with
2013-11-09 06:12:10 +08:00
CFG-formatted files, to associate element names with atom types, so
that AtomEye can render atoms appropriately. When unwrapped
2015-07-30 22:53:28 +08:00
coordinates < em > xsu< / em > , < em > ysu< / em > , and < em > zsu< / em > are requested, the nominal AtomEye
2013-11-09 06:12:10 +08:00
periodic cell dimensions are expanded by a large factor UNWRAPEXPAND =
10.0, which ensures atoms that are displayed correctly for up to
UNWRAPEXPAND/2 periodic boundary crossings in any direction. Beyond
this, AtomEye will rewrap the unwrapped coordinates. The expansion
causes the atoms to be drawn farther away from the viewer, but it is
easy to zoom the atoms closer, and the interatomic distances are
2015-07-30 22:53:28 +08:00
unaffected.< / p >
< p > The < em > dcd< / em > style writes DCD files, a standard atomic trajectory format
2006-09-22 00:22:34 +08:00
used by the CHARMM, NAMD, and XPlor molecular dynamics packages. DCD
files are binary and thus may not be portable to different machines.
2015-07-30 22:53:28 +08:00
The number of atoms per snapshot cannot change with the < em > dcd< / em > style.
The < em > unwrap< / em > option of the < a class = "reference internal" href = "dump_modify.html" > < em > dump_modify< / em > < / a > command
allows DCD coordinates to be written “ unwrapped” by the image flags
2010-10-06 23:58:26 +08:00
for each atom. Unwrapped means that if the atom has passed through
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
2015-07-30 22:53:28 +08:00
the box size stored with the snapshot.< / p >
< p > The < em > xtc< / em > style writes XTC files, a compressed trajectory format used
2007-02-23 00:52:24 +08:00
by the GROMACS molecular dynamics package, and described
2015-07-30 22:53:28 +08:00
< a class = "reference external" href = "http://manual.gromacs.org/current/online/xtc.html" > here< / a > .
2008-01-18 02:29:47 +08:00
The precision used in XTC files can be adjusted via the
2015-07-30 22:53:28 +08:00
< a class = "reference internal" href = "dump_modify.html" > < em > dump_modify< / em > < / a > command. The default value of 1000
2008-01-18 02:29:47 +08:00
means that coordinates are stored to 1/1000 nanometer accuracy. XTC
2015-07-30 22:53:28 +08:00
files are portable binary files written in the NFS XDR data format,
so that any machine which supports XDR should be able to read them.
The number of atoms per snapshot cannot change with the < em > xtc< / em > style.
The < em > unwrap< / em > option of the < a class = "reference internal" href = "dump_modify.html" > < em > dump_modify< / em > < / a > command allows
XTC coordinates to be written “ unwrapped” by the image flags for each
2010-09-16 06:15:54 +08:00
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
2015-07-30 22:53:28 +08:00
stored with the snapshot.< / p >
< p > The < em > xyz< / em > style writes XYZ files, which is a simple text-based
2012-05-23 23:52:08 +08:00
coordinate format that many codes can read. Specifically it has
a line with the number of atoms, then a comment line that is
usually ignored followed by one line per atom with the atom type
and the x-, y-, and z-coordinate of that atom. You can use the
2015-07-30 22:53:28 +08:00
< a class = "reference internal" href = "dump_modify.html" > < em > dump_modify element< / em > < / a > option to change the output
2012-05-23 23:52:08 +08:00
from using the (numerical) atom type to an element name (or some
other label). This will help many visualization programs to guess
2015-07-30 22:53:28 +08:00
bonds and colors.< / p >
< p > Note that < em > atom< / em > , < em > custom< / em > , < em > dcd< / em > , < em > xtc< / em > , and < em > xyz< / em > style dump files
can be read directly by < a class = "reference external" href = "http://www.ks.uiuc.edu/Research/vmd" > VMD< / a > , a
popular molecular viewing program. See < a class = "reference internal" href = "Section_tools.html#vmd" > < span > Section tools< / span > < / a > of the manual and the
2013-11-20 23:14:48 +08:00
tools/lmp2vmd/README.txt file for more information about support in
2015-07-30 22:53:28 +08:00
VMD for reading and visualizing LAMMPS dump files.< / p >
< hr class = "docutils" / >
< p > Dumps are performed on timesteps that are a multiple of N (including
2006-12-16 06:53:57 +08:00
timestep 0) and on the last timestep of a minimization if the
2010-03-03 06:52:34 +08:00
minimization converges. Note that this means a dump will not be
performed on the initial timestep after the dump command is invoked,
if the current timestep is not a multiple of N. This behavior can be
2015-07-30 22:53:28 +08:00
changed via the < a class = "reference internal" href = "dump_modify.html" > < em > dump_modify first< / em > < / a > command, which
2012-11-10 09:17:45 +08:00
can also be useful if the dump command is invoked after a minimization
2010-03-03 06:52:34 +08:00
ended on an arbitrary timestep. N can be changed between runs by
2015-07-30 22:53:28 +08:00
using the < a class = "reference internal" href = "dump_modify.html" > < em > dump_modify every< / em > < / a > command (not allowed
for < em > dcd< / em > style). The < a class = "reference internal" href = "dump_modify.html" > < em > dump_modify every< / em > < / a > command
2012-06-08 07:52:27 +08:00
also allows a variable to be used to determine the sequence of
2012-11-10 09:17:45 +08:00
timesteps on which dump files are written. In this mode a dump on the
first timestep of a run will also not be written unless the
2015-07-30 22:53:28 +08:00
< a class = "reference internal" href = "dump_modify.html" > < em > dump_modify first< / em > < / a > command is used.< / p >
< p > The specified filename determines how the dump file(s) is written.
2006-09-22 00:22:34 +08:00
The default is to write one large text file, which is opened when the
2015-07-30 22:53:28 +08:00
dump command is invoked and closed when an < a class = "reference internal" href = "undump.html" > < em > undump< / em > < / a >
command is used or when LAMMPS exits. For the < em > dcd< / em > and < em > xtc< / em > styles,
this is a single large binary file.< / p >
< p > Dump filenames can contain two wildcard characters. If a “ *”
2006-09-22 00:22:34 +08:00
character appears in the filename, then one file per snapshot is
2015-07-30 22:53:28 +08:00
written and the “ *” character is replaced with the timestep value.
2006-09-22 00:22:34 +08:00
For example, tmp.dump.* becomes tmp.dump.0, tmp.dump.10000,
2015-07-30 22:53:28 +08:00
tmp.dump.20000, etc. This option is not available for the < em > dcd< / em > and
< em > xtc< / em > styles. Note that the < a class = "reference internal" href = "dump_modify.html" > < em > dump_modify pad< / em > < / a >
2011-04-12 03:49:41 +08:00
command can be used to insure all timestep numbers are the same length
(e.g. 00010), which can make it easier to read a series of dump files
2015-07-30 22:53:28 +08:00
in order with some post-processing tools.< / p >
< p > If a “ %” character appears in the filename, then each of P processors
writes a portion of the dump file, and the “ %” character is replaced
2013-04-02 23:15:35 +08:00
with the processor ID from 0 to P-1. For example, tmp.dump.% becomes
2006-09-22 00:22:34 +08:00
tmp.dump.0, tmp.dump.1, ... tmp.dump.P-1, etc. This creates smaller
files and can be a fast mode of output on parallel machines that
support parallel I/O for output. This option is not available for the
2015-07-30 22:53:28 +08:00
< em > dcd< / em > , < em > xtc< / em > , and < em > xyz< / em > styles.< / p >
< p > By default, P = the number of processors meaning one file per
processor, but P can be set to a smaller value via the < em > nfile< / em > or
< em > fileper< / em > keywords of the < a class = "reference internal" href = "dump_modify.html" > < em > dump_modify< / em > < / a > command.
2013-04-02 23:15:35 +08:00
These options can be the most efficient way of writing out dump files
2015-07-30 22:53:28 +08:00
when running on large numbers of processors.< / p >
< p > Note that using the “ *” and “ %” characters together can produce a
large number of small dump files!< / p >
< p > For the < em > atom/mpiio< / em > , < em > cfg/mpiio< / em > , < em > custom/mpiio< / em > , and < em > xyz/mpiio< / em >
2014-11-25 01:10:14 +08:00
styles, a single dump file is written in parallel via the MPI-IO
library, which is part of the MPI standard for versions 2.0 and above.
Using MPI-IO requires two steps. First, build LAMMPS with its MPIIO
2015-07-30 22:53:28 +08:00
package installed, e.g.< / p >
< div class = "highlight-python" > < div class = "highlight" > < pre > make yes-mpiio # installs the MPIIO package
make g++ # build LAMMPS for your platform
< / pre > < / div >
< / div >
< p > Second, use a dump filename which contains ” .mpiio” . Note that it
does not have to end in ” .mpiio” , just contain those characters.
2014-01-23 02:32:56 +08:00
Unlike MPI-IO restart files, which must be both written and read using
MPI-IO, the dump files produced by these MPI-IO styles are identical
in format to the files produced by their non-MPI-IO style
counterparts. This means you can write a dump file using MPI-IO and
2015-07-30 22:53:28 +08:00
use the < a class = "reference internal" href = "read_dump.html" > < em > read_dump< / em > < / a > command or perform other
2014-01-23 02:32:56 +08:00
post-processing, just as if the dump file was not written using
2015-07-30 22:53:28 +08:00
MPI-IO.< / p >
< p > Note that MPI-IO dump files are one large file which all processors
write to. You thus cannot use the “ %” wildcard character described
2014-01-23 02:32:56 +08:00
above in the filename since that specifies generation of multiple
2015-07-30 22:53:28 +08:00
files. You can use the ” .bin” suffix described below in an MPI-IO
2014-01-23 02:32:56 +08:00
dump file; again this file will be written in parallel and have the
2015-07-30 22:53:28 +08:00
same binary format as if it were written without MPI-IO.< / p >
< p > If the filename ends with ” .bin” , the dump file (or files, if “ *” or
“ %” is also used) is written in binary format. A binary dump file
2006-09-22 00:22:34 +08:00
will be about the same size as a text version, but will typically
write out much faster. Of course, when post-processing, you will need
2015-07-30 22:53:28 +08:00
to convert it back to text format (see the < a class = "reference internal" href = "Section_tools.html#binary" > < span > binary2txt tool< / span > < / a > ) or write your own code to read the
2006-09-22 00:22:34 +08:00
binary file. The format of the binary file can be understood by
looking at the tools/binary2txt.cpp file. This option is only
2015-07-30 22:53:28 +08:00
available for the < em > atom< / em > and < em > custom< / em > styles.< / p >
< p > If the filename ends with ” .gz” , the dump file (or files, if “ *” or “ %”
2006-09-22 00:22:34 +08:00
is also used) is written in gzipped format. A gzipped dump file will
be about 3x smaller than the text version, but will also take longer
2015-07-30 22:53:28 +08:00
to write. This option is not available for the < em > dcd< / em > and < em > xtc< / em >
styles.< / p >
< hr class = "docutils" / >
< p > This section explains the local attributes that can be specified as
part of the < em > local< / em > style.< / p >
< p > The < em > index< / em > attribute can be used to generate an index number from 1
2009-12-18 07:33:42 +08:00
to N for each line written into the dump file, where N is the total
number of local datums from all processors, or lines of output that
will appear in the snapshot. Note that because data from different
processors depend on what atoms they currently own, and atoms migrate
between processor, there is no guarantee that the same index will be
used for the same info (e.g. a particular bond) in successive
2015-07-30 22:53:28 +08:00
snapshots.< / p >
< p > The < em > c_ID< / em > and < em > c_ID[N]< / em > attributes allow local vectors or arrays
calculated by a < a class = "reference internal" href = "compute.html" > < em > compute< / em > < / a > to be output. The ID in the
2009-12-18 07:33:42 +08:00
attribute should be replaced by the actual ID of the compute that has
been defined previously in the input script. See the
2015-07-30 22:53:28 +08:00
< a class = "reference internal" href = "compute.html" > < em > compute< / em > < / a > command for details. There are computes for
2009-12-18 07:33:42 +08:00
calculating local information such as indices, types, and energies for
2015-07-30 22:53:28 +08:00
bonds and angles.< / p >
< p > Note that computes which calculate global or per-atom quantities, as
2009-12-18 07:33:42 +08:00
opposed to local quantities, cannot be output in a dump local command.
2015-07-30 22:53:28 +08:00
Instead, global quantities can be output by the < a class = "reference internal" href = "thermo_style.html" > < em > thermo_style custom< / em > < / a > command, and per-atom quantities can be
output by the dump custom command.< / p >
< p > If < em > c_ID< / em > is used as a attribute, then the local vector calculated by
the compute is printed. If < em > c_ID[N]< / em > is used, then N must be in the
2009-12-18 07:33:42 +08:00
range from 1-M, which will print the Nth column of the M-length local
2015-07-30 22:53:28 +08:00
array calculated by the compute.< / p >
< p > The < em > f_ID< / em > and < em > f_ID[N]< / em > attributes allow local vectors or arrays
calculated by a < a class = "reference internal" href = "fix.html" > < em > fix< / em > < / a > to be output. The ID in the attribute
2009-12-18 07:33:42 +08:00
should be replaced by the actual ID of the fix that has been defined
2015-07-30 22:53:28 +08:00
previously in the input script.< / p >
< p > If < em > f_ID< / em > is used as a attribute, then the local vector calculated by
the fix is printed. If < em > f_ID[N]< / em > is used, then N must be in the
2009-12-18 07:33:42 +08:00
range from 1-M, which will print the Nth column of the M-length local
2015-07-30 22:53:28 +08:00
array calculated by the fix.< / p >
< p > Here is an example of how to dump bond info for a system,
including the distance and energy of each bond:< / p >
< div class = "highlight-python" > < div class = "highlight" > < pre > compute 1 all property/local batom1 batom2 btype
2011-12-22 23:33:47 +08:00
compute 2 all bond/local dist eng
2015-07-30 22:53:28 +08:00
dump 1 all local 1000 tmp.dump index c_1[1] c_1[2] c_1[3] c_2[1] c_2[2]
< / pre > < / div >
< / div >
< hr class = "docutils" / >
< p > This section explains the atom attributes that can be specified as
part of the < em > custom< / em > and < em > cfg< / em > styles.< / p >
< p > The < em > id< / em > , < em > mol< / em > , < em > proc< / em > , < em > procp1< / em > , < em > type< / em > , < em > element< / em > , < em > mass< / em > , < em > vx< / em > ,
< em > vy< / em > , < em > vz< / em > , < em > fx< / em > , < em > fy< / em > , < em > fz< / em > , < em > q< / em > attributes are self-explanatory.< / p >
< p > < em > Id< / em > is the atom ID. < em > Mol< / em > is the molecule ID, included in the data
file for molecular systems. < em > Proc< / em > is the ID of the processor (0 to
Nprocs-1) that currently owns the atom. < em > Procp1< / em > is the proc ID+1,
which can be convenient in place of a < em > type< / em > attribute (1 to Ntypes)
for coloring atoms in a visualization program. < em > Type< / em > is the atom
type (1 to Ntypes). < em > Element< / em > is typically the chemical name of an
element, which you must assign to each type via the < a class = "reference internal" href = "dump_modify.html" > < em > dump_modify element< / em > < / a > command. More generally, it can be any
string you wish to associated with an atom type. < em > Mass< / em > is the atom
mass. < em > Vx< / em > , < em > vy< / em > , < em > vz< / em > , < em > fx< / em > , < em > fy< / em > , < em > fz< / em > , and < em > q< / em > are components of
atom velocity and force and atomic charge.< / p >
< p > There are several options for outputting atom coordinates. The < em > x< / em > ,
< em > y< / em > , < em > z< / em > attributes write atom coordinates “ unscaled” , in the
appropriate distance < a class = "reference internal" href = "units.html" > < em > units< / em > < / a > (Angstroms, sigma, etc). Use
< em > xs< / em > , < em > ys< / em > , < em > zs< / em > if you want the coordinates “ scaled” to the box size,
2011-04-30 07:38:34 +08:00
so that each value is 0.0 to 1.0. If the simulation box is triclinic
2009-01-13 23:40:11 +08:00
(tilted), then all atom coords will still be between 0.0 and 1.0. Use
2015-07-30 22:53:28 +08:00
< em > xu< / em > , < em > yu< / em > , < em > zu< / em > if you want the coordinates “ unwrapped” by the image
2009-01-13 23:40:11 +08:00
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
2015-07-30 22:53:28 +08:00
periodic box. Note that using < em > xu< / em > , < em > yu< / em > , < em > zu< / em > means that the
2009-03-18 00:11:05 +08:00
coordinate values may be far outside the box bounds printed with the
2015-07-30 22:53:28 +08:00
snapshot. Using < em > xsu< / em > , < em > ysu< / em > , < em > zsu< / em > is similar to using < em > xu< / em > , < em > yu< / em > , < em > zu< / em > ,
2011-04-30 07:38:34 +08:00
except that the unwrapped coordinates are scaled by the box size. Atoms
that have passed through a periodic boundary will have the corresponding
2015-07-30 22:53:28 +08:00
cooordinate increased or decreased by 1.0.< / p >
< p > The image flags can be printed directly using the < em > ix< / em > , < em > iy< / em > , < em > iz< / em >
2013-07-31 05:01:14 +08:00
attributes. For periodic dimensions, they specify which image of the
simulation box the atom is considered to be in. An image of 0 means
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
2015-07-30 22:53:28 +08:00
periodic boundaries during the simulation.< / p >
< p > The < em > mux< / em > , < em > muy< / em > , < em > muz< / em > attributes are specific to dipolar systems
defined with an atom style of < em > dipole< / em > . They give the orientation of
the atom’ s point dipole moment. The < em > mu< / em > attribute gives the
magnitude of the atom’ s dipole moment.< / p >
< p > The < em > radius< / em > and < em > diameter< / em > attributes are specific to spherical
2013-02-01 08:24:05 +08:00
particles that have a finite size, such as those defined with an atom
2015-07-30 22:53:28 +08:00
style of < em > sphere< / em > .< / p >
< p > The < em > omegax< / em > , < em > omegay< / em > , and < em > omegaz< / em > attributes are specific to
2013-02-01 08:24:05 +08:00
finite-size spherical particles that have an angular velocity. Only
2015-07-30 22:53:28 +08:00
certain atom styles, such as < em > sphere< / em > define this quantity.< / p >
< p > The < em > angmomx< / em > , < em > angmomy< / em > , and < em > angmomz< / em > attributes are specific to
2013-02-01 08:24:05 +08:00
finite-size aspherical particles that have an angular momentum. Only
2015-07-30 22:53:28 +08:00
the < em > ellipsoid< / em > atom style defines this quantity.< / p >
< p > The < em > tqx< / em > , < em > tqy< / em > , < em > tqz< / em > attributes are for finite-size particles that
2013-02-01 08:24:05 +08:00
can sustain a rotational torque due to interactions with other
2015-07-30 22:53:28 +08:00
particles.< / p >
< p > The < em > c_ID< / em > and < em > c_ID[N]< / em > attributes allow per-atom vectors or arrays
calculated by a < a class = "reference internal" href = "compute.html" > < em > compute< / em > < / a > to be output. The ID in the
2009-12-18 07:33:42 +08:00
attribute should be replaced by the actual ID of the compute that has
been defined previously in the input script. See the
2015-07-30 22:53:28 +08:00
< a class = "reference internal" href = "compute.html" > < em > compute< / em > < / a > command for details. There are computes for
2009-12-18 07:33:42 +08:00
calculating the per-atom energy, stress, centro-symmetry parameter,
2015-07-30 22:53:28 +08:00
and coordination number of individual atoms.< / p >
< p > Note that computes which calculate global or local quantities, as
2009-12-18 07:33:42 +08:00
opposed to per-atom quantities, cannot be output in a dump custom
command. Instead, global quantities can be output by the
2015-07-30 22:53:28 +08:00
< a class = "reference internal" href = "thermo_style.html" > < em > thermo_style custom< / em > < / a > command, and local quantities
can be output by the dump local command.< / p >
< p > If < em > c_ID< / em > is used as a attribute, then the per-atom vector calculated
by the compute is printed. If < em > c_ID[N]< / em > is used, then N must be in
2009-12-18 07:33:42 +08:00
the range from 1-M, which will print the Nth column of the M-length
2015-07-30 22:53:28 +08:00
per-atom array calculated by the compute.< / p >
< p > The < em > f_ID< / em > and < em > f_ID[N]< / em > attributes allow vector or array per-atom
quantities calculated by a < a class = "reference internal" href = "fix.html" > < em > fix< / em > < / a > to be output. The ID in the
2009-12-18 07:33:42 +08:00
attribute should be replaced by the actual ID of the fix that has been
2015-07-30 22:53:28 +08:00
defined previously in the input script. The < a class = "reference internal" href = "fix_ave_atom.html" > < em > fix ave/atom< / em > < / a > command is one that calculates per-atom
2008-01-04 07:28:08 +08:00
quantities. Since it can time-average per-atom quantities produced by
2015-07-30 22:53:28 +08:00
any < a class = "reference internal" href = "compute.html" > < em > compute< / em > < / a > , < a class = "reference internal" href = "fix.html" > < em > fix< / em > < / a > , or atom-style
< a class = "reference internal" href = "variable.html" > < em > variable< / em > < / a > , this allows those time-averaged results to
be written to a dump file.< / p >
< p > If < em > f_ID< / em > is used as a attribute, then the per-atom vector calculated
by the fix is printed. If < em > f_ID[N]< / em > is used, then N must be in the
2009-12-18 07:33:42 +08:00
range from 1-M, which will print the Nth column of the M-length
2015-07-30 22:53:28 +08:00
per-atom array calculated by the fix.< / p >
< p > The < em > v_name< / em > attribute allows per-atom vectors calculated by a
< a class = "reference internal" href = "variable.html" > < em > variable< / em > < / a > to be output. The name in the attribute
2009-12-18 07:33:42 +08:00
should be replaced by the actual name of the variable that has been
defined previously in the input script. Only an atom-style variable
can be referenced, since it is the only style that generates per-atom
2015-07-30 22:53:28 +08:00
values. Variables of style < em > atom< / em > can reference individual atom
2009-12-18 07:33:42 +08:00
attributes, per-atom atom attributes, thermodynamic keywords, or
invoke other computes, fixes, or variables when they are evaluated, so
this is a very general means of creating quantities to output to a
2015-07-30 22:53:28 +08:00
dump file.< / p >
< p > The < em > d_name< / em > and < em > i_name< / em > attributes allow to output custom per atom
2014-07-30 23:05:17 +08:00
floating point or integer properties that are managed by
2015-07-30 22:53:28 +08:00
< a class = "reference internal" href = "fix_property_atom.html" > < em > fix property/atom< / em > < / a > .< / p >
< p > See < a class = "reference internal" href = "Section_modify.html" > < em > Section_modify< / em > < / a > of the manual for information
2008-01-03 03:25:15 +08:00
on how to add new compute and fix styles to LAMMPS to calculate
2015-07-30 22:53:28 +08:00
per-atom quantities which could then be output into dump files.< / p >
< / div >
< hr class = "docutils" / >
< div class = "section" id = "restrictions" >
< h2 > Restrictions< a class = "headerlink" href = "#restrictions" title = "Permalink to this headline" > ¶< / a > < / h2 >
2015-08-19 23:38:41 +08:00
< p > To write gzipped dump files, you must either compile LAMMPS with the
-DLAMMPS_GZIP option or use the styles from the COMPRESS package
- see the < a class = "reference internal" href = "Section_start.html#start-2" > < span > Making LAMMPS< / span > < / a > section of
the documentation.< / p >
< p > The < em > atom/gz< / em > , < em > cfg/gz< / em > , < em > custom/gz< / em > , and < em > xyz/gz< / em > styles are part
of the COMPRESS package. They are only enabled if LAMMPS was built
with that package. See the < a class = "reference internal" href = "Section_start.html#start-3" > < span > Making LAMMPS< / span > < / a > section for more info.< / p >
2015-07-30 22:53:28 +08:00
< p > The < em > atom/mpiio< / em > , < em > cfg/mpiio< / em > , < em > custom/mpiio< / em > , and < em > xyz/mpiio< / em > styles
2014-11-25 01:10:14 +08:00
are part of the MPIIO package. They are only enabled if LAMMPS was
2015-07-30 22:53:28 +08:00
built with that package. See the < a class = "reference internal" href = "Section_start.html#start-3" > < span > Making LAMMPS< / span > < / a > section for more info.< / p >
< p > The < em > xtc< / em > style is part of the XTC package. It is only enabled if
LAMMPS was built with that package. See the < a class = "reference internal" href = "Section_start.html#start-3" > < span > Making LAMMPS< / span > < / a > section for more info. This is
2011-08-26 00:46:23 +08:00
because some machines may not support the low-level XDR data format
that XTC files are written with, which will result in a compile-time
error when a low-level include file is not found. Putting this style
in a package makes it easy to exclude from a LAMMPS build for those
machines. However, the XTC package also includes two compatibility
header files and associated functions, which should be a suitable
substitute on machines that do not have the appropriate native header
files. This option can be invoked at build time by adding
-DLAMMPS_XDR to the CCFLAGS variable in the appropriate low-level
Makefile, e.g. src/MAKE/Makefile.foo. This compatibility mode has
been tested successfully on Cray XT3/XT4/XT5 and IBM BlueGene/L
machines and should also work on IBM BG/P, and Windows XP/Vista/7
2015-07-30 22:53:28 +08:00
machines.< / p >
< / div >
< div class = "section" id = "related-commands" >
< h2 > Related commands< a class = "headerlink" href = "#related-commands" title = "Permalink to this headline" > ¶< / a > < / h2 >
2015-08-19 23:38:41 +08:00
< p > < a class = "reference internal" href = "dump_h5md.html" > < em > dump h5md< / em > < / a > , < a class = "reference internal" href = "dump_image.html" > < em > dump image< / em > < / a > ,
< a class = "reference internal" href = "dump_molfile.html" > < em > dump molfile< / em > < / a > , < a class = "reference internal" href = "dump_modify.html" > < em > dump_modify< / em > < / a > ,
2015-07-30 22:53:28 +08:00
< a class = "reference internal" href = "undump.html" > < em > undump< / em > < / a > < / p >
< / div >
< div class = "section" id = "default" >
< h2 > Default< a class = "headerlink" href = "#default" title = "Permalink to this headline" > ¶< / a > < / h2 >
< p > The defaults for the < em > image< / em > and < em > movie< / em > styles are listed on the
< a class = "reference internal" href = "dump_image.html" > < em > dump image< / em > < / a > doc page.< / p >
< / div >
< / div >
< / div >
< / div >
< footer >
< hr / >
< div role = "contentinfo" >
< p >
© Copyright .
< / p >
< / div >
Built with < a href = "http://sphinx-doc.org/" > Sphinx< / a > using a < a href = "https://github.com/snide/sphinx_rtd_theme" > theme< / a > provided by < a href = "https://readthedocs.org" > Read the Docs< / a > .
< / footer >
< / div >
< / div >
< / section >
< / div >
< script type = "text/javascript" >
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'15 May 2015 version',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
};
< / script >
< script type = "text/javascript" src = "_static/jquery.js" > < / script >
< script type = "text/javascript" src = "_static/underscore.js" > < / script >
< script type = "text/javascript" src = "_static/doctools.js" > < / script >
< script type = "text/javascript" src = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" > < / script >
< script type = "text/javascript" src = "_static/sphinxcontrib-images/LightBox2/lightbox2/js/jquery-1.11.0.min.js" > < / script >
< script type = "text/javascript" src = "_static/sphinxcontrib-images/LightBox2/lightbox2/js/lightbox.min.js" > < / script >
< script type = "text/javascript" src = "_static/sphinxcontrib-images/LightBox2/lightbox2-customize/jquery-noconflict.js" > < / script >
< script type = "text/javascript" src = "_static/js/theme.js" > < / script >
< script type = "text/javascript" >
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
});
< / script >
< / body >
< / html >