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]anddc6n[i, j]: the derivatives ofc6_mat[i, j]in the coordination numbers ofiandj).vandrare the edge vectors and lengths (bohr) in the plan’s order, of the edges within the cutoff.