xnn.ffnn.models.amber#

AMBER: the fixed-topology force field of Cornell et al. (1995).

The Cornell et al. force field (ff94; J. Am. Chem. Soc. 117, 5179, 1995, eq 1) writes the energy of a molecule or assembly as

E = sum_bonds K_r (r - r_eq)^2 + sum_angles K_theta (theta - theta_eq)^2
  • sum_dihedrals sum_n V_n/2 [1 + cos(n phi - gamma)]

  • sum_{i<j} [ A_ij / R_ij^12 - B_ij / R_ij^6 + q_i q_j / (eps R_ij) ]

with harmonic bonds and angles, a Fourier series per proper dihedral, impropers of the same periodic form centred on the third atom of the quadruple, and nonbonded interactions between atoms separated by three or more bonds, the 1,4 pairs scaled by 1/2 (van der Waals) and 1/1.2 (electrostatics). The van der Waals term is written with per-type well depths epsilon_i and radii R*_i combined as R*_ij = R*_i + R*_j and epsilon_ij = (epsilon_i epsilon_j)^1/2 (Table 13 of the paper), so that A_ij = epsilon_ij R*_ij^12 and B_ij = 2 epsilon_ij R*_ij^6. Partial charges are RESP charges that belong to residue templates rather than to atom types.

Like OPLS, the model binds a parameter library to one molecular topology (xnn.ffnn.models.topology): per-atom types, charges and bonds, from which angles, dihedrals, exclusions and 1,4 pairs follow, with the impropers placed by the AMBER rules (place_impropers()). Amber.from_atoms() types a structure from the residue templates and atom-type SMARTS of the parameter file. Later parameter sets of the same functional form (ff99, ff14SB, GAFF, …) are libraries for this one model.

Conventions and scope#

  • Every parameter lives as a plain tensor in an AmberForceField (eV / Angstrom / radians at assembly) and any group can be trained; several Amber instances can share one force field. Charges are per atom and belong to the model (trainable=("charge",)), held to the bound system’s total charge by default.

  • Torsion phases gamma and periodicities n are fixed; the barrier heights are the trainable part.

  • Nonbonded interactions come from the neighbor list within cutoff (optionally smoothed over switch_width); 1,4 pairs are evaluated exactly from the topology. Excluded pairs are excluded in every periodic image.

  • The Coulomb constant is the one of the AMBER programs, 18.2223^2 = 332.0522 kcal Angstrom / (mol e^2).

  • The 10-12 hydrogen-bond term of earlier AMBER force fields is not part of the Cornell et al. model (its parm94 table is zero) and is not implemented.

Functions

multiple_angles(cos1, sin1, n_max)

cos(n phi) and sin(n phi) for n = 1..n_max by recurrence.

Classes

Amber(ffield, topology, *[, cutoff, ...])

The AMBER fixed-topology force field (Cornell et al. 1995 form).

AmberForceField(library[, trainable])

The trainable parameter tensors of an AMBER parameter library.