xnn.ffnn.models.gfnff_export.GFNFFExport#

class xnn.ffnn.models.gfnff_export.GFNFFExport(model)[source]#

Bases: _Terms

node_features_energy_charges of a bound GFN-FF model: the energy of one conformation of a molecule or cluster as equal per-atom shares (eV), its EEQ charges, and no features.

Parameters:

model (GFNFF) – A model built without a cell.

Raises:

ValueError – If the model is periodic.

terms(pos)[source]#

The energies (Hartree) in the order of TERMS and the EEQ charges of the conformation at pos (Angstrom, (N, 3)).

Parameters:

pos (Tensor)

Return type:

Tuple[List[Tensor], Tensor]

node_features_energy_charges(atomic_numbers, edge_index, edge_vec, pos, cell, pbc, total_charge, spin_multiplicity)[source]#

The features (N, 0), the energy as equal per-atom shares (N,) in eV and the EEQ charges (N,) of the bound system at pos; the neighbor list is not used (the model evaluates every pair), and the charge is the bound one.

Raises:

RuntimeError – If the atoms are not those of the bound system in its order, or the structure is periodic.

Parameters:
Return type:

Tuple[Tensor, Tensor, Tensor]