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_RATIOoverETA_BRACKETfor the smallest absolute difference of(erfc(eta r) - erfc(gamma r))/rand4 pi/V exp(-g^2/(4 eta^2))/g^2, withrandgthe shortest lattice and reciprocal vectors (over integer combinations up to three of each basis vector) andgammathe Gaussian-charge exponent of the mean squared width of the atoms (mean_gamma()); it stops when the bracket is shorter thanETA_TOLand returns its midpoint, so the parameter is piecewise constant in the cell.