xnn.ffnn.models.gfnff_periodic.ewald_eta#

xnn.ffnn.models.gfnff_periodic.ewald_eta(cellb, gamma=inf)[source]#

Ewald splitting parameter (1/Bohr): a section search with the ratio ETA_RATIO over ETA_BRACKET for the smallest absolute difference of (erfc(eta r) - erfc(gamma r))/r and 4 pi/V exp(-g^2/(4 eta^2))/g^2, with r and g the shortest lattice and reciprocal vectors (over integer combinations up to three of each basis vector) and gamma the Gaussian-charge exponent of the mean squared width of the atoms (mean_gamma()); it stops when the bracket is shorter than ETA_TOL and returns its midpoint, so the parameter is piecewise constant in the cell.

Parameters:
Return type:

float