xnn.ffnn.models.gfnfflib#
Topology and parameter rules of the GFN-FF force field.
GFN-FF (Spicher & Grimme, Angew. Chem. Int. Ed. 59, 15665, 2020) builds a
complete force field from the elements, the positions and the total charge of
a molecule. This module holds the geometry-independent part: the neighbour
lists, the topology charges, hybridization and pi flags, the pi systems with
their Hueckel bond orders (Topology), and the parameter rows of
every energy term (bond_rows, angle_params, torsion_rows, …).
GFNFF evaluates the energy from these rows.
The element parameters are the ones distributed with the xtb program; they
are downloaded on first use into the model cache (parameter_file())
and are not part of xnn. The remaining tables ship in
xnn/ffnn/data/gfnff_tables.json.
Module Attributes
Elements the rules cover. |
|
an O between a metal and a non-metal bonded to that metal is sp3 when the pair is closer than its pass-2 threshold divided by this factor (see hybridization) |
|
lattice shifts of the image pairs searched by the periodic neighbour rule |
|
the search of each start keeps its first distinct rings up to this many |
|
the cell, then the 26 neighbouring cells with the third index outermost |
|
Elements that are sp with one neighbour when that neighbour has no other. |
|
charge coefficient of the diagonal, stop tolerance of the band energy, iteration limit, level above which one electron is removed, coupling at P = 2/3, its slope in P with the factor per sp atom, the decrease of the element scale of the coupling per Bohr of bond length, the smearing energy and the frontier gap below which the first iteration of an even electron count fills its levels with whole electrons. |
|
charge coefficient of the diagonal, stop tolerance of the band energy, iteration limit, level above which one electron is removed, coupling at P = 2/3, its slope in P with the factor per sp atom, the decrease of the element scale of the coupling per Bohr of bond length, the smearing energy and the frontier gap below which the first iteration of an even electron count fills its levels with whole electrons. |
|
charge coefficient of the diagonal, stop tolerance of the band energy, iteration limit, level above which one electron is removed, coupling at P = 2/3, its slope in P with the factor per sp atom, the decrease of the element scale of the coupling per Bohr of bond length, the smearing energy and the frontier gap below which the first iteration of an even electron count fills its levels with whole electrons. |
|
charge coefficient of the diagonal, stop tolerance of the band energy, iteration limit, level above which one electron is removed, coupling at P = 2/3, its slope in P with the factor per sp atom, the decrease of the element scale of the coupling per Bohr of bond length, the smearing energy and the frontier gap below which the first iteration of an even electron count fills its levels with whole electrons. |
|
Scales of the distance damping of the angle and the torsion terms. |
|
Scales of the distance damping of the angle and the torsion terms. |
|
Hueckel diagonal of a bent two-neighbour C (hyb -2) |
|
its base value, the coefficient of the squared electronegativity difference and the coefficient of f - 1. |
|
its base value, the coefficient of the squared electronegativity difference and the coefficient of f - 1. |
|
its base value, the coefficient of the squared electronegativity difference and the coefficient of f - 1. |
|
Electronegativities of the bond exponent that differ from the Pauling table. |
|
central elements of the extra one-fold torsion term |
|
torsions with a smaller force constant are dropped |
|
squared radii (Bohr^2) of the two translation lists of the bonded three-body term (the second also lists the repulsion images): shifts of third atoms are looked up in the first and the lattice vector at the same position of the second is the one applied |
|
squared radii (Bohr^2) of the two translation lists of the bonded three-body term (the second also lists the repulsion images): shifts of third atoms are looked up in the first and the lattice vector at the same position of the second is the one applied |
|
Squared distances (Bohr^2) below which a hydrogen bond (donor to acceptor), a loose hydrogen bond (sum over the three sides) and a halogen bond (donor to acceptor) enter the energy. |
|
Squared distances (Bohr^2) below which a hydrogen bond (donor to acceptor), a loose hydrogen bond (sum over the three sides) and a halogen bond (donor to acceptor) enter the energy. |
|
Squared distances (Bohr^2) below which a hydrogen bond (donor to acceptor), a loose hydrogen bond (sum over the three sides) and a halogen bond (donor to acceptor) enter the energy. |
|
H atoms on a first-row atom at or below this charge form no hydrogen bonds. |
|
Hydrogen- and halogen-bond rows whose angular switch argument reaches this value contribute nothing. |
Functions
|
Donor strength of the hydrogen-bond terms; the N-H of a secondary amide on a saturated carbon is scaled by 0.8. |
|
Per angle (c, a, b, t0 in rad, k); t0 None where no rule is known. |
|
(t0 in degrees, factor) of the angle a-c-b; t0 None when no rule applies. |
|
Metal class of atom a: Sn, Pb, Bi and Po with more than four neighbours count as group 13 metals. |
|
|
|
Triples (i, j, k, coefficient) of the bonded three-body term: 1-4 pairs i, j counted without eta bonds and the ligand neighbours k of i and of j (a neighbour of both counts twice). |
|
Hybridization-pair factor f of the bond: k is multiplied by f, alpha = a0 + b dEN^2 + c (f - 1). |
|
Geometry-independent part per bond: (i, j, shift, pair factor, alpha without the hydrogen-bond term, k, H atom or -1, acceptors of that H). |
|
|
|
An H between a metal and a non-metal. |
|
|
|
Coulomb matrix of Gaussian charges of widths alpha with the hardness on the diagonal. |
|
|
|
Topology charge of the metal in the neutral bonded pair of a metal and a non-metal. |
|
Environment shifts of the electronegativity; the amide H shift enters the final charge model only, not the topology charges. |
|
Factor of the extra one-fold torsion about a bond of the element pair cz (None without one): -2 with an O, 0.7 with an N, -0.9 otherwise, divided by the pair factor; boron counts when both bond atoms are sp3 (boron). |
|
Whether a torsion takes the extra one-fold term (extra_n1): ends with neighbours of their own, no H, no d metal other than sp3 and no sp metal end, none at a hypervalent S; sp or sp2 ends take none (a pi S only when it is a torsion pi atom), sp3 ends with a pi flag (ethers, amines) keep it. |
|
Edges of the folded simple graph of image bonds (i, Img j). |
|
Fractional coordinates as the wrapping rule sees them: positions in Bohr times the cofactor inverse of the lattice (rows are the lattice vectors, the cofactors times the reciprocal determinant), summed component by component; atoms on a cell face fall on the side this arithmetic gives. |
|
Total charge of each covalent fragment: the whole charge sits on the fragment that holds the first atom. |
|
Pi-torsion factor of the bond order: 0.55 + 11.8 P s, switched on by s = exp(-2.5 (1.24 - P)^14). |
Per-atom c_J of the charge-dependent hardness J' = J + c_J qt. |
|
|
0 inactive, 1 weak, 2 strong hydrogen-bond atom. |
Neighbour sets of the hydrogen- and halogen-bond terms: ligand atoms do not count an eta-bonded metal. |
|
|
Membership of the two hydrogen-bond lists at the positions |
|
Predicted hydrogen-bond triples (donor A bonded to H, acceptor B, H) at the positions |
|
|
|
Pi bond orders of one pi system (dict with z, nb, hyb, q, nel, edges, optional bond lengths r in Bohr) from the iterated Hueckel model. |
|
Per atom: (hyb code, pi flag) (-3 amide N, 5 hypervalent). |
|
|
Inversions (centre, j, k, l, n, w0 in degrees, k); neighbours ordered by distance from the centre, so l is the farthest one (the out-of-plane bond of the energy); ties go in reverse list order. |
|
|
|
|
True when the bond j-k lies on a cycle of the graph of mutual ligand neighbours. |
|
Neighbour lists with the metal hybridizations: carbon atoms ignore an eta-bonded metal and, unless eta_only, ligand atoms ignore a metal with five or more neighbours. |
|
Metal class of the bond term: 1 groups 1 and 2, 2 group 13, 3 transition metals with Sr and Ba, 0 otherwise. |
|
(shift, alpha, k) of a bond to a metal (the atom of the higher class is the metal). |
|
(shift, alpha, k) of a bond between two metals: the class shifts and coordination denominators of both atoms and a charge coefficient summed over both classes. |
|
True when the bond j-k closes a three-membered ring of mutual ligand neighbours. |
|
Per atom, the atoms within three bonds with their bond counts (cached on the topology); when eta is False the paths avoid eta bonds, but bonded atoms stay one bond apart. |
|
Two-pass neighbour rule: pass 1 R < R0_AB, pass 2 R < R0_AB - Delta_AB (q1_A + q1_B). |
|
|
|
The GFN-FF parameter file of xtb, downloaded into the model cache if needed. |
|
Element parameters |
|
The two-pass neighbour rule of |
|
Overall factor of g(P) for an end atom: 1.5 for a hypervalent non-pi atom beyond neon. |
|
Slope factor of g(P) for an end atom: 1.3 for non-pi atoms beyond neon. |
Largest distance (Angstrom) at which a repulsion pair can still enter: its exponent stays below 60 for the smallest exponent the pair parameters allow. |
|
Pairs |
|
|
Lattice shifts of the images that can hold an atom within |
|
Occupations 0..2: alpha ((nel + 1) // 2) and beta (nel // 2) electrons smeared separately at 4000 K. |
|
Charges with one total-charge constraint per covalent fragment (see |
|
Bond factor of two transition metals, 1.7 (2 - min(T, 1)). |
|
Topology charges on a graph: shortest-path distances over bonds of 1.175 (r_A + r_B) and the square root of the neighbour count, capped at 4.4. |
|
|
|
Proper torsions (i, j, k, l, n, phi0 in degrees, k) in chain order i-j-k-l. |
|
Pi flag as the torsion rules see it: an S with three or more neighbours and two bonded O atoms on the same metal count as saturated. |
|
Lattice shifts of a translation list with radius |
|
Predicted halogen-bond rows (D, Y, X) at the positions |
Classes
|
A folded atom index of a periodic structure with the lattice shift of its image: it compares, hashes and indexes as the atom of the unit cell, and positions taken through |
|
Neighbour lists of a periodic structure: the list of an |
|
Positions (Angstrom) of atoms and their images: |
|