moyoc
C interface of moyo, a fast and robust crystal symmetry finder
Loading...
Searching...
No Matches
moyoc.h
Go to the documentation of this file.
1// moyoc - C bindings for moyo
2// Copyright (c) 2025 Kohei Shinohara
3// SPDX-License-Identifier: Apache-2.0 OR MIT
4
5#ifndef MOYOC_H
6#define MOYOC_H
7
8// Warning, this file is autogenerated by cbindgen. Don't modify this manually.
9
10#include <stdarg.h>
11#include <stdbool.h>
12#include <stdint.h>
13#include <stdlib.h>
14
19#if defined(__cplusplus) || __STDC_VERSION__ >= 202311L
20 : int32_t
21#endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L
22 {
36};
37#ifndef __cplusplus
38#if __STDC_VERSION__ >= 202311L
39typedef enum MoyoSetting MoyoSetting;
40#else
41typedef int32_t MoyoSetting;
42#endif // __STDC_VERSION__ >= 202311L
43#endif // __cplusplus
44
49#if defined(__cplusplus) || __STDC_VERSION__ >= 202311L
50 : int32_t
51#endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L
52 {
67};
68#ifndef __cplusplus
69#if __STDC_VERSION__ >= 202311L
71#else
72typedef int32_t MoyoLayerSetting;
73#endif // __STDC_VERSION__ >= 202311L
74#endif // __cplusplus
75
80typedef struct MoyoSpaceGroupType {
84 int32_t number;
88 const char *hm_short;
92 const char *hm_full;
100 const char *arithmetic_symbol;
108 const char *crystal_system;
112 const char *bravais_class;
116 const char *lattice_system;
120 const char *crystal_family;
122
127typedef struct MoyoLayerGroupType {
131 int32_t number;
135 const char *hm_short;
139 const char *hm_full;
147 const char *arithmetic_symbol;
156 const char *bravais_class;
160 const char *lattice_system;
162
168typedef struct MoyoHallSymbolEntry {
172 int32_t hall_number;
176 int32_t number;
184 const char *setting;
188 const char *hall_symbol;
192 const char *hm_short;
196 const char *hm_full;
200 const char *centering;
202
212 int32_t hall_number;
216 int32_t number;
224 const char *setting;
228 const char *hall_symbol;
232 const char *hm_short;
236 const char *hm_full;
240 const char *centering;
242
274
280typedef struct MoyoOperations {
284 const int32_t (*rotations)[3][3];
288 const double (*translations)[3];
294
304 const int32_t (*rotations)[3][3];
308 const double (*translations)[3];
312 const bool *time_reversals;
318
324typedef struct MoyoCell {
328 double basis[3][3];
332 const double (*positions)[3];
336 const int32_t *numbers;
340 int32_t num_atoms;
341} MoyoCell;
342
347typedef struct MoyoLayerDataset {
351 int32_t number;
355 int32_t hall_number;
359 const char *hm_symbol;
365 int32_t num_atoms;
374 const int32_t *orbits;
378 const char *wyckoffs;
383 const char *const *site_symmetry_symbols;
391 double std_linear[3][3];
404 const char *pearson_symbol;
412 double prim_std_linear[3][3];
422 const int32_t *mapping_std_prim;
426 double symprec;
433
449
531
547
629
638typedef struct MoyoDataset {
642 int32_t number;
646 int32_t hall_number;
650 const char *hm_symbol;
656 int32_t num_atoms;
666 const int32_t *orbits;
670 const char *wyckoffs;
675 const char *const *site_symmetry_symbols;
685 double std_linear[3][3];
698 const char *pearson_symbol;
708 double prim_std_linear[3][3];
717 const int32_t *mapping_std_prim;
721 double symprec;
728
733typedef struct MoyoLayerGroup {
737 int32_t number;
741 int32_t hall_number;
746 int32_t linear[3][3];
751 double origin_shift[3];
753
762 int32_t uni_number;
767 int32_t linear[3][3];
772 double origin_shift[3];
774
779typedef struct MoyoPointGroup {
787 int32_t prim_trans_mat[3][3];
789
794typedef struct MoyoSpaceGroup {
798 int32_t number;
802 int32_t hall_number;
807 int32_t linear[3][3];
812 double origin_shift[3];
814
815#ifdef __cplusplus
816extern "C" {
817#endif // __cplusplus
818
823const char *moyo_version(void);
824
830
839void moyo_space_group_type_free(struct MoyoSpaceGroupType *space_group_type);
840
846
855void moyo_layer_group_type_free(struct MoyoLayerGroupType *layer_group_type);
856
862
871
877
886
892
902
914 MoyoSetting setting,
915 int32_t hall_number,
916 bool primitive);
917
929 MoyoLayerSetting setting,
930 int32_t hall_number,
931 bool primitive);
932
943void moyo_operations_free(struct MoyoOperations *operations);
944
955 bool primitive);
956
968
987struct MoyoLayerDataset *moyo_layer_dataset_new(const double (*basis)[3],
988 const double (*positions)[3],
989 const int32_t *numbers,
990 int32_t num_atoms,
991 double symprec,
992 double angle_tolerance,
993 MoyoLayerSetting setting,
994 int32_t hall_number,
995 bool rotate_basis);
996
1005
1025 const double (*positions)[3],
1026 const int32_t *numbers,
1027 const double *magnetic_moments,
1028 int32_t num_atoms,
1029 double symprec,
1030 double angle_tolerance,
1031 double mag_symprec,
1032 bool is_axial,
1033 bool rotate_basis);
1034
1043
1064 const double (*positions)[3],
1065 const int32_t *numbers,
1066 const double (*magnetic_moments)[3],
1067 int32_t num_atoms,
1068 double symprec,
1069 double angle_tolerance,
1070 double mag_symprec,
1071 bool is_axial,
1072 bool rotate_basis);
1073
1082
1098struct MoyoDataset *moyo_dataset_new(const double (*basis)[3],
1099 const double (*positions)[3],
1100 const int32_t *numbers,
1101 int32_t num_atoms,
1102 double symprec,
1103 double angle_tolerance,
1104 MoyoSetting setting,
1105 int32_t hall_number,
1106 bool rotate_basis);
1107
1115void moyo_dataset_free(struct MoyoDataset *dataset);
1116
1137struct MoyoLayerGroup *moyo_layer_group_new(const int32_t (*prim_rotations)[3][3],
1138 const double (*prim_translations)[3],
1139 int32_t num_operations,
1140 const double (*basis)[3],
1141 MoyoLayerSetting setting,
1142 int32_t hall_number,
1143 double epsilon);
1144
1152void moyo_layer_group_free(struct MoyoLayerGroup *layer_group);
1153
1172struct MoyoMagneticSpaceGroup *moyo_magnetic_space_group_new(const int32_t (*prim_rotations)[3][3],
1173 const double (*prim_translations)[3],
1174 const bool *prim_time_reversals,
1175 int32_t num_operations,
1176 const double (*basis)[3],
1177 double epsilon);
1178
1188
1203struct MoyoPointGroup *moyo_point_group_new(const int32_t (*prim_rotations)[3][3],
1204 int32_t num_operations,
1205 const double (*basis)[3]);
1206
1214void moyo_point_group_free(struct MoyoPointGroup *point_group);
1215
1234struct MoyoSpaceGroup *moyo_space_group_new(const int32_t (*prim_rotations)[3][3],
1235 const double (*prim_translations)[3],
1236 int32_t num_operations,
1237 const double (*basis)[3],
1238 MoyoSetting setting,
1239 int32_t hall_number,
1240 double epsilon);
1241
1249void moyo_space_group_free(struct MoyoSpaceGroup *space_group);
1250
1251#ifdef __cplusplus
1252} // extern "C"
1253#endif // __cplusplus
1254
1255#endif /* MOYOC_H */
struct MoyoOperations * moyo_operations_from_number(int32_t number, MoyoSetting setting, int32_t hall_number, bool primitive)
Return symmetry operations for the given space-group ITA number (1 - 230).
struct MoyoLayerGroup * moyo_layer_group_new(const int32_t(*prim_rotations)[3][3], const double(*prim_translations)[3], int32_t num_operations, const double(*basis)[3], MoyoLayerSetting setting, int32_t hall_number, double epsilon)
Identify the layer group from primitive layer-cell rotations and translations.
void moyo_layer_dataset_free(struct MoyoLayerDataset *dataset)
Free a dataset created by moyo_layer_dataset_new.
struct MoyoLayerHallSymbolEntry * moyo_layer_hall_symbol_entry_new(int32_t hall_number)
Look up the layer-group Hall symbol entry for hall_number (1 - 116).
void moyo_magnetic_space_group_type_free(struct MoyoMagneticSpaceGroupType *magnetic_space_group_type)
Free a magnetic space-group type created by moyo_magnetic_space_group_type_new.
void moyo_layer_group_type_free(struct MoyoLayerGroupType *layer_group_type)
Free a layer-group type created by moyo_layer_group_type_new.
void moyo_layer_group_free(struct MoyoLayerGroup *layer_group)
Free a layer group created by moyo_layer_group_new.
struct MoyoLayerDataset * moyo_layer_dataset_new(const double(*basis)[3], const double(*positions)[3], const int32_t *numbers, int32_t num_atoms, double symprec, double angle_tolerance, MoyoLayerSetting setting, int32_t hall_number, bool rotate_basis)
Analyze the layer-group symmetry of the given cell and create a dataset.
void moyo_collinear_magnetic_dataset_free(struct MoyoCollinearMagneticDataset *dataset)
Free a dataset created by moyo_collinear_magnetic_dataset_new.
MoyoLayerSetting
Preference for the Hall setting of the layer group.
Definition moyoc.h:52
@ MOYO_LAYER_SETTING_SPGLIB
The setting of the smallest layer Hall number for each layer group (origin choice 1 for the centrosym...
Definition moyoc.h:61
@ MOYO_LAYER_SETTING_HALL_NUMBER
Layer Hall number specified by the hall_number argument (1 - 116).
Definition moyoc.h:56
@ MOYO_LAYER_SETTING_STANDARD
BCS standard choice (de la Flor et al., Acta Cryst.
Definition moyoc.h:66
void moyo_magnetic_space_group_free(struct MoyoMagneticSpaceGroup *magnetic_space_group)
Free a magnetic space group created by moyo_magnetic_space_group_new.
struct MoyoMagneticSpaceGroup * moyo_magnetic_space_group_new(const int32_t(*prim_rotations)[3][3], const double(*prim_translations)[3], const bool *prim_time_reversals, int32_t num_operations, const double(*basis)[3], double epsilon)
Identify the magnetic space group from primitive magnetic operations.
struct MoyoDataset * moyo_dataset_new(const double(*basis)[3], const double(*positions)[3], const int32_t *numbers, int32_t num_atoms, double symprec, double angle_tolerance, MoyoSetting setting, int32_t hall_number, bool rotate_basis)
Analyze the symmetry of the given cell and create a dataset.
void moyo_hall_symbol_entry_free(struct MoyoHallSymbolEntry *entry)
Free an entry created by moyo_hall_symbol_entry_new.
struct MoyoPointGroup * moyo_point_group_new(const int32_t(*prim_rotations)[3][3], int32_t num_operations, const double(*basis)[3])
Identify the point group of the given primitive rotations.
MoyoSetting
Preference for the setting of the space group.
Definition moyoc.h:22
@ MOYO_SETTING_STANDARD
Unique axis b, cell choice 1 for monoclinic, hexagonal axes for rhombohedral, and origin choice 2 for...
Definition moyoc.h:35
@ MOYO_SETTING_HALL_NUMBER
Hall number specified by the hall_number argument.
Definition moyoc.h:26
@ MOYO_SETTING_SPGLIB
The setting of the smallest Hall number.
Definition moyoc.h:30
struct MoyoLayerGroupType * moyo_layer_group_type_new(int32_t number)
Look up the layer-group type information for layer-group number (1 - 80).
struct MoyoCollinearMagneticDataset * moyo_collinear_magnetic_dataset_new(const double(*basis)[3], const double(*positions)[3], const int32_t *numbers, const double *magnetic_moments, int32_t num_atoms, double symprec, double angle_tolerance, double mag_symprec, bool is_axial, bool rotate_basis)
Analyze the magnetic symmetry of the given collinear magnetic cell and create a dataset.
struct MoyoSpaceGroup * moyo_space_group_new(const int32_t(*prim_rotations)[3][3], const double(*prim_translations)[3], int32_t num_operations, const double(*basis)[3], MoyoSetting setting, int32_t hall_number, double epsilon)
Identify the space group from primitive rotations and translations.
struct MoyoMagneticOperations * moyo_magnetic_operations_from_uni_number(int32_t uni_number, bool primitive)
Return magnetic symmetry operations for the given UNI (and BNS) serial number uni_number (1 - 1651).
struct MoyoOperations * moyo_operations_from_layer_number(int32_t number, MoyoLayerSetting setting, int32_t hall_number, bool primitive)
Return symmetry operations for the given layer-group number (1 - 80).
void moyo_space_group_type_free(struct MoyoSpaceGroupType *space_group_type)
Free a space-group type created by moyo_space_group_type_new.
struct MoyoNonCollinearMagneticDataset * moyo_noncollinear_magnetic_dataset_new(const double(*basis)[3], const double(*positions)[3], const int32_t *numbers, const double(*magnetic_moments)[3], int32_t num_atoms, double symprec, double angle_tolerance, double mag_symprec, bool is_axial, bool rotate_basis)
Analyze the magnetic symmetry of the given non-collinear magnetic cell and create a dataset.
struct MoyoHallSymbolEntry * moyo_hall_symbol_entry_new(int32_t hall_number)
Look up the space-group Hall symbol entry for hall_number (1 - 530).
void moyo_dataset_free(struct MoyoDataset *dataset)
Free a dataset created by moyo_dataset_new.
void moyo_magnetic_operations_free(struct MoyoMagneticOperations *magnetic_operations)
Free magnetic operations returned by moyo_magnetic_operations_from_uni_number.
void moyo_noncollinear_magnetic_dataset_free(struct MoyoNonCollinearMagneticDataset *dataset)
Free a dataset created by moyo_noncollinear_magnetic_dataset_new.
void moyo_operations_free(struct MoyoOperations *operations)
Free operations returned by moyo_operations_from_number or moyo_operations_from_layer_number.
const char * moyo_version(void)
Return the version string of moyoc (e.g.
void moyo_point_group_free(struct MoyoPointGroup *point_group)
Free a point group created by moyo_point_group_new.
void moyo_space_group_free(struct MoyoSpaceGroup *space_group)
Free a space group created by moyo_space_group_new.
struct MoyoMagneticSpaceGroupType * moyo_magnetic_space_group_type_new(int32_t uni_number)
Look up the magnetic space-group type information for uni_number (1 - 1651).
struct MoyoSpaceGroupType * moyo_space_group_type_new(int32_t number)
Look up the space-group type information for ITA number (1 - 230).
void moyo_layer_hall_symbol_entry_free(struct MoyoLayerHallSymbolEntry *entry)
Free an entry created by moyo_layer_hall_symbol_entry_new.
Crystal structure.
Definition moyoc.h:324
int32_t num_atoms
Number of atoms in the cell.
Definition moyoc.h:340
const int32_t * numbers
Atomic numbers of the num_atoms sites.
Definition moyoc.h:336
double basis[3][3]
Row-wise basis vectors.
Definition moyoc.h:328
const double(* positions)[3]
Fractional coordinates of the num_atoms sites.
Definition moyoc.h:332
Collinear magnetic structure.
Definition moyoc.h:439
struct MoyoCell cell
Crystal structure.
Definition moyoc.h:443
const double * magnetic_moments
Collinear magnetic moments of the cell.num_atoms sites.
Definition moyoc.h:447
A dataset of the magnetic symmetry analysis of a collinear magnetic structure, created by moyo_collin...
Definition moyoc.h:455
double std_rotation_matrix[3][3]
Proper Cartesian rotation applied to the refined lattice and magnetic moments.
Definition moyoc.h:494
int32_t num_atoms
Number of atoms in the input magnetic cell.
Definition moyoc.h:464
struct MoyoCollinearMagneticCell prim_std_mag_cell
Primitive standardized magnetic cell Its basis is right-handed for either input handedness and either...
Definition moyoc.h:501
struct MoyoMagneticOperations magnetic_operations
Magnetic symmetry operations in the input cell.
Definition moyoc.h:468
const int32_t * mapping_std_prim
Mapping sites in the input magnetic cell to those in the primitive standardized one.
Definition moyoc.h:516
double prim_std_origin_shift[3]
Origin shift of the transformation from the input magnetic cell to prim_std_mag_cell.
Definition moyoc.h:510
const int32_t * orbits
The ith atom in the input magnetic cell is equivalent to the orbits[i]th atom in the input magnetic c...
Definition moyoc.h:473
int32_t uni_number
Serial number of UNI (and BNS) symbols.
Definition moyoc.h:459
double angle_tolerance
Actually used angle_tolerance in iterative symmetry search.
Definition moyoc.h:525
double std_linear[3][3]
Linear part of the transformation from the input magnetic cell to std_mag_cell.
Definition moyoc.h:485
double std_origin_shift[3]
Origin shift of the transformation from the input magnetic cell to std_mag_cell.
Definition moyoc.h:489
struct MoyoCollinearMagneticCell std_mag_cell
Standardized magnetic cell Its basis is right-handed for either input handedness and either rotate_ba...
Definition moyoc.h:480
double prim_std_linear[3][3]
Linear part of the transformation from the input magnetic cell to prim_std_mag_cell.
Definition moyoc.h:506
double mag_symprec
Actually used mag_symprec in iterative symmetry search.
Definition moyoc.h:529
double symprec
Actually used symprec in iterative symmetry search.
Definition moyoc.h:520
A dataset of the symmetry analysis, created by moyo_dataset_new and freed by moyo_dataset_free.
Definition moyoc.h:638
double std_rotation_matrix[3][3]
Proper Cartesian rotation applied after lattice refinement.
Definition moyoc.h:694
const char * pearson_symbol
Pearson symbol for standardized cell.
Definition moyoc.h:698
struct MoyoOperations operations
Symmetry operations in the input cell.
Definition moyoc.h:660
const char *const * site_symmetry_symbols
Site symmetry symbols for each site in the input cell.
Definition moyoc.h:675
double angle_tolerance
Actually used angle_tolerance in iterative symmetry search.
Definition moyoc.h:726
const char * hm_symbol
Hermann-Mauguin symbol in short notation (e.g., "Fd-3m" for space group 227).
Definition moyoc.h:650
double prim_std_linear[3][3]
Linear part of the transformation from the input cell to prim_std_cell.
Definition moyoc.h:708
double std_origin_shift[3]
Origin shift of the transformation from the input cell to std_cell.
Definition moyoc.h:689
int32_t number
Space group number.
Definition moyoc.h:642
int32_t num_atoms
Number of atoms in the input cell.
Definition moyoc.h:656
double std_linear[3][3]
Linear part of the transformation from the input cell to std_cell.
Definition moyoc.h:685
double prim_std_origin_shift[3]
Origin shift of the transformation from the input cell to prim_std_cell.
Definition moyoc.h:712
int32_t hall_number
Hall symbol number.
Definition moyoc.h:646
struct MoyoCell prim_std_cell
Primitive standardized cell Its basis is right-handed for either input handedness and either rotate_b...
Definition moyoc.h:703
struct MoyoCell std_cell
Standardized cell Its basis is right-handed for either input handedness and either rotate_basis value...
Definition moyoc.h:680
const int32_t * mapping_std_prim
Mapping sites in the input cell to those in the primitive standardized cell.
Definition moyoc.h:717
const int32_t * orbits
Spglib's crystallographic_orbits not equivalent_atoms The ith atom in the input cell is equivalent to...
Definition moyoc.h:666
double symprec
Actually used symprec in iterative symmetry search.
Definition moyoc.h:721
const char * wyckoffs
Wyckoff letters for each site in the input cell as a NUL-terminated string.
Definition moyoc.h:670
An entry containing space-group information for a specified Hall number, created by moyo_hall_symbol_...
Definition moyoc.h:168
const char * hall_symbol
Hall symbol.
Definition moyoc.h:188
const char * hm_short
Hermann-Mauguin symbol in short notation.
Definition moyoc.h:192
const char * setting
Setting.
Definition moyoc.h:184
int32_t arithmetic_number
Number for arithmetic crystal classes (1 - 73).
Definition moyoc.h:180
int32_t hall_number
Number for Hall symbols (1 - 530).
Definition moyoc.h:172
int32_t number
ITA number for space group types (1 - 230).
Definition moyoc.h:176
const char * hm_full
Hermann-Mauguin symbol in full notation.
Definition moyoc.h:196
const char * centering
Centering symbol ("P", "A", "B", "C", "I", "R", or "F").
Definition moyoc.h:200
A dataset of the layer-group symmetry analysis, created by moyo_layer_dataset_new and freed by moyo_l...
Definition moyoc.h:347
double std_origin_shift[3]
Origin shift of transformation from the input cell to the standardized cell.
Definition moyoc.h:395
struct MoyoCell std_cell
Conventional standardized layer cell.
Definition moyoc.h:387
double symprec
Actually used symprec in iterative symmetry search.
Definition moyoc.h:426
double std_rotation_matrix[3][3]
Rigid rotation.
Definition moyoc.h:399
struct MoyoOperations operations
Layer-group operations in the input cell.
Definition moyoc.h:369
struct MoyoCell prim_std_cell
Primitive standardized layer cell.
Definition moyoc.h:408
const char * wyckoffs
Wyckoff letters for each site in the input cell as a NUL-terminated string.
Definition moyoc.h:378
int32_t number
Layer group number (1 - 80).
Definition moyoc.h:351
const char * hm_symbol
Hermann-Mauguin symbol in short notation.
Definition moyoc.h:359
double std_linear[3][3]
Linear part of transformation from the input cell to the standardized cell.
Definition moyoc.h:391
double prim_std_origin_shift[3]
Origin shift of transformation from the input cell to the primitive standardized cell.
Definition moyoc.h:416
const char *const * site_symmetry_symbols
Site symmetry symbols for each site in the input cell.
Definition moyoc.h:383
const char * pearson_symbol
Pearson symbol for the standardized layer cell.
Definition moyoc.h:404
double prim_std_linear[3][3]
Linear part of transformation from the input cell to the primitive standardized cell.
Definition moyoc.h:412
double angle_tolerance
Actually used angle_tolerance in iterative symmetry search.
Definition moyoc.h:431
int32_t hall_number
Layer Hall symbol number (1 - 116).
Definition moyoc.h:355
const int32_t * mapping_std_prim
Mapping sites in the input cell to those in the primitive standardized cell.
Definition moyoc.h:422
int32_t num_atoms
Number of atoms in the input cell.
Definition moyoc.h:365
const int32_t * orbits
The ith atom in the input cell is equivalent to the orbits[i]th atom in the input cell.
Definition moyoc.h:374
Layer-group type information, created by moyo_layer_group_type_new and freed by moyo_layer_group_type...
Definition moyoc.h:127
const char * bravais_class
Bravais class for the layer group's 2D lattice ("mp", "op", "oc", "tp", or "hp").
Definition moyoc.h:156
const char * lattice_system
Lattice system ("Oblique", "Rectangular", "Square", or "Hexagonal").
Definition moyoc.h:160
int32_t arithmetic_number
Number for layer arithmetic crystal classes (1 - 43).
Definition moyoc.h:143
const char * hm_full
Hermann-Mauguin symbol in full notation.
Definition moyoc.h:139
const char * arithmetic_symbol
Symbol for the layer arithmetic crystal class.
Definition moyoc.h:147
const char * geometric_crystal_class
Geometric crystal class.
Definition moyoc.h:151
const char * hm_short
Hermann-Mauguin symbol in short notation.
Definition moyoc.h:135
int32_t number
Layer-group number (1 - 80).
Definition moyoc.h:131
Layer group identified by moyo_layer_group_new and freed by moyo_layer_group_free.
Definition moyoc.h:733
int32_t number
Layer-group number for the identified layer group (1 - 80).
Definition moyoc.h:737
double origin_shift[3]
Origin shift of the transformation from the input primitive basis to the standardized basis.
Definition moyoc.h:751
int32_t linear[3][3]
Linear part of the transformation from the input primitive basis to the standardized basis.
Definition moyoc.h:746
int32_t hall_number
Layer Hall symbol number (1 - 116) for the chosen setting.
Definition moyoc.h:741
An entry containing layer-group information for a specified layer Hall number, created by moyo_layer_...
Definition moyoc.h:208
const char * hm_full
Hermann-Mauguin symbol in full notation.
Definition moyoc.h:236
const char * setting
Setting.
Definition moyoc.h:224
int32_t hall_number
Number for layer Hall symbols (1 - 116).
Definition moyoc.h:212
const char * centering
Layer centering symbol ("P" or "C").
Definition moyoc.h:240
int32_t arithmetic_number
Number for layer arithmetic crystal classes (1 - 43).
Definition moyoc.h:220
const char * hall_symbol
Hall symbol with lowercase p/c lattice prefix (layer convention).
Definition moyoc.h:228
int32_t number
Layer-group number (1 - 80).
Definition moyoc.h:216
const char * hm_short
Hermann-Mauguin symbol in short notation.
Definition moyoc.h:232
Magnetic symmetry operations.
Definition moyoc.h:300
const bool * time_reversals
Time-reversal parts of the num_operations magnetic operations.
Definition moyoc.h:312
const double(* translations)[3]
Translation parts of the num_operations magnetic operations.
Definition moyoc.h:308
const int32_t(* rotations)[3][3]
Rotation parts of the num_operations magnetic operations.
Definition moyoc.h:304
int32_t num_operations
Number of magnetic symmetry operations.
Definition moyoc.h:316
Magnetic space-group type information, created by moyo_magnetic_space_group_type_new and freed by moy...
Definition moyoc.h:248
const char * bns_number
BNS number, e.g.
Definition moyoc.h:260
int32_t uni_number
Serial number of UNI (and BNS) symbols (1 - 1651).
Definition moyoc.h:252
int32_t construct_type
Construct type of the magnetic space group, from 1 to 4.
Definition moyoc.h:272
int32_t number
ITA number for the reference space group in BNS setting.
Definition moyoc.h:268
const char * og_number
OG number, e.g.
Definition moyoc.h:264
int32_t litvin_number
Serial number in Litvin's Magnetic group tables.
Definition moyoc.h:256
Magnetic space group identified by moyo_magnetic_space_group_new and freed by moyo_magnetic_space_gro...
Definition moyoc.h:758
int32_t uni_number
Serial number of UNI (and BNS) symbols (1 - 1651).
Definition moyoc.h:762
double origin_shift[3]
Origin shift of the transformation from the input primitive basis to the standardized basis.
Definition moyoc.h:772
int32_t linear[3][3]
Linear part of the transformation from the input primitive basis to the standardized basis.
Definition moyoc.h:767
Non-collinear magnetic structure.
Definition moyoc.h:537
struct MoyoCell cell
Crystal structure.
Definition moyoc.h:541
const double(* magnetic_moments)[3]
Non-collinear magnetic moments of the cell.num_atoms sites in Cartesian coordinates.
Definition moyoc.h:545
A dataset of the magnetic symmetry analysis of a non-collinear magnetic structure,...
Definition moyoc.h:553
double mag_symprec
Actually used mag_symprec in iterative symmetry search.
Definition moyoc.h:627
double std_rotation_matrix[3][3]
Proper Cartesian rotation applied to the refined lattice and magnetic moments.
Definition moyoc.h:592
int32_t uni_number
Serial number of UNI (and BNS) symbols.
Definition moyoc.h:557
double std_linear[3][3]
Linear part of the transformation from the input magnetic cell to std_mag_cell.
Definition moyoc.h:583
const int32_t * orbits
The ith atom in the input magnetic cell is equivalent to the orbits[i]th atom in the input magnetic c...
Definition moyoc.h:571
double std_origin_shift[3]
Origin shift of the transformation from the input magnetic cell to std_mag_cell.
Definition moyoc.h:587
int32_t num_atoms
Number of atoms in the input magnetic cell.
Definition moyoc.h:562
const int32_t * mapping_std_prim
Mapping sites in the input magnetic cell to those in the primitive standardized one.
Definition moyoc.h:614
struct MoyoMagneticOperations magnetic_operations
Magnetic symmetry operations in the input cell.
Definition moyoc.h:566
struct MoyoNonCollinearMagneticCell std_mag_cell
Standardized magnetic cell Its basis is right-handed for either input handedness and either rotate_ba...
Definition moyoc.h:578
double symprec
Actually used symprec in iterative symmetry search.
Definition moyoc.h:618
struct MoyoNonCollinearMagneticCell prim_std_mag_cell
Primitive standardized magnetic cell Its basis is right-handed for either input handedness and either...
Definition moyoc.h:599
double prim_std_origin_shift[3]
Origin shift of the transformation from the input magnetic cell to prim_std_mag_cell.
Definition moyoc.h:608
double prim_std_linear[3][3]
Linear part of the transformation from the input magnetic cell to prim_std_mag_cell.
Definition moyoc.h:604
double angle_tolerance
Actually used angle_tolerance in iterative symmetry search.
Definition moyoc.h:623
Symmetry operations.
Definition moyoc.h:280
const int32_t(* rotations)[3][3]
Rotation parts of the num_operations operations.
Definition moyoc.h:284
const double(* translations)[3]
Translation parts of the num_operations operations.
Definition moyoc.h:288
int32_t num_operations
Number of symmetry operations.
Definition moyoc.h:292
Point group identified by moyo_point_group_new and freed by moyo_point_group_free.
Definition moyoc.h:779
int32_t arithmetic_number
Number for the arithmetic crystal class (1 - 73).
Definition moyoc.h:783
int32_t prim_trans_mat[3][3]
Transformation matrix from the input primitive basis to the standardized basis.
Definition moyoc.h:787
Space-group type information, created by moyo_space_group_type_new and freed by moyo_space_group_type...
Definition moyoc.h:80
const char * hm_short
Hermann-Mauguin symbol in short notation.
Definition moyoc.h:88
const char * bravais_class
Bravais class.
Definition moyoc.h:112
const char * arithmetic_symbol
Symbol for arithmetic crystal class.
Definition moyoc.h:100
int32_t number
ITA number for space group types (1 - 230).
Definition moyoc.h:84
const char * hm_full
Hermann-Mauguin symbol in full notation.
Definition moyoc.h:92
const char * crystal_system
Crystal system.
Definition moyoc.h:108
const char * geometric_crystal_class
Geometric crystal class.
Definition moyoc.h:104
const char * lattice_system
Lattice system.
Definition moyoc.h:116
const char * crystal_family
Crystal family.
Definition moyoc.h:120
int32_t arithmetic_number
Number for arithmetic crystal classes (1 - 73).
Definition moyoc.h:96
Space group identified by moyo_space_group_new and freed by moyo_space_group_free.
Definition moyoc.h:794
int32_t linear[3][3]
Linear part of the transformation from the input primitive basis to the standardized basis.
Definition moyoc.h:807
int32_t hall_number
Hall symbol number (1 - 530) for the chosen setting.
Definition moyoc.h:802
double origin_shift[3]
Origin shift of the transformation from the input primitive basis to the standardized basis.
Definition moyoc.h:812
int32_t number
ITA number for the identified space group (1 - 230).
Definition moyoc.h:798