compute hexorder/atom command
Syntax
compute ID group-ID hexorder/atom keyword values ...
ID, group-ID are documented in compute command
hexorder/atom = style name of this compute command
one or more keyword/value pairs may be appended
keyword = degree or nnn or cutoff cutoff value = distance cutoff nnn value = number of nearest neighbors degree value = degree n of order parameter
Examples
compute 1 all hexorder/atom
compute 1 all hexorder/atom degree 4 nnn 4 cutoff 1.2
Description
Define a computation that calculates
where the sum is over the nnn nearest neighbors
of the central atom. The angle
The optional keyword cutoff defines the distance cutoff used when searching for neighbors. The default value, also the maximum allowable value, is the cutoff specified by the pair style.
The optional keyword nnn defines the number of nearest
neighbors used to calculate
The optional keyword degree sets the degree n of the order parameter.
The default value is 6. For a perfect hexagonal lattice with
nnn = 6,
The value of
The neighbor list needed to compute this quantity is constructed each time the calculation is performed (i.e. each time a snapshot of atoms is dumped). Thus it can be inefficient to compute/dump this quantity too frequently.
Note
If you have a bonded system, then the settings of special_bonds command can remove pairwise interactions between atoms in the same bond, angle, or dihedral. This is the default setting for the special_bonds command, and means those pairwise interactions do not appear in the neighbor list. Because this fix uses the neighbor list, it also means those pairs will not be included in the order parameter. This difficulty can be circumvented by writing a dump file, and using the rerun command to compute the order parameter for snapshots in the dump file. The rerun script can use a special_bonds command that includes all pairs in the neighbor list.
Output info
This compute calculates a per-atom array with 2 columns, giving the
real and imaginary parts
These values can be accessed by any command that uses per-atom values from a compute as input. See the Howto output doc page for an overview of LAMMPS output options.
Restrictions
This compute is part of the EXTRA-COMPUTE package. It is only enabled if LAMMPS was built with that package. See the Build package page for more info.
Default
The option defaults are cutoff = pair style cutoff, nnn = 6, degree = 6
(Nelson) Nelson, Halperin, Phys Rev B, 19, 2457 (1979).