Using an example of a mixed discrete-continuum representation of charges under the periodic boundary condition, we show that the exact pairwise form of the Ewald sum, which is well-defined even if the system is non-neutral, provides a natural starting point for deriving unambiguous Coulomb energies that must remove all spurious dependence on the choice of the Ewald screening factor.In a recent article we derived a pairwise formulation for the Ewald sum associated with any inifinte boundary term [4]. This formulation has an intuitive interpretation of the contribution from the background charge that results in well-defined electrostatic energies. One of the main advantages of this formulation is that, as opposed to other proposed derivations of the Ewald-type algorithm for non-neutral systems (e.g. [18]), one can remove all spurious dependence of the energy on the Ewald screening factor.Let us consider a system of N discrete point chargeswith n x , n y , and n z integers. The usual Ewald3D sum under the tinfoil boundary condition (e3dtf) for the Coulomb energy of the unit cell reads[1-3]wherewith k x , k y , and k z integers. The prime indicates that the i = j terms are omitted when n = 0. The parameter α ∈ (0, ∞) is a screening factor that determines the relative proportion of the real and reciprocal space sums. However, U e3dtf uniformly and absolutely converges to an α-independent value for any given non-overlapping configuration. Under the electroneutrality condition, N j=1 q j = 0, U e3dtf can be exactly re-expressed as a conventional pairwise form (see Fig. 1
and eqs. (28)-(34) of ref.[4])The constant τ 3D independent of r and α is given byBoth τ 3D and ν e3dtf (r) absolutely and uniformly converge to α-independent values for any α ∈ (0, ∞). Taking α → ∞ in eq. (3), a more concise form for ν e3dtf (r) formally readsWhen the system is non-neutral, N j=1 q j = 0, U e3dtf of eq.(1) still converges but its value depends on α. In contrast, the pairwise expression eq. (2) remains well-defined and independent of α because the effect of the background charges has been taken into account by ν e3dtf . As will be shown below, ν e3dtf offers additional convenience when deriving any Ewald sum formula for a continuous distribution of charges.Rigorous derivations of the Ewald sum [5][6][7] have shown that the Coulomb energy of the unit cell inside an infinite periodic lattice has an extra shape-dependent term that depends on the asymptotic behavior that the lattice approaches the infinite. Alternatively, this infinite boundary term can be obtained transparently by an analysis of k → 0 behavior of the reciprocal space term[4]For example, regarding lim k→0 as lim kz →0 lim kx,ky→0 yields the Ewald sum with the planar infinite boundary term[4]