radtools.RHL#
- radtools.RHL(a: float, alpha: float, return_cell=False)[source]#
Construct rhombohedral primitive lattice.
See Rhombohedral (RHL) for the definition of primitive and conventional cells.
Condition \(\alpha < 120^{\circ}\) is assumed.
- Parameters:
- afloat
Length of the lattice vector of the conventional cell.
- alphafloat
Angle between vectors \(a_2\) and \(a_3\) of the conventional cell. In degrees.
- return_cellbool, default False
Whether to return the cell instead of the
Latticeobject.
- Returns:
- lattice
Latticeor (3, 3) numpy.ndarray Rhombohedral lattice or cell.
- lattice