2006-09-22 00:22:34 +08:00
|
|
|
"LAMMPS WWW Site"_lws - "LAMMPS Documentation"_ld - "LAMMPS Commands"_lc :c
|
|
|
|
|
|
|
|
:link(lws,http://lammps.sandia.gov)
|
|
|
|
:link(ld,Manual.html)
|
|
|
|
:link(lc,Section_commands.html#comm)
|
|
|
|
|
|
|
|
:line
|
|
|
|
|
|
|
|
thermo_modify command :h3
|
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
|
|
|
thermo_modify keyword value ... :pre
|
|
|
|
|
|
|
|
one or more keyword/value pairs may be listed :ulb,l
|
2007-04-07 01:59:59 +08:00
|
|
|
keyword = {lost} or {norm} or {flush} or {line} or {format} or {temp} or {press} or {drot} or {grot} :l
|
2006-09-22 00:22:34 +08:00
|
|
|
{lost} value = {error} or {warn} or {ignore}
|
|
|
|
{norm} value = {yes} or {no}
|
|
|
|
{flush} value = {yes} or {no}
|
|
|
|
{line} value = {one} or {multi}
|
2007-04-07 02:03:05 +08:00
|
|
|
{format} values = {int} string or {float} string or M string
|
|
|
|
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
|
|
|
|
{window} value = N
|
2007-04-07 01:59:59 +08:00
|
|
|
N = number of previous print-outs to average over
|
2007-02-10 05:37:30 +08:00
|
|
|
{temp} value = compute ID that calculates a temperature
|
|
|
|
{press} value = compute ID that calculates a pressure
|
|
|
|
{drot} value = compute ID that calculates rotational energy for dipolar atoms
|
2007-04-07 01:55:22 +08:00
|
|
|
{grot} value = compute ID that calculates rotational energy for granular atoms :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
:ule
|
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
|
|
|
thermo_modify lost no flush yes
|
2007-04-07 02:03:05 +08:00
|
|
|
thermo_modify temp myTemp format 3 %15.8g
|
|
|
|
thermo_modify line multi format float %g :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
2007-02-10 05:37:30 +08:00
|
|
|
Set options for how thermodynamic information is computed and printed
|
|
|
|
by LAMMPS.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2007-02-10 05:37:30 +08:00
|
|
|
The {lost} keyword determines whether LAMMPS checks for lost atoms
|
|
|
|
each time it computes thermodynamics and what it does if atoms are
|
|
|
|
lost. If the value is {ignore}, LAMMPS does not check for lost atoms.
|
|
|
|
If the value is {error} or {warn}, LAMMPS checks and either issues an
|
2006-09-22 00:22:34 +08:00
|
|
|
error or warning. The code will exit with an error and continue with
|
|
|
|
a warning. This can be a useful debugging option.
|
|
|
|
|
2007-02-10 05:37:30 +08:00
|
|
|
The {norm} keyword determines whether the thermodynamic print-out is
|
2006-09-22 00:22:34 +08:00
|
|
|
normalized by the number of atoms or is the total summed across all
|
|
|
|
atoms. Different unit styles have different defaults for this
|
|
|
|
setting.
|
|
|
|
|
2007-02-10 05:37:30 +08:00
|
|
|
The {flush} 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
|
|
|
|
simulation completes.
|
|
|
|
|
2007-02-10 05:37:30 +08:00
|
|
|
The {line} keyword determines whether thermodynamics will be printed
|
|
|
|
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
|
|
|
|
the {one} and {multi} thermo_style settings.
|
|
|
|
|
2007-02-10 05:37:30 +08:00
|
|
|
The {format} keyword sets the numeric format of individual printed
|
2007-04-07 02:03:05 +08:00
|
|
|
quantities. The {int} and {float} keywords set the format for all
|
2006-09-22 00:22:34 +08:00
|
|
|
integer or floating-point quantities printed. The setting with a
|
2007-04-07 02:03:05 +08:00
|
|
|
numeric value (e.g. format 5 %10.4g) sets the format of the Mth value
|
|
|
|
printed in each output line, the 5th column of output in this case.
|
|
|
|
If the format for a specific column has been set, it will take
|
|
|
|
precedent over the {int} or {float} setting.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2007-02-10 05:37:30 +08:00
|
|
|
The {window} keyword sets the number of previous thermodynamic screen
|
2006-09-22 00:22:34 +08:00
|
|
|
outputs over which "thermo_style custom"_thermo_style.html {ave}
|
|
|
|
quantities are averaged when printed.
|
|
|
|
|
2007-02-10 05:37:30 +08:00
|
|
|
The {temp} keyword is used to determine how thermodynamic temperature
|
|
|
|
is calculated, which is used by all thermo quantities that require a
|
|
|
|
temperature ("temp", "press", "ke", "etotal", "enthalpy", "pxx etc",
|
|
|
|
"tave", "pave"). The specified compute ID must have been previously
|
|
|
|
defined by the user via the "compute"_compute.html command and it must
|
|
|
|
be a style of compute that calculates a temperature. As described in
|
|
|
|
the "thermo_style"_thermo_style.html command, thermo output has a
|
|
|
|
default compute for temperature with ID = {thermo_temp}. This option
|
|
|
|
allows the user to override the default.
|
|
|
|
|
|
|
|
The {press} keyword is used to determine how thermodynamic pressure is
|
|
|
|
calculated, which is used by all thermo quantities that require a
|
|
|
|
pressure ("press", "enthalpy", "pxx etc", "pave"). The specified
|
|
|
|
compute ID must have been previously defined by the user via the
|
|
|
|
"compute"_compute.html command and it must be a style of compute that
|
|
|
|
calculates a pressure. As described in the
|
|
|
|
"thermo_style"_thermo_style.html command, thermo output has a default
|
|
|
|
compute for pressure with ID = {thermo_press}. This option allows the
|
|
|
|
user to override the default.
|
|
|
|
|
|
|
|
The {drot} keyword is used to determine how rotational energy is
|
|
|
|
calculated for dipolar atoms, which is used by the thermo_style
|
|
|
|
keyword {drot}. The specified compute ID must have been previously
|
|
|
|
defined by the user via the "compute"_compute.html command. As
|
|
|
|
described in the "thermo_style"_thermo_style.html command, thermo
|
|
|
|
output has a default compute for this calculation with ID =
|
|
|
|
{thermo_rotate_dipole}. This option allows the user to override the
|
|
|
|
default.
|
|
|
|
|
|
|
|
The {grot} keyword is used to determine how rotational energy is
|
|
|
|
calculated for granular atoms, which is used by the thermo_style
|
|
|
|
keyword {grot}. The specified compute ID must have been previously
|
|
|
|
defined by the user via the "compute"_compute.html command. As
|
|
|
|
described in the "thermo_style"_thermo_style.html command, thermo
|
|
|
|
output has a default compute for this calculation with ID =
|
|
|
|
{thermo_rotate_gran}. This option allows the user to override the
|
|
|
|
default.
|
|
|
|
|
2006-09-22 00:22:34 +08:00
|
|
|
[Restrictions:] none
|
|
|
|
|
|
|
|
[Related commands:]
|
|
|
|
|
2007-03-22 04:37:22 +08:00
|
|
|
"thermo"_thermo.html, "thermo_style"_thermo_style.html
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Default:]
|
|
|
|
|
2007-02-10 05:37:30 +08:00
|
|
|
The option defaults are lost = error, norm = yes for unit style of
|
|
|
|
{lj}, norm = no for unit style of {real} and {metal}, flush = no,
|
|
|
|
window = 10, temp/press/drot/grot = compute IDs defined by
|
|
|
|
thermo_style.
|
|
|
|
|
|
|
|
The defaults for the line and format options depend on the thermo
|
|
|
|
style. For styles "one", "granular", 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".
|