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)ofDFTD4termon the C++ kernels (the reference’s values), differentiable once inedge_vec,cn(the D4 coordination numbers) andq(the charges).