2007-12-01 07:59:23 +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/atom command :h3
|
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
|
|
|
compute ID group-ID pe/atom keyword ... :pre
|
|
|
|
|
|
|
|
ID, group-ID are documented in "compute"_compute.html command
|
|
|
|
pe/atom = style name of this compute command
|
|
|
|
zero or more keywords may be appended
|
2012-02-15 04:13:00 +08:00
|
|
|
keyword = {pair} or {bond} or {angle} or {dihedral} or {improper} or {kspace} :ul
|
2007-12-01 07:59:23 +08:00
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
|
|
|
compute 1 all pe/atom
|
|
|
|
compute 1 all pe/atom pair
|
|
|
|
compute 1 all pe/atom pair bond :pre
|
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
|
|
|
Define a computation that computes the per-atom potential energy for
|
|
|
|
each atom in a group. See the "compute pe"_compute_pe.html command if
|
2009-12-04 07:58:11 +08:00
|
|
|
you want the potential energy of the entire system.
|
2007-12-01 07:59:23 +08:00
|
|
|
|
2008-02-20 05:47:37 +08:00
|
|
|
The per-atom energy is calculated by the various pair, bond, etc
|
2007-12-01 07:59:23 +08:00
|
|
|
potentials defined for the simulation. If no extra keywords are
|
|
|
|
listed, then the potential energy is the sum of pair, bond, angle,
|
2012-02-15 04:13:00 +08:00
|
|
|
dihedral,improper, and kspace energy. If any extra keywords are
|
|
|
|
listed, then only those components are summed to compute the potential
|
|
|
|
energy.
|
2007-12-01 07:59:23 +08:00
|
|
|
|
|
|
|
Note that the energy of each atom is due to its interaction with all
|
|
|
|
other atoms in the simulation, not just with other atoms in the group.
|
|
|
|
|
|
|
|
For an energy contribution produced by a small set of atoms (e.g. 4
|
|
|
|
atoms in a dihedral or 3 atoms in a Tersoff 3-body interaction), that
|
|
|
|
energy is assigned in equal portions to each atom in the set.
|
|
|
|
E.g. 1/4 of the dihedral energy to each of the 4 atoms.
|
|
|
|
|
|
|
|
The "dihedral_style charmm"_dihedral_charmm.html style calculates
|
|
|
|
pairwise interactions between 1-4 atoms. The energy contribution of
|
|
|
|
these terms is included in the pair energy, not the dihedral energy.
|
|
|
|
|
2012-02-16 23:49:48 +08:00
|
|
|
The KSpace contribution is calculated using the method in
|
|
|
|
"(Heyes)"_#Heyes for the Ewald method and a related method for PPPM,
|
|
|
|
as specified by the "kspace_style pppm"_kspace_style.html command.
|
|
|
|
For PPPM, the calcluation requires 1 extra FFT each timestep that
|
2012-05-19 06:14:39 +08:00
|
|
|
per-atom energy is calculated. Thie "document"_PDF/kspace.pdf
|
|
|
|
describes how the long-range per-atom energy calculation is performed.
|
2012-02-16 23:49:48 +08:00
|
|
|
|
2008-01-22 02:56:39 +08:00
|
|
|
As an example of per-atom potential energy compared to total potential
|
|
|
|
energy, these lines in an input script should yield the same result
|
|
|
|
in the last 2 columns of thermo output:
|
|
|
|
|
|
|
|
compute peratom all pe/atom
|
2009-02-13 04:45:46 +08:00
|
|
|
compute pe all reduce sum c_peratom
|
|
|
|
thermo_style custom step temp etotal press pe c_pe :pre
|
2008-01-22 02:56:39 +08:00
|
|
|
|
2012-02-15 04:13:00 +08:00
|
|
|
IMPORTANT NOTE: The per-atom energy does not any Lennard-Jones tail
|
|
|
|
corrections invoked by the "pair_modify tail yes"_pair_modify.html
|
|
|
|
command, since those are global contributions to the system energy.
|
2008-01-10 23:50:00 +08:00
|
|
|
|
2008-01-04 08:56:10 +08:00
|
|
|
[Output info:]
|
|
|
|
|
2009-12-05 05:04:00 +08:00
|
|
|
This compute calculates a per-atom vector, which can be accessed by
|
|
|
|
any command that uses per-atom values from a compute as input. See
|
2011-12-14 04:43:36 +08:00
|
|
|
"Section_howto 15"_Section_howto.html#howto_15 for an overview of
|
|
|
|
LAMMPS output options.
|
2008-01-04 08:56:10 +08:00
|
|
|
|
2010-01-24 07:20:05 +08:00
|
|
|
The per-atom vector values will be in energy "units"_units.html.
|
|
|
|
|
2008-01-10 23:50:00 +08:00
|
|
|
[Restrictions:]
|
|
|
|
|
2007-12-01 07:59:23 +08:00
|
|
|
[Related commands:]
|
|
|
|
|
|
|
|
"compute pe"_compute_pe.html, "compute
|
|
|
|
stress/atom"_compute_stress_atom.html
|
|
|
|
|
|
|
|
[Default:] none
|
2012-02-16 23:49:48 +08:00
|
|
|
|
|
|
|
:line
|
|
|
|
|
|
|
|
:link(Heyes)
|
|
|
|
[(Heyes)] Heyes, Phys Rev B 49, 755 (1994),
|