xnn.common.models.dispersion_fast.cpu.d4_terms#

xnn.common.models.dispersion_fast.cpu.d4_terms(term, z, edge_index, edge_vec, batch, cn, q)[source]#

The two-body and three-body energies per atom (hartree) and the dynamic polarizabilities (N, 23) of DFTD4 term on the C++ kernels (the reference’s values), differentiable once in edge_vec, cn (the D4 coordination numbers) and q (the charges).

Parameters:
Return type:

Tuple[Tensor, Tensor, Tensor]