Skip to content

Atom type different from element #212

Answered by Linux-cpp-lisp
peastman asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @peastman ,

Actually we do not assume any such correspondence, and the entire NequIP type system is designed to make this possible. In general in nequip atom type is just an arbitrary per-atom index ranging from 0 to n_types - 1 stored in the atom_types field (AtomicDataDict.ATOM_TYPE_KEY in Python).

Inside of the network itself, this is the only relevant data key; the data loading/creation code (either AtomicDataset via TypeMapper in the Python code, or pair_nequip/pair_allegro in LAMMPS) is responsible for converting atomic numbers or LAMMPS type information into atom type indexes.

When setting up a YAML config, instead of providing chemical_symbols or chemical_symbol_to_type, you ca…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@peastman
Comment options

@Linux-cpp-lisp
Comment options

Answer selected by peastman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants