symcrys 0.10.0 → 0.11.0
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 +6 -6
- package/dist/cell.d.ts +19 -16
- package/dist/cell.d.ts.map +1 -1
- package/dist/cell.js +63 -35
- package/dist/cell.js.map +1 -1
- package/dist/checks.d.ts +29 -0
- package/dist/checks.d.ts.map +1 -0
- package/dist/checks.js +79 -0
- package/dist/checks.js.map +1 -0
- package/dist/closure.d.ts +43 -0
- package/dist/closure.d.ts.map +1 -0
- package/dist/closure.js +201 -0
- package/dist/closure.js.map +1 -0
- package/dist/crystalClasses.d.ts +146 -118
- package/dist/crystalClasses.d.ts.map +1 -1
- package/dist/crystalClasses.js +163 -124
- package/dist/crystalClasses.js.map +1 -1
- package/dist/freeze.d.ts +7 -0
- package/dist/freeze.d.ts.map +1 -0
- package/dist/freeze.js +15 -0
- package/dist/freeze.js.map +1 -0
- package/dist/index.d.ts +11 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/indices.d.ts +31 -5
- package/dist/indices.d.ts.map +1 -1
- package/dist/indices.js +104 -13
- package/dist/indices.js.map +1 -1
- package/dist/lattice.d.ts +15 -1
- package/dist/lattice.d.ts.map +1 -1
- package/dist/lattice.js +30 -1
- package/dist/lattice.js.map +1 -1
- package/dist/linalg.d.ts +2 -2
- package/dist/linalg.d.ts.map +1 -1
- package/dist/linalg.js +3 -3
- package/dist/linalg.js.map +1 -1
- package/dist/magnetic.d.ts +12 -10
- package/dist/magnetic.d.ts.map +1 -1
- package/dist/magnetic.js +8 -6
- package/dist/magnetic.js.map +1 -1
- package/dist/notation.d.ts +16 -0
- package/dist/notation.d.ts.map +1 -0
- package/dist/notation.js +66 -0
- package/dist/notation.js.map +1 -0
- package/dist/operations.d.ts +40 -26
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +48 -60
- package/dist/operations.js.map +1 -1
- package/dist/plane.d.ts +141 -79
- package/dist/plane.d.ts.map +1 -1
- package/dist/plane.js +147 -77
- package/dist/plane.js.map +1 -1
- package/dist/pointGroups/crystalForms.d.ts +6 -21
- package/dist/pointGroups/crystalForms.d.ts.map +1 -1
- package/dist/pointGroups/crystalForms.js +9 -16
- package/dist/pointGroups/crystalForms.js.map +1 -1
- package/dist/pointGroups/crystalFormsData.d.ts +4 -1
- package/dist/pointGroups/crystalFormsData.d.ts.map +1 -1
- package/dist/pointGroups/crystalFormsData.js +64 -1
- package/dist/pointGroups/crystalFormsData.js.map +1 -1
- package/dist/pointGroups/elements.d.ts +19 -17
- package/dist/pointGroups/elements.d.ts.map +1 -1
- package/dist/pointGroups/elements.js +65 -83
- package/dist/pointGroups/elements.js.map +1 -1
- package/dist/pointGroups/identify.d.ts +10 -18
- package/dist/pointGroups/identify.d.ts.map +1 -1
- package/dist/pointGroups/identify.js +27 -79
- package/dist/pointGroups/identify.js.map +1 -1
- package/dist/pointGroups/itaOrder.d.ts +15 -14
- package/dist/pointGroups/itaOrder.d.ts.map +1 -1
- package/dist/pointGroups/itaOrder.js +116 -94
- package/dist/pointGroups/itaOrder.js.map +1 -1
- package/dist/pointGroups/itcData.d.ts +96 -0
- package/dist/pointGroups/itcData.d.ts.map +1 -0
- package/dist/pointGroups/itcData.js +336 -0
- package/dist/pointGroups/itcData.js.map +1 -0
- package/dist/pointGroups/itcMagneticData.d.ts +55 -0
- package/dist/pointGroups/itcMagneticData.d.ts.map +1 -0
- package/dist/pointGroups/itcMagneticData.js +172 -0
- package/dist/pointGroups/itcMagneticData.js.map +1 -0
- package/dist/pointGroups/keys.d.ts +32 -0
- package/dist/pointGroups/keys.d.ts.map +1 -0
- package/dist/pointGroups/keys.js +120 -0
- package/dist/pointGroups/keys.js.map +1 -0
- package/dist/pointGroups/magneticSymbols.d.ts +6 -5
- package/dist/pointGroups/magneticSymbols.d.ts.map +1 -1
- package/dist/pointGroups/magneticSymbols.js +15 -12
- package/dist/pointGroups/magneticSymbols.js.map +1 -1
- package/dist/pointGroups/orbits.d.ts +23 -42
- package/dist/pointGroups/orbits.d.ts.map +1 -1
- package/dist/pointGroups/orbits.js +20 -62
- package/dist/pointGroups/orbits.js.map +1 -1
- package/dist/pointGroups/pointGroups.d.ts +135 -67
- package/dist/pointGroups/pointGroups.d.ts.map +1 -1
- package/dist/pointGroups/pointGroups.js +409 -244
- package/dist/pointGroups/pointGroups.js.map +1 -1
- package/dist/pointGroups/properties.d.ts +21 -22
- package/dist/pointGroups/properties.d.ts.map +1 -1
- package/dist/pointGroups/properties.js +40 -37
- package/dist/pointGroups/properties.js.map +1 -1
- package/dist/pointGroups/seitzData.d.ts +26 -0
- package/dist/pointGroups/seitzData.d.ts.map +1 -0
- package/dist/pointGroups/seitzData.js +130 -0
- package/dist/pointGroups/seitzData.js.map +1 -0
- package/dist/pointGroups/wyckoff.d.ts +70 -40
- package/dist/pointGroups/wyckoff.d.ts.map +1 -1
- package/dist/pointGroups/wyckoff.js +98 -91
- package/dist/pointGroups/wyckoff.js.map +1 -1
- package/dist/pointGroups/wyckoffData.d.ts +7 -4
- package/dist/pointGroups/wyckoffData.d.ts.map +1 -1
- package/dist/pointGroups/wyckoffData.js +789 -168
- package/dist/pointGroups/wyckoffData.js.map +1 -1
- package/dist/siteSymmetry.d.ts +9 -17
- package/dist/siteSymmetry.d.ts.map +1 -1
- package/dist/siteSymmetry.js +62 -47
- package/dist/siteSymmetry.js.map +1 -1
- package/dist/spaceGroups/affine.d.ts.map +1 -1
- package/dist/spaceGroups/affine.js +3 -2
- package/dist/spaceGroups/affine.js.map +1 -1
- package/dist/spaceGroups/cell.d.ts +43 -31
- package/dist/spaceGroups/cell.d.ts.map +1 -1
- package/dist/spaceGroups/cell.js +173 -85
- package/dist/spaceGroups/cell.js.map +1 -1
- package/dist/spaceGroups/describe.d.ts +12 -10
- package/dist/spaceGroups/describe.d.ts.map +1 -1
- package/dist/spaceGroups/describe.js +11 -10
- package/dist/spaceGroups/describe.js.map +1 -1
- package/dist/spaceGroups/planeGroupData.d.ts +1 -1
- package/dist/spaceGroups/planeGroupData.d.ts.map +1 -1
- package/dist/spaceGroups/planeGroupData.js +8 -8
- package/dist/spaceGroups/planeGroupData.js.map +1 -1
- package/dist/spaceGroups/planeGroups.d.ts.map +1 -1
- package/dist/spaceGroups/planeGroups.js +2 -1
- package/dist/spaceGroups/planeGroups.js.map +1 -1
- package/dist/spaceGroups/positions.d.ts +48 -19
- package/dist/spaceGroups/positions.d.ts.map +1 -1
- package/dist/spaceGroups/positions.js +166 -67
- package/dist/spaceGroups/positions.js.map +1 -1
- package/dist/tensors/propertyTable.d.ts +3 -1
- package/dist/tensors/propertyTable.d.ts.map +1 -1
- package/dist/tensors/propertyTable.js +17 -10
- package/dist/tensors/propertyTable.js.map +1 -1
- package/dist/tensors/rowEchelon.d.ts +12 -4
- package/dist/tensors/rowEchelon.d.ts.map +1 -1
- package/dist/tensors/rowEchelon.js +24 -11
- package/dist/tensors/rowEchelon.js.map +1 -1
- package/dist/tensors/tensorForm.d.ts +75 -34
- package/dist/tensors/tensorForm.d.ts.map +1 -1
- package/dist/tensors/tensorForm.js +173 -68
- package/dist/tensors/tensorForm.js.map +1 -1
- package/dist/tensors/tensorProperties.d.ts +10 -9
- package/dist/tensors/tensorProperties.d.ts.map +1 -1
- package/dist/tensors/tensorProperties.js +22 -12
- package/dist/tensors/tensorProperties.js.map +1 -1
- package/dist/tolerances.d.ts +56 -1
- package/dist/tolerances.d.ts.map +1 -1
- package/dist/tolerances.js +51 -1
- package/dist/tolerances.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/cell.ts +78 -51
- package/src/checks.ts +84 -0
- package/src/closure.ts +214 -0
- package/src/crystalClasses.ts +234 -160
- package/src/freeze.ts +14 -0
- package/src/index.ts +21 -10
- package/src/indices.ts +108 -18
- package/src/lattice.ts +41 -1
- package/src/linalg.ts +3 -3
- package/src/magnetic.ts +14 -9
- package/src/notation.ts +73 -0
- package/src/operations.ts +78 -69
- package/src/plane.ts +253 -127
- package/src/pointGroups/crystalForms.ts +11 -44
- package/src/pointGroups/crystalFormsData.ts +66 -1
- package/src/pointGroups/elements.ts +82 -92
- package/src/pointGroups/identify.ts +38 -97
- package/src/pointGroups/itaOrder.ts +117 -101
- package/src/pointGroups/itcData.ts +404 -0
- package/src/pointGroups/itcMagneticData.ts +206 -0
- package/src/pointGroups/keys.ts +144 -0
- package/src/pointGroups/magneticSymbols.ts +18 -17
- package/src/pointGroups/orbits.ts +41 -89
- package/src/pointGroups/pointGroups.ts +540 -297
- package/src/pointGroups/properties.ts +44 -40
- package/src/pointGroups/seitzData.ts +147 -0
- package/src/pointGroups/wyckoff.ts +137 -112
- package/src/pointGroups/wyckoffData.ts +793 -170
- package/src/siteSymmetry.ts +71 -64
- package/src/spaceGroups/affine.ts +3 -2
- package/src/spaceGroups/cell.ts +227 -116
- package/src/spaceGroups/describe.ts +22 -19
- package/src/spaceGroups/planeGroupData.ts +9 -9
- package/src/spaceGroups/planeGroups.ts +2 -1
- package/src/spaceGroups/positions.ts +202 -78
- package/src/tensors/propertyTable.ts +29 -17
- package/src/tensors/rowEchelon.ts +28 -9
- package/src/tensors/tensorForm.ts +260 -89
- package/src/tensors/tensorProperties.ts +34 -14
- package/src/tolerances.ts +66 -1
- package/src/version.ts +1 -1
- package/dist/pointGroups/data.d.ts +0 -75
- package/dist/pointGroups/data.d.ts.map +0 -1
- package/dist/pointGroups/data.js +0 -212
- package/dist/pointGroups/data.js.map +0 -1
- package/dist/pointGroups/magneticData.d.ts +0 -66
- package/dist/pointGroups/magneticData.d.ts.map +0 -1
- package/dist/pointGroups/magneticData.js +0 -184
- package/dist/pointGroups/magneticData.js.map +0 -1
- package/dist/spaceGroups/snap.d.ts +0 -20
- package/dist/spaceGroups/snap.d.ts.map +0 -1
- package/dist/spaceGroups/snap.js +0 -103
- package/dist/spaceGroups/snap.js.map +0 -1
- package/src/pointGroups/data.ts +0 -305
- package/src/pointGroups/magneticData.ts +0 -328
- package/src/spaceGroups/snap.ts +0 -121
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The 32 crystal classes in the ITC frame, exactly (#122, #137 A1): per class and ITC setting its
|
|
3
|
+
* symbols, and the operations as ITA prints them, integer matrices W in the conventional basis
|
|
4
|
+
* (x̃ = W·x), in ITA's order, built from ITA's selected generators. The Cartesian matrices are
|
|
5
|
+
* derived, B·W·B⁻¹. Nothing here is derived from the Birss frame: the source is ITA's selected
|
|
6
|
+
* generators (5th ed., Part 7; `itaOrder.ts`); the general position of ITA 6th ed. Table 3.2.3.2 is
|
|
7
|
+
* the print check (`itcData.reference.test.ts`).
|
|
8
|
+
*
|
|
9
|
+
* A setting that ITA does not print with generators is the printed one in another basis: with
|
|
10
|
+
* (a′, b′, c′) = (a, b, c)·P, W′ = P⁻¹·W·P (ITA 2016 eqs. (1.5.1.4), (1.5.1.5), p. 76). `2mm` and
|
|
11
|
+
* `m2m` come from `mm2` by the settings cab and bca of ITA 2016 Table 1.5.4.4 (§ 1.5.4.3, p. 96:
|
|
12
|
+
* cab turns Pmm2 into P2mm); their operations keep the order of the printed setting.
|
|
13
|
+
*
|
|
14
|
+
* Internal; read by pointGroups.ts and orbits.ts (#122). The settings are numbered by the rule of
|
|
15
|
+
* #137 A4 (`ItcSetting.index`).
|
|
16
|
+
*/
|
|
17
|
+
import { shown } from '../checks.js';
|
|
18
|
+
import { crystalFamily, latticeBasis } from '../lattice.js';
|
|
19
|
+
import { inverse, multiply, snap } from '../linalg.js';
|
|
20
|
+
import { LATTICE_SYMMETRY_DIRECTIONS } from '../symmetryDirections.js';
|
|
21
|
+
import { ITA_GENERATORS } from './itaOrder.js';
|
|
22
|
+
/**
|
|
23
|
+
* Setting cab of ITA 2016 Table 1.5.4.4 (the table prints the setting symbols, not P): a′ = c,
|
|
24
|
+
* b′ = a, c′ = b, the columns of P (eq. (1.5.1.4), p. 76; § 1.5.4.3, p. 96).
|
|
25
|
+
*/
|
|
26
|
+
const SETTING_CAB = [
|
|
27
|
+
[0, 1, 0],
|
|
28
|
+
[0, 0, 1],
|
|
29
|
+
[1, 0, 0],
|
|
30
|
+
];
|
|
31
|
+
/** Setting bca of ITA 2016 Table 1.5.4.4: a′ = b, b′ = c, c′ = a, the columns of P (as for cab). */
|
|
32
|
+
const SETTING_BCA = [
|
|
33
|
+
[0, 0, 1],
|
|
34
|
+
[1, 0, 0],
|
|
35
|
+
[0, 1, 0],
|
|
36
|
+
];
|
|
37
|
+
const one = (index, short, full = short) => ({ index, short, full, isDefault: true });
|
|
38
|
+
/** A class with one setting. */
|
|
39
|
+
const single = (key, crystalSystem, schoenflies, full = key) => ({
|
|
40
|
+
key,
|
|
41
|
+
crystalSystem,
|
|
42
|
+
schoenflies,
|
|
43
|
+
settings: crystalSystem === 'trigonal'
|
|
44
|
+
? [{ ...one(1, key, full), axes: 'hexagonal' }, rhombohedral(2, key, full)]
|
|
45
|
+
: [one(1, key, full)],
|
|
46
|
+
});
|
|
47
|
+
/**
|
|
48
|
+
* The setting of a trigonal class with rhombohedral axes (ITA Table 3.2.3.2, pp. 753–759): the
|
|
49
|
+
* symbol ITA prints there, the operations from ITA's generators of the R group in rhombohedral axes.
|
|
50
|
+
*/
|
|
51
|
+
const rhombohedral = (index, short, full) => ({
|
|
52
|
+
index,
|
|
53
|
+
short,
|
|
54
|
+
full,
|
|
55
|
+
axes: 'rhombohedral',
|
|
56
|
+
isDefault: false,
|
|
57
|
+
});
|
|
58
|
+
/**
|
|
59
|
+
* A monoclinic class: setting 1 unique axis b (the ITC default, ITA § 2.1.3.15), setting 2 unique
|
|
60
|
+
* axis c, both printed in ITA Table 3.2.3.2; setting 3 unique axis a, which ITA prints for the
|
|
61
|
+
* space groups (Table 1.5.4.4) and ITC Vol. D for the point groups (`references/itc/orientations.md`),
|
|
62
|
+
* from unique axis b by a′ = b, b′ = c, c′ = a (bca): the column abc of unique axis a in the
|
|
63
|
+
* monoclinic part of ITA 2016 Table 1.5.4.4 (p. 97) is that of unique axis b so carried (C121 →
|
|
64
|
+
* B211, P1c1 → Pb11).
|
|
65
|
+
*/
|
|
66
|
+
const monoclinic = (key, schoenflies) => {
|
|
67
|
+
const full = (position) => [0, 1, 2].map((i) => (i === position ? key : '1')).join(' ');
|
|
68
|
+
return {
|
|
69
|
+
key,
|
|
70
|
+
crystalSystem: 'monoclinic',
|
|
71
|
+
schoenflies,
|
|
72
|
+
settings: [
|
|
73
|
+
{ index: 1, short: key, full: full(1), uniqueAxis: 'b', isDefault: true },
|
|
74
|
+
{ index: 2, short: key, full: full(2), uniqueAxis: 'c', isDefault: false },
|
|
75
|
+
{
|
|
76
|
+
index: 3,
|
|
77
|
+
short: key,
|
|
78
|
+
full: full(0),
|
|
79
|
+
uniqueAxis: 'a',
|
|
80
|
+
isDefault: false,
|
|
81
|
+
from: { index: 1, basis: SETTING_BCA },
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* A class with two orientations: the ITC default first (docs/conventions.md, "Settings"), then the
|
|
88
|
+
* other one; with hexagonal axes for a trigonal class.
|
|
89
|
+
*/
|
|
90
|
+
const pair = (key, crystalSystem, schoenflies, standard, other, withRhombohedral) => {
|
|
91
|
+
const axes = crystalSystem === 'trigonal' ? { axes: 'hexagonal' } : {};
|
|
92
|
+
return {
|
|
93
|
+
key,
|
|
94
|
+
crystalSystem,
|
|
95
|
+
schoenflies,
|
|
96
|
+
settings: [
|
|
97
|
+
{ index: 1, short: standard[0], full: standard[1], ...axes, isDefault: true },
|
|
98
|
+
{ index: 2, short: other[0], full: other[1], ...axes, isDefault: false },
|
|
99
|
+
...(withRhombohedral ? [rhombohedral(3, withRhombohedral[0], withRhombohedral[1])] : []),
|
|
100
|
+
],
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
/** The 32 classes in the order of `POINT_GROUP_KEYS`, with the ITC symbols of ITA Table 3.2.3.2 (headlines). */
|
|
104
|
+
export const ITC_CLASSES = [
|
|
105
|
+
single('1', 'triclinic', 'C1'),
|
|
106
|
+
single('-1', 'triclinic', 'Ci'),
|
|
107
|
+
monoclinic('2', 'C2'),
|
|
108
|
+
monoclinic('m', 'Cs'),
|
|
109
|
+
monoclinic('2/m', 'C2h'),
|
|
110
|
+
single('222', 'orthorhombic', 'D2', '2 2 2'),
|
|
111
|
+
{
|
|
112
|
+
key: 'mm2',
|
|
113
|
+
crystalSystem: 'orthorhombic',
|
|
114
|
+
schoenflies: 'C2v',
|
|
115
|
+
settings: [
|
|
116
|
+
{ index: 1, short: 'mm2', full: 'm m 2', isDefault: true },
|
|
117
|
+
{
|
|
118
|
+
index: 2,
|
|
119
|
+
short: '2mm',
|
|
120
|
+
full: '2 m m',
|
|
121
|
+
isDefault: false,
|
|
122
|
+
from: { index: 1, basis: SETTING_CAB },
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
index: 3,
|
|
126
|
+
short: 'm2m',
|
|
127
|
+
full: 'm 2 m',
|
|
128
|
+
isDefault: false,
|
|
129
|
+
from: { index: 1, basis: SETTING_BCA },
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
single('mmm', 'orthorhombic', 'D2h', '2/m 2/m 2/m'),
|
|
134
|
+
single('4', 'tetragonal', 'C4'),
|
|
135
|
+
single('-4', 'tetragonal', 'S4'),
|
|
136
|
+
single('4/m', 'tetragonal', 'C4h'),
|
|
137
|
+
single('422', 'tetragonal', 'D4', '4 2 2'),
|
|
138
|
+
single('4mm', 'tetragonal', 'C4v', '4 m m'),
|
|
139
|
+
pair('-42m', 'tetragonal', 'D2d', ['-42m', '-4 2 m'], ['-4m2', '-4 m 2']),
|
|
140
|
+
single('4/mmm', 'tetragonal', 'D4h', '4/m 2/m 2/m'),
|
|
141
|
+
single('3', 'trigonal', 'C3'),
|
|
142
|
+
single('-3', 'trigonal', 'C3i'),
|
|
143
|
+
pair('32', 'trigonal', 'D3', ['321', '3 2 1'], ['312', '3 1 2'], ['32', '3 2']),
|
|
144
|
+
pair('3m', 'trigonal', 'C3v', ['3m1', '3 m 1'], ['31m', '3 1 m'], ['3m', '3 m']),
|
|
145
|
+
pair('-3m', 'trigonal', 'D3d', ['-3m1', '-3 2/m 1'], ['-31m', '-3 1 2/m'], ['-3m', '-3 2/m']),
|
|
146
|
+
single('6', 'hexagonal', 'C6'),
|
|
147
|
+
single('-6', 'hexagonal', 'C3h'),
|
|
148
|
+
single('6/m', 'hexagonal', 'C6h'),
|
|
149
|
+
single('622', 'hexagonal', 'D6', '6 2 2'),
|
|
150
|
+
single('6mm', 'hexagonal', 'C6v', '6 m m'),
|
|
151
|
+
pair('-6m2', 'hexagonal', 'D3h', ['-6m2', '-6 m 2'], ['-62m', '-6 2 m']),
|
|
152
|
+
single('6/mmm', 'hexagonal', 'D6h', '6/m 2/m 2/m'),
|
|
153
|
+
single('23', 'cubic', 'T', '2 3'),
|
|
154
|
+
single('m-3', 'cubic', 'Th', '2/m -3'),
|
|
155
|
+
single('432', 'cubic', 'O', '4 3 2'),
|
|
156
|
+
single('-43m', 'cubic', 'Td', '-4 3 m'),
|
|
157
|
+
single('m-3m', 'cubic', 'Oh', '4/m -3 2/m'),
|
|
158
|
+
];
|
|
159
|
+
const BY_KEY = new Map(ITC_CLASSES.map((c) => [c.key, c]));
|
|
160
|
+
/** The class data of a key. */
|
|
161
|
+
export function itcClass(key) {
|
|
162
|
+
const c = BY_KEY.get(key);
|
|
163
|
+
if (!c)
|
|
164
|
+
throw new RangeError(`Unknown point group key: ${shown(key)}`);
|
|
165
|
+
return c;
|
|
166
|
+
}
|
|
167
|
+
/** The setting of a class with this index. */
|
|
168
|
+
export function itcSetting(key, index) {
|
|
169
|
+
const s = itcClass(key).settings.find((x) => x.index === index);
|
|
170
|
+
if (!s)
|
|
171
|
+
throw new RangeError(`Point group ${key} has no setting ${index}`);
|
|
172
|
+
return s;
|
|
173
|
+
}
|
|
174
|
+
// --- exact integer matrices -----------------------------------------------------------------------
|
|
175
|
+
/** The product of two integer matrices; + 0 turns −0 into 0, so that equal matrices compare equal. */
|
|
176
|
+
const imul = (a, b) => [0, 1, 2].map((i) => [0, 1, 2].map((j) => a[i][0] * b[0][j] + a[i][1] * b[1][j] + a[i][2] * b[2][j] + 0));
|
|
177
|
+
const iequal = (a, b) => a.every((row, i) => row.every((x, j) => x === b[i][j]));
|
|
178
|
+
const IDENTITY = [
|
|
179
|
+
[1, 0, 0],
|
|
180
|
+
[0, 1, 0],
|
|
181
|
+
[0, 0, 1],
|
|
182
|
+
];
|
|
183
|
+
/** The inverse of an integer matrix of determinant ±1, exactly (the adjugate divided by ±1). */
|
|
184
|
+
function iinverse(m) {
|
|
185
|
+
const [[a, b, c], [d, e, f], [g, h, i]] = m;
|
|
186
|
+
const det = a * (e * i - f * h) - b * (d * i - f * g) + c * (d * h - e * g);
|
|
187
|
+
if (det !== 1 && det !== -1)
|
|
188
|
+
throw new RangeError(`Not unimodular: ${shown(m)}`);
|
|
189
|
+
const adj = [
|
|
190
|
+
[e * i - f * h, c * h - b * i, b * f - c * e],
|
|
191
|
+
[f * g - d * i, a * i - c * g, c * d - a * f],
|
|
192
|
+
[d * h - e * g, b * g - a * h, a * e - b * d],
|
|
193
|
+
];
|
|
194
|
+
return adj.map((row) => row.map((x) => x * det + 0));
|
|
195
|
+
}
|
|
196
|
+
/** W in the basis P: P⁻¹·W·P. */
|
|
197
|
+
const transform = (w, p) => imul(imul(iinverse(p), w), p);
|
|
198
|
+
/** ITA's selected generators of a setting, or those of the printed setting it comes from, carried by P. */
|
|
199
|
+
export function itcLatticeGenerators(key, index) {
|
|
200
|
+
const s = itcSetting(key, index);
|
|
201
|
+
if (s.from)
|
|
202
|
+
return itcLatticeGenerators(key, s.from.index).map((w) => transform(w, s.from.basis));
|
|
203
|
+
const gens = ITA_GENERATORS[`${key}|${s.full}${s.axes === 'rhombohedral' ? '|rhombohedral' : ''}`];
|
|
204
|
+
if (!gens)
|
|
205
|
+
throw new Error(`No ITA generators for ${key} setting ${index}`);
|
|
206
|
+
return gens;
|
|
207
|
+
}
|
|
208
|
+
const operationCache = new Map();
|
|
209
|
+
/**
|
|
210
|
+
* The operations of a setting in ITA's order: starting from the identity, each generator g extends
|
|
211
|
+
* the group H generated so far by the cosets gH, g²H, … until a power of g lies in H (ITA 5th ed.,
|
|
212
|
+
* § 2.2.11 (iv), p. 27; § 8.3.5, p. 737). A setting carried from a printed one keeps its order.
|
|
213
|
+
*/
|
|
214
|
+
export function itcLatticeOperations(key, index) {
|
|
215
|
+
const cacheKey = `${key}#${index}`;
|
|
216
|
+
let ops = operationCache.get(cacheKey);
|
|
217
|
+
if (!ops) {
|
|
218
|
+
const s = itcSetting(key, index);
|
|
219
|
+
if (s.from) {
|
|
220
|
+
ops = itcLatticeOperations(key, s.from.index).map((w) => transform(w, s.from.basis));
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
const has = (list, w) => list.some((x) => iequal(x, w));
|
|
224
|
+
const list = [IDENTITY];
|
|
225
|
+
for (const g of itcLatticeGenerators(key, index)) {
|
|
226
|
+
const h = list.slice();
|
|
227
|
+
for (let power = g; !has(h, power); power = imul(power, g)) {
|
|
228
|
+
if (list.length > 48)
|
|
229
|
+
throw new Error(`The generators of ${key} setting ${index} give no point group`);
|
|
230
|
+
for (const x of h)
|
|
231
|
+
list.push(imul(power, x));
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
// The cosets form a group only if each generator normalises the group built so far; check
|
|
235
|
+
// closure, so that a mistake in the transcribed generators fails here rather than in a caller.
|
|
236
|
+
for (const a of list) {
|
|
237
|
+
for (const b of list) {
|
|
238
|
+
if (!has(list, imul(a, b)))
|
|
239
|
+
throw new Error(`The operations of ${key} setting ${index} are not closed`);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
ops = list;
|
|
243
|
+
}
|
|
244
|
+
operationCache.set(cacheKey, Object.freeze(ops));
|
|
245
|
+
}
|
|
246
|
+
return ops;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* The rhombohedral basis in the hexagonal one, the columns a_R = (2a + b + c)/3, b_R = (−a + b + c)/3,
|
|
250
|
+
* c_R = (−a − 2b + c)/3: the obverse setting of ITA 2016 Table 1.5.1.1, p. 78, the matrix Q of R₁ obverse. In it the twofold axes of
|
|
251
|
+
* 32 lie along the a directions of the hexagonal cell, as in 321, the ITC default.
|
|
252
|
+
*/
|
|
253
|
+
const RHOMBOHEDRAL_IN_HEXAGONAL = [
|
|
254
|
+
[2 / 3, -1 / 3, -1 / 3],
|
|
255
|
+
[1 / 3, 1 / 3, -2 / 3],
|
|
256
|
+
[1 / 3, 1 / 3, 1 / 3],
|
|
257
|
+
];
|
|
258
|
+
const IDENTITY_BASIS = [
|
|
259
|
+
[1, 0, 0],
|
|
260
|
+
[0, 1, 0],
|
|
261
|
+
[0, 0, 1],
|
|
262
|
+
];
|
|
263
|
+
/**
|
|
264
|
+
* The conventional basis a, b, c (columns) of a setting in the Cartesian frame: that of
|
|
265
|
+
* `latticeBasis`; for rhombohedral axes the obverse basis in the hexagonal frame of `latticeBasis`;
|
|
266
|
+
* for the monoclinic and triclinic families a, b, c along x, y, z. The Cartesian matrices of the
|
|
267
|
+
* point operations do not depend on the cell, and those of the Miller indices only through it
|
|
268
|
+
* (docs/conventions.md, "Cartesian frame").
|
|
269
|
+
*/
|
|
270
|
+
export function itcBasis(key, index) {
|
|
271
|
+
const family = crystalFamily(itcClass(key).crystalSystem);
|
|
272
|
+
if (family === 'monoclinic' || family === 'triclinic')
|
|
273
|
+
return IDENTITY_BASIS;
|
|
274
|
+
const b = latticeBasis(family);
|
|
275
|
+
return itcSetting(key, index).axes === 'rhombohedral' ? multiply(b, RHOMBOHEDRAL_IN_HEXAGONAL) : b;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* The symmetry directions of a setting, per position of its full symbol (ITA Table 2.1.3.1): those
|
|
279
|
+
* of its family, and for rhombohedral axes [111]; [1-10], [01-1], [-101].
|
|
280
|
+
*/
|
|
281
|
+
export function itcSymmetryDirections(key, index) {
|
|
282
|
+
if (itcSetting(key, index).axes === 'rhombohedral')
|
|
283
|
+
return RHOMBOHEDRAL_DIRECTIONS;
|
|
284
|
+
return LATTICE_SYMMETRY_DIRECTIONS[crystalFamily(itcClass(key).crystalSystem)];
|
|
285
|
+
}
|
|
286
|
+
const RHOMBOHEDRAL_DIRECTIONS = Object.freeze([
|
|
287
|
+
[[1, 1, 1]],
|
|
288
|
+
[
|
|
289
|
+
[1, -1, 0],
|
|
290
|
+
[0, 1, -1],
|
|
291
|
+
[-1, 0, 1],
|
|
292
|
+
],
|
|
293
|
+
].map((dirs) => Object.freeze(dirs.map((d) => Object.freeze(d)))));
|
|
294
|
+
/** W of a setting as a Cartesian matrix B·W·B⁻¹ in the basis `itcBasis`, snapped to the exact values. */
|
|
295
|
+
function cartesianOf(w, basis) {
|
|
296
|
+
return snap(multiply(multiply(basis, w), inverse(basis)));
|
|
297
|
+
}
|
|
298
|
+
/** The operations of a setting as Cartesian matrices, in ITA's order. */
|
|
299
|
+
export function itcCartesianOperations(key, index) {
|
|
300
|
+
const basis = itcBasis(key, index);
|
|
301
|
+
return itcLatticeOperations(key, index).map((w) => cartesianOf(w, basis));
|
|
302
|
+
}
|
|
303
|
+
/** ITA's selected generators of a setting as Cartesian matrices, in printed order. */
|
|
304
|
+
export function itcCartesianGenerators(key, index) {
|
|
305
|
+
const basis = itcBasis(key, index);
|
|
306
|
+
return itcLatticeGenerators(key, index).map((w) => cartesianOf(w, basis));
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* The time reversal of each operation of a setting (in ITA's order) when ITA's generators carry
|
|
310
|
+
* the time reversal `flags` (one per generator, in printed order), or undefined if no such group
|
|
311
|
+
* exists: time reversal is then a homomorphism onto {1, 1'}, and the flags fix it, if they are
|
|
312
|
+
* consistent. Exact, on the integer matrices.
|
|
313
|
+
*/
|
|
314
|
+
export function itcTimeReversal(key, index, flags) {
|
|
315
|
+
const ops = itcLatticeOperations(key, index);
|
|
316
|
+
const gens = itcLatticeGenerators(key, index);
|
|
317
|
+
if (flags.length !== gens.length)
|
|
318
|
+
throw new RangeError(`${key} setting ${index} has ${gens.length} generators`);
|
|
319
|
+
const indexOf = (w) => ops.findIndex((x) => iequal(x, w));
|
|
320
|
+
const parity = ops.map((_, i) => (i === 0 ? false : undefined));
|
|
321
|
+
for (let queue = [0]; queue.length > 0;) {
|
|
322
|
+
const i = queue.shift();
|
|
323
|
+
for (const [k, g] of gens.entries()) {
|
|
324
|
+
const j = indexOf(imul(g, ops[i]));
|
|
325
|
+
const p = parity[i] !== flags[k];
|
|
326
|
+
if (parity[j] === undefined) {
|
|
327
|
+
parity[j] = p;
|
|
328
|
+
queue.push(j);
|
|
329
|
+
}
|
|
330
|
+
else if (parity[j] !== p)
|
|
331
|
+
return undefined;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
return parity;
|
|
335
|
+
}
|
|
336
|
+
//# sourceMappingURL=itcData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itcData.js","sourceRoot":"","sources":["../../src/pointGroups/itcData.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAsB,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAa,MAAM,cAAc,CAAC;AAElE,OAAO,EAAE,2BAA2B,EAAY,MAAM,0BAA0B,CAAC;AACjF,OAAO,EAAE,cAAc,EAAgB,MAAM,eAAe,CAAC;AAqC7D;;;GAGG;AACH,MAAM,WAAW,GAAY;IAC3B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACT,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACT,CAAC,CAAC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C,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IACzF,KAAK,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC;QACxC,MAAM,CAAC,GAAG,KAAK,CAAC,KAAK,EAAG,CAAC;QACzB,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;YACpC,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACnC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC;YACjC,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE,CAAC;gBAC5B,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;gBACd,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAChB,CAAC;iBAAM,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;gBAAE,OAAO,SAAS,CAAC;QAC/C,CAAC;IACH,CAAC;IACD,OAAO,MAAmB,CAAC;AAC7B,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The 58 black-and-white magnetic point groups in the ITC frame (#122, PR 2c): each setting is given
|
|
3
|
+
* by its ITC full symbol with primes, nothing else. A black-and-white group is its crystal class
|
|
4
|
+
* with half of the operations combined with time reversal (ITC Vol. D, § 1.5.2.1); its symbol in a
|
|
5
|
+
* setting is the class's symbol in that setting with the primes of the operations it names
|
|
6
|
+
* (magneticSymbols.ts). So the symbol without primes names the setting of the class
|
|
7
|
+
* (itcData.ts), and the time reversal of its operations is the one assignment, among those that
|
|
8
|
+
* ITA's generators of the class allow, whose primed symbol is the stored one (checked unique).
|
|
9
|
+
*
|
|
10
|
+
* Print anchors (tests): the symbols of the ITC default settings and their operations are those of
|
|
11
|
+
* ITC Vol. D Table 1.5.2.3 (pp. 111–112; `itcMagneticData.reference.test.ts`,
|
|
12
|
+
* `magnetic.reference.test.ts`). Every other setting is an orientation ITC prints
|
|
13
|
+
* (`references/itc/orientations.md`; CLAUDE.md, "Pure ITC"); where a transcribed table prints it
|
|
14
|
+
* (Tables 1.5.2.4, 1.5.7.1, 1.5.8.1) the tests compare it with print.
|
|
15
|
+
*
|
|
16
|
+
* Internal.
|
|
17
|
+
*/
|
|
18
|
+
import { type CartesianOperation } from '../operations.js';
|
|
19
|
+
import type { BlackWhitePointGroupKey, PointGroupKey } from './keys.js';
|
|
20
|
+
/** One ITC setting of a black-and-white group. */
|
|
21
|
+
export interface ItcBlackWhiteSetting {
|
|
22
|
+
/** 1-based, in the order of #137 A4 (`bw` below). */
|
|
23
|
+
readonly index: number;
|
|
24
|
+
/** The ITC full symbol with primes, positions separated by single spaces. */
|
|
25
|
+
readonly full: string;
|
|
26
|
+
/** Monoclinic only: the unique axis. */
|
|
27
|
+
readonly uniqueAxis?: 'a' | 'b' | 'c';
|
|
28
|
+
/** Trigonal only: the axes of the conventional basis. */
|
|
29
|
+
readonly axes?: 'hexagonal' | 'rhombohedral';
|
|
30
|
+
/** The ITC default setting of the group. */
|
|
31
|
+
readonly isDefault: boolean;
|
|
32
|
+
}
|
|
33
|
+
/** A black-and-white group with its crystal class and its ITC settings. */
|
|
34
|
+
export interface ItcBlackWhite {
|
|
35
|
+
readonly key: BlackWhitePointGroupKey;
|
|
36
|
+
readonly crystalClass: PointGroupKey;
|
|
37
|
+
/** Schoenflies symbol G(H), H the subgroup without time reversal (ITC Vol. D Table 1.5.2.3). */
|
|
38
|
+
readonly schoenflies: string;
|
|
39
|
+
readonly settings: readonly ItcBlackWhiteSetting[];
|
|
40
|
+
}
|
|
41
|
+
/** The 58 black-and-white groups in the order of `BLACK_WHITE_POINT_GROUP_KEYS`. */
|
|
42
|
+
export declare const ITC_BLACK_WHITE: readonly ItcBlackWhite[];
|
|
43
|
+
/** The ITC data of a black-and-white group. */
|
|
44
|
+
export declare function itcBlackWhite(key: BlackWhitePointGroupKey): ItcBlackWhite;
|
|
45
|
+
/** A setting of a black-and-white group. */
|
|
46
|
+
export declare function itcBlackWhiteSetting(key: BlackWhitePointGroupKey, index: number): ItcBlackWhiteSetting;
|
|
47
|
+
/** The setting of the crystal class that a setting of the group lies in: the one whose full symbol is the group's without primes. */
|
|
48
|
+
export declare function itcBlackWhiteClassSetting(key: BlackWhitePointGroupKey, index: number): number;
|
|
49
|
+
/**
|
|
50
|
+
* The operations of a setting: those of the class setting it lies in, in ITA's order, each with
|
|
51
|
+
* its time reversal. Throws unless exactly one assignment of time reversal to ITA's generators of
|
|
52
|
+
* the class gives a group whose primed full symbol is the stored one.
|
|
53
|
+
*/
|
|
54
|
+
export declare function itcBlackWhiteOperations(key: BlackWhitePointGroupKey, index: number): readonly CartesianOperation[];
|
|
55
|
+
//# sourceMappingURL=itcMagneticData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itcMagneticData.d.ts","sourceRoot":"","sources":["../../src/pointGroups/itcMagneticData.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAa,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,KAAK,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAIxE,kDAAkD;AAClD,MAAM,WAAW,oBAAoB;IACnC,qDAAqD;IACrD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,QAAQ,CAAC,UAAU,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACtC,yDAAyD;IACzD,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,cAAc,CAAC;IAC7C,4CAA4C;IAC5C,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B;AAED,2EAA2E;AAC3E,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,GAAG,EAAE,uBAAuB,CAAC;IACtC,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC;IACrC,gGAAgG;IAChG,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACpD;AAoCD,oFAAoF;AACpF,eAAO,MAAM,eAAe,EAAE,SAAS,aAAa,EA2DnD,CAAC;AAIF,+CAA+C;AAC/C,wBAAgB,aAAa,CAAC,GAAG,EAAE,uBAAuB,GAAG,aAAa,CAIzE;AAED,4CAA4C;AAC5C,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,GAAG,oBAAoB,CAItG;AAED,qIAAqI;AACrI,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAU7F;AAID;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,kBAAkB,EAAE,CA0BlH"}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The 58 black-and-white magnetic point groups in the ITC frame (#122, PR 2c): each setting is given
|
|
3
|
+
* by its ITC full symbol with primes, nothing else. A black-and-white group is its crystal class
|
|
4
|
+
* with half of the operations combined with time reversal (ITC Vol. D, § 1.5.2.1); its symbol in a
|
|
5
|
+
* setting is the class's symbol in that setting with the primes of the operations it names
|
|
6
|
+
* (magneticSymbols.ts). So the symbol without primes names the setting of the class
|
|
7
|
+
* (itcData.ts), and the time reversal of its operations is the one assignment, among those that
|
|
8
|
+
* ITA's generators of the class allow, whose primed symbol is the stored one (checked unique).
|
|
9
|
+
*
|
|
10
|
+
* Print anchors (tests): the symbols of the ITC default settings and their operations are those of
|
|
11
|
+
* ITC Vol. D Table 1.5.2.3 (pp. 111–112; `itcMagneticData.reference.test.ts`,
|
|
12
|
+
* `magnetic.reference.test.ts`). Every other setting is an orientation ITC prints
|
|
13
|
+
* (`references/itc/orientations.md`; CLAUDE.md, "Pure ITC"); where a transcribed table prints it
|
|
14
|
+
* (Tables 1.5.2.4, 1.5.7.1, 1.5.8.1) the tests compare it with print.
|
|
15
|
+
*
|
|
16
|
+
* Internal.
|
|
17
|
+
*/
|
|
18
|
+
import { shown } from '../checks.js';
|
|
19
|
+
import { operation } from '../operations.js';
|
|
20
|
+
import { itcCartesianOperations, itcClass, itcLatticeGenerators, itcTimeReversal } from './itcData.js';
|
|
21
|
+
import { primedSymbols } from './magneticSymbols.js';
|
|
22
|
+
/**
|
|
23
|
+
* A group with its settings, given by their ITC full symbols in the order of #137 A4: the ITC
|
|
24
|
+
* default first; monoclinic unique axis b, then c, then a; orthorhombic the orientations of the default in
|
|
25
|
+
* the column order of ITA 2016 Table 1.5.4.4 (abc, ba-c, cab, -cba, bca, a-cb), each once; otherwise
|
|
26
|
+
* the other orientation; for a trigonal group, last, the setting with rhombohedral axes (marked so)
|
|
27
|
+
* of the hexagonal setting 1, its symbol that of setting 1 without the trailing `1`. The unique axis of a monoclinic setting is the position of its symbol
|
|
28
|
+
* that is not `1`; a trigonal setting has hexagonal axes.
|
|
29
|
+
*/
|
|
30
|
+
function bw(key, crystalClass, schoenflies, fullSymbols) {
|
|
31
|
+
const system = itcClass(crystalClass).crystalSystem;
|
|
32
|
+
return {
|
|
33
|
+
key,
|
|
34
|
+
crystalClass,
|
|
35
|
+
schoenflies,
|
|
36
|
+
settings: fullSymbols.map((entry, i) => {
|
|
37
|
+
const full = typeof entry === 'string' ? entry : entry[0];
|
|
38
|
+
const unique = full.split(' ').findIndex((t) => t !== '1');
|
|
39
|
+
const axes = typeof entry === 'string' ? 'hexagonal' : 'rhombohedral';
|
|
40
|
+
return {
|
|
41
|
+
index: i + 1,
|
|
42
|
+
full,
|
|
43
|
+
...(system === 'monoclinic' ? { uniqueAxis: ['a', 'b', 'c'][unique] } : {}),
|
|
44
|
+
...(system === 'trigonal' ? { axes } : {}),
|
|
45
|
+
isDefault: i === 0,
|
|
46
|
+
};
|
|
47
|
+
}),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/** The 58 black-and-white groups in the order of `BLACK_WHITE_POINT_GROUP_KEYS`. */
|
|
51
|
+
export const ITC_BLACK_WHITE = [
|
|
52
|
+
bw("-1'", '-1', 'Ci(C1)', ["-1'"]),
|
|
53
|
+
bw("2'", '2', 'C2(C1)', ["1 2' 1", "1 1 2'", "2' 1 1"]),
|
|
54
|
+
bw("m'", 'm', 'Cs(C1)', ["1 m' 1", "1 1 m'", "m' 1 1"]),
|
|
55
|
+
bw("2'/m'", '2/m', 'C2h(Ci)', ["1 2'/m' 1", "1 1 2'/m'", "2'/m' 1 1"]),
|
|
56
|
+
bw("2/m'", '2/m', 'C2h(C2)', ["1 2/m' 1", "1 1 2/m'", "2/m' 1 1"]),
|
|
57
|
+
bw("2'/m", '2/m', 'C2h(Cs)', ["1 2'/m 1", "1 1 2'/m", "2'/m 1 1"]),
|
|
58
|
+
bw("2'2'2", '222', 'D2(C2)', ["2' 2' 2", "2 2' 2'", "2' 2 2'"]),
|
|
59
|
+
bw("m'm'2", 'mm2', 'C2v(C2)', ["m' m' 2", "2 m' m'", "m' 2 m'"]),
|
|
60
|
+
bw("2'm'm", 'mm2', 'C2v(Cs)', ["2' m' m", "m' 2' m", "m 2' m'", "m m' 2'", "m' m 2'", "2' m m'"]),
|
|
61
|
+
bw("mm'm'", 'mmm', 'D2h(C2h)', ["2/m 2'/m' 2'/m'", "2'/m' 2/m 2'/m'", "2'/m' 2'/m' 2/m"]),
|
|
62
|
+
bw("m'm'm'", 'mmm', 'D2h(D2)', ["2/m' 2/m' 2/m'"]),
|
|
63
|
+
bw("mmm'", 'mmm', 'D2h(C2v)', ["2'/m 2'/m 2/m'", "2/m' 2'/m 2'/m", "2'/m 2/m' 2'/m"]),
|
|
64
|
+
bw("4'", '4', 'C4(C2)', ["4'"]),
|
|
65
|
+
bw("-4'", '-4', 'S4(C2)', ["-4'"]),
|
|
66
|
+
bw("4'/m", '4/m', 'C4h(C2h)', ["4'/m"]),
|
|
67
|
+
bw("4/m'", '4/m', 'C4h(C4)', ["4/m'"]),
|
|
68
|
+
bw("4'/m'", '4/m', 'C4h(S4)', ["4'/m'"]),
|
|
69
|
+
bw("4'22'", '422', 'D4(D2)', ["4' 2 2'", "4' 2' 2"]),
|
|
70
|
+
bw("42'2'", '422', 'D4(C4)', ["4 2' 2'"]),
|
|
71
|
+
bw("4'mm'", '4mm', 'C4v(C2v)', ["4' m m'", "4' m' m"]),
|
|
72
|
+
bw("4m'm'", '4mm', 'C4v(C4)', ["4 m' m'"]),
|
|
73
|
+
bw("-4'2m'", '-42m', 'D2d(D2)', ["-4' 2 m'", "-4' m' 2"]),
|
|
74
|
+
bw("-4'm2'", '-42m', 'D2d(C2v)', ["-4' m 2'", "-4' 2' m"]),
|
|
75
|
+
bw("-42'm'", '-42m', 'D2d(S4)', ["-4 2' m'", "-4 m' 2'"]),
|
|
76
|
+
bw("4'/mmm'", '4/mmm', 'D4h(D2h)', ["4'/m 2/m 2'/m'", "4'/m 2'/m' 2/m"]),
|
|
77
|
+
bw("4/mm'm'", '4/mmm', 'D4h(C4h)', ["4/m 2'/m' 2'/m'"]),
|
|
78
|
+
bw("4/m'm'm'", '4/mmm', 'D4h(D4)', ["4/m' 2/m' 2/m'"]),
|
|
79
|
+
bw("4/m'mm", '4/mmm', 'D4h(C4v)', ["4/m' 2'/m 2'/m"]),
|
|
80
|
+
bw("4'/m'm'm", '4/mmm', 'D4h(D2d)', ["4'/m' 2/m' 2'/m", "4'/m' 2'/m 2/m'"]),
|
|
81
|
+
bw("-3'", '-3', 'S6(C3)', ["-3'", ["-3'", 'rhombohedral']]),
|
|
82
|
+
bw("32'", '32', 'D3(C3)', ["3 2' 1", "3 1 2'", ["3 2'", 'rhombohedral']]),
|
|
83
|
+
bw("3m'", '3m', 'C3v(C3)', ["3 m' 1", "3 1 m'", ["3 m'", 'rhombohedral']]),
|
|
84
|
+
bw("-3m'", '-3m', 'D3d(S6)', ["-3 2'/m' 1", "-3 1 2'/m'", ["-3 2'/m'", 'rhombohedral']]),
|
|
85
|
+
bw("-3'm'", '-3m', 'D3d(D3)', ["-3' 2/m' 1", "-3' 1 2/m'", ["-3' 2/m'", 'rhombohedral']]),
|
|
86
|
+
bw("-3'm", '-3m', 'D3d(C3v)', ["-3' 2'/m 1", "-3' 1 2'/m", ["-3' 2'/m", 'rhombohedral']]),
|
|
87
|
+
bw("6'", '6', 'C6(C3)', ["6'"]),
|
|
88
|
+
bw("-6'", '-6', 'C3h(C3)', ["-6'"]),
|
|
89
|
+
bw("6'/m'", '6/m', 'C6h(S6)', ["6'/m'"]),
|
|
90
|
+
bw("6/m'", '6/m', 'C6h(C6)', ["6/m'"]),
|
|
91
|
+
bw("6'/m", '6/m', 'C6h(C3h)', ["6'/m"]),
|
|
92
|
+
bw("6'22'", '622', 'D6(D3)', ["6' 2 2'", "6' 2' 2"]),
|
|
93
|
+
bw("62'2'", '622', 'D6(C6)', ["6 2' 2'"]),
|
|
94
|
+
bw("6'mm'", '6mm', 'C6v(C3v)', ["6' m m'", "6' m' m"]),
|
|
95
|
+
bw("6m'm'", '6mm', 'C6v(C6)', ["6 m' m'"]),
|
|
96
|
+
bw("-6'2m'", '-6m2', 'D3h(D3)', ["-6' 2 m'", "-6' m' 2"]),
|
|
97
|
+
bw("-6'm2'", '-6m2', 'D3h(C3v)', ["-6' m 2'", "-6' 2' m"]),
|
|
98
|
+
bw("-6m'2'", '-6m2', 'D3h(C3h)', ["-6 m' 2'", "-6 2' m'"]),
|
|
99
|
+
bw("6'/m'mm'", '6/mmm', 'D6h(D3d)', ["6'/m' 2/m 2'/m'", "6'/m' 2'/m' 2/m"]),
|
|
100
|
+
bw("6/mm'm'", '6/mmm', 'D6h(C6h)', ["6/m 2'/m' 2'/m'"]),
|
|
101
|
+
bw("6/m'm'm'", '6/mmm', 'D6h(D6)', ["6/m' 2/m' 2/m'"]),
|
|
102
|
+
bw("6/m'mm", '6/mmm', 'D6h(C6v)', ["6/m' 2'/m 2'/m"]),
|
|
103
|
+
bw("6'/mmm'", '6/mmm', 'D6h(D3h)', ["6'/m 2'/m 2/m'", "6'/m 2/m' 2'/m"]),
|
|
104
|
+
bw("m'-3'", 'm-3', 'Th(T)', ["2/m' -3'"]),
|
|
105
|
+
bw("4'32'", '432', 'O(T)', ["4' 3 2'"]),
|
|
106
|
+
bw("-4'3m'", '-43m', 'Td(T)', ["-4' 3 m'"]),
|
|
107
|
+
bw("m-3m'", 'm-3m', 'Oh(Th)', ["4'/m -3 2'/m'"]),
|
|
108
|
+
bw("m'-3'm'", 'm-3m', 'Oh(O)', ["4/m' -3' 2/m'"]),
|
|
109
|
+
bw("m'-3'm", 'm-3m', 'Oh(Td)', ["4'/m' -3' 2'/m"]),
|
|
110
|
+
];
|
|
111
|
+
const BY_KEY = new Map(ITC_BLACK_WHITE.map((g) => [g.key, g]));
|
|
112
|
+
/** The ITC data of a black-and-white group. */
|
|
113
|
+
export function itcBlackWhite(key) {
|
|
114
|
+
const g = BY_KEY.get(key);
|
|
115
|
+
if (!g)
|
|
116
|
+
throw new RangeError(`Unknown black-and-white point group key: ${shown(key)}`);
|
|
117
|
+
return g;
|
|
118
|
+
}
|
|
119
|
+
/** A setting of a black-and-white group. */
|
|
120
|
+
export function itcBlackWhiteSetting(key, index) {
|
|
121
|
+
const s = itcBlackWhite(key).settings.find((x) => x.index === index);
|
|
122
|
+
if (!s)
|
|
123
|
+
throw new RangeError(`Point group ${key} has no setting ${index}`);
|
|
124
|
+
return s;
|
|
125
|
+
}
|
|
126
|
+
/** The setting of the crystal class that a setting of the group lies in: the one whose full symbol is the group's without primes. */
|
|
127
|
+
export function itcBlackWhiteClassSetting(key, index) {
|
|
128
|
+
const g = itcBlackWhite(key);
|
|
129
|
+
const s = itcBlackWhiteSetting(key, index);
|
|
130
|
+
const plain = s.full.replace(/'/g, '');
|
|
131
|
+
const matches = itcClass(g.crystalClass).settings.filter((c) => c.full === plain && c.axes === s.axes);
|
|
132
|
+
if (matches.length !== 1)
|
|
133
|
+
throw new Error(`${key} setting ${index}: ${matches.length} settings of ${g.crystalClass} have the symbol ${plain}`);
|
|
134
|
+
return matches[0].index;
|
|
135
|
+
}
|
|
136
|
+
const operationCache = new Map();
|
|
137
|
+
/**
|
|
138
|
+
* The operations of a setting: those of the class setting it lies in, in ITA's order, each with
|
|
139
|
+
* its time reversal. Throws unless exactly one assignment of time reversal to ITA's generators of
|
|
140
|
+
* the class gives a group whose primed full symbol is the stored one.
|
|
141
|
+
*/
|
|
142
|
+
export function itcBlackWhiteOperations(key, index) {
|
|
143
|
+
const cacheKey = `${key}#${index}`;
|
|
144
|
+
let result = operationCache.get(cacheKey);
|
|
145
|
+
if (!result) {
|
|
146
|
+
const g = itcBlackWhite(key);
|
|
147
|
+
const full = itcBlackWhiteSetting(key, index).full;
|
|
148
|
+
const classIndex = itcBlackWhiteClassSetting(key, index);
|
|
149
|
+
const cls = itcClass(g.crystalClass);
|
|
150
|
+
const classSetting = cls.settings.find((s) => s.index === classIndex);
|
|
151
|
+
const matrices = itcCartesianOperations(g.crystalClass, classIndex);
|
|
152
|
+
const n = itcLatticeGenerators(g.crystalClass, classIndex).length;
|
|
153
|
+
const found = [];
|
|
154
|
+
// Every assignment of time reversal to the generators but the one without any.
|
|
155
|
+
for (let bits = 1; bits < 1 << n; bits++) {
|
|
156
|
+
const flags = Array.from({ length: n }, (_, k) => (bits & (1 << k)) !== 0);
|
|
157
|
+
const parity = itcTimeReversal(g.crystalClass, classIndex, flags);
|
|
158
|
+
if (!parity)
|
|
159
|
+
continue;
|
|
160
|
+
const ops = matrices.map((m, i) => ({ ...operation(m), timeReversal: parity[i] }));
|
|
161
|
+
const symbols = primedSymbols(classSetting, cls.crystalSystem, ops);
|
|
162
|
+
if (symbols.full === full)
|
|
163
|
+
found.push(ops);
|
|
164
|
+
}
|
|
165
|
+
if (found.length !== 1)
|
|
166
|
+
throw new Error(`${key} setting ${index}: ${found.length} groups have the symbol ${full}`);
|
|
167
|
+
result = Object.freeze(found[0]);
|
|
168
|
+
operationCache.set(cacheKey, result);
|
|
169
|
+
}
|
|
170
|
+
return result;
|
|
171
|
+
}
|
|
172
|
+
//# sourceMappingURL=itcMagneticData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itcMagneticData.js","sourceRoot":"","sources":["../../src/pointGroups/itcMagneticData.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,SAAS,EAA2B,MAAM,kBAAkB,CAAC;AAEtE,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACvG,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAyBrD;;;;;;;GAOG;AACH,SAAS,EAAE,CACT,GAA4B,EAC5B,YAA2B,EAC3B,WAAmB,EACnB,WAAoE;IAEpE,MAAM,MAAM,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC;IACpD,OAAO;QACL,GAAG;QACH,YAAY;QACZ,WAAW;QACX,QAAQ,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;YACrC,MAAM,IAAI,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAC1D,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAA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