xnn.ffnn.models.amoeba#
AMOEBA and HIPPO: polarizable atomic multipole force fields.
AMOEBA (Ren and Ponder, J. Phys. Chem. B 107, 5933, 2003; Ponder et al., J. Phys. Chem. B 114, 2549, 2010; Shi et al., JCTC 9, 4046, 2013) writes the energy as
- U = U_bond + U_angle + U_strbnd + U_oop + U_torsion + U_vdw
U_ele^perm + U_ele^ind
with the anharmonic MM3 bond and angle polynomials, a stretch-bend cross term, Allinger out-of-plane bending at trigonal centers, Fourier torsions (plus pi-torsions across double bonds and splined torsion-torsion maps), Halgren’s buffered 14-7 van der Waals form with hydrogen sites displaced along their bonds, permanent atomic multipoles through the quadrupole in local frames defined by the bonded neighbours, and induced dipoles obtained from mutual induction with Thole damping. Interactions between atoms separated by one or two bonds are left out, 1,4 and 1,5 multipole interactions are scaled, and permanent multipoles do not polarize atoms of their own polarization group.
HIPPO (Rackers et al., JCTC 17, 7056, 2021) keeps the valence terms and the multipoles but replaces every intermolecular term by one derived from a model electron density: each atom is a point core charge plus a hydrogen-like valence density, so permanent electrostatics acquire charge penetration (damped multipole interactions), the same damping enters the induction, the exchange repulsion is an anisotropic multipolar overlap model, the dispersion is a damped C6 term and a short-range charge-transfer term is added; a charge-flux term lets the monopoles follow the bond and angle geometry.
Both fields are one implementation here: Amoeba evaluates the shared
valence and induction machinery with the AMOEBA nonbonded terms,
Hippo the same with the HIPPO ones. Parameters come from the
.frc libraries of xnn.ffnn.models.amoebalib; the model binds a
library to one MolecularTopology (types,
bonds and everything derived from them, including the polarization groups
and the multipole frames) and evaluates any conformation of that system.
Forces are autograd derivatives: the local frames are built from the
positions inside the graph, so the torques of the anisotropic terms become
forces without any explicit conversion, and the induced dipoles are solved
with a differentiable dense linear solve, so the gradient of the
non-variational polarization energy (the induced dipoles see the group-based
direct field, the energy the connectivity-based polar field) is exact.
Conventions and scope#
Units inside the model are eV and Angstrom; multipoles stay in e, e A and e A^2. The Coulomb constant is Tinker’s 332.063713 kcal A / (mol e^2).
Dipoles and quadrupoles in the parameter files are in atomic units (e bohr and e bohr^2, as the distributed multipole analysis delivers them); they are converted to e Angstrom at assembly and the traceless quadrupoles are divided by three (the convention of the Tinker files), so the interaction tensors are the plain derivatives of the kernel.
Nonbonded interactions come from the neighbor list within
cutoff. For clusters they are evaluated in full (no switching, no cutoffs below the neighbor cutoff), as the reference calculations of the papers do. For periodic cells the multipoles, the induction and HIPPO’s dispersion are Ewald sums with the reciprocal part on a particle mesh, and the short-range terms are switched off smoothly between a taper distance and their cutoff (amoeba_ewald.py); the induced dipoles of a cell are solved iteratively (preconditioned conjugate gradients) with the gradient from the converged dipoles through an implicit backward pass.The HIPPO repulsion is
K_i K_j S^2_total / Rwith the multipole expansion applied to the squared overlap of two normalised 1s Slater functions (the paper’sf_exp), the charge-penetration kernels are the Coulomb potentials of the model densities; their derivative ladders are formed exactly from exponential-polynomial series rather than from transcribed formulas.
Module Attributes
the minimum number of pairs per GPU model and precision from which the fast implementation runs in evaluation; it is faster at every size measured, so it runs on every GPU. |
|
The same for training (an energy and force loss through the kernels) |
Functions
|
The AMOEBA multipole pairs as one function of per-pair tensors: the permanent multipole energies (per pair and summed to the atoms) and, with |
|
Bicubic interpolation (the Numerical Recipes construction) inside the cell with corner values |
|
Halgren's buffered 14-7 energy |
|
Potential of a hydrogen-like valence density of exponent |
|
The ladder of the one-center (core-valence) kernel of the exponent of |
|
|
|
The undamped ladder |
|
|
|
The field of dipoles |
|
|
|
The exchange-polarization tensors of the atoms, |
|
The HIPPO pairs as one function of per-pair tensors: charge-penetration electrostatics, Pauli repulsion, damped dispersion and charge transfer (per pair and summed to the atoms) and, with |
|
The terms of ions per atom, from the pairs |
|
The whole lattice vectors |
|
The rows of |
|
Interaction energy of two multipole sets through a radial kernel. |
|
Electric field of a multipole set through a radial kernel. |
|
The real-space field of dipoles |
|
Coulomb interaction kernel of two hydrogen-like densities (the two-center charge-penetration damping): the closed form |
|
Overlap of two normalised 1s Slater functions with exponents |
|
The squared overlap |
|
The Thole-damped ladder |
|
|
|
The ladder of a two-center kernel ( |
|
The ladder of a two-center kernel ( |
Classes
|
The AMOEBA polarizable multipole force field. |
|
The trainable parameter tensors of an AMOEBA / HIPPO library. |
|
Extrapolate the induced dipoles of the next step from the last few. |
|
The HIPPO force field (Rackers et al. 2021): AMOEBA's valence terms and multipoles with density-based intermolecular terms. |
|
A radial function |
|
What an evaluation of a structure decides on the host, recorded once and reused while the structure moves by small steps (molecular dynamics between rebuilds of the pair list): the image shifts of every bonded vector, the unique pairs of the neighbor list with their image shifts and scale factors, the layout of the Ewald sums and the polarizable atoms. |