pyxtal.plane module
Crystal plane class
- class pyxtal.plane.plane(hkl, cell_reciprocal, separation=None)[source]
Bases:
object
This simplest possible plane object
- class pyxtal.plane.planes(extent=6, d_min=1.5, cp_factor=0.5)[source]
Bases:
object
A database class to process crystal data.
- Parameters:
db_name (str) – *.db format from ASE database
d_min (float) – Minimum layer spacing
cp_factor (float) – Threshold to skip non-close packed planes
- get_separation(hkl)[source]
Compute the separation for the given hkl plane.
- Parameters:
hkl (array_like) – Three Miller indices [h,k,l] defining the crystallographic plane.
- Returns:
- Contains (hkl, d_spacing, separations) where:
hkl : original Miller indices
d_spacing : interplanar spacing
separations : list of unique slab separations
- Return type:
tuple