xnn.ffnn.models.oplslib#
OPLS parameter libraries: the SEAMM .frc format and native JSON.
An OPLS model (Jorgensen, Maxwell & Tirado-Rives, J. Am. Chem. Soc. 118,
11225, 1996) is fully specified by a parameter library: per-atom-type
nonbonded parameters (partial charge, Lennard-Jones sigma / epsilon) plus
bonded parameters keyed by the equivalent atom types of each term –
harmonic bonds and angles, Fourier proper dihedrals and V2-only improper
dihedrals. Two sources are supported:
the MolSSI/SEAMM
.frcforce-field format (xnn.ffnn.common.frc). The OPLS-AA distribution ships with xnn asoplsaa.frc(variants"oplsaa","CL&P","oplsaa+"), together with"lopls"(Siu, Pluhackova & Boeckmann, JCTC 8, 1459, 2012) and"oplsaa-1996"(the paper’s original alkane torsions) layered over it. A.frclibrary carries the SMARTS templates that assign its atom types to a structure (xnn.ffnn.common.typing,from_atoms());the native JSON format of this module (
read_opls()/OPLSLibrary.save()), a direct dump ofOPLSLibraryused to round-trip trained parameters.
Energies are converted from kcal/mol to eV only when the model assembles its
parameter tensors, mirroring xnn.ffnn.models.ffield.
Functions
|
Return one of the parameter sets shipped with xnn. |
Convert OPLS Fourier coefficients to Ryckaert-Bellemans form. |
|
|
Build an |
|
Canonical improper key: outer classes sorted, central |
Convert Ryckaert-Bellemans coefficients to OPLS Fourier form. |
|
|
Read an OPLS parameter library. |
|
Find the angle-type key for the class triple |
|
Find the bond-type key for the class pair |
|
Find the best dihedral-type key for the class quadruple. |
|
Find the improper-type key for the class quadruple, |
|
Write an |
Classes
|
A parsed OPLS parameter library, in OPLS units. |