Crystal Lattice#
Record a sample’s crystalline lattice parameters:
\(a, b, c, \alpha, \beta, \gamma\). The
Lattice()
interface
simplifies entry of parameters for high-symmetry crystal systems.
Examples of the Seven 3-D Crystal Systems (highest to lowest symmetry)
system |
command |
a |
b |
c |
alpha |
beta |
gamma |
---|---|---|---|---|---|---|---|
cubic |
|
5 |
5 |
5 |
90 |
90 |
90 |
hexagonal |
|
4 |
4 |
3 |
90 |
90 |
120 |
rhombohedral |
|
4 |
4 |
4 |
80.2 |
80.2 |
80.2 |
tetragonal |
|
4 |
4 |
3 |
90 |
90 |
90 |
orthorhombic |
|
4 |
5 |
3 |
90 |
90 |
90 |
monoclinic |
|
4 |
5 |
3 |
90 |
75 |
90 |
triclinic |
|
4 |
5 |
3 |
75 |
85 |
95 |
EXAMPLES
>>> from hklpy2 import Lattice
>>> Lattice(5.)
Lattice(a=5.0, b=5.0, c=5.0, alpha=90.0, beta=90.0, gamma=90.0)
>>> Lattice(4., c=3., gamma=120)
Lattice(a=4.0, b=4.0, c=3.0, alpha=90.0, beta=90.0, gamma=120)
>>> Lattice(4., alpha=80.2)
Lattice(a=4.0, b=4.0, c=4.0, alpha=80.2, beta=80.2, gamma=80.2)
>>> Lattice(4, c=3)
Lattice(a=4, b=4, c=3, alpha=90.0, beta=90.0, gamma=90.0)
>>> Lattice(4, 5, 3)
Lattice(a=4, b=5, c=3, alpha=90.0, beta=90.0, gamma=90.0)
>>> Lattice(4, 5, 3, beta=75)
Lattice(a=4, b=5, c=3, alpha=90.0, beta=75, gamma=90.0)
>>> Lattice(4, 5, 3, 75., 85., 95.)
Lattice(a=4, b=5, c=3, alpha=75.0, beta=85.0, gamma=95.0)
Source Code Documentation#
Lattice parameters for a single crystal.
|
Crystal lattice parameters. |
2018 CODATA recommended lattice parameter of silicon, Angstrom. |
|
2018 CODATA reported uncertainty of |
- class hklpy2.operations.lattice.CrystalSystem(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#
Bases:
Enum
- class hklpy2.operations.lattice.Lattice(a: float, b: float = None, c: float = None, alpha: float = 90.0, beta: float = None, gamma: float = None, digits: int = 4)[source]#
Bases:
object
Crystal lattice parameters.
Note
Internal use only.
EXAMPLE:
>>> from hklpy2.operations.lattice import Lattice >>> Lattice(4.74, c=9.515, gamma=120) Lattice(a=4.74, c=9.515, gamma=120, system='hexagonal')
_asdict
()Return a new dict which maps lattice constant names and values.
_fromdict
(config)Redefine lattice from a (configuration) dictionary.
__eq__
(latt)Compare two lattices for equality.
__repr__
()Standard representation of lattice.
The crystal system of this lattice.
system_parameter_names
(system)Return list of lattice parameter names for this crystal system.
- property crystal_system#
The crystal system of this lattice. By inspection of the parameters.
- hklpy2.operations.lattice.SI_LATTICE_PARAMETER = 5.431020511#
2018 CODATA recommended lattice parameter of silicon, Angstrom.
- hklpy2.operations.lattice.SI_LATTICE_PARAMETER_UNCERTAINTY = 8.9e-08#
2018 CODATA reported uncertainty of
SI_LATTICE_PARAMETER
.