xnn.ffnn.models.amoeba_ewald.multipole_self_energy#

xnn.ffnn.models.amoeba_ewald.multipole_self_energy(q, d, Q, alpha)[source]#

Per-atom self energies -alpha / sqrt(pi) [q^2 + 2 alpha^2 / 3 |d|^2 + 8 alpha^4 / 5 Q:Q] in e^2 / Angstrom: half the interaction of the multipole with its own smeared kernel erf(alpha R) / R at zero separation, whose ladder there is 2 alpha / sqrt(pi), -4 alpha^3 / (3 sqrt(pi)), 8 alpha^5 / (5 sqrt(pi)).

Parameters:
  • q (Tensor) – Multipoles (N,), (N, 3), (N, 3, 3).

  • d (Tensor) – Multipoles (N,), (N, 3), (N, 3, 3).

  • Q (Tensor) – Multipoles (N,), (N, 3), (N, 3, 3).

  • alpha (Tensor) – Ewald coefficient per atom (N,).

Returns:

(N,).

Return type:

Tensor