<spanid="index-0"></span><h1>fix lb/rigid/pc/sphere command<aclass="headerlink"href="#fix-lb-rigid-pc-sphere-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>
<divclass="highlight-python"><divclass="highlight"><pre>fix ID group-ID lb/rigid/pc/sphere bodystyle args keyword values ...
</pre></div>
</div>
<ul>
<li><pclass="first">ID, group-ID are documented in <aclass="reference internal"href="fix.html"><em>fix</em></a> command</p>
</li>
<li><pclass="first">lb/rigid/pc/sphere = style name of this fix command</p>
</li>
<li><pclass="first">bodystyle = <em>single</em> or <em>molecule</em> or <em>group</em></p>
</li>
<li><dlclass="first docutils">
<dt><em>single</em> args = none</dt>
<dd><pclass="first"><em>molecule</em> args = none
<em>group</em> args = N groupID1 groupID2 ...</p>
<blockquoteclass="last">
<div><p>N = # of groups</p>
</div></blockquote>
</dd>
</dl>
<p>zero or more keyword/value pairs may be appended</p>
</li>
<li><pclass="first">keyword = <em>force</em> or <em>torque</em> or <em>innerNodes</em></p>
</li>
</ul>
<preclass="literal-block">
<em>force</em> values = M xflag yflag zflag
M = which rigid body from 1-Nbody (see asterisk form below)
xflag,yflag,zflag = off/on if component of center-of-mass force is active
<em>torque</em> values = M xflag yflag zflag
M = which rigid body from 1-Nbody (see asterisk form below)
xflag,yflag,zflag = off/on if component of center-of-mass torque is active
<em>innerNodes</em> values = innergroup-ID
innergroup-ID = ID of the atom group which does not experience a hydrodynamic force from the lattice-Boltzmann fluid
</pre>
</div>
<divclass="section"id="examples">
<h2>Examples<aclass="headerlink"href="#examples"title="Permalink to this headline">¶</a></h2>
fix 1 all lb/rigid/pc/sphere force 1 0 0 innerNodes ForceAtoms
</pre></div>
</div>
</div>
<divclass="section"id="description">
<h2>Description<aclass="headerlink"href="#description"title="Permalink to this headline">¶</a></h2>
<p>This fix is based on the <aclass="reference internal"href="fix_rigid.html"><em>fix rigid</em></a> command, and was
created to be used in place of that fix, to integrate the equations of
motion of spherical rigid bodies when a lattice-Boltzmann fluid is
present with a user-specified value of the force-coupling constant.
The fix uses the integration algorithm described in <aclass="reference internal"href="fix_lb_viscous.html#mackay"><span>Mackay et al.</span></a> to update the positions, velocities, and orientations of
a set of spherical rigid bodies experiencing velocity dependent
hydrodynamic forces. The spherical bodies are assumed to rotate as
solid, uniform density spheres, with moments of inertia calculated
using the combined sum of the masses of all the constituent particles
(which are assumed to be point particles).</p>
<hrclass="docutils"/>
<p>By default, all of the atoms that this fix acts on experience a
hydrodynamic force due to the presence of the lattice-Boltzmann fluid.
However, the <em>innerNodes</em> keyword allows the user to specify atoms
belonging to a rigid object which do not interact with the
lattice-Boltzmann fluid (i.e. these atoms do not feel a hydrodynamic
force from the lattice-Boltzmann fluid). This can be used to
distinguish between atoms on the surface of a non-porous object, and
those on the inside.</p>
<p>This feature can be used, for example, when implementing a hard sphere
interaction between two spherical objects. Instead of interactions
occurring between the particles on the surfaces of the two spheres, it
is desirable simply to place an atom at the center of each sphere,
which does not contribute to the hydrodynamic force, and have these
central atoms interact with one another.</p>
<hrclass="docutils"/>
<p>Apart from the features described above, this fix is very similar to
the rigid fix (although it includes fewer optional arguments, and
assumes the constituent atoms are point particles); see
<aclass="reference internal"href="fix_rigid.html"><em>fix_rigid</em></a> for a complete documentation.</p>
<h2>Restart, fix_modify, output, run start/stop, minimize info<aclass="headerlink"href="#restart-fix-modify-output-run-start-stop-minimize-info"title="Permalink to this headline">¶</a></h2>
<p>No information about the <em>rigid</em> and <em>rigid/nve</em> fixes are written to
<p>Similar to the <aclass="reference internal"href="fix_rigid.html"><em>fix_rigid</em></a> command: &quot; The rigid
fix computes a global scalar which can be accessed by various <aclass="reference internal"href="Section_howto.html#howto-15"><span>output commands</span></a>. The scalar value calculated by
these fixes is “intensive”. The scalar is the current temperature of
the collection of rigid bodies. This is averaged over all rigid
bodies and their translational and rotational degrees of freedom. The
translational energy of a rigid body is 1/2 m v^2, where m = total
mass of the body and v = the velocity of its center of mass. The
rotational energy of a rigid body is 1/2 I w^2, where I = the moment
of inertia tensor of the body and w = its angular velocity. Degrees
of freedom constrained by the <em>force</em> and <em>torque</em> keywords are
removed from this calculation.&quot;</p>
<p>&quot;All of these fixes compute a global array of values which can be
accessed by various <aclass="reference internal"href="Section_howto.html#howto-15"><span>output commands</span></a>.
The number of rows in the array is equal to the number of rigid
bodies. The number of columns is 15. Thus for each rigid body, 15
values are stored: the xyz coords of the center of mass (COM), the xyz
components of the COM velocity, the xyz components of the force acting
on the COM, the xyz components of the torque acting on the COM, and
the xyz image flags of the COM, which have the same meaning as image
flags for atom positions (see the “dump” command). The force and
torque values in the array are not affected by the <em>force</em> and
<em>torque</em> keywords in the fix rigid command; they reflect values before
any changes are made by those keywords.</p>
<p>The ordering of the rigid bodies (by row in the array) is as follows.
For the <em>single</em> keyword there is just one rigid body. For the
<em>molecule</em> keyword, the bodies are ordered by ascending molecule ID.
For the <em>group</em> keyword, the list of group IDs determines the ordering
of bodies.</p>
<p>The array values calculated by these fixes are “intensive”, meaning
they are independent of the number of atoms in the simulation.</p>
<p>No parameter of these fixes can be used with the <em>start/stop</em> keywords
of the <aclass="reference internal"href="run.html"><em>run</em></a> command. These fixes are not invoked during
<h2>Restrictions<aclass="headerlink"href="#restrictions"title="Permalink to this headline">¶</a></h2>
<p>This fix is part of the USER-LB 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>Can only be used if a lattice-Boltzmann fluid has been created via the
<aclass="reference internal"href="fix_lb_fluid.html"><em>fix lb/fluid</em></a> command, and must come after this
command. Should only be used if the force coupling constant used in
<aclass="reference internal"href="fix_lb_fluid.html"><em>fix lb/fluid</em></a> has been set by the user; this
integration fix cannot be used if the force coupling constant is set
by default.</p>
</div>
<divclass="section"id="related-commands">
<h2>Related commands<aclass="headerlink"href="#related-commands"title="Permalink to this headline">¶</a></h2>
<h2>Default<aclass="headerlink"href="#default"title="Permalink to this headline">¶</a></h2>
<p>The defaults are force * on on on, and torque * on on on.</p>
<hrclass="docutils"/>
<pid="mackay"><strong>(Mackay et al.)</strong> Mackay, F. E., Ollila, S.T.T., and Denniston, C., Hydrodynamic Forces Implemented into LAMMPS through a lattice-Boltzmann fluid, Computer Physics Communications 184 (2013) 2021-2031.</p>
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>.