2007-11-02 00:46:50 +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
|
|
|
|
|
|
|
|
compute pe command :h3
|
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
|
|
|
compute ID group-ID pe keyword ... :pre
|
|
|
|
|
|
|
|
ID, group-ID are documented in "compute"_compute.html command
|
|
|
|
pe = style name of this compute command
|
2007-11-03 05:05:48 +08:00
|
|
|
zero or more keywords may be appended
|
2007-11-02 00:46:50 +08:00
|
|
|
keyword = {pair} or {bond} or {angle} or {dihedral} or {improper} or {kspace} :ul
|
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
|
|
|
compute 1 all pe
|
2007-12-01 07:16:45 +08:00
|
|
|
compute molPE all pe bond angle dihedral improper :pre
|
2007-11-02 00:46:50 +08:00
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
|
|
|
Define a computation that calculates the potential energy of the
|
|
|
|
entire system of atoms. The specified group must be "all". See the
|
2007-12-01 07:16:45 +08:00
|
|
|
"compute pe/atom"_compute_pe_atom.html command if you want per-atom
|
2007-11-02 00:46:50 +08:00
|
|
|
energies. These per-atom values could be summed for a group of atoms
|
2008-02-26 00:06:38 +08:00
|
|
|
via the "compute reduce"_compute_reduce.html command.
|
2007-11-02 00:46:50 +08:00
|
|
|
|
2008-03-01 09:13:20 +08:00
|
|
|
The energy is calculated by the various pair, bond, etc potentials
|
2007-11-02 00:46:50 +08:00
|
|
|
defined for the simulation. If no extra keywords are listed, then the
|
|
|
|
potential energy is the sum of pair, bond, angle, dihedral, improper,
|
|
|
|
and kspace (long-range) energy. If any extra keywords are listed,
|
|
|
|
then only those components are summed to compute the potential energy.
|
|
|
|
|
|
|
|
Various fixes can contribute to the total potential energy of the
|
|
|
|
system. See the doc pages for "individual fixes"_fix.html for
|
|
|
|
details. The {thermo} option of the
|
|
|
|
"compute_modify"_compute_modify.html command determines whether these
|
|
|
|
contributions are added into the computed potential energy. If no
|
|
|
|
keywords are specified the default is {yes}. If any keywords are
|
|
|
|
specified, the default is {no}.
|
|
|
|
|
|
|
|
A compute of this style with the ID of "thermo_pe" is created when
|
|
|
|
LAMMPS starts up, as if this command were in the input script:
|
|
|
|
|
|
|
|
compute thermo_pe all pe :pre
|
|
|
|
|
|
|
|
See the "thermo_style" command for more details.
|
|
|
|
|
2008-01-03 03:25:15 +08:00
|
|
|
[Output info:]
|
|
|
|
|
2009-12-04 07:58:11 +08:00
|
|
|
This compute calculates a global scalar (the potential energy). This
|
|
|
|
value can be used by any command that uses a global scalar value from
|
|
|
|
a compute as input. See "this section"_Section_howto.html#4_15 for an
|
|
|
|
overview of LAMMPS output options.
|
|
|
|
|
2008-01-03 03:25:15 +08:00
|
|
|
The scalar value calculated by this compute is "extensive", meaning it
|
|
|
|
it scales with the number of atoms in the simulation.
|
|
|
|
|
2010-01-24 07:20:05 +08:00
|
|
|
The scalar value will be in energy "units"_units.html.
|
|
|
|
|
2007-11-02 00:46:50 +08:00
|
|
|
[Restrictions:] none
|
|
|
|
|
2007-12-01 07:16:45 +08:00
|
|
|
[Related commands:]
|
|
|
|
|
|
|
|
"compute pe/atom"_compute_pe_atom.html
|
2007-11-02 00:46:50 +08:00
|
|
|
|
|
|
|
[Default:] none
|