forked from lijiext/lammps
341 lines
17 KiB
HTML
341 lines
17 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 nvt/sllod 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 nvt/sllod 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-nvt-sllod-command">
|
|
<span id="index-0"></span><h1>fix nvt/sllod command<a class="headerlink" href="#fix-nvt-sllod-command" title="Permalink to this headline">¶</a></h1>
|
|
</div>
|
|
<div class="section" id="fix-nvt-sllod-omp-command">
|
|
<h1>fix nvt/sllod/omp command<a class="headerlink" href="#fix-nvt-sllod-omp-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 nvt/sllod keyword value ...
|
|
</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>nvt/sllod = style name of this fix command</li>
|
|
<li>additional thermostat related keyword/value pairs from the <a class="reference internal" href="fix_nh.html"><em>fix nvt</em></a> command can be appended</li>
|
|
</ul>
|
|
</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 1 all nvt/sllod temp 300.0 300.0 100.0
|
|
fix 1 all nvt/sllod temp 300.0 300.0 100.0 drag 0.2
|
|
</pre></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="description">
|
|
<h2>Description<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
|
|
<p>Perform constant NVT integration to update positions and velocities
|
|
each timestep for atoms in the group using a Nose/Hoover temperature
|
|
thermostat. V is volume; T is temperature. This creates a system
|
|
trajectory consistent with the canonical ensemble.</p>
|
|
<p>This thermostat is used for a simulation box that is changing size
|
|
and/or shape, for example in a non-equilibrium MD (NEMD) simulation.
|
|
The size/shape change is induced by use of the <a class="reference internal" href="fix_deform.html"><em>fix deform</em></a> command, so each point in the simulation box
|
|
can be thought of as having a “streaming” velocity. This
|
|
position-dependent streaming velocity is subtracted from each atom’s
|
|
actual velocity to yield a thermal velocity which is used for
|
|
temperature computation and thermostatting. For example, if the box
|
|
is being sheared in x, relative to y, then points at the bottom of the
|
|
box (low y) have a small x velocity, while points at the top of the
|
|
box (hi y) have a large x velocity. These velocities do not
|
|
contribute to the thermal “temperature” of the atom.</p>
|
|
<div class="admonition warning">
|
|
<p class="first admonition-title">Warning</p>
|
|
<p class="last"><a class="reference internal" href="fix_deform.html"><em>Fix deform</em></a> has an option for
|
|
remapping either atom coordinates or velocities to the changing
|
|
simulation box. To use fix nvt/sllod, fix deform should NOT remap
|
|
atom positions, because fix nvt/sllod adjusts the atom positions and
|
|
velocities to create a velocity profile that matches the changing box
|
|
size/shape. Fix deform SHOULD remap atom velocities when atoms cross
|
|
periodic boundaries since that is consistent with maintaining the
|
|
velocity profile created by fix nvt/sllod. LAMMPS will give an
|
|
error if this setting is not consistent.</p>
|
|
</div>
|
|
<p>The SLLOD equations of motion, originally proposed by Hoover and Ladd
|
|
(see <a class="reference internal" href="#evans"><span>(Evans and Morriss)</span></a>), were proven to be equivalent to
|
|
Newton’s equations of motion for shear flow by <a class="reference internal" href="#evans"><span>(Evans and Morriss)</span></a>. They were later shown to generate the desired
|
|
velocity gradient and the correct production of work by stresses for
|
|
all forms of homogeneous flow by <a class="reference internal" href="#daivis"><span>(Daivis and Todd)</span></a>. As
|
|
implemented in LAMMPS, they are coupled to a Nose/Hoover chain
|
|
thermostat in a velocity Verlet formulation, closely following the
|
|
implementation used for the <a class="reference internal" href="fix_nh.html"><em>fix nvt</em></a> command.</p>
|
|
<p>Additional parameters affecting the thermostat are specified by
|
|
keywords and values documented with the <a class="reference internal" href="fix_nh.html"><em>fix nvt</em></a>
|
|
command. See, for example, discussion of the <em>temp</em> and <em>drag</em>
|
|
keywords.</p>
|
|
<p>This fix computes a temperature each timestep. To do this, the fix
|
|
creates its own compute of style “temp/deform”, as if this command had
|
|
been issued:</p>
|
|
<div class="highlight-python"><div class="highlight"><pre>compute fix-ID_temp group-ID temp/deform
|
|
</pre></div>
|
|
</div>
|
|
<p>See the <a class="reference internal" href="compute_temp_deform.html"><em>compute temp/deform</em></a> command for
|
|
details. Note that the ID of the new compute is the fix-ID +
|
|
underscore + “temp”, and the group for the new compute is the same as
|
|
the fix group.</p>
|
|
<p>Note that this is NOT the compute used by thermodynamic output (see
|
|
the <a class="reference internal" href="thermo_style.html"><em>thermo_style</em></a> command) with ID = <em>thermo_temp</em>.
|
|
This means you can change the attributes of this fix’s temperature
|
|
(e.g. its degrees-of-freedom) via the
|
|
<a class="reference internal" href="compute_modify.html"><em>compute_modify</em></a> command or print this temperature
|
|
during thermodynamic output via the <a class="reference internal" href="thermo_style.html"><em>thermo_style custom</em></a> command using the appropriate compute-ID.
|
|
It also means that changing attributes of <em>thermo_temp</em> will have no
|
|
effect on this fix.</p>
|
|
<p>Like other fixes that perform thermostatting, this fix can be used
|
|
with <a class="reference internal" href="compute.html"><em>compute commands</em></a> that calculate a temperature
|
|
after removing a “bias” from the atom velocities. E.g. removing the
|
|
center-of-mass velocity from a group of atoms or only calculating
|
|
temperature on the x-component of velocity or only calculating
|
|
temperature for atoms in a geometric region. This is not done by
|
|
default, but only if the <a class="reference internal" href="fix_modify.html"><em>fix_modify</em></a> command is used
|
|
to assign a temperature compute to this fix that includes such a bias
|
|
term. See the doc pages for individual <a class="reference internal" href="compute.html"><em>compute commands</em></a> to determine which ones include a bias. In
|
|
this case, the thermostat works in the following manner: the current
|
|
temperature is calculated taking the bias into account, bias is
|
|
removed from each atom, thermostatting is performed on the remaining
|
|
thermal degrees of freedom, and the bias is added back in.</p>
|
|
<hr class="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 <a class="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 <a class="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 <a class="reference internal" href="Section_start.html#start-7"><span>-suffix command-line switch</span></a> when you invoke LAMMPS, or you can
|
|
use the <a class="reference internal" href="suffix.html"><em>suffix</em></a> command in your input script.</p>
|
|
<p>See <a class="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>
|
|
</div>
|
|
<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>This fix writes the state of the Nose/Hoover thermostat to <a class="reference internal" href="restart.html"><em>binary restart files</em></a>. See the <a class="reference internal" href="read_restart.html"><em>read_restart</em></a>
|
|
command for info on how to re-specify a fix in an input script that
|
|
reads a restart file, so that the operation of the fix continues in an
|
|
uninterrupted fashion.</p>
|
|
<p>The <a class="reference internal" href="fix_modify.html"><em>fix_modify</em></a> <em>temp</em> option is supported by this
|
|
fix. You can use it to assign a <a class="reference internal" href="compute.html"><em>compute</em></a> you have
|
|
defined to this fix which will be used in its thermostatting
|
|
procedure.</p>
|
|
<p>The <a class="reference internal" href="fix_modify.html"><em>fix_modify</em></a> <em>energy</em> option is supported by this
|
|
fix to add the energy change induced by Nose/Hoover thermostatting to
|
|
the system’s potential energy as part of <a class="reference internal" href="thermo_style.html"><em>thermodynamic output</em></a>.</p>
|
|
<p>This fix computes the same global scalar and global vector of
|
|
quantities as does the <a class="reference internal" href="fix_nh.html"><em>fix nvt</em></a> command.</p>
|
|
<p>This fix can ramp its target temperature over multiple runs, using the
|
|
<em>start</em> and <em>stop</em> keywords of the <a class="reference internal" href="run.html"><em>run</em></a> command. See the
|
|
<a class="reference internal" href="run.html"><em>run</em></a> command for details of how to do this.</p>
|
|
<p>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 works best without Nose-Hoover chain thermostats, i.e. using
|
|
tchain = 1. Setting tchain to larger values can result in poor
|
|
equilibration.</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_nve.html"><em>fix nve</em></a>, <a class="reference internal" href="fix_nh.html"><em>fix nvt</em></a>, <a class="reference internal" href="fix_temp_rescale.html"><em>fix temp/rescale</em></a>, <a class="reference internal" href="fix_langevin.html"><em>fix langevin</em></a>,
|
|
<a class="reference internal" href="fix_modify.html"><em>fix_modify</em></a>, <a class="reference internal" href="compute_temp_deform.html"><em>compute temp/deform</em></a></p>
|
|
</div>
|
|
<div class="section" id="default">
|
|
<h2>Default<a class="headerlink" href="#default" title="Permalink to this headline">¶</a></h2>
|
|
<p>Same as <a class="reference internal" href="fix_nh.html"><em>fix nvt</em></a>, except tchain = 1.</p>
|
|
<hr class="docutils" />
|
|
<p id="evans"><strong>(Evans and Morriss)</strong> Evans and Morriss, Phys Rev A, 30, 1528 (1984).</p>
|
|
<p id="daivis"><strong>(Daivis and Todd)</strong> Daivis and Todd, J Chem Phys, 124, 194103 (2006).</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> |