xnn.common.models.dispersion.triplet_energy#
- xnn.common.models.dispersion.triplet_energy(a, b, c, j, k, edge_vec, r, z, c6_cj, c6_ck, c6_jk, r0_table, s9, alp3, cutoff, width, r0_prod=None)[source]#
ATM energy of one block of triplets, a third per center visit,
(T,).a, bindex the two edgesj -> candk -> cof every triplet,cthe shared center,j, kthe outer atoms;c6_*are the three pair coefficients. The product of the three pair critical radii is read fromr0_tableby element, or taken fromr0_prodwhen given. Shared by the scripted loop (three_body_energy()) and the recomputed one (three_body_energy_chunked()), so the formula lives once.