xnn.ffnn.models.reaxff_fast.nonbonded#

xnn.ffnn.models.reaxff_fast.nonbonded(pos, cell, batch, src, dst, shifts, species, q, table, dtype, ke, cutoff, vdw1, safety, shield, wall, twice=False, forces=False)[source]#

The per-atom van der Waals and Coulomb energies (N,) each in dtype of the directed pair list (src, dst) with image shifts shifts (or None), the species index per atom, the charges and the (S, S, NB_COLUMNS) table of nonbonded_table(); twice differentiable twice in the positions, charges and table (reaxff_train, the cell a constant); forces instead the two total energies (2,) and their position gradient (N, 3) (float64) in one pass, not differentiable.

Parameters:
Return type:

tuple