![]() |
QPMS
Electromagnetic multiple scattering library and toolkit.
|
Reciprocal-space symmetry utilities. More...
#include "qpms_types.h"

Go to the source code of this file.
Data Structures | |
| struct | qpms_ksym_point_t |
| A named high-symmetry point of the reciprocal cell. More... | |
| struct | qpms_ksym_seg_t |
| A suggested segment of the k-path (by point names). More... | |
| struct | qpms_ksym_path_t |
| High-symmetry points and a suggested k-path of a lattice. More... | |
| struct | qpms_ksym_irmesh_t |
| An irreducible uniform k-point mesh. More... | |
Enumerations | |
| enum | qpms_bravais_t { QPMS_BRAVAIS_LINEAR = 1 , QPMS_BRAVAIS_SQUARE , QPMS_BRAVAIS_RECTANGULAR , QPMS_BRAVAIS_HEXAGONAL , QPMS_BRAVAIS_OBLIQUE , QPMS_BRAVAIS_CUBIC } |
| Bravais class of a lattice (as far as QPMS distinguishes them). | |
Functions | |
| const char * | qpms_ksym_label_canonical (const char *label) |
| Canonical k-point label of a (possibly legacy) input label. | |
| int | qpms_ksym_path (qpms_ksym_path_t *out, const cart3_t *avec, int ndim) |
| High-symmetry points and a suggested k-path for a 1D or 2D lattice. | |
| int | qpms_ksym_little_group (int *out, const int(*rotations)[3][3], int nops, const double kfrac[3], double atol) |
| Little group (stabiliser) of a k-point under space group operations. | |
| int | qpms_ksym_little_group_cart (int *out, const qpms_irot3_t *ops, size_t nops, cart3_t k, const cart3_t *recip_basis, int latdim, double atol) |
| int | qpms_ksym_irmesh_init (qpms_ksym_irmesh_t *m, const int mesh[3], int is_time_reversal, const int(*rotations)[3][3], int nops) |
| Computes the irreducible uniform k-point mesh (spglib). | |
| void | qpms_ksym_irmesh_free (qpms_ksym_irmesh_t *m) |
| Frees the arrays allocated by qpms_ksym_irmesh_init(). | |
Reciprocal-space symmetry utilities.
High-symmetry k-points and suggested k-paths for the lattice types supported by QPMS (1D and 2D), little-group (stabiliser) computation for space-group operations, and irreducible uniform k-point meshes via the vendored spglib.
| int qpms_ksym_irmesh_init | ( | qpms_ksym_irmesh_t * | m, |
| const int | mesh[3], | ||
| int | is_time_reversal, | ||
| const int(*) | rotations[3][3], | ||
| int | nops | ||
| ) |
Computes the irreducible uniform k-point mesh (spglib).
The rotations are spglib-style integer matrices acting on fractional coordinates (as returned e.g. by qpms_spg_layer_ops()). With is_time_reversal nonzero, k ~ -k is also imposed. Returns 0 on success.
| const char * qpms_ksym_label_canonical | ( | const char * | label | ) |
Canonical k-point label of a (possibly legacy) input label.
Returns "Γ" for the ASCII alias "Gamma"; any other label is returned unchanged. Use it when matching user-supplied point names (e.g. the bandstructure path vertices parsed from the simspec files) against qpms_ksym_point_t.name.
| int qpms_ksym_little_group | ( | int * | out, |
| const int(*) | rotations[3][3], | ||
| int | nops, | ||
| const double | kfrac[3], | ||
| double | atol | ||
| ) |
Little group (stabiliser) of a k-point under space group operations.
The rotations are spglib-style integer matrices acting on fractional coordinates; a rotation R leaves kfrac invariant iff R^T k - k is a vector of integers (within atol; this is the same convention as in the spgrep package). The indices (0..nops-1) of the stabilising operations are written to out (which must have room for nops entries). Returns the number of the stabilising operations.
| int qpms_ksym_little_group_cart | ( | int * | out, |
| const qpms_irot3_t * | ops, | ||
| size_t | nops, | ||
| cart3_t | k, | ||
| const cart3_t * | recip_basis, | ||
| int | latdim, | ||
| double | atol | ||
| ) |
Little group (stabiliser) of a Cartesian k-vector under point-group operations. The operations are given as quaternions (ops, det included via qpms_irot3_t.det); an operation g keeps k invariant iff its rotation part satisfies R^T k = k + G with G a reciprocal-lattice vector (2pi included), i.e. k is congruent to R^T k modulo the reciprocal lattice spanned by recip_basis (latdim vectors, 2pi included; unused components of the vectors are ignored). The indices (0..nops-1) of the stabilising operations are written to out (which must have room for nops entries). Returns the number of the stabilising operations.
| int qpms_ksym_path | ( | qpms_ksym_path_t * | out, |
| const cart3_t * | avec, | ||
| int | ndim | ||
| ) |
High-symmetry points and a suggested k-path for a 1D or 2D lattice.
avec are the real-space basis vectors (ndim = 1 or 2; for 2D the vectors are expected to lie in the xy plane). The named points are returned in cartesian coordinates with the 2pi factor included (e.g. X = (pi/a, 0, 0) for a square lattice with |a1| = a). Returns 0 on success, non-zero if the lattice is degenerate.