Skip to content

Electronegativity equalization charges ​

Module: sci_form::charges_eeq (core; promoted from the experimental tier) Feature flag: none (core)


Validation and limits ​

QuestionAnswer
Compared withmulticharge 0.6.0 and an independent NumPy EEQ2019 oracle
Measured separationcharges 6.9e-12 e; coordination numbers 1.9e-11; EEQ2019 charge 6.1e-7 e
Confidence region23 molecules vs multicharge; 14 EEQ2019 cases
Main limitationnumerical gradients; no periodic boundary conditions; parameter coverage is not universal

The raw rows and the exact tolerances are in the full validation matrix.


Overview ​

Implements geometry-dependent Electronegativity Equalization (EEQ) charges, capturing polarization effects that static charge models like Gasteiger-Marsili miss. Charges depend on the 3D molecular geometry through fractional coordination numbers, making them suitable for conformer-dependent property prediction and as input to dispersion and solvation models.


Theory ​

Electronegativity Equalization ​

At equilibrium, all atoms share a common electrochemical potential μ:

μ=χi+ηiqi+∑j≠iγ(rij)qj

This yields an (N+1)×(N+1) linear system (including charge neutrality constraint ∑qi=Qtotal).

Fractional Coordination Number ​

Geometry dependence enters through the coordination number:

CNi=∑j≠i11+exp⁡(−16(rcov,ijrij−1))

The Fermi-function damping provides smooth, differentiable CN values.

Damped Coulomb Interaction ​

The pairwise interaction kernel uses improved Gaussian damping with a 13-power blending:

γ(rij)=erf(2⋅rij/σij)rij

where σij is derived from atomic charge radii. The damping exponent was improved from a naive linear kernel to 13-power Gaussian blending, which yields better charge neutrality conservation across a wider range of molecular sizes and more physical short-range behavior for closely-spaced atoms.


API ​

rust
use sci_form::charges_eeq::*;

// Compute EEQ charges
let result = compute_eeq_charges(&elements, &positions, total_charge);
// result.charges: Vec<f64>
// result.coordination_numbers: Vec<f64>

// Fractional coordination numbers
let cn = fractional_coordination(&elements, &positions);

// EEQ electrostatic energy
let energy_result = compute_eeq_energy(&elements, &positions, total_charge);
// energy_result.energy_kcal_mol: f64
// energy_result.charges: Vec<f64>

// Numerical gradient
let gradient = compute_eeq_gradient(&elements, &positions, total_charge, 0.001);

Supported Elements ​

Full coverage for Z=1–86: H through Rn, including all 3d/4d/5d transition metals (Ti–Au), lanthanides (La–Lu), and period-6 main-group elements.


Comparison with Gasteiger ​

PropertyGasteigerEEQ
Geometry-dependentNoYes
Coordination effectsNoYes (CN)
Charge neutralityIterativeExact (constraint)
Transition metalsNoYes
GradientsNoYes (numerical)

Tests ​

bash
cargo test --features beta-cpm --test experimental_gates -- test_eeq

8 integration tests (tests/experimental/test_eeq.rs) covering: charge neutrality, coordination numbers, energy computation, gradient accuracy, element coverage, and comparison with Gasteiger charges.

These tests live in the experimental_gates target — see Overview for the full command matrix.

Released under the MIT License.