symcrys 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -3
- package/dist/crystalClasses.d.ts +222 -0
- package/dist/crystalClasses.d.ts.map +1 -0
- package/dist/crystalClasses.js +295 -0
- package/dist/crystalClasses.js.map +1 -0
- package/dist/index.d.ts +11 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -8
- package/dist/index.js.map +1 -1
- package/dist/lattice.d.ts +5 -1
- package/dist/lattice.d.ts.map +1 -1
- package/dist/lattice.js +3 -1
- package/dist/lattice.js.map +1 -1
- package/dist/magnetic.d.ts +36 -0
- package/dist/magnetic.d.ts.map +1 -0
- package/dist/magnetic.js +22 -0
- package/dist/magnetic.js.map +1 -0
- package/dist/operations.d.ts +10 -0
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +25 -0
- package/dist/operations.js.map +1 -1
- package/dist/pointGroups/data.d.ts +36 -1
- package/dist/pointGroups/data.d.ts.map +1 -1
- package/dist/pointGroups/data.js +29 -21
- package/dist/pointGroups/data.js.map +1 -1
- package/dist/pointGroups/elements.d.ts +16 -6
- package/dist/pointGroups/elements.d.ts.map +1 -1
- package/dist/pointGroups/elements.js +7 -2
- package/dist/pointGroups/elements.js.map +1 -1
- package/dist/pointGroups/magneticData.d.ts +66 -0
- package/dist/pointGroups/magneticData.d.ts.map +1 -0
- package/dist/pointGroups/magneticData.js +184 -0
- package/dist/pointGroups/magneticData.js.map +1 -0
- package/dist/pointGroups/magneticSymbols.d.ts +22 -0
- package/dist/pointGroups/magneticSymbols.d.ts.map +1 -0
- package/dist/pointGroups/magneticSymbols.js +103 -0
- package/dist/pointGroups/magneticSymbols.js.map +1 -0
- package/dist/pointGroups/pointGroups.d.ts +102 -24
- package/dist/pointGroups/pointGroups.d.ts.map +1 -1
- package/dist/pointGroups/pointGroups.js +293 -47
- package/dist/pointGroups/pointGroups.js.map +1 -1
- package/dist/pointGroups/properties.d.ts +25 -16
- package/dist/pointGroups/properties.d.ts.map +1 -1
- package/dist/pointGroups/properties.js +46 -56
- package/dist/pointGroups/properties.js.map +1 -1
- package/dist/pointGroups/wyckoff.d.ts +4 -1
- package/dist/pointGroups/wyckoff.d.ts.map +1 -1
- package/dist/pointGroups/wyckoff.js +6 -2
- package/dist/pointGroups/wyckoff.js.map +1 -1
- package/dist/siteSymmetry.d.ts +2 -1
- package/dist/siteSymmetry.d.ts.map +1 -1
- package/dist/siteSymmetry.js.map +1 -1
- package/dist/tensors/propertyTable.d.ts +45 -0
- package/dist/tensors/propertyTable.d.ts.map +1 -0
- package/dist/tensors/propertyTable.js +41 -0
- package/dist/tensors/propertyTable.js.map +1 -0
- package/dist/tensors/tensorForm.d.ts +21 -10
- package/dist/tensors/tensorForm.d.ts.map +1 -1
- package/dist/tensors/tensorForm.js +23 -24
- package/dist/tensors/tensorForm.js.map +1 -1
- package/dist/tensors/tensorProperties.d.ts +30 -0
- package/dist/tensors/tensorProperties.d.ts.map +1 -0
- package/dist/tensors/tensorProperties.js +44 -0
- package/dist/tensors/tensorProperties.js.map +1 -0
- package/dist/version.d.ts +6 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +6 -2
- package/dist/version.js.map +1 -1
- package/package.json +6 -2
- package/src/crystalClasses.ts +451 -0
- package/src/index.ts +32 -38
- package/src/lattice.ts +5 -1
- package/src/magnetic.ts +88 -0
- package/src/operations.ts +31 -0
- package/src/pointGroups/data.ts +33 -22
- package/src/pointGroups/elements.ts +27 -8
- package/src/pointGroups/magneticData.ts +328 -0
- package/src/pointGroups/magneticSymbols.ts +110 -0
- package/src/pointGroups/pointGroups.ts +388 -65
- package/src/pointGroups/properties.ts +47 -56
- package/src/pointGroups/wyckoff.ts +17 -2
- package/src/siteSymmetry.ts +2 -1
- package/src/tensors/propertyTable.ts +89 -0
- package/src/tensors/tensorForm.ts +39 -28
- package/src/tensors/tensorProperties.ts +50 -0
- package/src/version.ts +6 -2
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The 90 magnetic point groups with time reversal as data: the 32 grey groups (type II) and the 58
|
|
3
|
+
* black-and-white groups (type III). With the 32 crystal classes (type I, data.ts) they are the 122
|
|
4
|
+
* magnetic point groups.
|
|
5
|
+
*
|
|
6
|
+
* A grey group is its crystal class P together with all operations of P combined with time
|
|
7
|
+
* reversal (ITC Vol. D, eq. (1.5.2.1)); its data follow from the class. A black-and-white group is
|
|
8
|
+
* stored like a class: generators in the stored (Birss) frame, here those of birss-app, and the
|
|
9
|
+
* frames of its settings. The symbols of a setting are not stored: they are the symbols of the
|
|
10
|
+
* crystal class in that frame with the primes the operations carry (magneticSymbols.ts).
|
|
11
|
+
* Print anchors and their tests: docs/conventions.md, "Sources".
|
|
12
|
+
*/
|
|
13
|
+
import { type Mat3 } from '../linalg.js';
|
|
14
|
+
import { type Operation } from '../operations.js';
|
|
15
|
+
import { type PointGroupKey } from './data.js';
|
|
16
|
+
/** Keys of the 32 grey groups: the key of the crystal class followed by `1'`. */
|
|
17
|
+
export type GreyPointGroupKey = `${PointGroupKey}1'`;
|
|
18
|
+
export declare const GREY_POINT_GROUP_KEYS: readonly GreyPointGroupKey[];
|
|
19
|
+
/**
|
|
20
|
+
* Keys of the 58 black-and-white groups: the short Hermann–Mauguin symbol of ITC Vol. D
|
|
21
|
+
* Table 1.5.2.3, in the order of the table (docs/conventions.md, "Keys").
|
|
22
|
+
*/
|
|
23
|
+
export declare const BLACK_WHITE_POINT_GROUP_KEYS: readonly ["-1'", "2'", "m'", "2'/m'", "2/m'", "2'/m", "2'2'2", "m'm'2", "2'm'm", "mm'm'", "m'm'm'", "mmm'", "4'", "-4'", "4'/m", "4/m'", "4'/m'", "4'22'", "42'2'", "4'mm'", "4m'm'", "-4'2m'", "-4'm2'", "-42'm'", "4'/mmm'", "4/mm'm'", "4/m'm'm'", "4/m'mm", "4'/m'm'm", "-3'", "32'", "3m'", "-3m'", "-3'm'", "-3'm", "6'", "-6'", "6'/m'", "6/m'", "6'/m", "6'22'", "62'2'", "6'mm'", "6m'm'", "-6'2m'", "-6'm2'", "-6m'2'", "6'/m'mm'", "6/mm'm'", "6/m'm'm'", "6/m'mm", "6'/mmm'", "m'-3'", "4'32'", "-4'3m'", "m-3m'", "m'-3'm'", "m'-3'm"];
|
|
24
|
+
/** The key of one of the 58 black-and-white magnetic point groups. */
|
|
25
|
+
export type BlackWhitePointGroupKey = Extract<(typeof BLACK_WHITE_POINT_GROUP_KEYS)[number], string>;
|
|
26
|
+
/** Keys of all 122 magnetic point groups: the 32 crystal classes, the 32 grey groups, the 58 black-and-white groups. */
|
|
27
|
+
export type MagneticPointGroupKey = PointGroupKey | GreyPointGroupKey | BlackWhitePointGroupKey;
|
|
28
|
+
/**
|
|
29
|
+
* Keys of the 122 magnetic point groups: the 32 crystal classes (white groups), the 32 grey groups
|
|
30
|
+
* and the 58 black-and-white groups, in this order (docs/conventions.md, "Keys").
|
|
31
|
+
*/
|
|
32
|
+
export declare const MAGNETIC_POINT_GROUP_KEYS: readonly MagneticPointGroupKey[];
|
|
33
|
+
/** The frame of a setting of a black-and-white group. */
|
|
34
|
+
export interface MagneticFrame {
|
|
35
|
+
/** Orthogonal matrix s: the setting's operations are s·W·sᵀ for the stored operations W. */
|
|
36
|
+
readonly frame: Mat3;
|
|
37
|
+
/** Monoclinic: the unique axis; orthorhombic: the axis the stored z axis is carried to. */
|
|
38
|
+
readonly uniqueAxis?: 'a' | 'b' | 'c';
|
|
39
|
+
}
|
|
40
|
+
export interface BlackWhiteData {
|
|
41
|
+
readonly key: BlackWhitePointGroupKey;
|
|
42
|
+
/** The crystal class the group becomes when every prime is dropped. */
|
|
43
|
+
readonly crystalClass: PointGroupKey;
|
|
44
|
+
readonly schoenflies: string;
|
|
45
|
+
/** Generators in the stored (Birss) frame, which is setting 1. */
|
|
46
|
+
readonly generators: readonly Operation[];
|
|
47
|
+
/** Setting 1 first; its frame is the identity. */
|
|
48
|
+
readonly settings: readonly MagneticFrame[];
|
|
49
|
+
/** The ITC default setting (1-based). The Birss default is always setting 1. */
|
|
50
|
+
readonly itcDefault: number;
|
|
51
|
+
}
|
|
52
|
+
/** Time reversal alone: the identity combined with time reversal (1'). */
|
|
53
|
+
export declare const TIME_REVERSAL: Operation;
|
|
54
|
+
/**
|
|
55
|
+
* The 58 black-and-white groups. The generators are birss-app's (CLAUDE.md, "birss-app is the
|
|
56
|
+
* reference where print leaves a choice open"); the group they generate is checked against Birss's
|
|
57
|
+
* Table 6 and against ITC Vol. D Table 1.5.2.3. Setting frames as for the classes (data.ts), with three more for `2'm'm`; the
|
|
58
|
+
* ITC default is the frame in which the key, read along ITA's symmetry directions, describes the
|
|
59
|
+
* group, which is the frame of the operators printed in Table 1.5.2.3.
|
|
60
|
+
*/
|
|
61
|
+
export declare const BLACK_WHITE_DATA: readonly BlackWhiteData[];
|
|
62
|
+
/** Schoenflies symbol of a grey group: that of its class with the subscript R (ITC Vol. D, Table 1.5.2.1). */
|
|
63
|
+
export declare const greySchoenflies: (classSymbol: string) => string;
|
|
64
|
+
/** The data of the crystal class with this key. */
|
|
65
|
+
export declare function classData(key: PointGroupKey): import("./data.js").PointGroupData;
|
|
66
|
+
//# sourceMappingURL=magneticData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"magneticData.d.ts","sourceRoot":"","sources":["../../src/pointGroups/magneticData.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAuB,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAwBL,KAAK,aAAa,EACnB,MAAM,WAAW,CAAC;AAEnB,iFAAiF;AACjF,MAAM,MAAM,iBAAiB,GAAG,GAAG,aAAa,IAAI,CAAC;AAErD,eAAO,MAAM,qBAAqB,EAAE,SAAS,iBAAiB,EAE7D,CAAC;AAEF;;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|
+
/**
|
|
2
|
+
* The 90 magnetic point groups with time reversal as data: the 32 grey groups (type II) and the 58
|
|
3
|
+
* black-and-white groups (type III). With the 32 crystal classes (type I, data.ts) they are the 122
|
|
4
|
+
* magnetic point groups.
|
|
5
|
+
*
|
|
6
|
+
* A grey group is its crystal class P together with all operations of P combined with time
|
|
7
|
+
* reversal (ITC Vol. D, eq. (1.5.2.1)); its data follow from the class. A black-and-white group is
|
|
8
|
+
* stored like a class: generators in the stored (Birss) frame, here those of birss-app, and the
|
|
9
|
+
* frames of its settings. The symbols of a setting are not stored: they are the symbols of the
|
|
10
|
+
* crystal class in that frame with the primes the operations carry (magneticSymbols.ts).
|
|
11
|
+
* Print anchors and their tests: docs/conventions.md, "Sources".
|
|
12
|
+
*/
|
|
13
|
+
import { IDENTITY, INVERSION } from '../linalg.js';
|
|
14
|
+
import { operation } from '../operations.js';
|
|
15
|
+
import { MIRROR_X, MIRROR_Y, MIRROR_Z, MONOCLINIC_B, ORTHO_SWAP, ORTHO_TO_A, ORTHO_TO_A_SWAP, ORTHO_TO_B, ORTHO_TO_B_SWAP, POINT_GROUP_DATA, POINT_GROUP_KEYS, ROT2_X, ROT2_Y, ROT2_Z, ROT30_Z, ROT3_111, ROT3_Z, ROT45_Z, ROT4_Z, ROT6_Z, ROTINV4_Z, ROTINV6_Z, SAME, } from './data.js';
|
|
16
|
+
export const GREY_POINT_GROUP_KEYS = Object.freeze(POINT_GROUP_KEYS.map((key) => `${key}1'`));
|
|
17
|
+
/**
|
|
18
|
+
* Keys of the 58 black-and-white groups: the short Hermann–Mauguin symbol of ITC Vol. D
|
|
19
|
+
* Table 1.5.2.3, in the order of the table (docs/conventions.md, "Keys").
|
|
20
|
+
*/
|
|
21
|
+
export const BLACK_WHITE_POINT_GROUP_KEYS = Object.freeze([
|
|
22
|
+
"-1'",
|
|
23
|
+
"2'",
|
|
24
|
+
"m'",
|
|
25
|
+
"2'/m'",
|
|
26
|
+
"2/m'",
|
|
27
|
+
"2'/m",
|
|
28
|
+
"2'2'2",
|
|
29
|
+
"m'm'2",
|
|
30
|
+
"2'm'm",
|
|
31
|
+
"mm'm'",
|
|
32
|
+
"m'm'm'",
|
|
33
|
+
"mmm'",
|
|
34
|
+
"4'",
|
|
35
|
+
"-4'",
|
|
36
|
+
"4'/m",
|
|
37
|
+
"4/m'",
|
|
38
|
+
"4'/m'",
|
|
39
|
+
"4'22'",
|
|
40
|
+
"42'2'",
|
|
41
|
+
"4'mm'",
|
|
42
|
+
"4m'm'",
|
|
43
|
+
"-4'2m'",
|
|
44
|
+
"-4'm2'",
|
|
45
|
+
"-42'm'",
|
|
46
|
+
"4'/mmm'",
|
|
47
|
+
"4/mm'm'",
|
|
48
|
+
"4/m'm'm'",
|
|
49
|
+
"4/m'mm",
|
|
50
|
+
"4'/m'm'm",
|
|
51
|
+
"-3'",
|
|
52
|
+
"32'",
|
|
53
|
+
"3m'",
|
|
54
|
+
"-3m'",
|
|
55
|
+
"-3'm'",
|
|
56
|
+
"-3'm",
|
|
57
|
+
"6'",
|
|
58
|
+
"-6'",
|
|
59
|
+
"6'/m'",
|
|
60
|
+
"6/m'",
|
|
61
|
+
"6'/m",
|
|
62
|
+
"6'22'",
|
|
63
|
+
"62'2'",
|
|
64
|
+
"6'mm'",
|
|
65
|
+
"6m'm'",
|
|
66
|
+
"-6'2m'",
|
|
67
|
+
"-6'm2'",
|
|
68
|
+
"-6m'2'",
|
|
69
|
+
"6'/m'mm'",
|
|
70
|
+
"6/mm'm'",
|
|
71
|
+
"6/m'm'm'",
|
|
72
|
+
"6/m'mm",
|
|
73
|
+
"6'/mmm'",
|
|
74
|
+
"m'-3'",
|
|
75
|
+
"4'32'",
|
|
76
|
+
"-4'3m'",
|
|
77
|
+
"m-3m'",
|
|
78
|
+
"m'-3'm'",
|
|
79
|
+
"m'-3'm",
|
|
80
|
+
]);
|
|
81
|
+
/**
|
|
82
|
+
* Keys of the 122 magnetic point groups: the 32 crystal classes (white groups), the 32 grey groups
|
|
83
|
+
* and the 58 black-and-white groups, in this order (docs/conventions.md, "Keys").
|
|
84
|
+
*/
|
|
85
|
+
export const MAGNETIC_POINT_GROUP_KEYS = Object.freeze([
|
|
86
|
+
...POINT_GROUP_KEYS,
|
|
87
|
+
...GREY_POINT_GROUP_KEYS,
|
|
88
|
+
...BLACK_WHITE_POINT_GROUP_KEYS,
|
|
89
|
+
]);
|
|
90
|
+
/** Time reversal alone: the identity combined with time reversal (1'). */
|
|
91
|
+
export const TIME_REVERSAL = Object.freeze({ matrix: IDENTITY, timeReversal: true });
|
|
92
|
+
/** An operation combined with time reversal (a primed operation). */
|
|
93
|
+
const primed = (matrix) => ({ matrix, timeReversal: true });
|
|
94
|
+
function blackWhite(key, crystalClass, schoenflies, generators, frames, itcDefault = 1, uniqueAxes) {
|
|
95
|
+
const settings = frames.map((frame, i) => uniqueAxes ? { frame, uniqueAxis: uniqueAxes[i] } : { frame });
|
|
96
|
+
return { key, crystalClass, schoenflies, generators, settings, itcDefault };
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* The 58 black-and-white groups. The generators are birss-app's (CLAUDE.md, "birss-app is the
|
|
100
|
+
* reference where print leaves a choice open"); the group they generate is checked against Birss's
|
|
101
|
+
* Table 6 and against ITC Vol. D Table 1.5.2.3. Setting frames as for the classes (data.ts), with three more for `2'm'm`; the
|
|
102
|
+
* ITC default is the frame in which the key, read along ITA's symmetry directions, describes the
|
|
103
|
+
* group, which is the frame of the operators printed in Table 1.5.2.3.
|
|
104
|
+
*/
|
|
105
|
+
export const BLACK_WHITE_DATA = [
|
|
106
|
+
blackWhite("-1'", '-1', 'Ci(C1)', [primed(INVERSION)], [SAME]),
|
|
107
|
+
blackWhite("2'", '2', 'C2(C1)', [primed(ROT2_Z)], [SAME, MONOCLINIC_B], 2, ['c', 'b']),
|
|
108
|
+
blackWhite("m'", 'm', 'Cs(C1)', [primed(MIRROR_Z)], [SAME, MONOCLINIC_B], 2, ['c', 'b']),
|
|
109
|
+
blackWhite("2'/m'", '2/m', 'C2h(Ci)', [primed(ROT2_Z), operation(INVERSION)], [SAME, MONOCLINIC_B], 2, ['c', 'b']),
|
|
110
|
+
blackWhite("2/m'", '2/m', 'C2h(C2)', [operation(ROT2_Z), primed(INVERSION)], [SAME, MONOCLINIC_B], 2, ['c', 'b']),
|
|
111
|
+
blackWhite("2'/m", '2/m', 'C2h(Cs)', [primed(ROT2_Z), primed(INVERSION)], [SAME, MONOCLINIC_B], 2, ['c', 'b']),
|
|
112
|
+
blackWhite("2'2'2", '222', 'D2(C2)', [operation(ROT2_Z), primed(ROT2_X)], [SAME, ORTHO_TO_A, ORTHO_TO_B], 1, [
|
|
113
|
+
'c',
|
|
114
|
+
'a',
|
|
115
|
+
'b',
|
|
116
|
+
]),
|
|
117
|
+
blackWhite("m'm'2", 'mm2', 'C2v(C2)', [operation(ROT2_Z), primed(MIRROR_X)], [SAME, ORTHO_TO_A, ORTHO_TO_B], 1, [
|
|
118
|
+
'c',
|
|
119
|
+
'a',
|
|
120
|
+
'b',
|
|
121
|
+
]),
|
|
122
|
+
// Its three elements all differ, so exchanging two axes gives another orientation: six settings.
|
|
123
|
+
// Settings 1 to 3 are birss-app's; 4 to 6 exchange the other two axes at the same unique axis.
|
|
124
|
+
blackWhite("2'm'm", 'mm2', 'C2v(Cs)', [operation(MIRROR_Z), primed(ROT2_X)], [SAME, ORTHO_TO_A, ORTHO_TO_B, ORTHO_SWAP, ORTHO_TO_A_SWAP, ORTHO_TO_B_SWAP], 1, ['c', 'a', 'b', 'c', 'a', 'b']),
|
|
125
|
+
blackWhite("mm'm'", 'mmm', 'D2h(C2h)', [operation(ROT2_Z), operation(INVERSION), primed(ROT2_X)], [SAME, ORTHO_TO_A, ORTHO_TO_B], 2, ['c', 'a', 'b']),
|
|
126
|
+
blackWhite("m'm'm'", 'mmm', 'D2h(D2)', [operation(ROT2_Z), operation(ROT2_X), primed(INVERSION)], [SAME]),
|
|
127
|
+
blackWhite("mmm'", 'mmm', 'D2h(C2v)', [operation(ROT2_Z), operation(MIRROR_X), primed(INVERSION)], [SAME, ORTHO_TO_A, ORTHO_TO_B], 1, ['c', 'a', 'b']),
|
|
128
|
+
blackWhite("4'", '4', 'C4(C2)', [primed(ROT4_Z)], [SAME]),
|
|
129
|
+
blackWhite("-4'", '-4', 'S4(C2)', [primed(ROTINV4_Z)], [SAME]),
|
|
130
|
+
blackWhite("4'/m", '4/m', 'C4h(C2h)', [primed(ROT4_Z), operation(INVERSION)], [SAME]),
|
|
131
|
+
blackWhite("4/m'", '4/m', 'C4h(C4)', [operation(ROT4_Z), primed(INVERSION)], [SAME]),
|
|
132
|
+
blackWhite("4'/m'", '4/m', 'C4h(S4)', [primed(ROT4_Z), primed(INVERSION)], [SAME]),
|
|
133
|
+
blackWhite("4'22'", '422', 'D4(D2)', [primed(ROT4_Z), operation(ROT2_X)], [SAME, ROT45_Z]),
|
|
134
|
+
blackWhite("42'2'", '422', 'D4(C4)', [operation(ROT4_Z), primed(ROT2_X)], [SAME]),
|
|
135
|
+
blackWhite("4'mm'", '4mm', 'C4v(C2v)', [primed(ROT4_Z), operation(MIRROR_X)], [SAME, ROT45_Z]),
|
|
136
|
+
blackWhite("4m'm'", '4mm', 'C4v(C4)', [operation(ROT4_Z), primed(MIRROR_X)], [SAME]),
|
|
137
|
+
blackWhite("-4'2m'", '-42m', 'D2d(D2)', [primed(ROTINV4_Z), operation(ROT2_X)], [SAME, ROT45_Z]),
|
|
138
|
+
blackWhite("-4'm2'", '-42m', 'D2d(C2v)', [primed(ROTINV4_Z), operation(MIRROR_Y)], [SAME, ROT45_Z]),
|
|
139
|
+
blackWhite("-42'm'", '-42m', 'D2d(S4)', [operation(ROTINV4_Z), primed(ROT2_X)], [SAME, ROT45_Z]),
|
|
140
|
+
blackWhite("4'/mmm'", '4/mmm', 'D4h(D2h)', [primed(ROT4_Z), operation(ROT2_X), operation(INVERSION)], [SAME, ROT45_Z]),
|
|
141
|
+
blackWhite("4/mm'm'", '4/mmm', 'D4h(C4h)', [operation(ROT4_Z), operation(INVERSION), primed(ROT2_X)], [SAME]),
|
|
142
|
+
blackWhite("4/m'm'm'", '4/mmm', 'D4h(D4)', [operation(ROT4_Z), operation(ROT2_X), primed(INVERSION)], [SAME]),
|
|
143
|
+
blackWhite("4/m'mm", '4/mmm', 'D4h(C4v)', [operation(ROT4_Z), operation(MIRROR_X), primed(INVERSION)], [SAME]),
|
|
144
|
+
blackWhite("4'/m'm'm", '4/mmm', 'D4h(D2d)', [operation(ROTINV4_Z), operation(ROT2_Y), primed(INVERSION)], [SAME, ROT45_Z]),
|
|
145
|
+
blackWhite("-3'", '-3', 'C3i(C3)', [operation(ROT3_Z), primed(INVERSION)], [SAME]),
|
|
146
|
+
blackWhite("32'", '32', 'D3(C3)', [operation(ROT3_Z), primed(ROT2_Y)], [SAME, ROT30_Z], 2),
|
|
147
|
+
blackWhite("3m'", '3m', 'C3v(C3)', [operation(ROT3_Z), primed(MIRROR_Y)], [SAME, ROT30_Z], 2),
|
|
148
|
+
blackWhite("-3m'", '-3m', 'D3d(C3i)', [operation(ROT3_Z), operation(INVERSION), primed(ROT2_Y)], [SAME, ROT30_Z], 2),
|
|
149
|
+
blackWhite("-3'm'", '-3m', 'D3d(D3)', [operation(ROT3_Z), operation(ROT2_Y), primed(INVERSION)], [SAME, ROT30_Z], 2),
|
|
150
|
+
blackWhite("-3'm", '-3m', 'D3d(C3v)', [operation(ROT3_Z), operation(MIRROR_Y), primed(INVERSION)], [SAME, ROT30_Z], 2),
|
|
151
|
+
blackWhite("6'", '6', 'C6(C3)', [primed(ROT6_Z)], [SAME]),
|
|
152
|
+
blackWhite("-6'", '-6', 'C3h(C3)', [primed(ROTINV6_Z)], [SAME]),
|
|
153
|
+
blackWhite("6'/m'", '6/m', 'C6h(C3i)', [primed(ROT6_Z), operation(INVERSION)], [SAME]),
|
|
154
|
+
blackWhite("6/m'", '6/m', 'C6h(C6)', [operation(ROT6_Z), primed(INVERSION)], [SAME]),
|
|
155
|
+
blackWhite("6'/m", '6/m', 'C6h(C3h)', [primed(ROT6_Z), primed(INVERSION)], [SAME]),
|
|
156
|
+
blackWhite("6'22'", '622', 'D6(D3)', [primed(ROT6_Z), operation(ROT2_Y)], [SAME, ROT30_Z], 2),
|
|
157
|
+
blackWhite("62'2'", '622', 'D6(C6)', [operation(ROT6_Z), primed(ROT2_Y)], [SAME]),
|
|
158
|
+
blackWhite("6'mm'", '6mm', 'C6v(C3v)', [primed(ROT6_Z), operation(MIRROR_Y)], [SAME, ROT30_Z], 2),
|
|
159
|
+
blackWhite("6m'm'", '6mm', 'C6v(C6)', [operation(ROT6_Z), primed(MIRROR_Y)], [SAME]),
|
|
160
|
+
blackWhite("-6'2m'", '-6m2', 'D3h(D3)', [primed(ROTINV6_Z), operation(ROT2_Y)], [SAME, ROT30_Z], 2),
|
|
161
|
+
blackWhite("-6'm2'", '-6m2', 'D3h(C3v)', [primed(ROTINV6_Z), operation(MIRROR_Y)], [SAME, ROT30_Z], 2),
|
|
162
|
+
blackWhite("-6m'2'", '-6m2', 'D3h(C3h)', [operation(ROTINV6_Z), primed(MIRROR_Y)], [SAME, ROT30_Z], 2),
|
|
163
|
+
blackWhite("6'/m'mm'", '6/mmm', 'D6h(D3d)', [primed(ROT6_Z), operation(ROT2_Y), operation(INVERSION)], [SAME, ROT30_Z], 2),
|
|
164
|
+
blackWhite("6/mm'm'", '6/mmm', 'D6h(C6h)', [operation(ROT6_Z), operation(INVERSION), primed(ROT2_Y)], [SAME]),
|
|
165
|
+
blackWhite("6/m'm'm'", '6/mmm', 'D6h(D6)', [operation(ROT6_Z), operation(ROT2_Y), primed(INVERSION)], [SAME]),
|
|
166
|
+
blackWhite("6/m'mm", '6/mmm', 'D6h(C6v)', [operation(ROT6_Z), operation(MIRROR_Y), primed(INVERSION)], [SAME]),
|
|
167
|
+
blackWhite("6'/mmm'", '6/mmm', 'D6h(D3h)', [primed(ROT6_Z), operation(ROT2_Y), primed(INVERSION)], [SAME, ROT30_Z]),
|
|
168
|
+
blackWhite("m'-3'", 'm-3', 'Th(T)', [operation(ROT2_Z), operation(ROT2_X), operation(ROT3_111), primed(INVERSION)], [SAME]),
|
|
169
|
+
blackWhite("4'32'", '432', 'O(T)', [operation(ROT2_Z), operation(ROT2_X), operation(ROT3_111), primed(ROT4_Z)], [SAME]),
|
|
170
|
+
blackWhite("-4'3m'", '-43m', 'Td(T)', [operation(ROT2_Z), operation(ROT2_X), operation(ROT3_111), primed(ROTINV4_Z)], [SAME]),
|
|
171
|
+
blackWhite("m-3m'", 'm-3m', 'Oh(Th)', [operation(INVERSION), operation(ROT3_111), primed(ROT4_Z)], [SAME]),
|
|
172
|
+
blackWhite("m'-3'm'", 'm-3m', 'Oh(O)', [operation(ROT4_Z), operation(ROT3_111), primed(INVERSION)], [SAME]),
|
|
173
|
+
blackWhite("m'-3'm", 'm-3m', 'Oh(Td)', [operation(ROTINV4_Z), operation(ROT3_111), primed(INVERSION)], [SAME]),
|
|
174
|
+
];
|
|
175
|
+
/** Schoenflies symbol of a grey group: that of its class with the subscript R (ITC Vol. D, Table 1.5.2.1). */
|
|
176
|
+
export const greySchoenflies = (classSymbol) => `${classSymbol}R`;
|
|
177
|
+
/** The data of the crystal class with this key. */
|
|
178
|
+
export function classData(key) {
|
|
179
|
+
const d = POINT_GROUP_DATA.find((x) => x.key === key);
|
|
180
|
+
if (!d)
|
|
181
|
+
throw new RangeError(`Unknown crystal class: ${JSON.stringify(key)}`);
|
|
182
|
+
return d;
|
|
183
|
+
}
|
|
184
|
+
//# sourceMappingURL=magneticData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"magneticData.js","sourceRoot":"","sources":["../../src/pointGroups/magneticData.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAkB,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EACL,QAAQ,E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,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;IAC3G,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;CAC/G,CAAC;AAEF,8GAA8G;AAC9G,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAmB,EAAU,EAAE,CAAC,GAAG,WAAW,GAAG,CAAC;AAElF,mDAAmD;AACnD,MAAM,UAAU,SAAS,CAAC,GAAkB;IAC1C,MAAM,CAAC,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC;IACtD,IAAI,CAAC,CAAC;QAAE,MAAM,IAAI,UAAU,CAAC,0BAA0B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAC9E,OAAO,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hermann–Mauguin symbols of the black-and-white point groups. The symbol of such a group in a
|
|
3
|
+
* given frame is the symbol of its crystal class in that frame, each position carrying a prime if
|
|
4
|
+
* the operation it names is combined with time reversal (ITC Vol. D, § 1.5.2.1, Table 1.5.2.3).
|
|
5
|
+
* So no symbols are stored for these groups: they follow from the symbols of the class
|
|
6
|
+
* (data.ts) and the operations (docs/conventions.md, "Symbols").
|
|
7
|
+
*/
|
|
8
|
+
import { type CrystalSystem } from '../lattice.js';
|
|
9
|
+
import type { Operation } from '../operations.js';
|
|
10
|
+
/**
|
|
11
|
+
* The symbols of a black-and-white group in one frame: the short and the full symbol of its
|
|
12
|
+
* crystal class in that frame, in the given convention, with primes taken from `ops`, the
|
|
13
|
+
* operations of the group in that frame.
|
|
14
|
+
*/
|
|
15
|
+
export declare function primedSymbols(classSymbols: {
|
|
16
|
+
readonly short: string;
|
|
17
|
+
readonly full: string;
|
|
18
|
+
}, system: CrystalSystem, convention: 'itc' | 'birss', ops: readonly Operation[]): {
|
|
19
|
+
short: string;
|
|
20
|
+
full: string;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=magneticSymbols.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"magneticSymbols.d.ts","sourceRoot":"","sources":["../../src/pointGroups/magneticSymbols.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAmD,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AA8ElD;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,YAAY,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAC/D,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,KAAK,GAAG,OAAO,EAC3B,GAAG,EAAE,SAAS,SAAS,EAAE,GACxB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAWjC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hermann–Mauguin symbols of the black-and-white point groups. The symbol of such a group in a
|
|
3
|
+
* given frame is the symbol of its crystal class in that frame, each position carrying a prime if
|
|
4
|
+
* the operation it names is combined with time reversal (ITC Vol. D, § 1.5.2.1, Table 1.5.2.3).
|
|
5
|
+
* So no symbols are stored for these groups: they follow from the symbols of the class
|
|
6
|
+
* (data.ts) and the operations (docs/conventions.md, "Symbols").
|
|
7
|
+
*/
|
|
8
|
+
import { matricesEqual } from '../linalg.js';
|
|
9
|
+
import { crystalFamily, latticeBasis } from '../lattice.js';
|
|
10
|
+
import { LATTICE_SYMMETRY_DIRECTIONS } from '../symmetryDirections.js';
|
|
11
|
+
/** The Cartesian direction of the first symmetry direction of each position of the full symbol. */
|
|
12
|
+
function positionDirections(family, convention) {
|
|
13
|
+
const positions = LATTICE_SYMMETRY_DIRECTIONS[family];
|
|
14
|
+
// Birss reads position 2 of the hexagonal family along y and position 3 along x
|
|
15
|
+
// (docs/conventions.md, "Where ITC and Birss differ").
|
|
16
|
+
const ordered = convention === 'birss' && family === 'hexagonal' ? [positions[0], positions[2], positions[1]] : positions;
|
|
17
|
+
// Monoclinic: a, b, c along x, y, z, exact for the unique axis, the only one with an element.
|
|
18
|
+
const b = family === 'monoclinic' || family === 'triclinic'
|
|
19
|
+
? [
|
|
20
|
+
[1, 0, 0],
|
|
21
|
+
[0, 1, 0],
|
|
22
|
+
[0, 0, 1],
|
|
23
|
+
]
|
|
24
|
+
: latticeBasis(family);
|
|
25
|
+
return ordered.map(([uvw]) => [
|
|
26
|
+
b[0][0] * uvw[0] + b[0][1] * uvw[1] + b[0][2] * uvw[2],
|
|
27
|
+
b[1][0] * uvw[0] + b[1][1] * uvw[1] + b[1][2] * uvw[2],
|
|
28
|
+
b[2][0] * uvw[0] + b[2][1] * uvw[1] + b[2][2] * uvw[2],
|
|
29
|
+
]);
|
|
30
|
+
}
|
|
31
|
+
/** Proper rotation by 360°/n about the direction u (Rodrigues' formula), times `sign`. */
|
|
32
|
+
function rotation(u, n, sign) {
|
|
33
|
+
const length = Math.hypot(u[0], u[1], u[2]);
|
|
34
|
+
const [x, y, z] = [u[0] / length, u[1] / length, u[2] / length];
|
|
35
|
+
const a = (2 * Math.PI) / n;
|
|
36
|
+
const c = Math.cos(a);
|
|
37
|
+
const s = Math.sin(a);
|
|
38
|
+
const t = 1 - c;
|
|
39
|
+
const r = [
|
|
40
|
+
[t * x * x + c, t * x * y - s * z, t * x * z + s * y],
|
|
41
|
+
[t * x * y + s * z, t * y * y + c, t * y * z - s * x],
|
|
42
|
+
[t * x * z - s * y, t * y * z + s * x, t * z * z + c],
|
|
43
|
+
];
|
|
44
|
+
return r.map((row) => row.map((v) => sign * v));
|
|
45
|
+
}
|
|
46
|
+
/** `'` if the operation with this matrix is combined with time reversal in `ops`, otherwise ``. */
|
|
47
|
+
function prime(ops, matrix, what) {
|
|
48
|
+
const op = ops.find((x) => matricesEqual(x.matrix, matrix));
|
|
49
|
+
if (!op)
|
|
50
|
+
throw new Error(`${what}: the group does not contain the operation its symbol names`);
|
|
51
|
+
return op.timeReversal ? "'" : '';
|
|
52
|
+
}
|
|
53
|
+
/** One position (`N`, `-N`, `N/m`, `m`, `1`) with the primes of the operations along `u`. */
|
|
54
|
+
function primedToken(token, u, ops, what) {
|
|
55
|
+
if (token === '1')
|
|
56
|
+
return token;
|
|
57
|
+
const parts = /^(?:(-?)([1-6]))?(\/?m)?$/.exec(token);
|
|
58
|
+
if (!parts || token === '')
|
|
59
|
+
throw new Error(`${what}: unreadable position ${JSON.stringify(token)}`);
|
|
60
|
+
const [, bar, n, mirror] = parts;
|
|
61
|
+
let result = '';
|
|
62
|
+
if (n) {
|
|
63
|
+
// -1 is the inversion and needs no direction; every other axis lies along u.
|
|
64
|
+
if (n === '1')
|
|
65
|
+
result = `${bar}1${prime(ops, rotation([0, 0, 1], 1, -1), what)}`;
|
|
66
|
+
else {
|
|
67
|
+
if (!u)
|
|
68
|
+
throw new Error(`${what}: no symmetry direction for position ${token}`);
|
|
69
|
+
result = `${bar}${n}${prime(ops, rotation(u, Number(n), bar ? -1 : 1), what)}`;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (mirror) {
|
|
73
|
+
if (!u)
|
|
74
|
+
throw new Error(`${what}: no symmetry direction for position ${token}`);
|
|
75
|
+
result += `${mirror}${prime(ops, rotation(u, 2, -1), what)}`;
|
|
76
|
+
}
|
|
77
|
+
return result;
|
|
78
|
+
}
|
|
79
|
+
/** The positions of a short symbol: `N`, `-N`, `N/m`, `m`. */
|
|
80
|
+
function shortTokens(symbol) {
|
|
81
|
+
const list = symbol.match(/-?[1-6](\/m)?|m/g) ?? [];
|
|
82
|
+
if (list.join('') !== symbol)
|
|
83
|
+
throw new Error(`Unreadable symbol: ${symbol}`);
|
|
84
|
+
return list;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The symbols of a black-and-white group in one frame: the short and the full symbol of its
|
|
88
|
+
* crystal class in that frame, in the given convention, with primes taken from `ops`, the
|
|
89
|
+
* operations of the group in that frame.
|
|
90
|
+
*/
|
|
91
|
+
export function primedSymbols(classSymbols, system, convention, ops) {
|
|
92
|
+
const family = crystalFamily(system);
|
|
93
|
+
const directions = positionDirections(family, convention);
|
|
94
|
+
const what = `Symbol ${classSymbols.short}`;
|
|
95
|
+
const fullTokens = classSymbols.full.split(' ');
|
|
96
|
+
const full = fullTokens.map((t, i) => primedToken(t, directions[i], ops, what)).join(' ');
|
|
97
|
+
const tokens = shortTokens(classSymbols.short);
|
|
98
|
+
// A monoclinic short symbol has one position: the one of the unique axis in the full symbol.
|
|
99
|
+
const offset = family === 'monoclinic' && tokens.length === 1 ? fullTokens.findIndex((t) => t !== '1') : 0;
|
|
100
|
+
const short = tokens.map((t, i) => primedToken(t, directions[i + offset], ops, what)).join('');
|
|
101
|
+
return { short, full };
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=magneticSymbols.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"magneticSymbols.js","sourceRoot":"","sources":["../../src/pointGroups/magneticSymbols.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAwB,MAAM,cAAc,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,YAAY,EAA0C,MAAM,eAAe,CAAC;AAEpG,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAEvE,mGAAmG;AACnG,SAAS,kBAAkB,CAAC,MAAqB,EAAE,UAA2B;IAC5E,MAAM,SAAS,GAAG,2BAA2B,C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
+
* 90 magnetic point groups with time reversal (32 grey, 58 black-and-white). Lookup, settings,
|
|
4
|
+
* operations, generators and symbols, in the ITC convention (default) or the Birss convention.
|
|
4
5
|
*/
|
|
5
6
|
import { type Operation } from '../operations.js';
|
|
6
7
|
import type { CrystalSystem } from '../lattice.js';
|
|
7
8
|
import { type PointGroupKey } from './data.js';
|
|
9
|
+
import { type MagneticPointGroupKey } from './magneticData.js';
|
|
8
10
|
export { POINT_GROUP_KEYS, type PointGroupKey } from './data.js';
|
|
11
|
+
export { MAGNETIC_POINT_GROUP_KEYS, type MagneticPointGroupKey } from './magneticData.js';
|
|
9
12
|
/** `'itc'`: International Tables for Crystallography (default). `'birss'`: Birss, Symmetry and Magnetism (1966). */
|
|
10
13
|
export type Convention = 'itc' | 'birss';
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Type of a magnetic point group. `'I'`: a crystallographic point group, no operation with time
|
|
16
|
+
* reversal. `'II'`: a grey group, every operation of a crystal class with and without time
|
|
17
|
+
* reversal. `'III'`: a black-and-white group, half of the operations of a crystal class combined
|
|
18
|
+
* with time reversal. ITC Vol. D numbers these types differently (docs/conventions.md, "Types").
|
|
19
|
+
*/
|
|
20
|
+
export type PointGroupType = 'I' | 'II' | 'III';
|
|
21
|
+
/**
|
|
22
|
+
* A point group with the properties that are fixed by its operations. None of them depends on the
|
|
23
|
+
* setting or the convention (docs/conventions.md, "Properties").
|
|
24
|
+
*/
|
|
25
|
+
export interface PointGroup<K extends MagneticPointGroupKey = PointGroupKey> {
|
|
26
|
+
/** The key (docs/conventions.md, "Keys"). */
|
|
27
|
+
readonly key: K;
|
|
28
|
+
/** `'I'` crystal class (white group), `'II'` grey group, `'III'` black-and-white group (docs/conventions.md, "Types"). */
|
|
15
29
|
readonly type: PointGroupType;
|
|
30
|
+
/**
|
|
31
|
+
* The crystal class of the group: the group itself for a class, otherwise the class it becomes
|
|
32
|
+
* when time reversal is dropped from every operation.
|
|
33
|
+
*/
|
|
34
|
+
readonly crystalClass: PointGroupKey;
|
|
35
|
+
/** The crystal system of the crystal class. */
|
|
16
36
|
readonly crystalSystem: CrystalSystem;
|
|
17
37
|
/** Number of operations. */
|
|
18
38
|
readonly order: number;
|
|
39
|
+
/** Contains the inversion, not combined with time reversal. */
|
|
40
|
+
readonly centrosymmetric: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Polar (pyroelectric class): some direction is left unchanged by every operation. Time reversal
|
|
43
|
+
* does not change a polar vector, so a magnetic group is polar if its crystal class is.
|
|
44
|
+
*/
|
|
45
|
+
readonly polar: boolean;
|
|
46
|
+
/** Chiral (enantiomorphic class): proper rotations only, with or without time reversal. */
|
|
47
|
+
readonly chiral: boolean;
|
|
48
|
+
/** The Laue class: the centrosymmetric crystal class generated by the crystal class and the inversion. */
|
|
49
|
+
readonly laueClass: PointGroupKey;
|
|
19
50
|
}
|
|
51
|
+
/** A setting of a point group: an orientation of its symmetry directions in the Cartesian frame (docs/conventions.md, "Settings"). */
|
|
20
52
|
export interface Setting {
|
|
21
53
|
/** 1-based; the same physical frame in both conventions. */
|
|
22
54
|
readonly index: number;
|
|
@@ -24,17 +56,24 @@ export interface Setting {
|
|
|
24
56
|
readonly symbol: string;
|
|
25
57
|
/** Full symbol, symmetry directions separated by single spaces. */
|
|
26
58
|
readonly fullSymbol: string;
|
|
27
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* Monoclinic: the unique axis. Orthorhombic `mm2`: the axis of the twofold rotation. In the
|
|
61
|
+
* magnetic API also: orthorhombic groups with three settings, the axis that is c in setting 1;
|
|
62
|
+
* `2'm'm`, with six settings, two for each axis, the normal of the mirror plane without time
|
|
63
|
+
* reversal (there the axis does not identify a setting).
|
|
64
|
+
*/
|
|
28
65
|
readonly uniqueAxis?: 'a' | 'b' | 'c';
|
|
29
66
|
/** True for the default setting of the requested convention. */
|
|
30
67
|
readonly isDefault: boolean;
|
|
31
68
|
}
|
|
69
|
+
/** Which convention and which setting a function answers in. */
|
|
32
70
|
export interface SettingOptions {
|
|
33
71
|
/** Default `'itc'`. */
|
|
34
72
|
readonly convention?: Convention;
|
|
35
73
|
/** 1-based setting index; default: the default setting of the convention. */
|
|
36
74
|
readonly setting?: number;
|
|
37
75
|
}
|
|
76
|
+
/** Convention, setting and form of a symbol. */
|
|
38
77
|
export interface SymbolOptions extends SettingOptions {
|
|
39
78
|
/**
|
|
40
79
|
* `'short'` (default): short symbol of the setting, e.g. `321` (ITC) for class `32`.
|
|
@@ -45,40 +84,79 @@ export interface SymbolOptions extends SettingOptions {
|
|
|
45
84
|
}
|
|
46
85
|
/** True if `key` is the key of one of the 32 crystal classes. */
|
|
47
86
|
export declare function isPointGroupKey(key: string): key is PointGroupKey;
|
|
48
|
-
/**
|
|
49
|
-
export declare function
|
|
87
|
+
/** True if `key` is the key of one of the 122 magnetic point groups (the 32 crystal classes included). */
|
|
88
|
+
export declare function isMagneticPointGroupKey(key: string): key is MagneticPointGroupKey;
|
|
89
|
+
/**
|
|
90
|
+
* The point group with this key: a crystal class or a magnetic point group. Throws a RangeError
|
|
91
|
+
* for an unknown key.
|
|
92
|
+
*/
|
|
93
|
+
export declare function pointGroup<K extends MagneticPointGroupKey>(key: K): PointGroup<K>;
|
|
50
94
|
/** All 32 crystal classes, in the order of `POINT_GROUP_KEYS` (by crystal system, as in ITA). */
|
|
51
95
|
export declare function pointGroups(): readonly PointGroup[];
|
|
96
|
+
/**
|
|
97
|
+
* All 122 magnetic point groups, in the order of `POINT_GROUP_KEYS` of the magnetic API: the 32 crystal
|
|
98
|
+
* classes (type I), the 32 grey groups (type II) in the same order, and the 58 black-and-white
|
|
99
|
+
* groups (type III) in the order of ITC Vol. D Table 1.5.2.3.
|
|
100
|
+
*/
|
|
101
|
+
export declare function magneticPointGroups(): readonly PointGroup<MagneticPointGroupKey>[];
|
|
102
|
+
/**
|
|
103
|
+
* The key of the crystal class of a point group: the group itself for a class, otherwise the class
|
|
104
|
+
* it becomes when time reversal is dropped from every operation. Internal (not exported from
|
|
105
|
+
* index.ts).
|
|
106
|
+
*/
|
|
107
|
+
export declare function crystalClassOf(key: MagneticPointGroupKey): PointGroupKey;
|
|
52
108
|
/** The settings of a point group, with symbols and the default of the given convention (default `'itc'`). */
|
|
53
|
-
export declare function settings(key:
|
|
109
|
+
export declare function settings(key: MagneticPointGroupKey, conventionName?: Convention): readonly Setting[];
|
|
54
110
|
/**
|
|
55
111
|
* All operations of the point group in the requested setting (default: the convention's default
|
|
56
112
|
* setting). ITC convention: in ITA's order, identity first, then as ITA numbers the general
|
|
57
|
-
* position;
|
|
58
|
-
*
|
|
113
|
+
* position of the crystal class; an operation of a magnetic group has the number it has in the
|
|
114
|
+
* class, and a grey group lists the class first, then the same sequence with time reversal. Birss
|
|
115
|
+
* convention: in birss-app's order (docs/conventions.md, "Order of the operations"). The matrices
|
|
116
|
+
* are Cartesian (docs/conventions.md, "Cartesian frame").
|
|
59
117
|
*/
|
|
60
|
-
export declare function operations(key:
|
|
118
|
+
export declare function operations(key: MagneticPointGroupKey, options?: SettingOptions): readonly Operation[];
|
|
61
119
|
/**
|
|
62
120
|
* Generators of the point group in the requested setting (docs/conventions.md, "Generators"). ITC
|
|
63
121
|
* convention: ITA's selected generators in printed order, without the identity and ITA's lattice
|
|
64
122
|
* translations, so the list is empty for `1`; for `mm2` settings 2 and 3, which ITA does not list,
|
|
65
|
-
* those of setting 1 carried into their frame
|
|
66
|
-
* the
|
|
123
|
+
* those of setting 1 carried into their frame; for a magnetic group, those of its class with the
|
|
124
|
+
* time reversal they have in the group, for a grey group followed by `1'`. Birss convention:
|
|
125
|
+
* birss-app's generators (for `1` the identity, as in birss-app).
|
|
67
126
|
*/
|
|
68
|
-
export declare function generators(key:
|
|
127
|
+
export declare function generators(key: MagneticPointGroupKey, options?: SettingOptions): readonly Operation[];
|
|
69
128
|
/** A symbol of the point group in the requested convention and setting. */
|
|
70
|
-
export declare function symbol(key:
|
|
129
|
+
export declare function symbol(key: MagneticPointGroupKey, options?: SymbolOptions): string;
|
|
71
130
|
/** A point group in a given setting. */
|
|
72
|
-
export interface PointGroupInSetting {
|
|
73
|
-
|
|
131
|
+
export interface PointGroupInSetting<K extends MagneticPointGroupKey = PointGroupKey> {
|
|
132
|
+
/** The key of the point group. */
|
|
133
|
+
readonly key: K;
|
|
134
|
+
/** The 1-based index of the setting. */
|
|
74
135
|
readonly setting: number;
|
|
75
136
|
}
|
|
76
137
|
/**
|
|
77
|
-
* Finds a
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
138
|
+
* Finds a crystal class by a Hermann–Mauguin symbol in the given convention (default `'itc'`): the
|
|
139
|
+
* short symbol of a setting, a full symbol, or the key (spaces are ignored). A symbol that names
|
|
140
|
+
* one setting gives that setting; the key, and a short symbol that several settings share (the
|
|
141
|
+
* monoclinic ones: `2` for unique axis b and c), give the default setting of the convention.
|
|
142
|
+
* Returns undefined if nothing matches, also for a value that is not a string and for the
|
|
143
|
+
* symbol of a magnetic group with time reversal (`findMagneticPointGroup`). Symbols are written as
|
|
144
|
+
* in this library: `-` for the overbar, also in the Birss convention (`m-3m`, where Birss prints
|
|
145
|
+
* `m3m`; docs/conventions.md, "Where ITC and Birss differ").
|
|
82
146
|
*/
|
|
83
147
|
export declare function findPointGroup(hm: string, conventionName?: Convention): PointGroupInSetting | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* Finds one of the 122 magnetic point groups (the 32 crystal classes included) by a symbol in the
|
|
150
|
+
* given convention (default `'itc'`): the short symbol of a setting, a full symbol, or the key
|
|
151
|
+
* (spaces are ignored). A prime `'` marks time reversal: `4'/mmm'`, `2221'`. A symbol that names
|
|
152
|
+
* one setting gives that setting; the key, and a short symbol that several settings share (the
|
|
153
|
+
* monoclinic ones: `2'` for unique axis b and c), give the default setting of the convention. In
|
|
154
|
+
* the Birss convention two keys are the Birss symbol of a setting that is not the default
|
|
155
|
+
* (`mm'm'` and `6'/mmm'`, setting 2; Birss prints `m'm'm` and `6'/mm'm` for these groups) and give
|
|
156
|
+
* that setting, like any symbol. Returns undefined if nothing matches, also for a value that is
|
|
157
|
+
* not a string. Symbols are written as in this library: `-` for the overbar, also in the Birss
|
|
158
|
+
* convention (`m'-3'm`, where Birss prints `m'3m`; docs/conventions.md, "Where ITC and Birss
|
|
159
|
+
* differ").
|
|
160
|
+
*/
|
|
161
|
+
export declare function findMagneticPointGroup(hm: string, conventionName?: Convention): PointGroupInSetting<MagneticPointGroupKey> | undefined;
|
|
84
162
|
//# sourceMappingURL=pointGroups.d.ts.map
|