xnn.dnn.models.qrnn.chai_head_gordon_dispersion#

xnn.dnn.models.qrnn.chai_head_gordon_dispersion(atomic_numbers, pos, batch, c6, r0, s6, damping, num_graphs=0, dense=False)[source]#

Per-atom share of the wB97X-D dispersion energy of molecular structures.

E = -s6 sum_{i<j} C6_ij / r^6 / (1 + a (r / R0_ij)^-12) over the atom pairs of every structure, with C6_ij = sqrt(C6_i C6_j) and R0_ij = R0_i + R0_j; half of every pair term goes to each of its atoms.

Parameters:
  • atomic_numbers (Tensor) – Atomic numbers (N,).

  • pos (Tensor) – Positions (N, 3) in Angstrom.

  • batch (Tensor) – Structure index per atom (N,).

  • c6 (Tensor) – C6 coefficients in eV Angstrom^6 by atomic number.

  • r0 (Tensor) – Radii in Angstrom by atomic number.

  • s6 (float) – Global scale.

  • damping (float) – Damping parameter a.

  • num_graphs (int, optional) – Number of structures, when the caller knows it: one structure sums its pair matrix directly (no host synchronization for the pair list), by default 0 (unknown).

  • dense (bool, optional) – Sum several structures over a masked pair matrix as well (a captured evaluation), by default False.

Returns:

Per-atom energies (N,) in eV, float64.

Return type:

Tensor