xnn.hybnn.models.byteff_export.ByteFFPolExport#
- class xnn.hybnn.models.byteff_export.ByteFFPolExport(model)[source]#
Bases:
Modulenode_features_energy_chargesof a bound ByteFF-Pol model: the per-atom energies (eV) of one structure of the bound system, its charges, and no features.- Parameters:
model (ByteFFPol) – A bound model that takes every pair (
all_pairs).- Raises:
ValueError – If the model is not bound, or evaluates periodic cells (a cutoff).
- node_features_energy_charges(atomic_numbers, edge_index, edge_vec, pos, cell, pbc, total_charge, spin_multiplicity)[source]#
The features
(N, 0), the per-atom energies(N,)in eV and the charges(N,)of the bound system atpos; the neighbor list is not used (every pair interacts).- Raises:
RuntimeError – If the atoms are not those of the bound system in its order, or the structure is periodic.
- Parameters:
- Return type: