CrystalCell

class sknano.core.crystallography.CrystalCell(lattice=None, basis=None, coords=None, cartesian=False, wrap_coords=False, unit_cell=None, scaling_matrix=None)[source] [edit on github][source]

Bases: sknano.core.meta.BaseClass, sknano.core.strings.TabulateMixin

Class representation of crystal structure cell.

Parameters:

Attributes

basis BasisAtoms.
fmtstr Format string.
lattice CrystalLattice.
scaling_matrix Scaling matrix.
unit_cell UnitCell.

Methods

rotate(**kwargs) Rotate crystal cell lattice, basis, and unit cell.
todict() dict of CrystalCell parameters.
translate(t[, fix_anchor_points]) Translate crystal cell basis.
update_basis(element[, index, step]) Update a crystal cell basis element.

Attributes Summary

basis BasisAtoms.
lattice CrystalLattice.
scaling_matrix Scaling matrix.
unit_cell UnitCell.

Methods Summary

rotate(**kwargs) Rotate crystal cell lattice, basis, and unit cell.
todict() dict of CrystalCell parameters.
translate(t[, fix_anchor_points]) Translate crystal cell basis.
update_basis(element[, index, step]) Update a crystal cell basis element.

Attributes Documentation

basis

BasisAtoms.

lattice

CrystalLattice.

scaling_matrix

Scaling matrix.

unit_cell

UnitCell.

Methods Documentation

rotate(**kwargs)[source] [edit on github][source]

Rotate crystal cell lattice, basis, and unit cell.

todict()[source] [edit on github][source]

dict of CrystalCell parameters.

translate(t, fix_anchor_points=True)[source] [edit on github][source]

Translate crystal cell basis.

update_basis(element, index=None, step=None)[source] [edit on github][source]

Update a crystal cell basis element.