wulfric.cell.get_params#
- wulfric.cell.get_params(cell)[source]#
Computes lattice parameters of the cell.
- Parameters:
- cell(3, 3) array-like
Matrix of a cell, rows are interpreted as vectors.
- Returns:
- afloat
Length of the \(\boldsymbol{a_1}\) vector.
- bfloat
Length of the \(\boldsymbol{a_2}\) vector.
- cfloat
Length of the \(\boldsymbol{a_3}\) vector.
- alphafloat
Angle between vectors \(\boldsymbol{a_2}\) and \(\boldsymbol{a_3}\) in degrees.
- betafloat
Angle between vectors \(\boldsymbol{a_1}\) and \(\boldsymbol{a_3}\) in degrees.
- gammafloat
Angle between vectors \(\boldsymbol{a_1}\) and \(\boldsymbol{a_2}\) in degrees.
See also
Examples
>>> import wulfric >>> cell = [[1, 0, 0], [0, 2, 0], [0, 0, 3]] >>> wulfric.cell.get_params(cell) (1.0, 2.0, 3.0, 90.0, 90.0, 90.0)