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
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Public API for the point groups: the 32 crystallographic point groups (crystal classes) and the
|
|
3
3
|
* 90 magnetic point groups with time reversal (32 grey, 58 black-and-white). Lookup, settings,
|
|
4
|
-
* operations, generators and symbols,
|
|
4
|
+
* operations, generators and symbols, as ITC gives them (CLAUDE.md, "Pure ITC").
|
|
5
5
|
*/
|
|
6
|
+
import { type Mat3 } from '../linalg.js';
|
|
6
7
|
import { type Operation } from '../operations.js';
|
|
7
|
-
import type
|
|
8
|
-
import { type PointGroupKey } from './
|
|
9
|
-
|
|
10
|
-
export { POINT_GROUP_KEYS, type PointGroupKey } from './data.js';
|
|
11
|
-
export { MAGNETIC_POINT_GROUP_KEYS, type MagneticPointGroupKey } from './magneticData.js';
|
|
12
|
-
/** `'itc'`: International Tables for Crystallography (default). `'birss'`: Birss, Symmetry and Magnetism (1966). */
|
|
13
|
-
export type Convention = 'itc' | 'birss';
|
|
8
|
+
import { type CrystalSystem, type LatticeSystem } from '../lattice.js';
|
|
9
|
+
import { type MagneticPointGroupKey, type PointGroupKey } from './keys.js';
|
|
10
|
+
export { MAGNETIC_POINT_GROUP_KEYS, POINT_GROUP_KEYS, type MagneticPointGroupKey, type PointGroupKey } from './keys.js';
|
|
14
11
|
/**
|
|
15
12
|
* Type of a magnetic point group. `'I'`: a crystallographic point group, no operation with time
|
|
16
13
|
* reversal. `'II'`: a grey group, every operation of a crystal class with and without time
|
|
@@ -20,7 +17,7 @@ export type Convention = 'itc' | 'birss';
|
|
|
20
17
|
export type PointGroupType = 'I' | 'II' | 'III';
|
|
21
18
|
/**
|
|
22
19
|
* A point group with the properties that are fixed by its operations. None of them depends on the
|
|
23
|
-
* setting
|
|
20
|
+
* setting (docs/conventions.md, "Properties").
|
|
24
21
|
*/
|
|
25
22
|
export interface PointGroup<K extends MagneticPointGroupKey = PointGroupKey> {
|
|
26
23
|
/** The key (docs/conventions.md, "Keys"). */
|
|
@@ -43,42 +40,68 @@ export interface PointGroup<K extends MagneticPointGroupKey = PointGroupKey> {
|
|
|
43
40
|
* does not change a polar vector, so a magnetic group is polar if its crystal class is.
|
|
44
41
|
*/
|
|
45
42
|
readonly polar: boolean;
|
|
46
|
-
/**
|
|
47
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Enantiomorphic: proper rotations only, with or without time reversal. ITA § 3.2.2.1.3 (p. 738):
|
|
45
|
+
* "All these terms [enantiomorphism, enantiomerism, chirality, dissymmetry] refer to the same
|
|
46
|
+
* symmetry restriction, the absence of improper rotations (rotoinversions, rotoreflections)".
|
|
47
|
+
*/
|
|
48
|
+
readonly enantiomorphic: boolean;
|
|
48
49
|
/** The Laue class: the centrosymmetric crystal class generated by the crystal class and the inversion. */
|
|
49
50
|
readonly laueClass: PointGroupKey;
|
|
50
51
|
}
|
|
51
52
|
/** A setting of a point group: an orientation of its symmetry directions in the Cartesian frame (docs/conventions.md, "Settings"). */
|
|
52
53
|
export interface Setting {
|
|
53
|
-
/** 1-based
|
|
54
|
+
/** 1-based. */
|
|
54
55
|
readonly index: number;
|
|
55
|
-
/** Short symbol of the setting
|
|
56
|
+
/** Short symbol of the setting. */
|
|
56
57
|
readonly symbol: string;
|
|
57
58
|
/** Full symbol, symmetry directions separated by single spaces. */
|
|
58
59
|
readonly fullSymbol: string;
|
|
60
|
+
/** Monoclinic settings only: the unique axis. */
|
|
61
|
+
readonly uniqueAxis?: 'a' | 'b' | 'c';
|
|
62
|
+
/** Trigonal settings only: the axes of the conventional basis, `'hexagonal'` or `'rhombohedral'`. */
|
|
63
|
+
readonly axes?: 'hexagonal' | 'rhombohedral';
|
|
64
|
+
/** True for the ITC default setting. */
|
|
65
|
+
readonly isDefault: boolean;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The criteria of ITA's headlines (Table 3.2.3.2) that choose among the settings a symbol names:
|
|
69
|
+
* the options of `findPointGroup`, and with `setting` those of every function of a group in a
|
|
70
|
+
* setting.
|
|
71
|
+
*/
|
|
72
|
+
export interface AxesOptions {
|
|
59
73
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
|
|
74
|
+
* The axes, as ITA's headlines name them: `'rhombohedral'` chooses the setting with rhombohedral
|
|
75
|
+
* axes of a trigonal group, `'hexagonal'` one with hexagonal axes, which every group of the
|
|
76
|
+
* hexagonal family has. A RangeError for another family.
|
|
77
|
+
*/
|
|
78
|
+
readonly axes?: 'hexagonal' | 'rhombohedral';
|
|
79
|
+
/**
|
|
80
|
+
* The unique axis of a monoclinic group, as ITA's headlines name it (`'b'`, the standard, `'c'`,
|
|
81
|
+
* `'a'`). A RangeError for another system.
|
|
64
82
|
*/
|
|
65
83
|
readonly uniqueAxis?: 'a' | 'b' | 'c';
|
|
66
|
-
/** True for the default setting of the requested convention. */
|
|
67
|
-
readonly isDefault: boolean;
|
|
68
84
|
}
|
|
69
|
-
/** Which
|
|
70
|
-
export interface SettingOptions {
|
|
71
|
-
/**
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
85
|
+
/** Which setting: by index or symbol, and by the criteria of ITA's headlines. */
|
|
86
|
+
export interface SettingOptions extends AxesOptions {
|
|
87
|
+
/**
|
|
88
|
+
* The setting: its 1-based index, or a symbol, read as `findPointGroup` reads it (spaces ignored:
|
|
89
|
+
* `'312'`, `'3 1 2'`, `'1 1 2'`). A symbol that several settings share (the key `'32'`, `'2'` for
|
|
90
|
+
* unique axis b, c and a) gives the standard (ITC default) setting, unless `axes` or `uniqueAxis`
|
|
91
|
+
* chooses another. Default: the ITC default setting.
|
|
92
|
+
*/
|
|
93
|
+
readonly setting?: number | string;
|
|
75
94
|
}
|
|
76
|
-
/**
|
|
95
|
+
/** Setting and form of a symbol. */
|
|
77
96
|
export interface SymbolOptions extends SettingOptions {
|
|
78
97
|
/**
|
|
79
|
-
* `'short'` (default): short symbol of the setting, e.g. `321`
|
|
98
|
+
* `'short'` (default): short symbol of the setting, e.g. `321` for class `32` (ITA Table
|
|
99
|
+
* 3.2.3.2); in the magnetic API the default setting of a grey or black-and-white group has its
|
|
100
|
+
* key as short symbol (`32'` as ITC Vol. D Table 1.5.2.3 prints it; `321'`, the class key and `1'`).
|
|
80
101
|
* `'full'`: full symbol, positions separated by spaces, e.g. `-3 2/m 1`.
|
|
81
|
-
* `'schoenflies'`: Schoenflies symbol, subscripts written inline (`C3v`, `D2d`, `Oh`)
|
|
102
|
+
* `'schoenflies'`: Schoenflies symbol, subscripts written inline (`C3v`, `D2d`, `Oh`); `C3i` for
|
|
103
|
+
* the class -3 in the crystallographic API (ITA), `S6` in the magnetic API (ITC Vol. D: `S6(C3)`,
|
|
104
|
+
* `D3d(S6)`).
|
|
82
105
|
*/
|
|
83
106
|
readonly form?: 'short' | 'full' | 'schoenflies';
|
|
84
107
|
}
|
|
@@ -86,6 +109,26 @@ export interface SymbolOptions extends SettingOptions {
|
|
|
86
109
|
export declare function isPointGroupKey(key: string): key is PointGroupKey;
|
|
87
110
|
/** True if `key` is the key of one of the 122 magnetic point groups (the 32 crystal classes included). */
|
|
88
111
|
export declare function isMagneticPointGroupKey(key: string): key is MagneticPointGroupKey;
|
|
112
|
+
/**
|
|
113
|
+
* Throws for a second argument of `settings` or `findPointGroup`, which took a convention up to
|
|
114
|
+
* 0.10 (`settings('32', 'birss')`): TypeScript refuses it, plain JavaScript would ignore it and
|
|
115
|
+
* answer for the ITC frame. Internal.
|
|
116
|
+
*/
|
|
117
|
+
export declare function rejectConventionArgument(argumentCount: number): void;
|
|
118
|
+
/**
|
|
119
|
+
* The index of the requested setting (an index or a symbol; the ITC default if none), checked.
|
|
120
|
+
* Internal: for the modules that cache by setting.
|
|
121
|
+
*/
|
|
122
|
+
export declare function settingIndexOf(key: MagneticPointGroupKey, options?: SettingOptions): number;
|
|
123
|
+
/**
|
|
124
|
+
* The crystal class of a group and the setting of the class whose frame and basis the requested
|
|
125
|
+
* setting of the group has. Internal: for the modules that need the basis or the symmetry
|
|
126
|
+
* directions of a setting.
|
|
127
|
+
*/
|
|
128
|
+
export declare function classSettingOf(key: MagneticPointGroupKey, options?: SettingOptions): {
|
|
129
|
+
readonly key: PointGroupKey;
|
|
130
|
+
readonly index: number;
|
|
131
|
+
};
|
|
89
132
|
/**
|
|
90
133
|
* The point group with this key: a crystal class or a magnetic point group. Throws a RangeError
|
|
91
134
|
* for an unknown key.
|
|
@@ -105,27 +148,44 @@ export declare function magneticPointGroups(): readonly PointGroup<MagneticPoint
|
|
|
105
148
|
* index.ts).
|
|
106
149
|
*/
|
|
107
150
|
export declare function crystalClassOf(key: MagneticPointGroupKey): PointGroupKey;
|
|
108
|
-
/** The settings of a point group, with symbols and the default of the given convention (default `'itc'`). */
|
|
109
|
-
export declare function settings(key: MagneticPointGroupKey, conventionName?: Convention): readonly Setting[];
|
|
110
151
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
|
|
152
|
+
* The lattice systems of a point group: those whose lattices its crystal class can act on (ITA
|
|
153
|
+
* § 1.3.4.4.2 and Table 1.3.4.1, p. 39). One for every class but the trigonal ones, which belong to
|
|
154
|
+
* the hexagonal (hP) or the rhombohedral (hR) lattice system depending on the basis, so they give
|
|
155
|
+
* both, `['hexagonal', 'rhombohedral']`. The holohedry of each is `holohedry(latticeSystem)`. Throws a
|
|
156
|
+
* RangeError for an unknown key.
|
|
157
|
+
*/
|
|
158
|
+
export declare function latticeSystems(key: MagneticPointGroupKey): readonly LatticeSystem[];
|
|
159
|
+
/** The settings of a point group, with their symbols and the ITC default. */
|
|
160
|
+
export declare function settings(key: MagneticPointGroupKey): readonly Setting[];
|
|
161
|
+
/** An integer matrix from one that should be one; throws if it is not (a data error). Internal. */
|
|
162
|
+
export declare function integer(m: Mat3, what: string): Mat3;
|
|
163
|
+
/**
|
|
164
|
+
* All operations of the point group in the requested setting (default: the ITC default setting),
|
|
165
|
+
* in ITA's order: identity first, then as ITA numbers the general position of the crystal class; an
|
|
166
|
+
* operation of a magnetic group has the number it has in the class, and a grey group lists the
|
|
167
|
+
* class first, then the same sequence with time reversal (docs/conventions.md, "Order of the
|
|
168
|
+
* operations"). Each operation is ITA's matrix W in the lattice basis of the setting (`matrix`) with
|
|
169
|
+
* the same operation as a Cartesian matrix (`cartesian`) and its time reversal (docs/conventions.md,
|
|
170
|
+
* "Operations").
|
|
117
171
|
*/
|
|
118
172
|
export declare function operations(key: MagneticPointGroupKey, options?: SettingOptions): readonly Operation[];
|
|
119
173
|
/**
|
|
120
|
-
* Generators of the point group in the requested setting (docs/conventions.md, "Generators")
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
* birss-app's generators (for `1` the identity, as in birss-app).
|
|
174
|
+
* Generators of the point group in the requested setting (docs/conventions.md, "Generators"): ITA's
|
|
175
|
+
* selected generators in printed order, without the identity and ITA's lattice translations, so
|
|
176
|
+
* the list is empty for `1`; for the settings ITA does not print (`mm2` settings 2 and 3, monoclinic unique axis a), those of setting 1 carried
|
|
177
|
+
* into their frame; for a magnetic group, those of its class with the time reversal they
|
|
178
|
+
* have in the group, for a grey group followed by `1'`.
|
|
126
179
|
*/
|
|
127
180
|
export declare function generators(key: MagneticPointGroupKey, options?: SettingOptions): readonly Operation[];
|
|
128
|
-
/**
|
|
181
|
+
/** The Schoenflies symbol of a crystal class as ITA writes it (`C3i`). Internal: for the crystallographic API. */
|
|
182
|
+
export declare function itaSchoenflies(key: PointGroupKey): string;
|
|
183
|
+
/**
|
|
184
|
+
* A symbol of the point group in the requested setting. The default setting of a grey or
|
|
185
|
+
* black-and-white group has its key as short symbol (`32'`, as ITC Vol. D Table 1.5.2.3 prints it;
|
|
186
|
+
* `321'`), a crystal class ITA's symbol (`321`), and the Schoenflies symbols follow ITC Vol. D
|
|
187
|
+
* (`S6`, `D3d(S6)`; docs/conventions.md, "Symbols").
|
|
188
|
+
*/
|
|
129
189
|
export declare function symbol(key: MagneticPointGroupKey, options?: SymbolOptions): string;
|
|
130
190
|
/** A point group in a given setting. */
|
|
131
191
|
export interface PointGroupInSetting<K extends MagneticPointGroupKey = PointGroupKey> {
|
|
@@ -135,28 +195,36 @@ export interface PointGroupInSetting<K extends MagneticPointGroupKey = PointGrou
|
|
|
135
195
|
readonly setting: number;
|
|
136
196
|
}
|
|
137
197
|
/**
|
|
138
|
-
* Finds a crystal class by a
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
* `
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
|
|
161
|
-
|
|
198
|
+
* Finds a crystal class by a symbol, read tolerantly.
|
|
199
|
+
* It reads, spaces ignored (#96; docs/conventions.md, "Reading symbols"): the key; the short or
|
|
200
|
+
* full symbol of a setting (`312`, `1 1 2`); a Schoenflies symbol, ITA's or ITC Vol. D's (`D3`,
|
|
201
|
+
* `C3i`, `S6`); Birss's cubic symbols without the overbar on the 3 (`m3m`). A symbol that names
|
|
202
|
+
* several settings (the key `32`, which is also the symbol of the setting with rhombohedral axes;
|
|
203
|
+
* `2` for unique axis b, c and a; any Schoenflies symbol) gives the standard (ITC default) setting,
|
|
204
|
+
* unless the options `axes` or `uniqueAxis` choose another, as the headlines of ITA name the
|
|
205
|
+
* settings (the option `axes` set to `'rhombohedral'` for the key `32`).
|
|
206
|
+
*
|
|
207
|
+
* Spellings: the overbar as `-`, `−`, a combining overbar or `¯` after the digit (`m3̄m`), `bar3` (also with a backslash and braces, as in LaTeX);
|
|
208
|
+
* Schoenflies subscripts also as Unicode or LaTeX subscripts (`C₃ᵥ`, `C_{3v}`). Returns undefined if nothing matches,
|
|
209
|
+
* also for a value that is not a string and for the symbol of a magnetic group with time reversal
|
|
210
|
+
* (`findMagneticPointGroup`); a symbol that names several groups is a RangeError that lists them.
|
|
211
|
+
*/
|
|
212
|
+
export declare function findPointGroup(symbol: string, options?: AxesOptions): PointGroupInSetting | undefined;
|
|
213
|
+
/**
|
|
214
|
+
* Finds one of the 122 magnetic point groups (the 32 crystal classes included) by a symbol, read
|
|
215
|
+
* tolerantly. A prime marks time reversal: `4'/mmm'`, `2221'`.
|
|
216
|
+
* It reads, spaces ignored (#96; docs/conventions.md, "Reading symbols"): the key; the short or
|
|
217
|
+
* full symbol of a setting (`312`, `1 1 2`); a Schoenflies symbol, ITA's or ITC Vol. D's (`D3`,
|
|
218
|
+
* `C3i`, `S6`); Birss's cubic symbols without the overbar on the 3 (`m3m`). A symbol that names
|
|
219
|
+
* several settings (the key `32`, which is also the symbol of the setting with rhombohedral axes;
|
|
220
|
+
* `2` for unique axis b, c and a; any Schoenflies symbol) gives the standard (ITC default) setting,
|
|
221
|
+
* unless the options `axes` or `uniqueAxis` choose another, as the headlines of ITA name the
|
|
222
|
+
* settings (the option `axes` set to `'rhombohedral'` for the key `32`).
|
|
223
|
+
*
|
|
224
|
+
* Spellings: the overbar as `-`, `−`, a combining overbar or `¯` after the digit (`m3̄m`), `bar3` (also with a backslash and braces, as in LaTeX);
|
|
225
|
+
* the prime as `'`, `′`, `ʹ` or `’`; Schoenflies subscripts also as Unicode or LaTeX subscripts (`D₃d(S₆)`, `D_{3d}`).
|
|
226
|
+
* Returns undefined if nothing matches, also for a value that is not a string; a symbol that names
|
|
227
|
+
* several groups is a RangeError that lists them.
|
|
228
|
+
*/
|
|
229
|
+
export declare function findMagneticPointGroup(symbol: string, options?: AxesOptions): PointGroupInSetting<MagneticPointGroupKey> | undefined;
|
|
162
230
|
//# sourceMappingURL=pointGroups.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pointGroups.d.ts","sourceRoot":"","sources":["../../src/pointGroups/pointGroups.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"pointGroups.d.ts","sourceRoot":"","sources":["../../src/pointGroups/pointGroups.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAoD,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AAG3F,OAAO,EAAgE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAkBhH,OAAO,EAAyC,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9G,OAAO,EAML,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EACnB,MAAM,WAAW,CAAC;AAInB,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAExH;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,GAAG,GAAG,IAAI,GAAG,KAAK,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,qBAAqB,GAAG,aAAa;IACzE,6CAA6C;IAC7C,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC;IAChB,0HAA0H;IAC1H,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC;IACrC,+CAA+C;IAC/C,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,4BAA4B;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,+DAA+D;IAC/D,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC,0GAA0G;IAC1G,QAAQ,CAAC,SA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