CubicStructure

class sknano.core.structures.CubicStructure(*args, centering=None, lattice=None, basis=None, coords=None, scaling_matrix=None, structure=None, **kwargs)[source] [edit on github][source]

Bases: sknano.core.structures.Crystal3DStructure

Base class for a cubic Crystal3DStructure.

Parameters:
  • centering (str) –
  • lattice (Crystal3DLattice, optional) –
  • a (float, optional) –
  • basis (list, optional) –
  • coords (list, optional) –
  • scaling_matrix (int or list, optional) –
  • structure (Crystal3DStructure, optional) –

Attributes

atoms Structure Atoms.
basis Structure BasisAtoms.
crystal_cell Structure CrystalCell.
fmtstr Format string.
lattice Structure Crystal3DLattice.
lattice_shift Lattice displacement vector.
scaling_matrix CrystalCell.scaling_matrix.
structure An alias to self.
unit_cell Structure UnitCell.

Methods

clear() Clear list of StructureMixin.atoms.
from_pymatgen_structure(structure) Return a Crystal3DStructure from a pymatgen.core.Structure.
from_spacegroup(*args[, lattice, basis, ...]) Return CubicStructure from spacegroup.
get_lattice([name, centering, basis]) Return cubic lattice.
make_supercell(scaling_matrix[, wrap_coords]) Make supercell.
rotate(**kwargs) Rotate crystal cell lattice, basis, and unit cell.
todict() Return dict of constructor parameters.
transform_lattice(scaling_matrix[, ...]) Transform structure lattice.
translate(t[, fix_anchor_points]) Translate crystal cell lattice, basis, and unit cell.

Methods Summary

from_spacegroup(*args[, lattice, basis, ...]) Return CubicStructure from spacegroup.
get_lattice([name, centering, basis]) Return cubic lattice.

Methods Documentation

classmethod from_spacegroup(*args, lattice=None, basis=None, coords=None, structure=None, centering=None, **kwargs)[source] [edit on github][source]

Return CubicStructure from spacegroup.

classmethod get_lattice(name=None, centering=None, basis=None, **kwargs)[source] [edit on github][source]

Return cubic lattice.