xnn.ffnn.models.charmm#
CHARMM: the all-atom protein force field of MacKerell et al. (1998).
The CHARMM22 energy function (J. Phys. Chem. B 102, 3586, 1998, eq 1) is
- E = sum_bonds K_b (b - b0)^2 + sum_UB K_UB (S - S0)^2
sum_angles K_theta (theta - theta0)^2
sum_dihedrals K_chi [1 + cos(n chi - delta)]
sum_impropers K_imp (phi - phi0)^2
- sum_{i<j} [ eps_ij ((Rmin_ij / r_ij)^12 - 2 (Rmin_ij / r_ij)^6)
q_i q_j / (eps_1 r_ij) ]
with harmonic bonds, angles and Urey-Bradley 1,3 terms, one or more Fourier terms per dihedral, harmonic impropers in the dihedral angle over the four atoms (central atom first), and nonbonded interactions between atoms separated by three or more bonds. The 1,4 interactions are not scaled; instead some atom types carry their own Lennard-Jones parameters for 1,4 pairs, and pair-specific overrides (NBFIX) replace the Lorentz-Berthelot combination for listed type pairs. Charges belong to residue templates.
Like OPLS and AMBER, the model binds a parameter library to one molecular
topology (xnn.ffnn.models.topology): per-atom types, charges and
bonds, from which angles, Urey-Bradley pairs, dihedrals, exclusions and 1,4
pairs follow, with the impropers taken from the residue templates
(place_impropers()).
Charmm.from_atoms() types a structure from the residue templates and
atom-type SMARTS of the parameter file.
Conventions and scope#
Every parameter lives as a plain tensor in a
CharmmForceField(eV / Angstrom / radians at assembly) and any group can be trained; severalCharmminstances 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.Dihedral phases and periodicities and the improper reference angles are fixed; the force constants are the trainable part.
The 1,4 pairs are the dihedral end atoms that are not also 1,2 or 1,3 pairs, each counted once (
MolecularTopology), which is the CHARMM bookkeeping also for rings of six atoms or fewer.Nonbonded interactions come from the neighbor list within
cutoff(optionally smoothed overswitch_width); the shifting and switching functions of the CHARMM program are not reproduced. 1,4 pairs are evaluated exactly from the topology. Excluded pairs are excluded in every periodic image.The Coulomb constant is the CHARMM program’s, 332.0716 kcal Angstrom / (mol e^2), unless the library or the constructor says otherwise.
The CMAP cross term of CHARMM22/CMAP and later parameter sets is not implemented.
Classes
|
The CHARMM fixed-topology force field (MacKerell et al. 1998 form). |
|
The trainable parameter tensors of a CHARMM parameter library. |