xnn.common.models.electrostatics.ewald_parameters#
- xnn.common.models.electrostatics.ewald_parameters(cutoff, accuracy)[source]#
Splitting parameter and reciprocal cutoff for a real-space cutoff and an accuracy.
alpha = sqrt(-ln eps) / r_candk_c = 2 alpha sqrt(-ln eps): the real-space screeningexp(-alpha^2 r_c^2)and the reciprocal Gaussianexp(-k_c^2 / 4 alpha^2)both equalepsat their cutoffs (the Kolafa-Perram balance for a givenr_c).