radtools.TRI#
- radtools.TRI(a: float, b: float, c: float, alpha: float, beta: float, gamma: float, reciprocal=False, return_cell=False)[source]#
Construct triclinic primitive lattice.
See Triclinic (TRI) for the definition of primitive and conventional cells.
- Parameters:
- afloat
Length of the lattice vector of the conventional cell.
- bfloat
Length of the lattice vector of the conventional cell.
- cfloat
Length of the lattice vector of the conventional cell.
- alphafloat
Angle between vectors \(a_2\) and \(a_3\) of the conventional cell. In degrees.
- betafloat
Angle between vectors \(a_1\) and \(a_3\) of the conventional cell. In degrees.
- gammafloat
Angle between vectors \(a_1\) and \(a_2\) of the conventional cell. In degrees.
- reciprocalbool, default False
Whether to interpret input as reciprocal parameters.
- return_cellbool, default False
Whether to return the cell instead of the
Latticeobject.
- Returns:
- lattice
Latticeor (3, 3) numpy.ndarray Triclinic lattice or cell.
- lattice