forked from lijiext/lammps
329 lines
15 KiB
HTML
329 lines
15 KiB
HTML
|
|
|
|
<!DOCTYPE html>
|
|
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
|
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>fix lb/rigid/pc/sphere command — LAMMPS documentation</title>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="_static/sphinxcontrib-images/LightBox2/lightbox2/css/lightbox.css" type="text/css" />
|
|
|
|
|
|
|
|
<link rel="top" title="LAMMPS documentation" href="index.html"/>
|
|
|
|
|
|
<script src="_static/js/modernizr.min.js"></script>
|
|
|
|
</head>
|
|
|
|
<body class="wy-body-for-nav" role="document">
|
|
|
|
<div class="wy-grid-for-nav">
|
|
|
|
|
|
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
|
<div class="wy-side-nav-search">
|
|
|
|
|
|
|
|
<a href="Manual.html" class="icon icon-home"> LAMMPS
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
<div role="search">
|
|
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
|
|
<input type="text" name="q" placeholder="Search docs" />
|
|
<input type="hidden" name="check_keywords" value="yes" />
|
|
<input type="hidden" name="area" value="default" />
|
|
</form>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
|
|
|
|
|
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="Section_intro.html">1. Introduction</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="Section_start.html">2. Getting Started</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="Section_commands.html">3. Commands</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="Section_packages.html">4. Packages</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="Section_accelerate.html">5. Accelerating LAMMPS performance</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="Section_howto.html">6. How-to discussions</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="Section_example.html">7. Example problems</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="Section_perf.html">8. Performance & scalability</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="Section_tools.html">9. Additional tools</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="Section_modify.html">10. Modifying & extending LAMMPS</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="Section_python.html">11. Python interface to LAMMPS</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="Section_errors.html">12. Errors</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="Section_history.html">13. Future and history</a></li>
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
|
|
|
|
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
|
<a href="Manual.html">LAMMPS</a>
|
|
</nav>
|
|
|
|
|
|
|
|
<div class="wy-nav-content">
|
|
<div class="rst-content">
|
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
|
<ul class="wy-breadcrumbs">
|
|
<li><a href="Manual.html">Docs</a> »</li>
|
|
|
|
<li>fix lb/rigid/pc/sphere command</li>
|
|
<li class="wy-breadcrumbs-aside">
|
|
|
|
|
|
<a href="http://lammps.sandia.gov">Website</a>
|
|
<a href="Section_commands.html#comm">Commands</a>
|
|
|
|
</li>
|
|
</ul>
|
|
<hr/>
|
|
|
|
</div>
|
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
|
<div itemprop="articleBody">
|
|
|
|
<div class="section" id="fix-lb-rigid-pc-sphere-command">
|
|
<span id="index-0"></span><h1>fix lb/rigid/pc/sphere command</h1>
|
|
<div class="section" id="syntax">
|
|
<h2>Syntax</h2>
|
|
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">fix</span> <span class="n">ID</span> <span class="n">group</span><span class="o">-</span><span class="n">ID</span> <span class="n">lb</span><span class="o">/</span><span class="n">rigid</span><span class="o">/</span><span class="n">pc</span><span class="o">/</span><span class="n">sphere</span> <span class="n">bodystyle</span> <span class="n">args</span> <span class="n">keyword</span> <span class="n">values</span> <span class="o">...</span>
|
|
</pre></div>
|
|
</div>
|
|
<ul>
|
|
<li><p class="first">ID, group-ID are documented in <a class="reference internal" href="fix.html"><span class="doc">fix</span></a> command</p>
|
|
</li>
|
|
<li><p class="first">lb/rigid/pc/sphere = style name of this fix command</p>
|
|
</li>
|
|
<li><p class="first">bodystyle = <em>single</em> or <em>molecule</em> or <em>group</em></p>
|
|
</li>
|
|
<li><dl class="first docutils">
|
|
<dt><em>single</em> args = none</dt>
|
|
<dd><p class="first"><em>molecule</em> args = none
|
|
<em>group</em> args = N groupID1 groupID2 ...</p>
|
|
<blockquote class="last">
|
|
<div><p>N = # of groups</p>
|
|
</div></blockquote>
|
|
</dd>
|
|
</dl>
|
|
<p>zero or more keyword/value pairs may be appended</p>
|
|
</li>
|
|
<li><p class="first">keyword = <em>force</em> or <em>torque</em> or <em>innerNodes</em></p>
|
|
</li>
|
|
</ul>
|
|
<pre class="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>
|
|
<div class="section" id="examples">
|
|
<h2>Examples</h2>
|
|
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">fix</span> <span class="mi">1</span> <span class="n">spheres</span> <span class="n">lb</span><span class="o">/</span><span class="n">rigid</span><span class="o">/</span><span class="n">pc</span><span class="o">/</span><span class="n">sphere</span>
|
|
<span class="n">fix</span> <span class="mi">1</span> <span class="nb">all</span> <span class="n">lb</span><span class="o">/</span><span class="n">rigid</span><span class="o">/</span><span class="n">pc</span><span class="o">/</span><span class="n">sphere</span> <span class="n">force</span> <span class="mi">1</span> <span class="mi">0</span> <span class="mi">0</span> <span class="n">innerNodes</span> <span class="n">ForceAtoms</span>
|
|
</pre></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="description">
|
|
<h2>Description</h2>
|
|
<p>This fix is based on the <a class="reference internal" href="fix_rigid.html"><span class="doc">fix rigid</span></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 <a class="reference internal" href="fix_lb_viscous.html#mackay"><span class="std std-ref">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>
|
|
<hr class="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>
|
|
<hr class="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
|
|
<a class="reference internal" href="fix_rigid.html"><span class="doc">fix rigid</span></a> for a complete documentation.</p>
|
|
</div>
|
|
<div class="section" id="restart-fix-modify-output-run-start-stop-minimize-info">
|
|
<h2>Restart, fix_modify, output, run start/stop, minimize info</h2>
|
|
<p>No information about the <em>rigid</em> and <em>rigid/nve</em> fixes are written to
|
|
<a class="reference internal" href="restart.html"><span class="doc">binary restart files</span></a>.</p>
|
|
<p>Similar to the <a class="reference internal" href="fix_rigid.html"><span class="doc">fix rigid</span></a> command: The rigid
|
|
fix computes a global scalar which can be accessed by various <a class="reference internal" href="Section_howto.html#howto-15"><span class="std std-ref">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.</p>
|
|
<p>All of these fixes compute a global array of values which can be
|
|
accessed by various <a class="reference internal" href="Section_howto.html#howto-15"><span class="std std-ref">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 <a class="reference internal" href="run.html"><span class="doc">run</span></a> command. These fixes are not invoked during
|
|
<a class="reference internal" href="minimize.html"><span class="doc">energy minimization</span></a>.</p>
|
|
</div>
|
|
<div class="section" id="restrictions">
|
|
<h2>Restrictions</h2>
|
|
<p>This fix is part of the USER-LB package. It is only enabled if LAMMPS
|
|
was built with that package. See the <a class="reference internal" href="Section_start.html#start-3"><span class="std std-ref">Making LAMMPS</span></a> section for more info.</p>
|
|
<p>Can only be used if a lattice-Boltzmann fluid has been created via the
|
|
<a class="reference internal" href="fix_lb_fluid.html"><span class="doc">fix lb/fluid</span></a> command, and must come after this
|
|
command. Should only be used if the force coupling constant used in
|
|
<a class="reference internal" href="fix_lb_fluid.html"><span class="doc">fix lb/fluid</span></a> has been set by the user; this
|
|
integration fix cannot be used if the force coupling constant is set
|
|
by default.</p>
|
|
</div>
|
|
<div class="section" id="related-commands">
|
|
<h2>Related commands</h2>
|
|
<p><a class="reference internal" href="fix_lb_fluid.html"><span class="doc">fix lb/fluid</span></a>, <a class="reference internal" href="fix_lb_pc.html"><span class="doc">fix lb/pc</span></a></p>
|
|
</div>
|
|
<div class="section" id="default">
|
|
<h2>Default</h2>
|
|
<p>The defaults are force * on on on, and torque * on on on.</p>
|
|
<hr class="docutils" />
|
|
<p id="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>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<footer>
|
|
|
|
|
|
<hr/>
|
|
|
|
<div role="contentinfo">
|
|
<p>
|
|
© Copyright 2013 Sandia Corporation.
|
|
</p>
|
|
</div>
|
|
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>.
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
var DOCUMENTATION_OPTIONS = {
|
|
URL_ROOT:'./',
|
|
VERSION:'',
|
|
COLLAPSE_INDEX:false,
|
|
FILE_SUFFIX:'.html',
|
|
HAS_SOURCE: true
|
|
};
|
|
</script>
|
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
|
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
|
|
<script type="text/javascript" src="_static/sphinxcontrib-images/LightBox2/lightbox2/js/jquery-1.11.0.min.js"></script>
|
|
<script type="text/javascript" src="_static/sphinxcontrib-images/LightBox2/lightbox2/js/lightbox.min.js"></script>
|
|
<script type="text/javascript" src="_static/sphinxcontrib-images/LightBox2/lightbox2-customize/jquery-noconflict.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="_static/js/theme.js"></script>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
jQuery(function () {
|
|
SphinxRtdTheme.StickyNav.enable();
|
|
});
|
|
</script>
|
|
|
|
|
|
</body>
|
|
</html> |