![]() |
QPMS
Electromagnetic multiple scattering library and toolkit.
|
Reciprocal-space symmetry utilities (implementation). More...
#include "ksym.h"#include "vectors.h"#include "quaternions.h"#include "qpms_error.h"#include <math.h>#include <stdlib.h>#include <string.h>#include <spglib.h>
Functions | |
| const char * | qpms_ksym_label_canonical (const char *label) |
| Canonical k-point label of a (possibly legacy) input label. | |
| static int | reciprocal_basis (cart3_t *bvec, const cart3_t *avec, int ndim) |
| Reciprocal basis vectors (2pi included) of a 1D or (xy-planar) 2D lattice. | |
| static void | frac_to_cart (double out[3], const double kfrac[3], const cart3_t *bvec, int ndim) |
| 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_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(). | |
| 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) |
Variables | |
| static qpms_ksym_point_t | pts_linear [] |
| static const qpms_ksym_seg_t | segs_linear [] |
| static qpms_ksym_point_t | pts_square [] |
| static const qpms_ksym_seg_t | segs_square [] |
| static qpms_ksym_point_t | pts_rectangular [] |
| static const qpms_ksym_seg_t | segs_rectangular [] |
| static qpms_ksym_point_t | pts_hexagonal [] |
| static const qpms_ksym_seg_t | segs_hexagonal [] |
| static qpms_ksym_point_t | pts_cubic [] |
| static const qpms_ksym_seg_t | segs_cubic [] |
| static qpms_ksym_point_t | pts_oblique [] |
| static const qpms_ksym_seg_t | segs_oblique [] |
Reciprocal-space symmetry utilities (implementation).
See ksym.h. The high-symmetry point conventions follow the standard 2D band-structure paths (cf. Setyawan & Curtarolo, Comp. Mat. Sci. 49, 299 (2010), 2D section): square Γ-X-M, hexagonal Γ-M-K, rectangular Γ-X-S-Y.
| 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.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |