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)[source]¶
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[source]¶
Expose the cell derived from the lattice.
- property sites: httk.atomistic.models.sites.sites.Sites[source]¶
Expose the reduced coordinates derived from the positions.
- property species: tuple[httk.atomistic.models.species.species.Species, Ellipsis][source]¶
Expose one species definition for each distinct atomic number.