<span id="index-0"></span><h1>pair_style body command<a class="headerlink" href="#pair-style-body-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>pair_style body cutoff
</pre></div>
</div>
<p>cutoff = global cutoff for interactions (distance units)</p>
</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>pair_style body 3.0
pair_coeff * * 1.0 1.0
pair_coeff 1 1 1.0 1.5 2.5
</pre></div>
</div>
</div>
<div class="section" id="description">
<h2>Description<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
<p>Style <em>body</em> is for use with body particles and calculates pairwise
body/body interactions as well as interactions between body and
point-particles. See <a class="reference internal" href="Section_howto.html#howto-14"><span>Section_howto 14</span></a>
of the manual and the <a class="reference internal" href="body.html"><em>body</em></a> doc page for more details on
using body particles.</p>
<p>This pair style is designed for use with the “nparticle” body style,
which is specified as an argument to the “atom-style body” command.
See the <a class="reference internal" href="body.html"><em>body</em></a> doc page for more details about the body
styles LAMMPS supports. The “nparticle” style treats a body particle
as a rigid body composed of N sub-particles.</p>
<p>The coordinates of a body particle are its center-of-mass (COM). If
the COMs of a pair of body particles are within the cutoff (global or
type-specific, as specified above), then all interactions between
pairs of sub-particles in the two body particles are computed.
E.g. if the first body particle has 3 sub-particles, and the second
has 10, then 30 interactions are computed and summed to yield the
total force and torque on each body particle.</p>
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">In the example just described, all 30 interactions are
computed even if the distance between a particular pair of
sub-particles is greater than the cutoff. Likewise, no interaction
between two body particles is computed if the two COMs are further
apart than the cutoff, even if the distance between some pairs of
their sub-particles is within the cutoff. Thus care should be used in
defining the cutoff distances for body particles, depending on their
shape and size.</p>
</div>
<p>Similar rules apply for a body particle interacting with a point
particle. The distance between the two particles is calculated using
the COM of the body particle and the position of the point particle.
If the distance is within the cutoff and the body particle has N
sub-particles, then N interactions with the point particle are
computed and summed. If the distance is not within the cutoff, no
interactions between the body and point particle are computed.</p>
<p>The interaction between two sub-particles, or a sub-particle and point
particle, or betwee two point particles is computed as a Lennard-Jones
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>.