<li><pclass="first">ID = user-assigned name for the dump</p>
</li>
<li><pclass="first">group-ID = ID of the group of atoms to be imaged</p>
</li>
<li><pclass="first">h5md = style of dump command (other styles <em>atom</em> or <em>cfg</em> or <em>dcd</em> or <em>xtc</em> or <em>xyz</em> or <em>local</em> or <em>custom</em> are discussed on the <aclass="reference internal"href="dump.html"><spanclass="doc">dump</span></a> doc page)</p>
</li>
<li><pclass="first">N = dump every this many timesteps</p>
</li>
<li><pclass="first">file.h5 = name of file to write to</p>
</li>
<li><pclass="first">args = list of data elements to dump, with their dump “subintervals”.
At least one element must be given and image may only be present if
position is specified first.</p>
<preclass="literal-block">
position options
image
velocity options
force options
species options
file_from ID: do not open a new file, re-use the already opened file from dump ID
box value = <em>yes</em> or <em>no</em>
create_group value = <em>yes</em> or <em>no</em>
author value = quoted string
</pre>
<p>For the elements <em>position</em>, <em>velocity</em>, <em>force</em> and <em>species</em>, one
may specify a sub-interval to write the data only every N_element
iterations of the dump (i.e. every N*N_element time steps). This is
specified by the option</p>
<preclass="literal-block">
every N_element
</pre>
<p>that follows directly the element declaration.</p>
</li>
</ul>
</div>
<divclass="section"id="examples">
<h2>Examples</h2>
<preclass="literal-block">
dump h5md1 all h5md 100 dump_h5md.h5 position image
dump h5md1 all h5md 100 dump_h5md.h5 position velocity every 10
dump h5md1 all h5md 100 dump_h5md.h5 velocity author "John Doe"
</pre>
</div>
<divclass="section"id="description">
<h2>Description</h2>
<p>Dump a snapshot of atom coordinates every N timesteps in the
<aclass="reference external"href="HDF5_ws">HDF5</a> based <aclass="reference external"href="http://nongnu.org/h5md/">H5MD</a> file format <aclass="reference internal"href="#h5md-cpc"><spanclass="std std-ref">(de Buyl)</span></a>.
HDF5 files are binary, portable and self-describing. This dump style
will write only one file, on the root node.</p>
<p>Several dumps may write to the same file, by using file_from and
referring to a previously defined dump. Several groups may also be
stored within the same file by defining several dumps. A dump that
refers (via <em>file_from</em>) to an already open dump ID and that concerns
another particle group must specify <em>create_group yes</em>.</p>
<p>Each data element is written every N*N_element steps. For <em>image</em>, no
subinterval is needed as it must be present at the same interval as
<em>position</em>. <em>image</em> must be given after <em>position</em> in any case. The
box information (edges in each dimension) is stored at the same
interval than the <em>position</em> element, if present. Else it is stored
every N steps.</p>
<divclass="admonition note">
<pclass="first admonition-title">Note</p>
<pclass="last">Because periodic boundary conditions are enforced only on
timesteps when neighbor lists are rebuilt, the coordinates of an atom
written to a dump file may be slightly outside the simulation box.</p>
</div>
<p><strong>Use from write_dump:</strong></p>
<p>It is possible to use this dump style with the
<aclass="reference internal"href="write_dump.html"><spanclass="doc">write_dump</span></a> command. In this case, the subintervals
must not be set at all. The write_dump command can be used either to
create a new file or to add current data to an existing dump file by
using the <em>file_from</em> keyword.</p>
<p>Typically, the <em>species</em> data is fixed. The following two commands
store the position data every 100 timesteps, with the image data, and
store once the species data in the same file.</p>
<preclass="literal-block">
dump h5md1 all h5md 100 dump.h5 position image
write_dump all h5md dump.h5 file_from h5md1 species
</pre>
</div>
<hrclass="docutils"/>
<divclass="section"id="restrictions">
<h2>Restrictions</h2>
<p>The number of atoms per snapshot cannot change with the h5md style.
The position data is stored wrapped (box boundaries not enforced, see
note above). Only orthogonal domains are currently supported. This is
a limitation of the present dump h5md command and not of H5MD itself.</p>
<p>The <em>h5md</em> dump style is part of the USER-H5MD package. It is only
enabled if LAMMPS was built with that package. See the <aclass="reference internal"href="Section_start.html#start-3"><spanclass="std std-ref">Making LAMMPS</span></a> section for more info. It also
requires (i) building the ch5md library provided with LAMMPS (See the
<aclass="reference internal"href="Section_start.html#start-3"><spanclass="std std-ref">Making LAMMPS</span></a> section for more info.) and
(ii) having the <aclass="reference external"href="HDF5_ws">HDF5</a> library installed (C bindings are
sufficient) on your system. The library ch5md is compiled with the
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.