2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
<!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" >
2015-12-21 23:20:41 +08:00
< title > thermo_modify command — LAMMPS documentation< / title >
2015-07-30 22:53:28 +08:00
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
< link rel = "stylesheet" href = "_static/css/theme.css" type = "text/css" / >
2006-09-22 00:22:34 +08:00
2015-07-30 22:53:28 +08:00
< link rel = "stylesheet" href = "_static/sphinxcontrib-images/LightBox2/lightbox2/css/lightbox.css" type = "text/css" / >
2015-12-21 23:20:41 +08:00
< link rel = "top" title = "LAMMPS documentation" href = "index.html" / >
2015-07-30 22:53:28 +08:00
< 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 > thermo_modify 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 = "thermo-modify-command" >
< span id = "index-0" > < / span > < h1 > thermo_modify command< a class = "headerlink" href = "#thermo-modify-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 > thermo_modify keyword value ...
< / pre > < / div >
< / div >
< ul class = "simple" >
< li > one or more keyword/value pairs may be listed< / li >
< / ul >
< pre class = "literal-block" >
keyword = < em > lost< / em > or < em > lost/bond< / em > or < em > norm< / em > or < em > flush< / em > or < em > line< / em > or < em > format< / em > or < em > temp< / em > or < em > press< / em > :l
< em > lost< / em > value = < em > error< / em > or < em > warn< / em > or < em > ignore< / em >
< em > lost/bond< / em > value = < em > error< / em > or < em > warn< / em > or < em > ignore< / em >
< em > norm< / em > value = < em > yes< / em > or < em > no< / em >
< em > flush< / em > value = < em > yes< / em > or < em > no< / em >
< em > line< / em > value = < em > one< / em > or < em > multi< / em >
< em > format< / em > values = < em > int< / em > string or < em > float< / em > string or M string
2007-04-07 02:03:05 +08:00
M = integer from 1 to N, where N = # of quantities being printed
2006-09-22 00:22:34 +08:00
string = C-style format string
2015-07-30 22:53:28 +08:00
< em > temp< / em > value = compute ID that calculates a temperature
< em > press< / em > value = compute ID that calculates a pressure
< / 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 > thermo_modify lost ignore flush yes
2007-04-07 02:03:05 +08:00
thermo_modify temp myTemp format 3 %15.8g
2015-07-30 22:53:28 +08:00
thermo_modify line multi format float %g
< / pre > < / div >
< / div >
< / div >
< div class = "section" id = "description" >
< h2 > Description< a class = "headerlink" href = "#description" title = "Permalink to this headline" > ¶< / a > < / h2 >
< p > Set options for how thermodynamic information is computed and printed
by LAMMPS.< / p >
2015-12-11 01:23:56 +08:00
< div class = "admonition note" >
< p class = "first admonition-title" > Note< / p >
< p class = "last" > These options apply to the currently defined thermo style. When
you specify a < a class = "reference internal" href = "thermo_style.html" > < em > thermo_style< / em > < / a > command, all
thermodynamic settings are restored to their default values, including
those previously reset by a thermo_modify command. Thus if your input
script specifies a thermo_style command, you should use the
2015-07-30 22:53:28 +08:00
thermo_modify command after it.< / p >
< / div >
< p > The < em > lost< / em > keyword determines whether LAMMPS checks for lost atoms
2007-02-10 05:37:30 +08:00
each time it computes thermodynamics and what it does if atoms are
2015-07-30 22:53:28 +08:00
lost. An atom can be “ lost” if it moves across a non-periodic
simulation box < a class = "reference internal" href = "boundary.html" > < em > boundary< / em > < / a > or if it moves more than a box
2010-06-03 04:38:41 +08:00
length outside the simulation domain (or more than a processor
sub-domain length) before reneighboring occurs. The latter case is
typically due to bad dynamics, e.g. too large a timestep or huge
2015-07-30 22:53:28 +08:00
forces and velocities. If the value is < em > ignore< / em > , LAMMPS does not
check for lost atoms. If the value is < em > error< / em > or < em > warn< / em > , LAMMPS
2010-06-03 04:38:41 +08:00
checks and either issues an error or warning. The code will exit with
an error and continue with a warning. A warning will only be issued
once, the first time an atom is lost. This can be a useful debugging
2015-07-30 22:53:28 +08:00
option.< / p >
< p > The < em > lost/bond< / em > keyword determines whether LAMMPS throws an error or
2013-12-17 22:13:04 +08:00
not if an atom in a bonded interaction (bond, angle, etc) cannot be
found when it creates bonded neighbor lists. By default this is a
fatal error. However in some scenarios it may be desirable to only
issue a warning or ignore it and skip the computation of the missing
bond, angle, etc. An example would be when gas molecules in a vapor
are drifting out of the box through a fixed boundary condition (see
2015-07-30 22:53:28 +08:00
the < a class = "reference internal" href = "boundary.html" > < em > boundary< / em > < / a > command). In this case one atom may be
deleted before the rest of the molecule is, on a later timestep.< / p >
< p > The < em > norm< / em > keyword determines whether various thermodynamic output
2009-01-06 07:48:45 +08:00
values are normalized by the number of atoms or not, depending on
2015-07-30 22:53:28 +08:00
whether it is set to < em > yes< / em > or < em > no< / em > . Different unit styles have
different defaults for this setting (see below). Even if < em > norm< / em > is
set to < em > yes< / em > , a value is only normalized if it is an “ extensive”
2009-01-06 07:48:45 +08:00
quantity, meaning that it scales with the number of atoms in the
system. For the thermo keywords described by the doc page for the
2015-07-30 22:53:28 +08:00
< a class = "reference internal" href = "thermo_style.html" > < em > thermo_style< / em > < / a > command, all energy-related keywords
are extensive, such as < em > pe< / em > or < em > ebond< / em > or < em > enthalpy< / em > . Other keywords
such as < em > temp< / em > or < em > press< / em > are “ intensive” meaning their value is
2009-01-06 07:48:45 +08:00
independent (in a statistical sense) of the number of atoms in the
system and thus are never normalized. For thermodynamic output values
2015-07-30 22:53:28 +08:00
extracted from fixes and computes in a < a class = "reference internal" href = "thermo_style.html" > < em > thermo_style custom< / em > < / a > command, the doc page for the individual
< a class = "reference internal" href = "fix.html" > < em > fix< / em > < / a > or < a class = "reference internal" href = "compute.html" > < em > compute< / em > < / a > lists whether the value is
“ extensive” or “ intensive” and thus whether it is normalized.
2009-01-06 07:48:45 +08:00
Thermodynamic output values calculated by a variable formula are
2015-07-30 22:53:28 +08:00
assumed to be “ intensive” and thus are never normalized. You can
2009-01-06 07:48:45 +08:00
always include a divide by the number of atoms in the variable formula
2015-07-30 22:53:28 +08:00
if this is not the case.< / p >
< p > The < em > flush< / em > keyword invokes a flush operation after thermodynamic info
2006-09-22 00:22:34 +08:00
is written to the log file. This insures the output in that file is
current (no buffering by the OS), even if LAMMPS halts before the
2015-07-30 22:53:28 +08:00
simulation completes.< / p >
< p > The < em > line< / em > keyword determines whether thermodynamics will be printed
2007-02-10 05:37:30 +08:00
as a series of numeric values on one line or in a multi-line format
with 3 quantities with text strings per line and a dashed-line header
2006-09-22 00:22:34 +08:00
containing the timestep and CPU time. This modify option overrides
2015-07-30 22:53:28 +08:00
the < em > one< / em > and < em > multi< / em > thermo_style settings.< / p >
< p > The < em > format< / em > keyword sets the numeric format of individual printed
quantities. The < em > int< / em > and < em > float< / em > keywords set the format for all
2006-09-22 00:22:34 +08:00
integer or floating-point quantities printed. The setting with a
2011-01-05 03:00:12 +08:00
numeric value M (e.g. format 5 %10.4g) sets the format of the Mth
value printed in each output line, e.g. the 5th column of output in
this case. If the format for a specific column has been set, it will
2015-07-30 22:53:28 +08:00
take precedent over the < em > int< / em > or < em > float< / em > setting.< / p >
2015-12-11 01:23:56 +08:00
< div class = "admonition note" >
< p class = "first admonition-title" > Note< / p >
2015-07-30 22:53:28 +08:00
< p class = "last" > The thermo output values < em > step< / em > and < em > atoms< / em > are stored
2011-12-22 23:33:47 +08:00
internally as 8-byte signed integers, rather than the usual 4-byte
2015-07-30 22:53:28 +08:00
signed integers. When specifying the “ format int” keyword you can use
a “ %d” -style format identifier in the format string and LAMMPS will
convert this to the corresponding “ %lu” form when it is applied to
those keywords. However, when specifying the “ format M string”
keyword for < em > step< / em > and < em > natoms< / em > , you should specify a string
appropriate for an 8-byte signed integer, e.g. one with “ %ld” .< / p >
< / div >
< p > The < em > temp< / em > keyword is used to determine how thermodynamic temperature
2007-02-10 05:37:30 +08:00
is calculated, which is used by all thermo quantities that require a
2015-07-30 22:53:28 +08:00
temperature (“ temp” , “ press” , “ ke” , “ etotal” , “ enthalpy” , “ pxx” , etc).
2008-02-13 22:59:22 +08:00
The specified compute ID must have been previously defined by the user
2015-07-30 22:53:28 +08:00
via the < a class = "reference internal" href = "compute.html" > < em > compute< / em > < / a > command and it must be a style of
2008-02-13 22:59:22 +08:00
compute that calculates a temperature. As described in the
2015-07-30 22:53:28 +08:00
< a class = "reference internal" href = "thermo_style.html" > < em > thermo_style< / em > < / a > command, thermo output uses a default
compute for temperature with ID = < em > thermo_temp< / em > . This option allows
the user to override the default.< / p >
< p > The < em > press< / em > keyword is used to determine how thermodynamic pressure is
2007-02-10 05:37:30 +08:00
calculated, which is used by all thermo quantities that require a
2015-07-30 22:53:28 +08:00
pressure (“ press” , “ enthalpy” , “ pxx” , etc). The specified compute ID
2008-02-13 22:59:22 +08:00
must have been previously defined by the user via the
2015-07-30 22:53:28 +08:00
< a class = "reference internal" href = "compute.html" > < em > compute< / em > < / a > command and it must be a style of compute that
2007-02-10 05:37:30 +08:00
calculates a pressure. As described in the
2015-07-30 22:53:28 +08:00
< a class = "reference internal" href = "thermo_style.html" > < em > thermo_style< / em > < / a > command, thermo output uses a default
compute for pressure with ID = < em > thermo_press< / em > . This option allows the
user to override the default.< / p >
2015-12-11 01:23:56 +08:00
< div class = "admonition note" >
< p class = "first admonition-title" > Note< / p >
< p class = "last" > If both the < em > temp< / em > and < em > press< / em > keywords are used in a single
thermo_modify command (or in two separate commands), then the order in
which the keywords are specified is important. Note that a < a class = "reference internal" href = "compute_pressure.html" > < em > pressure compute< / em > < / a > defines its own temperature compute as
an argument when it is specified. The < em > temp< / em > keyword will override
this (for the pressure compute being used by thermodynamics), but only
if the < em > temp< / em > keyword comes after the < em > press< / em > keyword. If the < em > temp< / em >
keyword comes before the < em > press< / em > keyword, then the new pressure
compute specified by the < em > press< / em > keyword will be unaffected by the
< em > temp< / em > setting.< / p >
2015-07-30 22:53:28 +08:00
< / div >
< / div >
< div class = "section" id = "restrictions" >
< h2 > Restrictions< a class = "headerlink" href = "#restrictions" title = "Permalink to this headline" > ¶< / a > < / h2 >
< blockquote >
< div > none< / div > < / blockquote >
< / 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 = "thermo.html" > < em > thermo< / em > < / a > , < a class = "reference internal" href = "thermo_style.html" > < em > thermo_style< / 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 lost = error, norm = yes for unit style of
< em > lj< / em > , norm = no for unit style of < em > real< / em > and < em > metal< / em > , flush = no,
and temp/press = compute IDs defined by thermo_style.< / p >
< p > The defaults for the line and format options depend on the thermo
style. For styles “ one” and “ custom” , the line and format defaults
are “ one” , “ %8d” , and “ %12.8g” . For style “ multi” , the line and
format defaults are “ multi” , “ %8d” , and “ %14.4f” .< / p >
< / div >
< / div >
< / div >
< / div >
< footer >
< hr / >
< div role = "contentinfo" >
< p >
2015-12-11 01:23:56 +08:00
© Copyright 2013 Sandia Corporation.
2015-07-30 22:53:28 +08:00
< / 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:'./',
2015-12-21 23:20:41 +08:00
VERSION:'',
2015-07-30 22:53:28 +08:00
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 >