ReciprocalLatticeBase

class sknano.core.crystallography.ReciprocalLatticeBase(direct_lattice, nd, offset=None)[source] [edit on github][source]

Bases: sknano.core.crystallography.LatticeBase

Base class for crystallographic reciprocal lattice objects.

Parameters:

Attributes

bounding_box region bounding_box.
cell Alias for cell_matrix.
cell_matrix Matrix of lattice row vectors.
centroid Region centroid.
fmtstr Format string.
fractional_matrix Transformation matrix to convert from cartesian coordinates to fractional coordinates.
matrix Alias for cell_matrix.
metric_tensor Metric tensor.
offset Lattice offset.
ortho_matrix Transformation matrix to convert from fractional coordinates to cartesian coordinates.
region Parallelepiped defined by lattice vectors.

Methods

cartesian_to_fractional(ccoords) Convert cartesian coordinate to fractional coordinate.
fractional_diff(fcoords1, fcoords2) Compute difference between fractional coordinates.
fractional_to_cartesian(fcoords) Convert fractional coordinate to cartesian coordinate.
rotate(**kwargs) Rotate unit cell.
todict() Return dict of constructor parameters.
translate(t) Translate lattice.
wrap_cartesian_coordinate(p[, epsilon, pbc]) Wrap cartesian coordinate to lie within unit cell.
wrap_cartesian_coordinates(points[, ...]) Wrap array of cartesian coordinates to lie within unit cell.
wrap_fractional_coordinate(p[, epsilon, pbc]) Wrap fractional coordinate to lie within unit cell.
wrap_fractional_coordinates(points[, ...]) Wrap array of fractional coordinates to lie within unit cell.