forked from lijiext/lammps
328 lines
14 KiB
HTML
328 lines
14 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 bond/break command — LAMMPS 15 May 2015 version 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 15 May 2015 version 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 bond/break 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-bond-break-command">
|
|
<span id="index-0"></span><h1>fix bond/break command<a class="headerlink" href="#fix-bond-break-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>fix ID group-ID bond/break Nevery bondtype Rmax keyword values ...
|
|
</pre></div>
|
|
</div>
|
|
<ul class="simple">
|
|
<li>ID, group-ID are documented in <a class="reference internal" href="fix.html"><em>fix</em></a> command</li>
|
|
<li>bond/break = style name of this fix command</li>
|
|
<li>Nevery = attempt bond breaking every this many steps</li>
|
|
<li>bondtype = type of bonds to break</li>
|
|
<li>Rmax = bond longer than Rmax can break (distance units)</li>
|
|
<li>zero or more keyword/value pairs may be appended to args</li>
|
|
<li>keyword = <em>prob</em></li>
|
|
</ul>
|
|
<pre class="literal-block">
|
|
<em>prob</em> values = fraction seed
|
|
fraction = break a bond with this probability if otherwise eligible
|
|
seed = random number seed (positive integer)
|
|
</pre>
|
|
</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>fix 5 all bond/break 10 2 1.2
|
|
fix 5 polymer bond/break 1 1 2.0 prob 0.5 49829
|
|
</pre></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="description">
|
|
<h2>Description<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
|
|
<p>Break bonds between pairs of atoms as a simulation runs according to
|
|
specified criteria. This can be used to model the dissolution of a
|
|
polymer network due to stretching of the simulation box or other
|
|
deformations. In this context, a bond means an interaction between a
|
|
pair of atoms computed by the <a class="reference internal" href="bond_style.html"><em>bond_style</em></a> command.
|
|
Once the bond is broken it will be permanently deleted, as will all
|
|
angle, dihedral, and improper interactions that bond is part of.</p>
|
|
<p>This is different than a <a class="reference internal" href="pair_style.html"><em>pairwise</em></a> bond-order
|
|
potential such as Tersoff or AIREBO which infers bonds and many-body
|
|
interactions based on the current geometry of a small cluster of atoms
|
|
and effectively creates and destroys bonds and higher-order many-body
|
|
interactions from timestep to timestep as atoms move.</p>
|
|
<p>A check for possible bond breakage is performed every <em>Nevery</em>
|
|
timesteps. If two bonded atoms I,J are further than a distance <em>Rmax</em>
|
|
of each other, if the bond is of type <em>bondtype</em>, and if both I and J
|
|
are in the specified fix group, then I,J is labeled as a “possible”
|
|
bond to break.</p>
|
|
<p>If several bonds involving an atom are stretched, it may have multiple
|
|
possible bonds to break. Every atom checks its list of possible bonds
|
|
to break and labels the longest such bond as its “sole” bond to break.
|
|
After this is done, if atom I is bonded to atom J in its sole bond,
|
|
and atom J is bonded to atom I in its sole bond, then the I,J bond is
|
|
“eligible” to be broken.</p>
|
|
<p>Note that these rules mean an atom will only be part of at most one
|
|
broken bond on a given timestep. It also means that if atom I chooses
|
|
atom J as its sole partner, but atom J chooses atom K is its sole
|
|
partner (due to Rjk > Rij), then this means atom I will not be part of
|
|
a broken bond on this timestep, even if it has other possible bond
|
|
partners.</p>
|
|
<p>The <em>prob</em> keyword can effect whether an eligible bond is actually
|
|
broken. The <em>fraction</em> setting must be a value between 0.0 and 1.0.
|
|
A uniform random number between 0.0 and 1.0 is generated and the
|
|
eligible bond is only broken if the random number < fraction.</p>
|
|
<p>When a bond is broken, data structures within LAMMPS that store bond
|
|
topology are updated to reflect the breakage. Likewise, if the bond
|
|
is part of a 3-body (angle) or 4-body (dihedral, improper)
|
|
interaction, that interaction is removed as well. These changes
|
|
typically affect pairwise interactions between atoms that used to be
|
|
part of bonds, angles, etc.</p>
|
|
<div class="admonition warning">
|
|
<p class="first admonition-title">Warning</p>
|
|
<p class="last">One data structure that is not updated when a bond
|
|
breaks are the molecule IDs stored by each atom. Even though
|
|
one molecule becomes two moleclues due to the broken bond, all atoms
|
|
in both new moleclues retain their original molecule IDs.</p>
|
|
</div>
|
|
<p>Computationally, each timestep this fix operates, it loops over all
|
|
the bonds in the system and computes distances between pairs of bonded
|
|
atoms. It also communicates between neighboring processors to
|
|
coordinate which bonds are broken. Moreover, if any bonds are broken,
|
|
neighbor lists must be immediately updated on the same timestep. This
|
|
is to insure that any pairwise interactions that should be turned “on”
|
|
due to a bond breaking, because they are no longer excluded by the
|
|
presence of the bond and the settings of the
|
|
<a class="reference internal" href="special_bonds.html"><em>special_bonds</em></a> command, will be immediately
|
|
recognized. All of these operations increase the cost of a timestep.
|
|
Thus you should be cautious about invoking this fix too frequently.</p>
|
|
<p>You can dump out snapshots of the current bond topology via the <a class="reference internal" href="dump.html"><em>dump local</em></a> command.</p>
|
|
<div class="admonition warning">
|
|
<p class="first admonition-title">Warning</p>
|
|
<p class="last">Breaking a bond typically alters the energy of a
|
|
system. You should be careful not to choose bond breaking criteria
|
|
that induce a dramatic change in energy. For example, if you define a
|
|
very stiff harmonic bond and break it when 2 atoms are separated by a
|
|
distance far from the equilibribum bond length, then the 2 atoms will
|
|
be dramatically released when the bond is broken. More generally, you
|
|
may need to thermostat your system to compensate for energy changes
|
|
resulting from broken bonds (and angles, dihedrals, impropers).</p>
|
|
</div>
|
|
</div>
|
|
<hr class="docutils" />
|
|
<div class="section" id="restart-fix-modify-output-run-start-stop-minimize-info">
|
|
<h2>Restart, fix_modify, output, run start/stop, minimize info<a class="headerlink" href="#restart-fix-modify-output-run-start-stop-minimize-info" title="Permalink to this headline">¶</a></h2>
|
|
<p>No information about this fix is written to <a class="reference internal" href="restart.html"><em>binary restart files</em></a>. None of the <a class="reference internal" href="fix_modify.html"><em>fix_modify</em></a> options
|
|
are relevant to this fix.</p>
|
|
<p>This fix computes two statistics which it stores in a global vector of
|
|
length 2, which can be accessed by various <a class="reference internal" href="Section_howto.html#howto-15"><span>output commands</span></a>. The vector values calculated
|
|
by this fix are “intensive”.</p>
|
|
<p>These are the 2 quantities:</p>
|
|
<ul class="simple">
|
|
<li><ol class="first arabic">
|
|
<li># of bonds broken on the most recent breakage timestep</li>
|
|
</ol>
|
|
</li>
|
|
<li><ol class="first arabic" start="2">
|
|
<li>cummulative # of bonds broken</li>
|
|
</ol>
|
|
</li>
|
|
</ul>
|
|
<p>No parameter of this fix can be used with the <em>start/stop</em> keywords of
|
|
the <a class="reference internal" href="run.html"><em>run</em></a> command. This fix is not invoked during <a class="reference internal" href="minimize.html"><em>energy minimization</em></a>.</p>
|
|
</div>
|
|
<div class="section" id="restrictions">
|
|
<h2>Restrictions<a class="headerlink" href="#restrictions" title="Permalink to this headline">¶</a></h2>
|
|
<p>This fix is part of the MC 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>Making LAMMPS</span></a> section for more info.</p>
|
|
</div>
|
|
<div class="section" id="related-commands">
|
|
<h2>Related commands<a class="headerlink" href="#related-commands" title="Permalink to this headline">¶</a></h2>
|
|
<p><a class="reference internal" href="fix_bond_create.html"><em>fix bond/create</em></a>, <a class="reference internal" href="fix_bond_swap.html"><em>fix bond/swap</em></a>, <a class="reference internal" href="dump.html"><em>dump local</em></a>,
|
|
<a class="reference internal" href="special_bonds.html"><em>special_bonds</em></a></p>
|
|
</div>
|
|
<div class="section" id="default">
|
|
<h2>Default<a class="headerlink" href="#default" title="Permalink to this headline">¶</a></h2>
|
|
<p>The option defaults are prob = 1.0.</p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<footer>
|
|
|
|
|
|
<hr/>
|
|
|
|
<div role="contentinfo">
|
|
<p>
|
|
© Copyright .
|
|
</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:'15 May 2015 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> |