<spanid="index-0"></span><h1>pair_style gran/hooke command<aclass="headerlink"href="#pair-style-gran-hooke-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style gran/hooke/history command<aclass="headerlink"href="#pair-style-gran-hooke-history-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style gran/hooke/history/omp command<aclass="headerlink"href="#pair-style-gran-hooke-history-omp-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style gran/hertz/history command<aclass="headerlink"href="#pair-style-gran-hertz-history-command"title="Permalink to this headline">¶</a></h1>
<h1>pair_style gran/hertz/history/omp command<aclass="headerlink"href="#pair-style-gran-hertz-history-omp-command"title="Permalink to this headline">¶</a></h1>
<divclass="section"id="syntax">
<h2>Syntax<aclass="headerlink"href="#syntax"title="Permalink to this headline">¶</a></h2>
<h2>Description<aclass="headerlink"href="#description"title="Permalink to this headline">¶</a></h2>
<p>The <em>gran</em> styles use the following formulas for the frictional force
between two granular particles, as described in
<aclass="reference internal"href="#brilliantov"><span>(Brilliantov)</span></a>, <aclass="reference internal"href="#silbert"><span>(Silbert)</span></a>, and
<aclass="reference internal"href="#zhang"><span>(Zhang)</span></a>, when the distance r between two particles of radii
Ri and Rj is less than their contact distance d = Ri + Rj. There is
<p>should be used if all atoms in the simulation interact via a granular
potential (i.e. one of the pair styles above is used). If a granular
potential is used as a sub-style of <aclass="reference internal"href="pair_hybrid.html"><em>pair_style hybrid</em></a>, then specific atom types can be used in the
pair_coeff command to determine which atoms interact via a granular
potential.</p>
<hrclass="docutils"/>
<p>Styles with a <em>cuda</em>, <em>gpu</em>, <em>intel</em>, <em>kk</em>, <em>omp</em>, or <em>opt</em> suffix are
functionally the same as the corresponding style without the suffix.
They have been optimized to run faster, depending on your available
hardware, as discussed in <aclass="reference internal"href="Section_accelerate.html"><em>Section_accelerate</em></a>
of the manual. The accelerated styles take the same arguments and
should produce the same results, except for round-off and precision
issues.</p>
<p>These accelerated styles are part of the USER-CUDA, GPU, USER-INTEL,
KOKKOS, USER-OMP and OPT packages, respectively. They are only
enabled if LAMMPS was built with those packages. See the <aclass="reference internal"href="Section_start.html#start-3"><span>Making LAMMPS</span></a> section for more info.</p>
<p>You can specify the accelerated styles explicitly in your input script
by including their suffix, or you can use the <aclass="reference internal"href="Section_start.html#start-7"><span>-suffix command-line switch</span></a> when you invoke LAMMPS, or you can
use the <aclass="reference internal"href="suffix.html"><em>suffix</em></a> command in your input script.</p>
<p>See <aclass="reference internal"href="Section_accelerate.html"><em>Section_accelerate</em></a> of the manual for
more instructions on how to use the accelerated styles effectively.</p>
<p>The <aclass="reference internal"href="pair_modify.html"><em>pair_modify</em></a> mix, shift, table, and tail options
are not relevant for granular pair styles.</p>
<p>These pair styles write their information to <aclass="reference internal"href="restart.html"><em>binary restart files</em></a>, so a pair_style command does not need to be
specified in an input script that reads a restart file.</p>
<p>These pair styles can only be used via the <em>pair</em> keyword of the
<aclass="reference internal"href="run_style.html"><em>run_style respa</em></a> command. They do not support the
<p>The single() function of these pair styles returns 0.0 for the energy
of a pairwise interaction, since energy is not conserved in these
dissipative potentials. It also returns only the normal component of
the pairwise interaction force. However, the single() function also
calculates 4 extra pairwise quantities. The first 3 are the
components of the tangential force between particles I and J, acting
on particle I. <em>P4</em> is the magnitude of this tangential force. These
extra quantites can be accessed by the <aclass="reference internal"href="compute_pair_local.html"><em>compute pair/local</em></a> command, as <em>p1</em>, <em>p2</em>, <em>p3</em>,
<em>p4</em>.</p>
</div>
<hrclass="docutils"/>
<divclass="section"id="restrictions">
<h2>Restrictions<aclass="headerlink"href="#restrictions"title="Permalink to this headline">¶</a></h2>
<blockquote>
<div>none</div></blockquote>
<p>All the granular pair styles are part of the GRANULAR package. It is
only enabled if LAMMPS was built with that package. See the <aclass="reference internal"href="Section_start.html#start-3"><span>Making LAMMPS</span></a> section for more info.</p>
<p>These pair styles require that atoms store torque and angular velocity
(omega) as defined by the <aclass="reference internal"href="atom_style.html"><em>atom_style</em></a>. They also
require a per-particle radius is stored. The <em>sphere</em> atom style does
all of this.</p>
<p>This pair style requires you to use the <aclass="reference internal"href="comm_modify.html"><em>comm_modify vel yes</em></a> command so that velocites are stored by ghost
atoms.</p>
<p>These pair styles will not restart exactly when using the
<aclass="reference internal"href="read_restart.html"><em>read_restart</em></a> command, though they should provide
statistically similar results. This is because the forces they
compute depend on atom velocities. See the
<aclass="reference internal"href="read_restart.html"><em>read_restart</em></a> command for more details.</p>
</div>
<divclass="section"id="related-commands">
<h2>Related commands<aclass="headerlink"href="#related-commands"title="Permalink to this headline">¶</a></h2>
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>.