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
|
|
|
|
|
2007-02-10 05:40:32 +08:00
|
|
|
compute_modify command :h3
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
2007-02-10 05:40:32 +08:00
|
|
|
compute_modify compute-ID keyword value ... :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2007-02-10 05:40:32 +08:00
|
|
|
compute-ID = ID of the compute to modify :ulb,l
|
2006-09-22 00:22:34 +08:00
|
|
|
one or more keyword/value pairs may be listed :l
|
2006-12-13 08:37:25 +08:00
|
|
|
keyword = {extra} or {dynamic} :l
|
2006-09-22 00:22:34 +08:00
|
|
|
{extra} value = N
|
2006-12-13 08:37:25 +08:00
|
|
|
N = # of extra degrees of freedom to subtract
|
|
|
|
{dynamic} value = {yes} or {no}
|
2007-11-02 00:46:50 +08:00
|
|
|
yes/no = do or do not recompute the number of atoms contributing to the temperature
|
|
|
|
{thermo} value = {yes} or {no}
|
|
|
|
yes/no = do or do not add contributions from fixes to the potential energy :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
:ule
|
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
2007-02-10 05:40:32 +08:00
|
|
|
compute_modify myTemp extra 0
|
|
|
|
compute_modify newtemp dynamic yes extra 600 :pre
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
2007-02-10 05:40:32 +08:00
|
|
|
Modify one or more parameters of a previously defined compute. Not
|
|
|
|
all compute styles support all parameters.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
The {extra} keyword refers to how many degrees-of-freedom are
|
2007-02-10 05:40:32 +08:00
|
|
|
subtracted (typically from 3N) as a normalizing factor in a
|
|
|
|
temperature computation. Only computes that compute a temperature use
|
2008-05-17 06:14:01 +08:00
|
|
|
this option. The default is 2 or 3 for "2d or 3d
|
|
|
|
systems"_dimension.html which is a correction factor for an ensemble
|
|
|
|
of velocities with zero total linear momentum.
|
2006-09-22 00:22:34 +08:00
|
|
|
|
2006-12-13 08:37:25 +08:00
|
|
|
The {dynamic} keyword determines whether the number of atoms N in the
|
2007-02-10 05:40:32 +08:00
|
|
|
compute group is re-computed each time a temperature is computed.
|
|
|
|
Only compute styles that compute a temperature use this option. By
|
|
|
|
default, N is assumed to be constant. If you are adding atoms to the
|
|
|
|
system (see the "fix pour"_fix_pour.html or "fix
|
2006-12-13 08:37:25 +08:00
|
|
|
deposit"_fix_deposit.html commands) or expect atoms to be lost
|
|
|
|
(e.g. due to evaporation), then this option can be used to insure the
|
|
|
|
temperature is correctly normalized.
|
|
|
|
|
2007-11-02 00:46:50 +08:00
|
|
|
The {thermo} keyword determines whether the potential energy
|
|
|
|
contribution calculated by some "fixes"_fix.html is added to the
|
2009-04-02 06:25:09 +08:00
|
|
|
potential energy calculated by the compute. Currently, only the
|
|
|
|
compute of style {pe} uses this option. See the doc pages for
|
|
|
|
"individual fixes"_fix.html for details.
|
2007-11-02 00:46:50 +08:00
|
|
|
|
2006-09-22 00:22:34 +08:00
|
|
|
[Restrictions:] none
|
|
|
|
|
|
|
|
[Related commands:]
|
|
|
|
|
2007-02-10 05:40:32 +08:00
|
|
|
"compute"_compute.html
|
2006-09-22 00:22:34 +08:00
|
|
|
|
|
|
|
[Default:]
|
|
|
|
|
2008-05-17 06:14:01 +08:00
|
|
|
The option defaults are extra = 2 or 3 for 2d or 3d systems and
|
|
|
|
dynamic = no. Thermo is {yes} if the compute of style {pe} was
|
|
|
|
defined with no extra keywords; otherwise it is {no}.
|