httk.atomistic.models.structure.plain¶
Backend wrapping an spglib-like (lattice, positions, numbers) triple.
Classes¶
Represent a crystal structure backed by an spglib-like triple. |
Module Contents¶
- class httk.atomistic.models.structure.plain.PlainStructure(obj, **hints)¶
Bases:
httk.atomistic.models.structure.backend.StructureBackendRepresent a crystal structure backed by an spglib-like triple.
The native representation is a length-3
(lattice, positions, numbers)list or tuple, wherelatticeis 3x3,positionsis Nx3 reduced coordinates, andnumbersis the length-N sequence of atomic numbers. The quartet is derived lazily and cached:cellis aCell,sitesaSites,speciesone single-elementSpeciesper distinct atomic number, andunwrapreturns the original triple. :param obj: The primitive structure triple to wrap. :param **hints: Backend-selection hints.- property cell: httk.atomistic.models.cell.cell.Cell¶
Expose the cell derived from the lattice.
- property sites: httk.atomistic.models.sites.sites.Sites¶
Expose the reduced coordinates derived from the positions.
- property species: tuple[httk.atomistic.models.species.species.Species, Ellipsis]¶
Expose one species definition for each distinct atomic number.
- unwrap()¶
Return the original primitive structure triple.
- Returns:
The wrapped lattice, positions, and atomic numbers.
- Return type:
Any