xnn.hybnn.models.byteff_export#

The scriptable core of an exported ByteFF-Pol model (see export_torchscript_potential()).

A ByteFF-Pol model predicts the parameters of the system it is bound to once; the export keeps those parameter rows. For molecules and clusters (every pair, no cell) it evaluates the energy block of the reference (_PolEnergy) with the induced-dipole solve; in periodic cells the terms of the reference’s periodic path from the same functions: the bonded terms and the pairs within 1,5 on minimum-image vectors, the neighbor pairs, the particle-mesh Ewald sums and the induced dipoles by the reference’s preconditioned conjugate gradients, with the forces of the polarization energy from its variational form at the solved dipoles (the gradient the reference’s adjoint gives).

Classes

ByteFFPolCellExport(model)

node_features_energy_charges of a bound ByteFF-Pol model with a cutoff: the per-atom energies (eV) of one periodic cell of the bound system, its charges, and no features.

ByteFFPolExport(model)

node_features_energy_charges of a bound ByteFF-Pol model: the per-atom energies (eV) of one structure of the bound system, its charges, and no features.