<spanid="index-0"></span><h1>fix qeq/point command<aclass="headerlink"href="#fix-qeq-point-command"title="Permalink to this headline">¶</a></h1>
</div>
<divclass="section"id="fix-qeq-shielded-command">
<h1>fix qeq/shielded command<aclass="headerlink"href="#fix-qeq-shielded-command"title="Permalink to this headline">¶</a></h1>
</div>
<divclass="section"id="fix-qeq-slater-command">
<h1>fix qeq/slater command<aclass="headerlink"href="#fix-qeq-slater-command"title="Permalink to this headline">¶</a></h1>
</div>
<divclass="section"id="fix-qeq-dynamic-command">
<h1>fix qeq/dynamic command<aclass="headerlink"href="#fix-qeq-dynamic-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 style Nevery cutoff tolerance maxiter qfile
</pre></div>
</div>
<ulclass="simple">
<li>ID, group-ID are documented in <aclass="reference internal"href="fix.html"><em>fix</em></a> command</li>
<li>style = <em>qeq/point</em> or <em>qeq/shielded</em> or <em>qeq/slater</em> or <em>qeq/dynamic</em></li>
<li>Nevery = perform charge equilibration every this many steps</li>
<li>cutoff = global cutoff for charge-charge interactions (distance unit)</li>
<li>tolerance = precision to which charges will be equilibrated</li>
<li>maxiter = maximum iterations to perform charge equilibration</li>
<li>qfile = a filename with QEq parameters</li>
</ul>
</div>
<divclass="section"id="examples">
<h2>Examples<aclass="headerlink"href="#examples"title="Permalink to this headline">¶</a></h2>
<divclass="highlight-python"><divclass="highlight"><pre>fix 1 all qeq/point 1 10 1.0e-6 200 param.qeq1
fix 1 qeq qeq/shielded 1 8 1.0e-6 100 param.qeq2
fix 1 all qeq/slater 5 10 1.0e-6 100 params
fix 1 qeq qeq/dynamic 1 12 1.0e-3 100 my_qeq
</pre></div>
</div>
</div>
<divclass="section"id="description">
<h2>Description<aclass="headerlink"href="#description"title="Permalink to this headline">¶</a></h2>
<p>Perform the charge equilibration (QEq) method as described in <aclass="reference internal"href="fix_qeq_reax.html#rappe"><span>(Rappe and Goddard)</span></a> and formulated in <aclass="reference internal"href="neb.html#nakano"><span>(Nakano)</span></a> (also known
as the matrix inversion method) and in <aclass="reference internal"href="pair_comb.html#rick"><span>(Rick and Stuart)</span></a> (also
known as the extended Lagrangian method) based on the
electronegativity equilization principle.</p>
<p>These fixes can be used with any <aclass="reference internal"href="pair_style.html"><em>pair style</em></a> in
LAMMPS, so long as per-atom charges are defined. The most typical
use-case is in conjunction with a <aclass="reference internal"href="pair_style.html"><em>pair style</em></a> that
performs charge equilibration periodically (e.g. every timestep), such
as the ReaxFF or Streitz-Mintmire potential (the latter is not yet
implemented in LAMMPS). But these fixes can also be used with
potentials that normally assume per-atom charges are fixed, e.g. a
<aclass="reference internal"href="pair_buck.html"><em>Buckingham</em></a> or <aclass="reference internal"href="pair_lj.html"><em>LJ/Coulombic</em></a> potential.</p>
<p>Because the charge equilibration calculation is effectively
independent of the pair style, these fixes can also be used to perform
a one-time assignment of charges to atoms. For example, you could
define the QEq fix, perform a zero-timestep run via the <aclass="reference internal"href="run.html"><em>run</em></a>
command without any pair style defined which would set per-atom
charges (based on the current atom configuration), then remove the fix
via the <aclass="reference internal"href="unfix.html"><em>unfix</em></a> command before performing further dynamics.</p>
<divclass="admonition warning">
<pclass="first admonition-title">Warning</p>
<pclass="last">Computing and using charge values different from
published values defined for a fixed-charge potential like Buckingham
or CHARMM or AMBER, can have a strong effect on energies and forces,
and produces a different model than the published versions.</p>
</div>
<divclass="admonition warning">
<pclass="first admonition-title">Warning</p>
<pclass="last">The <aclass="reference internal"href="fix_qeq_comb.html"><em>fix qeq/comb</em></a> command must
still be used to perform charge equliibration with the <aclass="reference internal"href="pair_comb.html"><em>COMB potential</em></a>. The <aclass="reference internal"href="fix_qeq_reax.html"><em>fix qeq/reax</em></a>
command can be used to perform charge equilibration with the <aclass="reference internal"href="pair_reax_c.html"><em>ReaxFF force field</em></a>, although fix qeq/shielded yields the
same results as fix qeq/reax if <em>Nevery</em>, <em>cutoff</em>, and <em>tolerance</em> are
the same. Eventually the fix qeq/reax command will be deprecated.</p>
</div>
<p>The QEq method minimizes the electrostatic energy of the system (or
equalizes the derivative of energy with respect to charge of all the
atoms) by adjusting the partial charge on individual atoms based on
interactions with their neighbors within <em>cutoff</em>. It reqires a few
parameters, in <em>metal</em> units, for each atom type which provided in a
file specified by <em>qfile</em>. The file has the following format</p>
<divclass="highlight-python"><divclass="highlight"><pre>1 chi eta gamma zeta qcore
2 chi eta gamma zeta qcore
...
Ntype chi eta gamma zeta qcore
</pre></div>
</div>
<p>There is one line per atom type with the following parameters.
Only a subset of the parameters is used by each QEq style as descibed
below, thus the others can be set to 0.0 if desired.</p>
<ulclass="simple">
<li><em>chi</em> = electronegativity in energy units</li>
<li><em>eta</em> = self-Coulomb potential in energy units</li>
<li><em>gamma</em> = shielded Coulomb constant defined by <aclass="reference internal"href="#vanduin"><span>ReaxFF force field</span></a> in distance units</li>
<li><em>zeta</em> = Slater type orbital exponent defined by the <aclass="reference internal"href="pair_coul.html#streitz"><span>Streitz-Mintmire</span></a> potential in reverse distance units</li>
<li><em>qcore</em> = charge of the nucleus defined by the <aclass="reference internal"href="pair_coul.html#streitz"><span>Streitz-Mintmire potential</span></a> potential in charge units</li>
</ul>
<p>The <em>qeq/point</em> style describes partial charges on atoms as point
charges. Interaction between a pair of charged particles is 1/r,
which is the simplest description of the interaction between charges.
Only the <em>chi</em> and <em>eta</em> parameters from the <em>qfile</em> file are used.
Note that Coulomb catastrophe can occur if repulsion between the pair
of charged particles is too weak. This style solves partial charges
on atoms via the matrix inversion method. A tolerance of 1.0e-6 is
usually a good number.</p>
<p>The <em>qeq/shielded</em> style describes partial charges on atoms also as
point charges, but uses a shielded Coulomb potential to describe the
interaction between a pair of charged particles. Interaction through
the shielded Coulomb is given by equation (13) of the <aclass="reference internal"href="#vanduin"><span>ReaxFF force field</span></a> paper. The shielding accounts for charge overlap
between charged particles at small separation. This style is the same
as <aclass="reference internal"href="fix_qeq_reax.html"><em>fix qeq/reax</em></a>, and can be used with <aclass="reference internal"href="pair_reax_c.html"><em>pair_style reax/c</em></a>. Only the <em>chi</em>, <em>eta</em>, and <em>gamma</em>
parameters from the <em>qfile</em> file are used. This style solves partial
charges on atoms via the matrix inversion method. A tolerance of
1.0e-6 is usually a good number.</p>
<p>The <em>qeq/slater</em> style describes partial charges on atoms as spherical
charge densities centered around atoms via the Slater 1*s* orbital, so
that the interaction between a pair of charged particles is the
product of two Slater 1*s* orbitals. The expression for the Slater
1*s* orbital is given under equation (6) of the
<aclass="reference internal"href="pair_coul.html#streitz"><span>Streitz-Mintmire</span></a> paper. Only the <em>chi</em>, <em>eta</em>, <em>zeta</em>, and
<em>qcore</em> parameters from the <em>qfile</em> file are used. This style solves
partial charges on atoms via the matrix inversion method. A tolerance
of 1.0e-6 is usually a good number.</p>
<p>The <em>qeq/dynamic</em> style describes partial charges on atoms as point
charges that interact through 1/r, but the extended Lagrangian method
is used to solve partial charges on atoms. Only the <em>chi</em> and <em>eta</em>
parameters from the <em>qfile</em> file are used. Note that Coulomb
catastrophe can occur if repulsion between the pair of charged
particles is too weak. A tolerance of 1.0e-3 is usually a good
number.</p>
<p>Note that <em>qeq/point</em>, <em>qeq/shielded</em>, and <em>qeq/slater</em> describe
different charge models, whereas the matrix inversion method and the
extended Lagrangian method (<em>qeq/dynamic</em>) are different solvers.</p>
<p>Note that the <em>qeq/point</em> and the <em>qeq/dynamic</em> styles both describe
charges as point charges that interact through 1/r relationship, but
solve partial charges on atoms using different solvers. Styles
<em>qeq/point</em> and the <em>qeq/dynamic</em> should yield comparable results if
the QEq parameters and <em>Nevery</em>, <em>cutoff</em>, and <em>tolerance</em> are the
same. Style <em>qeq/point</em> is typically faster, but <em>qeq/dynamic</em> scales
better on larger sizes.</p>
<divclass="admonition warning">
<pclass="first admonition-title">Warning</p>
<pclass="last">To avoid the evaluation of the derivative of charge
with respect to position, which is typically ill-defined, the system
should have a zero net charge.</p>
</div>
<divclass="admonition warning">
<pclass="first admonition-title">Warning</p>
<pclass="last">Developing QEq parameters (chi, eta, gamma, zeta, and
qcore) is an “art”. Charges on atoms are not guaranteed to
equilibrate with arbitrary choices of these parameters. We do not
develop these QEq paramters. See the examples/qeq directory for some
<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 these fixes is written to <aclass="reference internal"href="restart.html"><em>binary restart files</em></a>. No global scalar or vector or per-atom
quantities are stored by these fixes for access by various <aclass="reference internal"href="Section_howto.html#howto-15"><span>output commands</span></a>. 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.</p>
<p>Thexe fixes are invoked during <aclass="reference internal"href="minimize.html"><em>energy minimization</em></a>.</p>
</div>
<divclass="section"id="restrictions">
<h2>Restrictions<aclass="headerlink"href="#restrictions"title="Permalink to this headline">¶</a></h2>
<p>These fixes are part of the QEQ package. They are 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>
</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>.