2007-04-20 23:38:14 +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
|
|
|
|
|
|
|
|
fix heat command :h3
|
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
|
|
|
fix ID group-ID heat N eflux :pre
|
|
|
|
|
|
|
|
ID, group-ID are documented in "fix"_fix.html command
|
|
|
|
heat = style name of this fix command
|
|
|
|
N = add/subtract heat every this many timesteps
|
|
|
|
eflux = rate of heat addition or subtraction (energy/time units) :ul
|
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
|
|
|
fix 3 qin heat 1 1.0
|
|
|
|
fix 4 qout heat 1 -1.0 :pre
|
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
2007-04-21 07:59:34 +08:00
|
|
|
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
|
2007-04-23 22:56:08 +08:00
|
|
|
adding heat to one group of atoms (hot reservoir) and subtracting heat
|
2007-04-21 07:59:34 +08:00
|
|
|
from another (cold reservoir). E.g. a simulation sampling from the
|
|
|
|
McDLT ensemble. Note that the fix is applied to a group of atoms, not
|
|
|
|
a geometric region, so that the same set of atoms is affected wherever
|
|
|
|
they may move to.
|
2007-04-20 23:38:14 +08:00
|
|
|
|
|
|
|
Heat addition/subtraction is performed every N timesteps. The {eflux}
|
|
|
|
parameter determines the change in aggregate energy of the entire
|
2007-04-21 07:59:34 +08:00
|
|
|
group of atoms. Since eflux is in units of energy/time, this means a
|
2007-04-23 22:56:08 +08:00
|
|
|
larger value of N will add/subtract a larger amount of energy each
|
2007-04-21 07:59:34 +08:00
|
|
|
timestep the fix is invoked. If heat is subtracted from the system
|
|
|
|
too aggressively so that the group's kinetic energy goes to zero,
|
|
|
|
LAMMPS halts with an error message.
|
2007-04-20 23:38:14 +08:00
|
|
|
|
|
|
|
Fix heat is different from a thermostat such as "fix nvt"_fix_nvt.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
|
2007-04-23 22:56:08 +08:00
|
|
|
cool continuously. You can use multiple heat fixes so that the net
|
2007-04-20 23:38:14 +08:00
|
|
|
energy change is 0.0 or use "fix viscous"_fix_viscous 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_nvt.html or "fix
|
|
|
|
langevin"_fix_langevin.html fix.
|
|
|
|
|
2007-10-11 06:28:11 +08:00
|
|
|
[Restart, fix_modify, output, run start/stop, minimize info:]
|
2007-06-26 08:03:39 +08:00
|
|
|
|
|
|
|
No information about this fix is written to "binary restart
|
|
|
|
files"_restart.html. None of the "fix_modify"_fix_modify.html options
|
2007-10-11 06:28:11 +08:00
|
|
|
are relevant to this fix. No global scalar or vector or per-atom
|
|
|
|
quantities are stored by this fix for access by various "output
|
|
|
|
commands"_Section_howto.html#4_15. 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.
|
2007-06-26 08:03:39 +08:00
|
|
|
|
2007-04-20 23:38:14 +08:00
|
|
|
[Restrictions:] none
|
|
|
|
|
|
|
|
[Related commands:]
|
|
|
|
|
|
|
|
"compute temp"_compute_temp.html, "compute
|
|
|
|
temp/region"_compute_temp_region.html
|
|
|
|
|
|
|
|
[Default:] none
|
|
|
|
|