\(\renewcommand{\AA}{\text{Å}}\)

compute reaxff/atom command

Accelerator Variants: reaxff/atom/kk

Syntax

compute ID group-ID reaxff/atom attribute args ... keyword value ...
  • ID, group-ID are documented in compute command

  • reaxff/atom = name of this compute command

  • attribute = pair

    pair args = nsub
      nsub = n-instance of a sub-style, if a pair style is used multiple times in a hybrid style
  • keyword = bonds

    bonds value = no or yes
      no = ignore list of local bonds
      yes = include list of local bonds

Examples

compute 1 all reaxff/atom bonds yes

Description

New in version 7Feb2024.

Define a computation that extracts bond information computed by the ReaxFF potential specified by pair_style reaxff.

By default, it produces per-atom data that includes the following columns:

  • abo = atom bond order (sum of all bonds)

  • nlp = number of lone pairs

  • nb = number of bonds

Bonds will only be included if its atoms are in the group.

In addition, if bonds is set to yes, the compute will also produce a local array of all bonds on the current processor whose atoms are in the group. The columns of each entry of this local array are:

  • id_i = atom i id of bond

  • id_j = atom j id of bond

  • bo = bond order of bond

Output info

This compute calculates a per-atom array and local array depending on the number of keywords. The number of rows in the local array is the number of bonds as described above. Both per-atom and local array have 3 columns.

The arrays can be accessed by any command that uses local and per-atom values from a compute as input. See the Howto output page for an overview of LAMMPS output options.


Styles with a gpu, intel, kk, omp, or opt suffix are functionally the same as the corresponding style without the suffix. They have been optimized to run faster, depending on your available hardware, as discussed on the Accelerator packages page. The accelerated styles take the same arguments and should produce the same results, except for round-off and precision issues.

These accelerated styles are part of the GPU, INTEL, KOKKOS, OPENMP, and OPT packages, respectively. They are only enabled if LAMMPS was built with those packages. See the Build package page for more info.

You can specify the accelerated styles explicitly in your input script by including their suffix, or you can use the -suffix command-line switch when you invoke LAMMPS, or you can use the suffix command in your input script.

See the Accelerator packages page for more instructions on how to use the accelerated styles effectively.


Restrictions

The compute reaxff/atom command requires that the pair_style reaxff is invoked. This fix is part of the REAXFF 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 bonds = no.