xnn.common.models.dispersion_fast.atm_cpu.three_body_direct#

xnn.common.models.dispersion_fast.atm_cpu.three_body_direct(z, plan, v, r, c6_mat, dc6m, dc6n, r0_table, s9, alp3, cutoff, width, n_atoms)[source]#

The ATM energies per atom (N,) and their gradient without autograd: in the edge vectors (in the plan’s edge order, (E, 3)) and in the coordination numbers (N,), through the pair C6 (dc6m[i, j] and dc6n[i, j]: the derivatives of c6_mat[i, j] in the coordination numbers of i and j). v and r are the edge vectors and lengths (bohr) in the plan’s order, of the edges within the cutoff.

Parameters:
Return type:

Tuple[Tensor, Tensor, Tensor]