xnn.ffnn.models.amoeba_ewald.dispersion_pme#

xnn.ffnn.models.amoeba_ewald.dispersion_pme(c, pos, cell, alpha, mesh, order)[source]#

Per-atom reciprocal energies of the -c_i c_j / R^6 Ewald sum of one periodic structure, self term included: -[1/2 c_i phi6(r_i) - alpha^6 / 12 c_i^2] with phi6 the mesh potential of the r^-6 kernel (k = 0 included).

Parameters:
  • c (Tensor) – Dispersion coefficients (N,) (the pair energy is -c_i c_j / R^6).

  • pos (Tensor) – Positions (N, 3).

  • cell (Tensor) – Lattice vectors as rows (3, 3).

  • alpha (float) – The dispersion Ewald coefficient.

  • mesh (list of int) – Mesh dimensions.

  • order (int) – B-spline order.

Returns:

(N,) in the units of c_i c_j / R^6.

Return type:

Tensor