compute nbond/atom command¶
compute ID group-ID nbond/atom
ID, group-ID are documented in compute command
nbond/atom = style name of this compute command
compute 1 all nbond/atom
Define a computation that computes the number of bonds each atom is part of. Bonds which are broken are not counted in the tally. See the Howto broken bonds page for more information. The number of bonds will be zero for atoms not in the specified compute group. This compute does not depend on Newton bond settings.
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 the Howto output doc page for an overview of LAMMPS output options.
This fix can only be used if LAMMPS was built with the BPM package. See the Build package doc page for more info.