symcrys 0.10.1 → 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 +145 -117
- package/dist/crystalClasses.d.ts.map +1 -1
- package/dist/crystalClasses.js +161 -121
- 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 +8 -16
- package/dist/siteSymmetry.d.ts.map +1 -1
- package/dist/siteSymmetry.js +34 -24
- 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 +3 -3
- package/dist/tensors/rowEchelon.d.ts.map +1 -1
- package/dist/tensors/rowEchelon.js +4 -4
- 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 +171 -67
- 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 +232 -157
- 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 -71
- 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 +43 -40
- 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 +26 -14
- package/src/tensors/rowEchelon.ts +4 -3
- package/src/tensors/tensorForm.ts +258 -88
- 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,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The keys of the point groups: the 32 crystal classes (type I), the 32 grey groups (type II) and
|
|
3
|
+
* the 58 black-and-white groups (type III), the 122 magnetic point groups (docs/conventions.md,
|
|
4
|
+
* "Keys"). Their data are in itcData.ts and itcMagneticData.ts.
|
|
5
|
+
*/
|
|
6
|
+
import type { CartesianOperation } from '../operations.js';
|
|
7
|
+
/** Keys of the 32 crystal classes: the ITC short symbol of the class (docs/conventions.md, "Keys"). */
|
|
8
|
+
export declare const POINT_GROUP_KEYS: readonly ["1", "-1", "2", "m", "2/m", "222", "mm2", "mmm", "4", "-4", "4/m", "422", "4mm", "-42m", "4/mmm", "3", "-3", "32", "3m", "-3m", "6", "-6", "6/m", "622", "6mm", "-6m2", "6/mmm", "23", "m-3", "432", "-43m", "m-3m"];
|
|
9
|
+
/** The key of one of the 32 crystal classes (`POINT_GROUP_KEYS`). */
|
|
10
|
+
export type PointGroupKey = Extract<(typeof POINT_GROUP_KEYS)[number], string>;
|
|
11
|
+
/** Keys of the 32 grey groups: the key of the crystal class followed by `1'`. */
|
|
12
|
+
export type GreyPointGroupKey = `${PointGroupKey}1'`;
|
|
13
|
+
export declare const GREY_POINT_GROUP_KEYS: readonly GreyPointGroupKey[];
|
|
14
|
+
/**
|
|
15
|
+
* Keys of the 58 black-and-white groups: the short Hermann–Mauguin symbol of ITC Vol. D
|
|
16
|
+
* Table 1.5.2.3, in the order of the table (docs/conventions.md, "Keys").
|
|
17
|
+
*/
|
|
18
|
+
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"];
|
|
19
|
+
/** The key of one of the 58 black-and-white magnetic point groups. */
|
|
20
|
+
export type BlackWhitePointGroupKey = Extract<(typeof BLACK_WHITE_POINT_GROUP_KEYS)[number], string>;
|
|
21
|
+
/** Keys of all 122 magnetic point groups: the 32 crystal classes, the 32 grey groups, the 58 black-and-white groups. */
|
|
22
|
+
export type MagneticPointGroupKey = PointGroupKey | GreyPointGroupKey | BlackWhitePointGroupKey;
|
|
23
|
+
/**
|
|
24
|
+
* Keys of the 122 magnetic point groups: the 32 crystal classes (white groups), the 32 grey groups
|
|
25
|
+
* and the 58 black-and-white groups, in this order (docs/conventions.md, "Keys").
|
|
26
|
+
*/
|
|
27
|
+
export declare const MAGNETIC_POINT_GROUP_KEYS: readonly MagneticPointGroupKey[];
|
|
28
|
+
/** Time reversal alone: the identity combined with time reversal (1'). */
|
|
29
|
+
export declare const TIME_REVERSAL: CartesianOperation;
|
|
30
|
+
/** Schoenflies symbol of a grey group: that of its class with the subscript R (ITC Vol. D, Table 1.5.2.1). */
|
|
31
|
+
export declare const greySchoenflies: (classSymbol: string) => string;
|
|
32
|
+
//# sourceMappingURL=keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../src/pointGroups/keys.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,uGAAuG;AACvG,eAAO,MAAM,gBAAgB,gOAiClB,CAAC;AAEZ,qEAAqE;AAGrE,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;AAE/E,iFAAiF;AACjF,MAAM,MAAM,iBAAiB,GAAG,GAAG,aAAa,IAAI,CAAC;AAErD,eAAO,MAAM,qBAAqB,EAAE,SAAS,iBAAiB,EAE7D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,qhBA2D9B,CAAC;AAEZ,sEAAsE;AAEtE,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;AAErG,wHAAwH;AACxH,MAAM,MAAM,qBAAqB,GAAG,aAAa,GAAG,iBAAiB,GAAG,uBAAuB,CAAC;AAEhG;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAAS,qBAAqB,EAIpE,CAAC;AAEH,0EAA0E;AAC1E,eAAO,MAAM,aAAa,EAAE,kBAA+E,CAAC;AAE5G,8GAA8G;AAC9G,eAAO,MAAM,eAAe,GAAI,aAAa,MAAM,KAAG,MAA2B,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The keys of the point groups: the 32 crystal classes (type I), the 32 grey groups (type II) and
|
|
3
|
+
* the 58 black-and-white groups (type III), the 122 magnetic point groups (docs/conventions.md,
|
|
4
|
+
* "Keys"). Their data are in itcData.ts and itcMagneticData.ts.
|
|
5
|
+
*/
|
|
6
|
+
import { IDENTITY } from '../linalg.js';
|
|
7
|
+
/** Keys of the 32 crystal classes: the ITC short symbol of the class (docs/conventions.md, "Keys"). */
|
|
8
|
+
export const POINT_GROUP_KEYS = Object.freeze([
|
|
9
|
+
'1',
|
|
10
|
+
'-1',
|
|
11
|
+
'2',
|
|
12
|
+
'm',
|
|
13
|
+
'2/m',
|
|
14
|
+
'222',
|
|
15
|
+
'mm2',
|
|
16
|
+
'mmm',
|
|
17
|
+
'4',
|
|
18
|
+
'-4',
|
|
19
|
+
'4/m',
|
|
20
|
+
'422',
|
|
21
|
+
'4mm',
|
|
22
|
+
'-42m',
|
|
23
|
+
'4/mmm',
|
|
24
|
+
'3',
|
|
25
|
+
'-3',
|
|
26
|
+
'32',
|
|
27
|
+
'3m',
|
|
28
|
+
'-3m',
|
|
29
|
+
'6',
|
|
30
|
+
'-6',
|
|
31
|
+
'6/m',
|
|
32
|
+
'622',
|
|
33
|
+
'6mm',
|
|
34
|
+
'-6m2',
|
|
35
|
+
'6/mmm',
|
|
36
|
+
'23',
|
|
37
|
+
'm-3',
|
|
38
|
+
'432',
|
|
39
|
+
'-43m',
|
|
40
|
+
'm-3m',
|
|
41
|
+
]);
|
|
42
|
+
export const GREY_POINT_GROUP_KEYS = Object.freeze(POINT_GROUP_KEYS.map((key) => `${key}1'`));
|
|
43
|
+
/**
|
|
44
|
+
* Keys of the 58 black-and-white groups: the short Hermann–Mauguin symbol of ITC Vol. D
|
|
45
|
+
* Table 1.5.2.3, in the order of the table (docs/conventions.md, "Keys").
|
|
46
|
+
*/
|
|
47
|
+
export const BLACK_WHITE_POINT_GROUP_KEYS = Object.freeze([
|
|
48
|
+
"-1'",
|
|
49
|
+
"2'",
|
|
50
|
+
"m'",
|
|
51
|
+
"2'/m'",
|
|
52
|
+
"2/m'",
|
|
53
|
+
"2'/m",
|
|
54
|
+
"2'2'2",
|
|
55
|
+
"m'm'2",
|
|
56
|
+
"2'm'm",
|
|
57
|
+
"mm'm'",
|
|
58
|
+
"m'm'm'",
|
|
59
|
+
"mmm'",
|
|
60
|
+
"4'",
|
|
61
|
+
"-4'",
|
|
62
|
+
"4'/m",
|
|
63
|
+
"4/m'",
|
|
64
|
+
"4'/m'",
|
|
65
|
+
"4'22'",
|
|
66
|
+
"42'2'",
|
|
67
|
+
"4'mm'",
|
|
68
|
+
"4m'm'",
|
|
69
|
+
"-4'2m'",
|
|
70
|
+
"-4'm2'",
|
|
71
|
+
"-42'm'",
|
|
72
|
+
"4'/mmm'",
|
|
73
|
+
"4/mm'm'",
|
|
74
|
+
"4/m'm'm'",
|
|
75
|
+
"4/m'mm",
|
|
76
|
+
"4'/m'm'm",
|
|
77
|
+
"-3'",
|
|
78
|
+
"32'",
|
|
79
|
+
"3m'",
|
|
80
|
+
"-3m'",
|
|
81
|
+
"-3'm'",
|
|
82
|
+
"-3'm",
|
|
83
|
+
"6'",
|
|
84
|
+
"-6'",
|
|
85
|
+
"6'/m'",
|
|
86
|
+
"6/m'",
|
|
87
|
+
"6'/m",
|
|
88
|
+
"6'22'",
|
|
89
|
+
"62'2'",
|
|
90
|
+
"6'mm'",
|
|
91
|
+
"6m'm'",
|
|
92
|
+
"-6'2m'",
|
|
93
|
+
"-6'm2'",
|
|
94
|
+
"-6m'2'",
|
|
95
|
+
"6'/m'mm'",
|
|
96
|
+
"6/mm'm'",
|
|
97
|
+
"6/m'm'm'",
|
|
98
|
+
"6/m'mm",
|
|
99
|
+
"6'/mmm'",
|
|
100
|
+
"m'-3'",
|
|
101
|
+
"4'32'",
|
|
102
|
+
"-4'3m'",
|
|
103
|
+
"m-3m'",
|
|
104
|
+
"m'-3'm'",
|
|
105
|
+
"m'-3'm",
|
|
106
|
+
]);
|
|
107
|
+
/**
|
|
108
|
+
* Keys of the 122 magnetic point groups: the 32 crystal classes (white groups), the 32 grey groups
|
|
109
|
+
* and the 58 black-and-white groups, in this order (docs/conventions.md, "Keys").
|
|
110
|
+
*/
|
|
111
|
+
export const MAGNETIC_POINT_GROUP_KEYS = Object.freeze([
|
|
112
|
+
...POINT_GROUP_KEYS,
|
|
113
|
+
...GREY_POINT_GROUP_KEYS,
|
|
114
|
+
...BLACK_WHITE_POINT_GROUP_KEYS,
|
|
115
|
+
]);
|
|
116
|
+
/** Time reversal alone: the identity combined with time reversal (1'). */
|
|
117
|
+
export const TIME_REVERSAL = Object.freeze({ cartesian: IDENTITY, timeReversal: true });
|
|
118
|
+
/** Schoenflies symbol of a grey group: that of its class with the subscript R (ITC Vol. D, Table 1.5.2.1). */
|
|
119
|
+
export const greySchoenflies = (classSymbol) => `${classSymbol}R`;
|
|
120
|
+
//# sourceMappingURL=keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../src/pointGroups/keys.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,uGAAuG;AACvG,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,GAAG;IACH,IAAI;IACJ,GAAG;IACH,GAAG;IACH,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,GAAG;IACH,IAAI;IACJ,KAAK;IACL,KAAK;IACL,KAAK;IACL,MAAM;IACN,OAAO;IACP,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;IACH,IAAI;IACJ,KAAK;IACL,KAAK;IACL,KAAK;IACL,MAAM;IACN,OAAO;IACP,IAAI;IACJ,KAAK;IACL,KAAK;IACL,MAAM;IACN,MAAM;CACE,CAAC,CAAC;AAUZ,MAAM,CAAC,MAAM,qBAAqB,GAAiC,MAAM,CAAC,MAAM,CAC9E,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAqB,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,CAC7D,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC,MAAM,CAAC;IACxD,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;IACR,MAAM;IACN,IAAI;IACJ,KAAK;IACL,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,SAAS;IACT,UAAU;IACV,QAAQ;IACR,UAAU;IACV,KAAK;IACL,KAAK;IACL,KAAK;IACL,MAAM;IACN,OAAO;IACP,MAAM;IACN,IAAI;IACJ,KAAK;IACL,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,SAAS;IACT,UAAU;IACV,QAAQ;IACR,SAAS;IACT,OAAO;IACP,OAAO;IACP,QAAQ;IACR,OAAO;IACP,SAAS;IACT,QAAQ;CACA,CAAC,CAAC;AASZ;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAqC,MAAM,CAAC,MAAM,CAAC;IACvF,GAAG,gBAAgB;IACnB,GAAG,qBAAqB;IACxB,GAAG,4BAA4B;CAChC,CAAC,CAAC;AAEH,0EAA0E;AAC1E,MAAM,CAAC,MAAM,aAAa,GAAuB,MAAM,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;AAE5G,8GAA8G;AAC9G,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAmB,EAAU,EAAE,CAAC,GAAG,WAAW,GAAG,CAAC"}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
* Hermann–Mauguin symbols of the black-and-white point groups. The symbol of such a group in a
|
|
3
3
|
* given frame is the symbol of its crystal class in that frame, each position carrying a prime if
|
|
4
4
|
* the operation it names is combined with time reversal (ITC Vol. D, § 1.5.2.1, Table 1.5.2.3).
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* The ITC symbols of these groups are stored (itcMagneticData.ts); this module writes the symbol a
|
|
6
|
+
* group has with given operations, from which the time reversal of the operations is derived
|
|
7
|
+
* (docs/conventions.md, "Symbols").
|
|
7
8
|
*/
|
|
8
9
|
import { type CrystalSystem } from '../lattice.js';
|
|
9
|
-
import type {
|
|
10
|
+
import type { CartesianOperation } from '../operations.js';
|
|
10
11
|
/**
|
|
11
12
|
* 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,
|
|
13
|
+
* crystal class in that frame, with primes taken from `ops`, the
|
|
13
14
|
* operations of the group in that frame.
|
|
14
15
|
*/
|
|
15
16
|
export declare function primedSymbols(classSymbols: {
|
|
16
17
|
readonly short: string;
|
|
17
18
|
readonly full: string;
|
|
18
|
-
}, system: CrystalSystem,
|
|
19
|
+
}, system: CrystalSystem, ops: readonly CartesianOperation[]): {
|
|
19
20
|
short: string;
|
|
20
21
|
full: string;
|
|
21
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magneticSymbols.d.ts","sourceRoot":"","sources":["../../src/pointGroups/magneticSymbols.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"magneticSymbols.d.ts","sourceRoot":"","sources":["../../src/pointGroups/magneticSymbols.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAmD,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AA0E3D;;;;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,GAAG,EAAE,SAAS,kBAAkB,EAAE,GACjC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAejC"}
|
|
@@ -2,18 +2,17 @@
|
|
|
2
2
|
* Hermann–Mauguin symbols of the black-and-white point groups. The symbol of such a group in a
|
|
3
3
|
* given frame is the symbol of its crystal class in that frame, each position carrying a prime if
|
|
4
4
|
* the operation it names is combined with time reversal (ITC Vol. D, § 1.5.2.1, Table 1.5.2.3).
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* The ITC symbols of these groups are stored (itcMagneticData.ts); this module writes the symbol a
|
|
6
|
+
* group has with given operations, from which the time reversal of the operations is derived
|
|
7
|
+
* (docs/conventions.md, "Symbols").
|
|
7
8
|
*/
|
|
9
|
+
import { shown } from '../checks.js';
|
|
8
10
|
import { matricesEqual } from '../linalg.js';
|
|
9
11
|
import { crystalFamily, latticeBasis } from '../lattice.js';
|
|
10
12
|
import { LATTICE_SYMMETRY_DIRECTIONS } from '../symmetryDirections.js';
|
|
11
13
|
/** The Cartesian direction of the first symmetry direction of each position of the full symbol. */
|
|
12
|
-
function positionDirections(family
|
|
14
|
+
function positionDirections(family) {
|
|
13
15
|
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
16
|
// Monoclinic: a, b, c along x, y, z, exact for the unique axis, the only one with an element.
|
|
18
17
|
const b = family === 'monoclinic' || family === 'triclinic'
|
|
19
18
|
? [
|
|
@@ -22,7 +21,7 @@ function positionDirections(family, convention) {
|
|
|
22
21
|
[0, 0, 1],
|
|
23
22
|
]
|
|
24
23
|
: latticeBasis(family);
|
|
25
|
-
return
|
|
24
|
+
return positions.map(([uvw]) => [
|
|
26
25
|
b[0][0] * uvw[0] + b[0][1] * uvw[1] + b[0][2] * uvw[2],
|
|
27
26
|
b[1][0] * uvw[0] + b[1][1] * uvw[1] + b[1][2] * uvw[2],
|
|
28
27
|
b[2][0] * uvw[0] + b[2][1] * uvw[1] + b[2][2] * uvw[2],
|
|
@@ -45,7 +44,7 @@ function rotation(u, n, sign) {
|
|
|
45
44
|
}
|
|
46
45
|
/** `'` if the operation with this matrix is combined with time reversal in `ops`, otherwise ``. */
|
|
47
46
|
function prime(ops, matrix, what) {
|
|
48
|
-
const op = ops.find((x) => matricesEqual(x.
|
|
47
|
+
const op = ops.find((x) => matricesEqual(x.cartesian, matrix));
|
|
49
48
|
if (!op)
|
|
50
49
|
throw new Error(`${what}: the group does not contain the operation its symbol names`);
|
|
51
50
|
return op.timeReversal ? "'" : '';
|
|
@@ -56,7 +55,7 @@ function primedToken(token, u, ops, what) {
|
|
|
56
55
|
return token;
|
|
57
56
|
const parts = /^(?:(-?)([1-6]))?(\/?m)?$/.exec(token);
|
|
58
57
|
if (!parts || token === '')
|
|
59
|
-
throw new Error(`${what}: unreadable position ${
|
|
58
|
+
throw new Error(`${what}: unreadable position ${shown(token)}`);
|
|
60
59
|
const [, bar, n, mirror] = parts;
|
|
61
60
|
let result = '';
|
|
62
61
|
if (n) {
|
|
@@ -85,12 +84,16 @@ function shortTokens(symbol) {
|
|
|
85
84
|
}
|
|
86
85
|
/**
|
|
87
86
|
* 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,
|
|
87
|
+
* crystal class in that frame, with primes taken from `ops`, the
|
|
89
88
|
* operations of the group in that frame.
|
|
90
89
|
*/
|
|
91
|
-
export function primedSymbols(classSymbols, system,
|
|
90
|
+
export function primedSymbols(classSymbols, system, ops) {
|
|
92
91
|
const family = crystalFamily(system);
|
|
93
|
-
|
|
92
|
+
// The positions of the family, also for a setting with rhombohedral axes: their Cartesian
|
|
93
|
+
// directions are those of [111] and [1-10] in the obverse rhombohedral cell, the c and a axes of
|
|
94
|
+
// the hexagonal cell (docs/conventions.md, "Cartesian frame"), and its symbol has only these two
|
|
95
|
+
// positions, so reading it along the first two hexagonal positions gives the same primes.
|
|
96
|
+
const directions = positionDirections(family);
|
|
94
97
|
const what = `Symbol ${classSymbols.short}`;
|
|
95
98
|
const fullTokens = classSymbols.full.split(' ');
|
|
96
99
|
const full = fullTokens.map((t, i) => primedToken(t, directions[i], ops, what)).join(' ');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magneticSymbols.js","sourceRoot":"","sources":["../../src/pointGroups/magneticSymbols.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"magneticSymbols.js","sourceRoot":"","sources":["../../src/pointGroups/magneticSymbols.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,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;IAC/C,MAAM,SAAS,GAAG,2BAA2B,CAAC,MAAM,CAAC,CAAC;IACtD,8FAA8F;IAC9F,MAAM,CAAC,GACL,MAAM,KAAK,YAAY,IAAI,MAAM,KAAK,WAAW;QAC/C,CAAC,CAAC;YACE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;YACT,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;YACT,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;SACV;QACH,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IAC3B,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;QAC9B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACtD,CAAC,CAAC,CAAC,CAAC,CAAC,C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E,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,GAAG,MAAM,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC/F,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACzB,CAAC"}
|
|
@@ -1,42 +1,40 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Orbits of faces and directions (docs/conventions.md, "Lattice basis and orbits"). Shared by both
|
|
3
|
+
* entry points.
|
|
4
4
|
*/
|
|
5
5
|
import { type Mat3, type Vec3 } from '../linalg.js';
|
|
6
|
-
import {
|
|
6
|
+
import type { ToleranceOptions } from '../tolerances.js';
|
|
7
7
|
import type { Uvw } from '../symmetryDirections.js';
|
|
8
8
|
import { type MagneticPointGroupKey, type SettingOptions } from './pointGroups.js';
|
|
9
9
|
import type { Hkl } from './wyckoff.js';
|
|
10
|
-
/**
|
|
11
|
-
* The operations of a point group in the conventional lattice basis (a, b, c; for the trigonal
|
|
12
|
-
* classes the hexagonal axes), in the order and with the time reversal of `operations` for the same
|
|
13
|
-
* setting and convention: integer matrices W acting on the coordinates of a lattice vector [uvw],
|
|
14
|
-
* W = B⁻¹·R·B with the basis B of `latticeBasis` and the Cartesian matrix R. They do not depend on
|
|
15
|
-
* the cell angles, so they exist for every family; for the monoclinic and triclinic families a, b,
|
|
16
|
-
* c are taken along x, y, z, as for the Wyckoff positions. In the ITC convention they are the
|
|
17
|
-
* matrices of ITA's general position (6th ed., Table 3.2.3.2). Not orthogonal in general: pass
|
|
18
|
-
* them to no function that takes Cartesian operations (docs/conventions.md, "Lattice basis and
|
|
19
|
-
* orbits").
|
|
20
|
-
*/
|
|
21
|
-
export declare function latticeOperations(key: MagneticPointGroupKey, options?: SettingOptions): readonly Operation[];
|
|
22
10
|
/** One face of the orbit of a face: its Miller indices and the operations that map the given face onto it. */
|
|
23
11
|
export interface FaceOrbitEntry {
|
|
24
12
|
/** Miller indices (hkl) of the face, in the conventional basis (hexagonal axes: without i). */
|
|
25
13
|
readonly hkl: Hkl;
|
|
26
|
-
/** Indices into `operations` (same setting
|
|
14
|
+
/** Indices into `operations` (same setting) of the operations that map the given face onto this one, ascending. */
|
|
27
15
|
readonly operations: readonly number[];
|
|
28
16
|
}
|
|
29
17
|
/** One direction of the orbit of a lattice direction: its indices and the operations that map the given direction onto it. */
|
|
30
18
|
export interface DirectionOrbitEntry {
|
|
31
19
|
/** The lattice direction [uvw] in the conventional basis. */
|
|
32
20
|
readonly uvw: Uvw;
|
|
33
|
-
/** Indices into `operations` (same setting
|
|
21
|
+
/** Indices into `operations` (same setting) of the operations that map the given direction onto this one, ascending. */
|
|
34
22
|
readonly operations: readonly number[];
|
|
35
23
|
}
|
|
24
|
+
/** A face (hkl) for `orbit`. */
|
|
25
|
+
export interface FaceIndices {
|
|
26
|
+
/** The face (hkl), three integers not all zero (hexagonal axes: three indices, without i). */
|
|
27
|
+
readonly hkl: Hkl;
|
|
28
|
+
}
|
|
29
|
+
/** A lattice direction [uvw] for `orbit`. */
|
|
30
|
+
export interface DirectionIndices {
|
|
31
|
+
/** The lattice direction [uvw], three integers not all zero. */
|
|
32
|
+
readonly uvw: Uvw;
|
|
33
|
+
}
|
|
36
34
|
/**
|
|
37
35
|
* The orbit of a face (hkl) or of a lattice direction [uvw] under a point group, exactly, in the
|
|
38
36
|
* lattice basis: the distinct faces (directions), in the order in which the operations reach them
|
|
39
|
-
* (so
|
|
37
|
+
* (so the given face first), each with the indices of the operations that map
|
|
40
38
|
* the given one onto it. A face transforms with the inverse transpose of a lattice operation,
|
|
41
39
|
* h' = W⁻ᵀ·h, a direction with the operation itself, u' = W·u. The number of entries is the
|
|
42
40
|
* multiplicity of the face (direction), and the operations of the first entry, if it is the given
|
|
@@ -44,25 +42,9 @@ export interface DirectionOrbitEntry {
|
|
|
44
42
|
* `hkl` and `uvw` is given, as three integers not all zero (hexagonal axes: three indices, without
|
|
45
43
|
* i).
|
|
46
44
|
*/
|
|
47
|
-
export declare function orbit(key: MagneticPointGroupKey, indices:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
export declare function orbit(key: MagneticPointGroupKey, indices: {
|
|
51
|
-
readonly uvw: Uvw;
|
|
52
|
-
}, options?: SettingOptions): readonly DirectionOrbitEntry[];
|
|
53
|
-
export declare function orbit(key: MagneticPointGroupKey, indices: {
|
|
54
|
-
readonly hkl: Hkl;
|
|
55
|
-
} | {
|
|
56
|
-
readonly uvw: Uvw;
|
|
57
|
-
}, options?: SettingOptions): readonly FaceOrbitEntry[] | readonly DirectionOrbitEntry[];
|
|
58
|
-
/** Options of `orbitOf`. */
|
|
59
|
-
export interface OrbitOptions {
|
|
60
|
-
/**
|
|
61
|
-
* Two images count as one pole if their unit vectors are closer than this (Euclidean distance).
|
|
62
|
-
* Default 10⁻⁶; a caller whose directions carry rounding errors passes a larger value.
|
|
63
|
-
*/
|
|
64
|
-
readonly tolerance?: number;
|
|
65
|
-
}
|
|
45
|
+
export declare function orbit(key: MagneticPointGroupKey, indices: FaceIndices, options?: SettingOptions): readonly FaceOrbitEntry[];
|
|
46
|
+
export declare function orbit(key: MagneticPointGroupKey, indices: DirectionIndices, options?: SettingOptions): readonly DirectionOrbitEntry[];
|
|
47
|
+
export declare function orbit(key: MagneticPointGroupKey, indices: FaceIndices | DirectionIndices, options?: SettingOptions): readonly FaceOrbitEntry[] | readonly DirectionOrbitEntry[];
|
|
66
48
|
/** One pole of the orbit of a direction under a list of operations. */
|
|
67
49
|
export interface OrbitPole {
|
|
68
50
|
/** The image of the given direction as a Cartesian unit vector (the first operation's image where several coincide). */
|
|
@@ -74,12 +56,11 @@ export interface OrbitPole {
|
|
|
74
56
|
* The orbit of a direction (any non-zero vector, Cartesian, e.g. a face normal) under a list of
|
|
75
57
|
* operations, for instance those of a distorted crystal: the images of its unit vector under each
|
|
76
58
|
* operation, coinciding images merged (closer than `tolerance`, default `EPSILON`, as for
|
|
77
|
-
* `
|
|
59
|
+
* `siteSymmetryOf`), in the order in which the operations reach them, each with the indices of the
|
|
78
60
|
* operations that map the direction there. The list is taken as it is, not closed into a group.
|
|
79
|
-
* Time reversal is ignored. Throws a RangeError for a zero vector and for
|
|
80
|
-
* orthogonal (Cartesian, not one of `latticeOperations`; within `tolerance`, at least `EPSILON`).
|
|
61
|
+
* Time reversal is ignored. Throws a RangeError for a zero vector and for an operation without an orthogonal Cartesian matrix (`cartesian`; within `tolerance`, at least `EPSILON`).
|
|
81
62
|
*/
|
|
82
63
|
export declare function orbitOf(operations: readonly {
|
|
83
|
-
readonly
|
|
84
|
-
}[], direction: Vec3, options?:
|
|
64
|
+
readonly cartesian: Mat3;
|
|
65
|
+
}[], direction: Vec3, options?: ToleranceOptions): readonly OrbitPole[];
|
|
85
66
|
//# sourceMappingURL=orbits.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orbits.d.ts","sourceRoot":"","sources":["../../src/pointGroups/orbits.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"orbits.d.ts","sourceRoot":"","sources":["../../src/pointGroups/orbits.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAkB,KAAK,IAAI,EAAE,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AAIpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAGL,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAsBxC,8GAA8G;AAC9G,MAAM,WAAW,cAAc;IAC7B,+FAA+F;IAC/F,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAClB,mHAAmH;IACnH,QAAQ,CAAC,UA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gB,GACzB,SAAS,SAAS,EAAE,CA2BtB"}
|
|
@@ -1,61 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Orbits of faces and directions (docs/conventions.md, "Lattice basis and orbits"). Shared by both
|
|
3
|
+
* entry points.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
6
|
-
import { apply, inverse
|
|
7
|
-
import {
|
|
5
|
+
import { checkNumbers, checkOptions, SETTING_KEYS, shown, TOLERANCE_KEYS } from '../checks.js';
|
|
6
|
+
import { apply, inverse } from '../linalg.js';
|
|
7
|
+
import { checkCartesianOperations } from '../operations.js';
|
|
8
8
|
import { siteTolerance } from '../siteSymmetry.js';
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
[1, 0, 0],
|
|
12
|
-
[0, 1, 0],
|
|
13
|
-
[0, 0, 1],
|
|
14
|
-
];
|
|
15
|
-
/**
|
|
16
|
-
* The conventional basis a, b, c (columns) in the Cartesian frame of a point group: that of
|
|
17
|
-
* `latticeBasis`, and for the monoclinic and triclinic families a, b, c along x, y, z, as for the
|
|
18
|
-
* Wyckoff positions (the integer matrices do not depend on the cell angles).
|
|
19
|
-
*/
|
|
20
|
-
function conventionalBasis(key) {
|
|
21
|
-
const family = crystalFamily(pointGroup(key).crystalSystem);
|
|
22
|
-
return family === 'monoclinic' || family === 'triclinic' ? IDENTITY : latticeBasis(family);
|
|
23
|
-
}
|
|
24
|
-
/** An integer matrix from one that should be one; throws if it is not (a data error). */
|
|
25
|
-
function integer(m, what) {
|
|
26
|
-
const r = m.map((row) => row.map((v) => Math.round(v) + 0));
|
|
27
|
-
if (!m.every((row, i) => row.every((v, j) => Math.abs(v - r[i][j]) < 1e-9))) {
|
|
28
|
-
throw new Error(`${what} is not an integer matrix in the lattice basis: ${JSON.stringify(m)}`);
|
|
29
|
-
}
|
|
30
|
-
return r;
|
|
31
|
-
}
|
|
9
|
+
import { TOLERANCE_BOUND } from '../tolerances.js';
|
|
10
|
+
import { integer, operations as groupOperations, } from './pointGroups.js';
|
|
32
11
|
const deepFreeze = (m) => Object.freeze(m.map((row) => Object.freeze([...row])));
|
|
33
|
-
const latticeCache = new WeakMap();
|
|
34
|
-
/**
|
|
35
|
-
* The operations of a point group in the conventional lattice basis (a, b, c; for the trigonal
|
|
36
|
-
* classes the hexagonal axes), in the order and with the time reversal of `operations` for the same
|
|
37
|
-
* setting and convention: integer matrices W acting on the coordinates of a lattice vector [uvw],
|
|
38
|
-
* W = B⁻¹·R·B with the basis B of `latticeBasis` and the Cartesian matrix R. They do not depend on
|
|
39
|
-
* the cell angles, so they exist for every family; for the monoclinic and triclinic families a, b,
|
|
40
|
-
* c are taken along x, y, z, as for the Wyckoff positions. In the ITC convention they are the
|
|
41
|
-
* matrices of ITA's general position (6th ed., Table 3.2.3.2). Not orthogonal in general: pass
|
|
42
|
-
* them to no function that takes Cartesian operations (docs/conventions.md, "Lattice basis and
|
|
43
|
-
* orbits").
|
|
44
|
-
*/
|
|
45
|
-
export function latticeOperations(key, options) {
|
|
46
|
-
const ops = groupOperations(key, options);
|
|
47
|
-
let result = latticeCache.get(ops);
|
|
48
|
-
if (!result) {
|
|
49
|
-
const b = conventionalBasis(key);
|
|
50
|
-
const bInv = inverse(b);
|
|
51
|
-
result = Object.freeze(ops.map((op, i) => Object.freeze({
|
|
52
|
-
matrix: deepFreeze(integer(multiply(multiply(bInv, op.matrix), b), `Operation ${i} of ${key}`)),
|
|
53
|
-
timeReversal: op.timeReversal,
|
|
54
|
-
})));
|
|
55
|
-
latticeCache.set(ops, result);
|
|
56
|
-
}
|
|
57
|
-
return result;
|
|
58
|
-
}
|
|
59
12
|
/** The inverse of an integer matrix of determinant ±1, exactly (the adjugate). */
|
|
60
13
|
function integerInverse(w) {
|
|
61
14
|
return integer(inverse(w), 'The inverse of a lattice operation');
|
|
@@ -66,11 +19,12 @@ function indicesOf(value, name) {
|
|
|
66
19
|
value.length !== 3 ||
|
|
67
20
|
!value.every((x) => typeof x === 'number' && Number.isSafeInteger(x)) ||
|
|
68
21
|
value.every((x) => x === 0)) {
|
|
69
|
-
throw new RangeError(`${name} must be three (safe) integers, not all zero: ${
|
|
22
|
+
throw new RangeError(`${name} must be three (safe) integers, not all zero: ${shown(value)}`);
|
|
70
23
|
}
|
|
71
24
|
return [value[0] + 0, value[1] + 0, value[2] + 0];
|
|
72
25
|
}
|
|
73
26
|
export function orbit(key, indices, options) {
|
|
27
|
+
checkOptions(options, SETTING_KEYS, 'orbit');
|
|
74
28
|
const given = (indices ?? {});
|
|
75
29
|
const hasHkl = given.hkl !== undefined;
|
|
76
30
|
const hasUvw = given.uvw !== undefined;
|
|
@@ -78,7 +32,7 @@ export function orbit(key, indices, options) {
|
|
|
78
32
|
throw new RangeError('orbit: give either hkl (a face) or uvw (a lattice direction)');
|
|
79
33
|
const field = hasHkl ? 'hkl' : 'uvw';
|
|
80
34
|
const v = indicesOf(hasHkl ? given.hkl : given.uvw, field);
|
|
81
|
-
const ws =
|
|
35
|
+
const ws = groupOperations(key, options).map((op) => (hasHkl ? integerInverseTranspose(op.matrix) : op.matrix));
|
|
82
36
|
const images = [];
|
|
83
37
|
ws.forEach((w, i) => {
|
|
84
38
|
const image = apply(w, v).map((x) => x + 0);
|
|
@@ -105,21 +59,25 @@ function integerInverseTranspose(w) {
|
|
|
105
59
|
* The orbit of a direction (any non-zero vector, Cartesian, e.g. a face normal) under a list of
|
|
106
60
|
* operations, for instance those of a distorted crystal: the images of its unit vector under each
|
|
107
61
|
* operation, coinciding images merged (closer than `tolerance`, default `EPSILON`, as for
|
|
108
|
-
* `
|
|
62
|
+
* `siteSymmetryOf`), in the order in which the operations reach them, each with the indices of the
|
|
109
63
|
* operations that map the direction there. The list is taken as it is, not closed into a group.
|
|
110
|
-
* Time reversal is ignored. Throws a RangeError for a zero vector and for
|
|
111
|
-
* orthogonal (Cartesian, not one of `latticeOperations`; within `tolerance`, at least `EPSILON`).
|
|
64
|
+
* Time reversal is ignored. Throws a RangeError for a zero vector and for an operation without an orthogonal Cartesian matrix (`cartesian`; within `tolerance`, at least `EPSILON`).
|
|
112
65
|
*/
|
|
113
66
|
export function orbitOf(operations, direction, options) {
|
|
67
|
+
checkOptions(options, TOLERANCE_KEYS, 'orbitOf');
|
|
114
68
|
const tolerance = siteTolerance(options);
|
|
115
|
-
|
|
69
|
+
// Operations are checked in their own metric, at most with the bound for operations.
|
|
70
|
+
checkCartesianOperations(operations, Math.min(tolerance, TOLERANCE_BOUND.operations));
|
|
71
|
+
if (operations.length === 0)
|
|
72
|
+
throw new RangeError('orbitOf takes a list of at least one operation');
|
|
73
|
+
checkNumbers(direction, 3, 'A direction');
|
|
116
74
|
const n = Math.hypot(direction[0], direction[1], direction[2]);
|
|
117
75
|
if (!(n > 0) || !Number.isFinite(n))
|
|
118
|
-
throw new RangeError(`Not a direction: ${
|
|
76
|
+
throw new RangeError(`Not a direction: ${shown(direction)}`);
|
|
119
77
|
const u = [direction[0] / n, direction[1] / n, direction[2] / n];
|
|
120
78
|
const poles = [];
|
|
121
79
|
operations.forEach((op, i) => {
|
|
122
|
-
const w = apply(op.
|
|
80
|
+
const w = apply(op.cartesian, u);
|
|
123
81
|
const pole = poles.find((p) => Math.hypot(p.direction[0] - w[0], p.direction[1] - w[1], p.direction[2] - w[2]) < tolerance);
|
|
124
82
|
if (pole)
|
|
125
83
|
pole.operations.push(i);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orbits.js","sourceRoot":"","sources":["../../src/pointGroups/orbits.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"orbits.js","sourceRoot":"","sources":["../../src/pointGroups/orbits.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC/F,OAAO,EAAE,KAAK,EAAE,OAAO,EAAwB,MAAM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