File: fix_heat.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 (93 lines) | stat: -rw-r--r-- 3,579 bytes parent folder | download
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
"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

fix heat command :h3

[Syntax:]

fix ID group-ID heat N eflux :pre

ID, group-ID are documented in "fix"_fix.html command :ulb,l
heat = style name of this fix command :l
N = add/subtract heat every this many timesteps :l
eflux = rate of heat addition or subtraction (energy/time units) :l
zero or more keyword/value pairs may be appended to args :l
keyword = {region}  :l
  {region} value = region-ID
    region-ID = ID of region atoms must be in to have added force :pre
:ule

[Examples:]

fix 3 qin heat 1 1.0
fix 4 qout heat 1 -1.0 region top :pre

[Description:]

Add non-translational kinetic energy (heat) to a group of atoms such
that their aggregate momentum is conserved.  Two of these fixes can be
used to establish a temperature gradient across a simulation domain by
adding heat (energy) to one group of atoms (hot reservoir) and
subtracting heat from another (cold reservoir).  E.g. a simulation
sampling from the McDLT ensemble.

If the {region} keyword is used, the atom must be in both the group
and the specified geometric "region"_region.html in order to have
energy added or subtracted to it.  If not specified, then the atoms in
the group are affected wherever they may move to.

Heat addition/subtraction is performed every N timesteps.  The {eflux}
parameter determines the change in aggregate energy of the entire
group of atoms per unit time, e.g. in eV/psec for "metal
units"_units.html.  Thus it is an "extensive" quantity, meaning its
magnitude should be scaled with the number of atoms in the group.
Since {eflux} is independent of N or the "timestep"_timestep.html, a
larger value of N will add/subtract a larger amount of energy each
time the fix is invoked.  If heat is subtracted from the system too
aggressively so that the group's kinetic energy would go to zero,
LAMMPS halts with an error message.

Fix heat is different from a thermostat such as "fix nvt"_fix_nh.html
or "fix temp/rescale"_fix_temp_rescale.html in that energy is
added/subtracted continually.  Thus if there isn't another mechanism
in place to counterbalance this effect, the entire system will heat or
cool continuously.  You can use multiple heat fixes so that the net
energy change is 0.0 or use "fix viscous"_fix_viscous.html to drain
energy from the system.

This fix does not change the coordinates of its atoms; it only scales
their velocities.  Thus you must still use an integration fix
(e.g. "fix nve"_fix_nve.html) on the affected atoms.  This fix should
not normally be used on atoms that have their temperature controlled
by another fix - e.g. "fix nvt"_fix_nh.html or "fix
langevin"_fix_langevin.html fix.

[Restart, fix_modify, output, run start/stop, minimize info:]

No information about this fix is written to "binary restart
files"_restart.html.  None of the "fix_modify"_fix_modify.html options
are relevant to this fix.

This fix computes a global scalar which can be accessed by various
"output commands"_Section_howto.html#howto_15.  This scalar is the
most recent value by which velocites were scaled.  The scalar value
calculated by this fix is "intensive".

No parameter of this fix can be used with the {start/stop} keywords of
the "run"_run.html command.  This fix is not invoked during "energy
minimization"_minimize.html.

[Restrictions:] none

[Related commands:]

"compute temp"_compute_temp.html, "compute
temp/region"_compute_temp_region.html

[Default:] none