xnn.ffnn.models.terms.induced_dipoles#

xnn.ffnn.models.terms.induced_dipoles(pos, q, alpha, damp, scale, thole, floor=1e-06)[source]#

Induced point dipoles of isolated structures by a direct linear solve.

The field of the permanent charges, damped as 1 - exp(-u) with u = a r^3 / (d_i d_j)^(1/2) and scaled pairwise by scale, polarizes alpha; the dipoles interact through the damped dipole field tensor (r^2 I (1 - e^-u) - 3 r r^T [1 - (1 + u) e^-u], the second factor floored at floor) between every pair of distinct atoms, unscaled. The symmetric positive-definite system is solved by a Cholesky factorization (by LU where it is not positive definite).

Parameters:
  • pos (Tensor) – Positions (B, n, 3).

  • q (Tensor) – Charges (B, n) or (n,).

  • alpha (Tensor) – Polarizabilities (B, n) or (n,), in the cube of the length unit.

  • damp (Tensor) – Damping volumes d (B, n) or (n,).

  • scale (Tensor) – Field scale factors (n, n) of the charges’ field (zero on the diagonal).

  • thole (float) – The damping strength a.

  • floor (float, optional) – Lower bound of the tensor’s second damping factor.

Returns:

The per-atom polarization energies -mu_i . E_i / 2 (B, n) (in charge squared over length; multiply by the Coulomb constant), the dipoles (B, n, 3) and the fields (B, n, 3).

Return type:

tuple of Tensor