xnn.ffnn.models.amoeba_ewald.ewald_coefficient#

xnn.ffnn.models.amoeba_ewald.ewald_coefficient(cutoff, accuracy=1e-08)[source]#

The Ewald coefficient for a real-space cutoff.

The value alpha at which the screened interaction at the cutoff, erfc(alpha r_c) / r_c, equals accuracy (bisection).

Parameters:
  • cutoff (float) – Real-space cutoff in Angstrom.

  • accuracy (float, optional) – The screened interaction at the cutoff, by default 1e-8.

Returns:

alpha in 1/Angstrom.

Return type:

float