pyextal.potentialMap.structure

The crystal structure loaded in the Bloch engine, expanded to the full cell.

Attributes

Classes

Structure

Atoms of the conventional cell.

Functions

_text(raw)

structure_from_bloch()

Expands the asymmetric unit in the engine's cryst block to the full cell.

Module Contents

pyextal.potentialMap.structure._CENTRING
class pyextal.potentialMap.structure.Structure

Atoms of the conventional cell.

Variables:
  • lattice (np.ndarray) – (3, 3) Cartesian lattice vectors (rows), Angstrom.

  • symbols (list of str) – Element of each atom.

  • frac (np.ndarray) – (n, 3) fractional coordinates in [0, 1).

  • numbers (np.ndarray) – (n,) atomic numbers.

lattice: numpy.ndarray
symbols: list
frac: numpy.ndarray
numbers: numpy.ndarray
property atoms

[(symbol, [x, y, z]), ...], the form write_chgcar takes.

pyextal.potentialMap.structure._text(raw)
pyextal.potentialMap.structure.structure_from_bloch()

Expands the asymmetric unit in the engine’s cryst block to the full cell.

Needs a .dat parsed first (pyextal.callBloch.bloch_parse, or pyextal.potentialMap.setup).

Returns:

Structure