pyprocar.core.Structure#
- class pyprocar.core.Structure(atoms=None, cartesian_coordinates=None, fractional_coordinates=None, lattice=None, rotations=None)[source]#
Class to define a peridic crystal structure.
- Parameters:
atoms (list str) – A list of atomic symbols, with the same order as the
fractional_coordinates
.fractional_coordinates (list (n,3) float.) – A (natom,3) list of fractional coordinatesd of atoms.
lattice (list (3,3) float.) – A (3,3) matrix representing the lattice vectors.
- Returns:
None.
Methods
Structure.__init__
([atoms, ...])Returns the international Space Group Number of the material
Structure.get_space_group_number
([symprec])Returns the Space Group Number of the material
Structure.get_spglib_symmetry_dataset
([symprec])Returns the spglib symmetry dataset
Structure.get_wyckoff_positions
([symprec])Returns the wyckoff positions
Structure.is_point_inside
(point[, lattice])A method to determine if a point is inside the unitcell
A method to plot the the convex hull
Structure.supercell
(matrix)A method to transform the Structure to a supercell
Structure.transform
([transformation_matrix])Transform the crystla lattice by a transformation matrix
Attributes
The magnitude of the first crystal lattice vector
The angle between the of the second and third crystal lattice vectors
List of atomic numbers
The magnitude of the second crystal lattice vector
The angle between the of the first and third crystal lattice vectors
The magnitude of the third crystal lattice vector
Returns the cell convex hull
Density of the cell.
The angle between the of the first and second crystal lattice vectors
Returns the corners of the crystal lattice
list of masses of each atom.
Number of atoms
Number of species present in the cell.
The reciprocal lattice matrix corresponding the the crystal lattice
list of different species present in the cell.
Volume of the unit cell.