from_min_dspacing#
- classmethod ReciprocalLatticeVector.from_min_dspacing(phase, min_dspacing=0.7)[source]#
Create a set of unique reciprocal lattice vectors with a a direct space interplanar spacing greater than a lower threshold.
- Parameters:
phase (orix.crystal_map.Phase) – A phase with a crystal lattice and symmetry.
min_dspacing (float, optional) – Smallest interplanar spacing to consider. Default is 0.7, in the unit used to define the lattice parameters in
phase
, which is assumed to be Ångström.
Examples
>>> from diffpy.structure import Atom, Lattice, Structure >>> from orix.crystal_map import Phase >>> from diffsims.crystallography import ReciprocalLatticeVector >>> phase = Phase( ... "al", ... space_group=225, ... structure=Structure( ... lattice=Lattice(4.04, 4.04, 4.04, 90, 90, 90), ... atoms=[Atom("Al", [0, 0, 1])], ... ), ... ) >>> rlv = ReciprocalLatticeVector.from_min_dspacing(phase) >>> rlv ReciprocalLatticeVector (798,), al (m-3m) [[ 5. 2. 2.] [ 5. 2. 1.] [ 5. 2. 0.] ... [-5. -2. 0.] [-5. -2. -1.] [-5. -2. -2.]] >>> rlv.dspacing.min() 0.7032737300610338
Vectors are included regardless of whether they are kinematically allowed or not
>>> rlv = ReciprocalLatticeVector.from_min_dspacing(phase, 1) >>> rlv.size 256 >>> rlv.allowed.all() False