<p>Note that the mass command can only be used if the <a class="reference internal" href="atom_style.html"><span class="doc">atom style</span></a> requires per-type atom mass to be set.
Currently, all but the <em>sphere</em> and <em>ellipsoid</em> and <em>peri</em> styles do.
They require mass to be set for individual particles, not types.
Per-atom masses are defined in the data file read by the
<a class="reference internal" href="read_data.html"><span class="doc">read_data</span></a> command, or set to default values by the
<a class="reference internal" href="create_atoms.html"><span class="doc">create_atoms</span></a> command. Per-atom masses can also be
set to new values by the <a class="reference internal" href="set.html"><span class="doc">set mass</span></a> or <a class="reference internal" href="set.html"><span class="doc">set density</span></a>
commands.</p>
<p>Also note that <a class="reference internal" href="pair_eam.html"><span class="doc">pair_style eam</span></a> and <a class="reference internal" href="pair_bop.html"><span class="doc">pair_style bop</span></a> commands define the masses of atom types in their
respective potential files, in which case the mass command is normally
not used.</p>
<p>If you define a <a class="reference internal" href="atom_style.html"><span class="doc">hybrid atom style</span></a> which includes one
(or more) sub-styles which require per-type mass and one (or more)
sub-styles which require per-atom mass, then you must define both.
However, in this case the per-type mass will be ignored; only the
per-atom mass will be used by LAMMPS.</p>
</div>
<div class="section" id="restrictions">
<h2>Restrictions</h2>
<p>This command must come after the simulation box is defined by a
<p>All masses must be defined before a simulation is run. They must also
all be defined before a <a class="reference internal" href="velocity.html"><span class="doc">velocity</span></a> or <a class="reference internal" href="fix_shake.html"><span class="doc">fix shake</span></a> command is used.</p>
<p>The mass assigned to any type or atom must be > 0.0.</p>
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>.