xnn.ffnn.models.gfnfflib.neighbours#
- xnn.ffnn.models.gfnfflib.neighbours(z, pos, charge=0)[source]#
Two-pass neighbour rule: pass 1 R < R0_AB, pass 2 R < R0_AB - Delta_AB (q1_A + q1_B). For a metal M and a non-metal X the charges enter with the weights sqrt(2) Delta and Delta / sqrt(2) and the reference is R0_AB + Delta / sqrt(2) max(q0_M, 0), with q0_M the metal charge of the neutral pair. Also returns the metal-nonmetal bonds shorter than the pass-2 threshold divided by
HYB_METAL_SCALE.