xnn.hybnn.models.byteff_kernels.pol_real_space#

xnn.hybnn.models.byteff_kernels.pol_real_space(r, i, k, beyond, atoms, rows, count, cutoff2, alpha, thole, ke, prefactor, wall, damping)[source]#

The fused pairs of periodic ByteFF-Pol (see PolRealSpace): per-atom energies (N, 4), the field (N, 3) and the ladders D1, D2 (M,).

Parameters:
  • r (Tensor) – Pair vectors (M, 3).

  • i (Tensor) – The pairs’ atoms (M,), sorted by i.

  • k (Tensor) – The pairs’ atoms (M,), sorted by i.

  • beyond (Tensor) – Short-range weight per pair (M,) (zero within 1,5 and for the padding).

  • atoms (Tensor) – Per-atom table (N, 8) (the columns of ATOM_COLUMNS).

  • rows (tuple) – The compressed rows of the pairs (pair_rows()).

  • count (Tensor, optional) – The number of valid pairs on the device (the rest is padding).

  • cutoff2 (float) – Squared cutoff, Ewald coefficient, Thole factor, Coulomb constant, Born-Mayer prefactor, wall and dispersion damping.

  • alpha (float) – Squared cutoff, Ewald coefficient, Thole factor, Coulomb constant, Born-Mayer prefactor, wall and dispersion damping.

  • thole (float) – Squared cutoff, Ewald coefficient, Thole factor, Coulomb constant, Born-Mayer prefactor, wall and dispersion damping.

  • ke (float) – Squared cutoff, Ewald coefficient, Thole factor, Coulomb constant, Born-Mayer prefactor, wall and dispersion damping.

  • prefactor (float) – Squared cutoff, Ewald coefficient, Thole factor, Coulomb constant, Born-Mayer prefactor, wall and dispersion damping.

  • wall (float) – Squared cutoff, Ewald coefficient, Thole factor, Coulomb constant, Born-Mayer prefactor, wall and dispersion damping.

  • damping (float) – Squared cutoff, Ewald coefficient, Thole factor, Coulomb constant, Born-Mayer prefactor, wall and dispersion damping.

Returns:

energies, field, D1, D2.

Return type:

tuple of Tensor