xnn.ffnn.models.amoebalib.AmoebaLibrary#
- class xnn.ffnn.models.amoebalib.AmoebaLibrary(atom_types=<factory>, bond_types=<factory>, angle_types=<factory>, angle_inplane_types=<factory>, strbnd_types=<factory>, urey_types=<factory>, opbend_types=<factory>, torsion_types=<factory>, pitors_types=<factory>, tortor_types=<factory>, vdw_types=<factory>, vdw_pair_types=<factory>, multipoles=<factory>, polarize=<factory>, chgpen=<factory>, chgtrn=<factory>, repulsion=<factory>, dispersion=<factory>, exchpol=<factory>, ionct=<factory>, mbct=<factory>, ionpair=<factory>, bndcflux=<factory>, angcflux=<factory>, settings=<factory>, name='amoeba', references=<factory>, templates=<factory>, fragments=<factory>, metadata=<factory>, notes=<factory>)[source]#
Bases:
objectA parsed AMOEBA / HIPPO parameter library, in Tinker units.
Energies are kcal/mol, lengths Angstrom, angles degrees, charges e, dipoles e bohr, quadrupoles e bohr^2, polarizabilities Angstrom^3, damping exponents 1/Angstrom. Bonded tables are keyed by the atom classes of the term joined with
-in the canonical order of the.frcreader (bond and angle keys sorted end to end, torsions by their central pair); the out-of-plane key keeps its written order (out-of-plane atom, center, the two others);Xis the wildcard.Parameters and attributes#
- atom_typesdict[str, dict]
type -> {"class", "element", "mass", "connections", "comment"}.- bond_typesdict[str, dict]
"A-B" -> {"k", "r0"}fork dr^2 (1 + c3 dr + c4 dr^2)with the cubic and quartic coefficients fromsettings.- angle_types, angle_inplane_typesdict[str, dict]
"A-B-C" -> {"k", "theta0": [theta_1, (theta_2, theta_3)]}: the ideal angles for a center carrying 0, 1 or 2 further hydrogens; the in-plane table applies to trigonal centers (Tinkeranglep).- strbnd_typesdict[str, dict]
"A-B-C" -> {"k1", "k2"},k1for the A-B bond of the key.- urey_typesdict[str, dict]
"A-B-C" -> {"k", "r0"}on the A..C distance.- opbend_typesdict[str, dict]
"D-B-A-C" -> {"k"}with D the out-of-plane atom, B the trigonal center, A and C the other substituents (sorted,Xwildcards).- torsion_typesdict[str, dict]
"A-B-C-D" -> {"terms": [[K, n, phase], ...]}forE = sum K [1 + cos(n phi - phase)]per dihedral (Kalready includes the file’storsionunit).- pitors_typesdict[str, dict]
"B-C" -> {"k"}fork [1 - cos(2 phi)]on the p-orbital angle.- tortor_typesdict[str, dict]
"A-B-C-D-E" -> {"angles1", "angles2", "values"}: the two angle grids (degrees,-180 .. 180inclusive) and the(nx, ny)energy table (kcal/mol, withtortorunitapplied).- vdw_typesdict[str, dict]
class -> {"rmin", "eps", "reduction"}: the like-pair minimum distance (Tinker’s diameter), well depth and hydrogen reduction factor (1 for heavy atoms).- vdw_pair_typesdict[str, dict]
"A-B" -> {"rmin", "eps"}pair overrides (Tinkervdwpr).- multipolesdict[str, list]
type -> [{"frame": (kz, kx, ky), "q", "dipole": [3], "quadrupole": [[3 x 3]]}, ...], one entry per local-frame definition of the type, in file order. Frame entries are atom type names with Tinker’s sign convention ("-HW") or"0"; the dipole is in e bohr and the quadrupole traceless in e bohr^2, the atomic units of the parameter files and the papers.- polarizedict[str, dict]
type -> {"alpha", "thole", "groups": [types]};thole = 0means charge-penetration damping (HIPPO).- chgpen, chgtrn, repulsion, dispersiondict[str, dict]
Per class:
{"core", "alpha"},{"eps", "alpha"},{"k", "alpha", "valence"},{"c6", "alpha"}.- exchpoldict[str, dict]
Per class:
{"spring", "size", "damp", "use"}, the exchange polarization of Chung et al. (2022): the spring constantk, the orbital sizeqand exponentzetaof the overlap, and the use flag (a pair takes part when either of its classes is used).- ionctdict[str, dict]
"ion-partner" -> {"a", "b"}(kcal/mol, 1/Angstrom): the charge transfer from the partner class into the ion class,-a exp(-b R), which replaces HIPPO’s charge transfer of every pair with the ion (a pair without a row has none). A pair of two classes has a row of one order only. An optional"x"is the hardness ratio of the partner’s molecule as a ligand of the ion in the many-body charge transfer (else the ion’sx).- mbctdict[str, dict]
class -> {"x"}: the many-body charge transfer of every molecule holding an atom of the class (a single-atom ion or a polyatomic one), withxthe ratio of its hardness to its ligands’. Thembct-formsetting picks the form:ceq(default), the charge equilibration of the ligands with no charge flowing back, orweighted, with the scale of its ligand weights inmbct-c0(kcal/mol).- ionpairdict[str, dict]
"ion-partner" -> {"a", "c", "beta"}(kcal/mol, kcal/mol Angstrom^6, 1/Angstrom): a pair correctiona exp(-beta R) - c f6(beta R) / R^6with Tang-Toennies damping.- bndcfluxdict[str, dict]
"A-B" -> {"j"}: the bond charge flux, in e/Angstrom, moved from A to B per unit stretch of the key as stored.- angcfluxdict[str, dict]
"A-B-C" -> {"jt1", "jt2", "jb1", "jb2"}(e/radian, e/Angstrom).- settingsdict
The force-field definition keywords (see
DEFAULT_SETTINGS).- namestr
Short label of the parameter set.
- references, templates, fragments, metadata, notes
As for the other
ffnnlibraries.
- property model: str#
"hippo"when the library carries charge-penetration (HIPPO) nonbonded terms, else"amoeba".
- setting(key)[source]#
A force-field setting, with the Tinker default when unset.
- Parameters:
key (str)
- scale(term, sep)[source]#
The scale factor of
term("vdw","mpole","polar","polar-intra","direct","mutual","induce","rep","disp") for atoms separated bysepbonds (1,1 .. 1,5).
- bond_flux(a, b)[source]#
The charge moved from
atobper unit stretch (sign follows the orientation asked).
- torsion(a, b, c, d)[source]#
The torsion row for the class quadruple (the exact key, in either direction, beats wildcard rows).
- opbend(d, b, a, c)[source]#
The out-of-plane row for the out-of-plane atom
dat centerbwhose other substituents areaandc: the exact row, then the wildcard rows for the other substituents.
- tortor(a, b, c, d, e)[source]#
The torsion-torsion row for five classes in chain order and whether it matched in reverse (the two angles then swap).
- Parameters:
atom_types (dict)
bond_types (dict)
angle_types (dict)
angle_inplane_types (dict)
strbnd_types (dict)
urey_types (dict)
opbend_types (dict)
torsion_types (dict)
pitors_types (dict)
tortor_types (dict)
vdw_types (dict)
vdw_pair_types (dict)
multipoles (dict)
polarize (dict)
chgpen (dict)
chgtrn (dict)
repulsion (dict)
dispersion (dict)
exchpol (dict)
ionct (dict)
mbct (dict)
ionpair (dict)
bndcflux (dict)
angcflux (dict)
settings (dict)
name (str)
references (list)
templates (dict)
fragments (dict)
metadata (dict)
notes (list)