File: compute_modify.txt

package info (click to toggle)
lammps 0~20120615.gite442279-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 128,448 kB
  • sloc: cpp: 321,874; fortran: 15,187; ansic: 11,007; python: 7,889; perl: 2,915; sh: 2,088; makefile: 924; f90: 374; objc: 238; lisp: 169; csh: 16; tcl: 6
file content (71 lines) | stat: -rw-r--r-- 2,526 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
"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

compute_modify command :h3

[Syntax:]

compute_modify compute-ID keyword value ... :pre

compute-ID = ID of the compute to modify :ulb,l
one or more keyword/value pairs may be listed :l
keyword = {extra} or {dynamic} :l
  {extra} value = N
    N = # of extra degrees of freedom to subtract
  {dynamic} value = {yes} or {no}
    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
:ule

[Examples:]

compute_modify myTemp extra 0
compute_modify newtemp dynamic yes extra 600 :pre

[Description:]

Modify one or more parameters of a previously defined compute.  Not
all compute styles support all parameters.

The {extra} keyword refers to how many degrees-of-freedom are
subtracted (typically from 3N) as a normalizing factor in a
temperature computation.  Only computes that compute a temperature use
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.  You can use a negative
number for the {extra} parameter if you need to add
degrees-of-freedom.  See the "compute
temp/asphere"_compute_temp_asphere.html command for an example.

The {dynamic} keyword determines whether the number of atoms N in the
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
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.

The {thermo} keyword determines whether the potential energy
contribution calculated by some "fixes"_fix.html is added to the
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.

[Restrictions:] none

[Related commands:]

"compute"_compute.html

[Default:]

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}.