<p>Note that the mass command can only be used if the <a class="reference internal" href="atom_style.html"><em>atom style</em></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"><em>read_data</em></a> command, or set to default values by the
<a class="reference internal" href="create_atoms.html"><em>create_atoms</em></a> command. Per-atom masses can also be
set to new values by the <a class="reference internal" href="set.html"><em>set mass</em></a> or <a class="reference internal" href="set.html"><em>set density</em></a>
commands.</p>
<p>Also note that <a class="reference internal" href="pair_eam.html"><em>pair_style eam</em></a> and <a class="reference internal" href="pair_bop.html"><em>pair_style bop</em></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"><em>hybrid atom style</em></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<a class="headerlink" href="#restrictions" title="Permalink to this headline">¶</a></h2>
<p>This command must come after the simulation box is defined by a
<a class="reference internal" href="read_data.html"><em>read_data</em></a>, <a class="reference internal" href="read_restart.html"><em>read_restart</em></a>, or
<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"><em>velocity</em></a> or <a class="reference internal" href="fix_shake.html"><em>fix shake</em></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>.