Lattices (erlab.lattice)¶
Tools related to the real and reciprocal lattice.
Functions
|
Return the angle between two vectors. |
|
Construct lattice vectors from lattice parameters. |
|
Determine lattice parameters from lattice vectors. |
|
Construct the reciprocal lattice vectors from real lattice vectors. |
|
Construct the real lattice vectors from reciprocal lattice vectors. |
- erlab.lattice.abc2avec(a, b, c, alpha, beta, gamma)[source]¶
Construct lattice vectors from lattice parameters.
- Parameters:
- Returns:
avec– Real lattice vectors, given as a 3 by 3 numpy array with each basis vector given in each row.- Return type:
- erlab.lattice.angle_between(v1, v2)[source]¶
Return the angle between two vectors.
- Parameters:
v1 (
array-like) – 1D array of length 3, specifying a vector.v2 (
array-like) – 1D array of length 3, specifying a vector.
- Returns:
float– The angle in degrees.- Return type:
- erlab.lattice.to_real(bvec)[source]¶
Construct the real lattice vectors from reciprocal lattice vectors.