xnn.ffnn.models.gfnff_periodic#

Nonbonded terms of a periodic GFN-FF model: EEQ electrostatics by an Ewald sum, dispersion over the images, and the hydrogen- and halogen-bond rows over the images. Positions and cells enter in Angstrom and are used in Bohr; every energy is differentiable in the positions and the cell.

Module Attributes

DISP_CUT

pair cutoff (Bohr) of the dispersion over the images

DISP_LIST2

squared radii (Bohr^2) of the translation lists of the dispersion and of the hydrogen bonds

NEAR_IMAGE

images of a pair within this distance (Bohr) of its minimum image are all centres of the real-space sum

ETA_RATIO

Section ratio, bracket (1/Bohr) and bracket tolerance of the search for the Ewald splitting parameter

Functions

bind(model, x[, skin])

Hydrogen- and halogen-bond rows of a periodic model at the wrapped positions x (Bohr); skin (Bohr) widens the distance cuts so that the rows stay valid for small moves.

bond_acceptors(model, rows)

Acceptors of the H-N and H-O bond softening over the images: the N and O acceptors of the H in the bonded-H rows, each image once; a bond whose H lies in another image than its partner takes none.

counts(model, x, cellb)

Log-damped erf coordination numbers over the images; an atom and its own images enter from both sides.

dispersion(model, x, cellb, logcn)

Dispersion energy over the capped translation list (Hartree); an atom and its own images at full weight.

electrostatics(model, x, cellb, logcn)

EEQ charges and their energy over the images (Hartree); x and cellb in Bohr.

ewald_eta(cellb[, gamma])

Ewald splitting parameter (1/Bohr): a section search with the ratio ETA_RATIO over ETA_BRACKET for the smallest absolute difference of (erfc(eta r) - erfc(gamma r))/r and 4 pi/V exp(-g^2/(4 eta^2))/g^2, with r and g the shortest lattice and reciprocal vectors (over integer combinations up to three of each basis vector) and gamma the Gaussian-charge exponent of the mean squared width of the atoms (mean_gamma()); it stops when the bracket is shorter than ETA_TOL and returns its midpoint, so the parameter is piecewise constant in the cell.

hb_xb(rows, x, cellb)

Hydrogen- and halogen-bond energies (Hartree) of the bound rows; x and cellb in Bohr.

kernel_tables(model)

The hydrogen- and halogen-bond rows of the bound lists in the layout of the molecular kernels, every atom an index of the atoms of the cell followed by the images the rows reach (images new to the model are added to its extended atoms).

mean_gamma(model)

Gaussian-charge exponent 1/sqrt(2 <alpha^2>) of the mean squared charge width of the atoms (1/Bohr).

repulsion_rows(t)

The repulsion pairs of a periodic topology over the images of its translation list (each unordered pair once, an atom with its own images counted from both sides): atoms i and j of the cell, the lattice shift of j, prefactors and exponents.