neutronpy.crystal.Lattice¶
-
class
neutronpy.crystal.Lattice(a, b, c, alpha, beta, gamma)[source]¶ Class to describe a generic lattice system defined by lattice six parameters, (three constants and three angles).
Parameters: - a : float
Lattice constant a in Å
- b : float
Lattice constant b in Å
- c : float
Lattice constant c in Å
- alpha : float
Lattice angle 𝛼 in degrees
- beta : float
Lattice angle 𝛽 in degrees
- gamma : float
Lattice angle 𝛾 in degrees
Returns: - lattice : object
Object containing lattice information
Attributes: aFirst lattice constant in Angstrom
bSecond lattice constant in Angstrom
cThird lattice constant in Angstrom
astarFirst inverse lattice constant in inverse Angstrom
bstarSecond inverse lattice constant in inverse Angstrom
cstarThird inverse lattice constant in inverse Angstrom
alphaFirst lattice angle in degrees
betaSecond lattice angle in degrees
gammaThird lattice angle in degrees
alpha_radFirst lattice angle in radians
beta_radSecond lattice angle in radians
gamma_radThird lattice angle in radians
alphastarFirst inverse lattice angle in degrees
betastarFirst inverse lattice angle in degrees
gammastarFirst inverse lattice angle in degrees
alphastar_radFirst inverse lattice angle in radians
betastar_radSecond inverse lattice angle in radians
gammastar_radThird inverse lattice angle in radians
abg_radLattice angles in radians returned in list
reciprocal_abcReciprocal lattice constants in inverse Angstrom returned in list
reciprocal_abgReciprocal lattice angles in degrees returned in list
reciprocal_abg_radReciprocal lattice angles in radians returned in list
lattice_typeType of lattice determined by the provided lattice constants and angles
volumeVolume of the unit cell in Å3
reciprocal_volumeVolume of the reciprocal unit cell in (Å-1)3
GMetric tensor of the real space lattice
GstarMetric tensor of the reciprocal lattice
BmatrixCartesian basis matrix in reciprocal units such that
Methods
get_d_spacing(hkl)Returns the d-spacing of a given reciprocal lattice vector. get_q(hkl)Returns the magnitude of Q for a given reciprocal lattice vector in Å-1. get_two_theta(hkl, wavelength)Returns the detector angle 2𝜃 for a given reciprocal lattice vector and incident wavelength. get_angle_between_planes(v1, v2)Returns the angle \(\phi\) between two reciprocal lattice vectors (or planes as defined by the vectors normal to the plane).