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.
Files changed (218) hide show
  1. package/README.md +6 -6
  2. package/dist/cell.d.ts +19 -16
  3. package/dist/cell.d.ts.map +1 -1
  4. package/dist/cell.js +63 -35
  5. package/dist/cell.js.map +1 -1
  6. package/dist/checks.d.ts +29 -0
  7. package/dist/checks.d.ts.map +1 -0
  8. package/dist/checks.js +79 -0
  9. package/dist/checks.js.map +1 -0
  10. package/dist/closure.d.ts +43 -0
  11. package/dist/closure.d.ts.map +1 -0
  12. package/dist/closure.js +201 -0
  13. package/dist/closure.js.map +1 -0
  14. package/dist/crystalClasses.d.ts +146 -118
  15. package/dist/crystalClasses.d.ts.map +1 -1
  16. package/dist/crystalClasses.js +163 -124
  17. package/dist/crystalClasses.js.map +1 -1
  18. package/dist/freeze.d.ts +7 -0
  19. package/dist/freeze.d.ts.map +1 -0
  20. package/dist/freeze.js +15 -0
  21. package/dist/freeze.js.map +1 -0
  22. package/dist/index.d.ts +11 -10
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +4 -3
  25. package/dist/index.js.map +1 -1
  26. package/dist/indices.d.ts +31 -5
  27. package/dist/indices.d.ts.map +1 -1
  28. package/dist/indices.js +104 -13
  29. package/dist/indices.js.map +1 -1
  30. package/dist/lattice.d.ts +15 -1
  31. package/dist/lattice.d.ts.map +1 -1
  32. package/dist/lattice.js +30 -1
  33. package/dist/lattice.js.map +1 -1
  34. package/dist/linalg.d.ts +2 -2
  35. package/dist/linalg.d.ts.map +1 -1
  36. package/dist/linalg.js +3 -3
  37. package/dist/linalg.js.map +1 -1
  38. package/dist/magnetic.d.ts +12 -10
  39. package/dist/magnetic.d.ts.map +1 -1
  40. package/dist/magnetic.js +8 -6
  41. package/dist/magnetic.js.map +1 -1
  42. package/dist/notation.d.ts +16 -0
  43. package/dist/notation.d.ts.map +1 -0
  44. package/dist/notation.js +66 -0
  45. package/dist/notation.js.map +1 -0
  46. package/dist/operations.d.ts +40 -26
  47. package/dist/operations.d.ts.map +1 -1
  48. package/dist/operations.js +48 -60
  49. package/dist/operations.js.map +1 -1
  50. package/dist/plane.d.ts +141 -79
  51. package/dist/plane.d.ts.map +1 -1
  52. package/dist/plane.js +147 -77
  53. package/dist/plane.js.map +1 -1
  54. package/dist/pointGroups/crystalForms.d.ts +6 -21
  55. package/dist/pointGroups/crystalForms.d.ts.map +1 -1
  56. package/dist/pointGroups/crystalForms.js +9 -16
  57. package/dist/pointGroups/crystalForms.js.map +1 -1
  58. package/dist/pointGroups/crystalFormsData.d.ts +4 -1
  59. package/dist/pointGroups/crystalFormsData.d.ts.map +1 -1
  60. package/dist/pointGroups/crystalFormsData.js +64 -1
  61. package/dist/pointGroups/crystalFormsData.js.map +1 -1
  62. package/dist/pointGroups/elements.d.ts +19 -17
  63. package/dist/pointGroups/elements.d.ts.map +1 -1
  64. package/dist/pointGroups/elements.js +65 -83
  65. package/dist/pointGroups/elements.js.map +1 -1
  66. package/dist/pointGroups/identify.d.ts +10 -18
  67. package/dist/pointGroups/identify.d.ts.map +1 -1
  68. package/dist/pointGroups/identify.js +27 -79
  69. package/dist/pointGroups/identify.js.map +1 -1
  70. package/dist/pointGroups/itaOrder.d.ts +15 -14
  71. package/dist/pointGroups/itaOrder.d.ts.map +1 -1
  72. package/dist/pointGroups/itaOrder.js +116 -94
  73. package/dist/pointGroups/itaOrder.js.map +1 -1
  74. package/dist/pointGroups/itcData.d.ts +96 -0
  75. package/dist/pointGroups/itcData.d.ts.map +1 -0
  76. package/dist/pointGroups/itcData.js +336 -0
  77. package/dist/pointGroups/itcData.js.map +1 -0
  78. package/dist/pointGroups/itcMagneticData.d.ts +55 -0
  79. package/dist/pointGroups/itcMagneticData.d.ts.map +1 -0
  80. package/dist/pointGroups/itcMagneticData.js +172 -0
  81. package/dist/pointGroups/itcMagneticData.js.map +1 -0
  82. package/dist/pointGroups/keys.d.ts +32 -0
  83. package/dist/pointGroups/keys.d.ts.map +1 -0
  84. package/dist/pointGroups/keys.js +120 -0
  85. package/dist/pointGroups/keys.js.map +1 -0
  86. package/dist/pointGroups/magneticSymbols.d.ts +6 -5
  87. package/dist/pointGroups/magneticSymbols.d.ts.map +1 -1
  88. package/dist/pointGroups/magneticSymbols.js +15 -12
  89. package/dist/pointGroups/magneticSymbols.js.map +1 -1
  90. package/dist/pointGroups/orbits.d.ts +23 -42
  91. package/dist/pointGroups/orbits.d.ts.map +1 -1
  92. package/dist/pointGroups/orbits.js +20 -62
  93. package/dist/pointGroups/orbits.js.map +1 -1
  94. package/dist/pointGroups/pointGroups.d.ts +135 -67
  95. package/dist/pointGroups/pointGroups.d.ts.map +1 -1
  96. package/dist/pointGroups/pointGroups.js +409 -244
  97. package/dist/pointGroups/pointGroups.js.map +1 -1
  98. package/dist/pointGroups/properties.d.ts +21 -22
  99. package/dist/pointGroups/properties.d.ts.map +1 -1
  100. package/dist/pointGroups/properties.js +40 -37
  101. package/dist/pointGroups/properties.js.map +1 -1
  102. package/dist/pointGroups/seitzData.d.ts +26 -0
  103. package/dist/pointGroups/seitzData.d.ts.map +1 -0
  104. package/dist/pointGroups/seitzData.js +130 -0
  105. package/dist/pointGroups/seitzData.js.map +1 -0
  106. package/dist/pointGroups/wyckoff.d.ts +70 -40
  107. package/dist/pointGroups/wyckoff.d.ts.map +1 -1
  108. package/dist/pointGroups/wyckoff.js +98 -91
  109. package/dist/pointGroups/wyckoff.js.map +1 -1
  110. package/dist/pointGroups/wyckoffData.d.ts +7 -4
  111. package/dist/pointGroups/wyckoffData.d.ts.map +1 -1
  112. package/dist/pointGroups/wyckoffData.js +789 -168
  113. package/dist/pointGroups/wyckoffData.js.map +1 -1
  114. package/dist/siteSymmetry.d.ts +9 -17
  115. package/dist/siteSymmetry.d.ts.map +1 -1
  116. package/dist/siteSymmetry.js +62 -47
  117. package/dist/siteSymmetry.js.map +1 -1
  118. package/dist/spaceGroups/affine.d.ts.map +1 -1
  119. package/dist/spaceGroups/affine.js +3 -2
  120. package/dist/spaceGroups/affine.js.map +1 -1
  121. package/dist/spaceGroups/cell.d.ts +43 -31
  122. package/dist/spaceGroups/cell.d.ts.map +1 -1
  123. package/dist/spaceGroups/cell.js +173 -85
  124. package/dist/spaceGroups/cell.js.map +1 -1
  125. package/dist/spaceGroups/describe.d.ts +12 -10
  126. package/dist/spaceGroups/describe.d.ts.map +1 -1
  127. package/dist/spaceGroups/describe.js +11 -10
  128. package/dist/spaceGroups/describe.js.map +1 -1
  129. package/dist/spaceGroups/planeGroupData.d.ts +1 -1
  130. package/dist/spaceGroups/planeGroupData.d.ts.map +1 -1
  131. package/dist/spaceGroups/planeGroupData.js +8 -8
  132. package/dist/spaceGroups/planeGroupData.js.map +1 -1
  133. package/dist/spaceGroups/planeGroups.d.ts.map +1 -1
  134. package/dist/spaceGroups/planeGroups.js +2 -1
  135. package/dist/spaceGroups/planeGroups.js.map +1 -1
  136. package/dist/spaceGroups/positions.d.ts +48 -19
  137. package/dist/spaceGroups/positions.d.ts.map +1 -1
  138. package/dist/spaceGroups/positions.js +166 -67
  139. package/dist/spaceGroups/positions.js.map +1 -1
  140. package/dist/tensors/propertyTable.d.ts +3 -1
  141. package/dist/tensors/propertyTable.d.ts.map +1 -1
  142. package/dist/tensors/propertyTable.js +17 -10
  143. package/dist/tensors/propertyTable.js.map +1 -1
  144. package/dist/tensors/rowEchelon.d.ts +12 -4
  145. package/dist/tensors/rowEchelon.d.ts.map +1 -1
  146. package/dist/tensors/rowEchelon.js +24 -11
  147. package/dist/tensors/rowEchelon.js.map +1 -1
  148. package/dist/tensors/tensorForm.d.ts +75 -34
  149. package/dist/tensors/tensorForm.d.ts.map +1 -1
  150. package/dist/tensors/tensorForm.js +173 -68
  151. package/dist/tensors/tensorForm.js.map +1 -1
  152. package/dist/tensors/tensorProperties.d.ts +10 -9
  153. package/dist/tensors/tensorProperties.d.ts.map +1 -1
  154. package/dist/tensors/tensorProperties.js +22 -12
  155. package/dist/tensors/tensorProperties.js.map +1 -1
  156. package/dist/tolerances.d.ts +56 -1
  157. package/dist/tolerances.d.ts.map +1 -1
  158. package/dist/tolerances.js +51 -1
  159. package/dist/tolerances.js.map +1 -1
  160. package/dist/version.d.ts +1 -1
  161. package/dist/version.js +1 -1
  162. package/package.json +1 -1
  163. package/src/cell.ts +78 -51
  164. package/src/checks.ts +84 -0
  165. package/src/closure.ts +214 -0
  166. package/src/crystalClasses.ts +234 -160
  167. package/src/freeze.ts +14 -0
  168. package/src/index.ts +21 -10
  169. package/src/indices.ts +108 -18
  170. package/src/lattice.ts +41 -1
  171. package/src/linalg.ts +3 -3
  172. package/src/magnetic.ts +14 -9
  173. package/src/notation.ts +73 -0
  174. package/src/operations.ts +78 -69
  175. package/src/plane.ts +253 -127
  176. package/src/pointGroups/crystalForms.ts +11 -44
  177. package/src/pointGroups/crystalFormsData.ts +66 -1
  178. package/src/pointGroups/elements.ts +82 -92
  179. package/src/pointGroups/identify.ts +38 -97
  180. package/src/pointGroups/itaOrder.ts +117 -101
  181. package/src/pointGroups/itcData.ts +404 -0
  182. package/src/pointGroups/itcMagneticData.ts +206 -0
  183. package/src/pointGroups/keys.ts +144 -0
  184. package/src/pointGroups/magneticSymbols.ts +18 -17
  185. package/src/pointGroups/orbits.ts +41 -89
  186. package/src/pointGroups/pointGroups.ts +540 -297
  187. package/src/pointGroups/properties.ts +44 -40
  188. package/src/pointGroups/seitzData.ts +147 -0
  189. package/src/pointGroups/wyckoff.ts +137 -112
  190. package/src/pointGroups/wyckoffData.ts +793 -170
  191. package/src/siteSymmetry.ts +71 -64
  192. package/src/spaceGroups/affine.ts +3 -2
  193. package/src/spaceGroups/cell.ts +227 -116
  194. package/src/spaceGroups/describe.ts +22 -19
  195. package/src/spaceGroups/planeGroupData.ts +9 -9
  196. package/src/spaceGroups/planeGroups.ts +2 -1
  197. package/src/spaceGroups/positions.ts +202 -78
  198. package/src/tensors/propertyTable.ts +29 -17
  199. package/src/tensors/rowEchelon.ts +28 -9
  200. package/src/tensors/tensorForm.ts +260 -89
  201. package/src/tensors/tensorProperties.ts +34 -14
  202. package/src/tolerances.ts +66 -1
  203. package/src/version.ts +1 -1
  204. package/dist/pointGroups/data.d.ts +0 -75
  205. package/dist/pointGroups/data.d.ts.map +0 -1
  206. package/dist/pointGroups/data.js +0 -212
  207. package/dist/pointGroups/data.js.map +0 -1
  208. package/dist/pointGroups/magneticData.d.ts +0 -66
  209. package/dist/pointGroups/magneticData.d.ts.map +0 -1
  210. package/dist/pointGroups/magneticData.js +0 -184
  211. package/dist/pointGroups/magneticData.js.map +0 -1
  212. package/dist/spaceGroups/snap.d.ts +0 -20
  213. package/dist/spaceGroups/snap.d.ts.map +0 -1
  214. package/dist/spaceGroups/snap.js +0 -103
  215. package/dist/spaceGroups/snap.js.map +0 -1
  216. package/src/pointGroups/data.ts +0 -305
  217. package/src/pointGroups/magneticData.ts +0 -328
  218. package/src/spaceGroups/snap.ts +0 -121
@@ -1,11 +1,12 @@
1
1
  /**
2
- * Wyckoff positions of the crystal classes for directions (face normals), in the ITC convention:
3
- * ITA's letters, multiplicities and oriented site-symmetry symbols, a representative face, and the
2
+ * Wyckoff positions of the crystal classes for directions (face normals), as ITA gives them:
3
+ * ITA's letters, multiplicities, oriented site-symmetry symbols, coordinates and faces as printed, and the
4
4
  * Wyckoff position of any direction (docs/conventions.md, "Site symmetry and Wyckoff positions").
5
5
  */
6
6
  import { type Mat3, type Vec3 } from '../linalg.js';
7
- import { type PointGroupKey, type SettingOptions } from './pointGroups.js';
8
- import { type SiteSymmetryOptions } from '../siteSymmetry.js';
7
+ import { type MagneticPointGroupKey, type PointGroupKey, type SettingOptions } from './pointGroups.js';
8
+ import { type SiteSymmetry } from '../siteSymmetry.js';
9
+ import type { ToleranceOptions } from '../tolerances.js';
9
10
  /** A face (hkl): three Miller indices in the conventional basis (for hexagonal axes without i = −(h + k)). */
10
11
  export type Hkl = readonly [number, number, number];
11
12
  /** One Wyckoff position of a point group for directions. */
@@ -16,32 +17,38 @@ export interface WyckoffPosition {
16
17
  readonly multiplicity: number;
17
18
  /** Oriented site-symmetry symbol as ITA prints it, e.g. `..m`, `4m.m`, `1`. */
18
19
  readonly siteSymmetry: string;
19
- /** ITA's representative point as printed, e.g. `x,x,z` (a leading `-` is an overbar). */
20
- readonly coordinates: string;
20
+ /**
21
+ * ITA's coordinate triplets of the position as printed, in printed order, the first being the
22
+ * representative point, e.g. `['x,x,z', '-x,-x,z', …]` (a leading `-` is an overbar); one per
23
+ * equivalent direction, as in `symcrys/plane`.
24
+ */
25
+ readonly coordinates: readonly string[];
21
26
  /**
22
27
  * ITA's representative face as printed, components separated by commas, e.g. `h,h,l`, or
23
- * `h,h,-2h,l` (Bravais–Miller indices) for hexagonal axes.
28
+ * `h,h,-2h,l` (Bravais–Miller indices) for hexagonal axes. `millerIndices(printed, { h, k, l })` gives
29
+ * a face with numbers, `faceNormal(basis, hkl)` its normal in a cell.
24
30
  */
25
31
  readonly millerIndices: string;
26
- /** A representative face with numbers: `millerIndices` with h = 3, k = 2, l = 1. */
27
- readonly representative: {
28
- /** The Miller indices (hkl) of the face. */
29
- readonly hkl: Hkl;
30
- /**
31
- * Its face normal, a Cartesian unit vector. Monoclinic and triclinic: the normal for a, b, c along
32
- * x, y, z (no cell angles), exact for the unique axis only, but with the correct site symmetry.
33
- */
34
- readonly cartesian: Vec3;
35
- };
36
- /** Indices into `operations` (same setting, ITC convention) of the site symmetry of the representative. */
32
+ /**
33
+ * Indices into `operations` (same setting) of the site symmetry of the position: of the operations
34
+ * that fix its first printed face for values of h, k, l that keep the face in the position.
35
+ */
37
36
  readonly siteSymmetryOperations: readonly number[];
38
37
  }
39
- /** Convention and setting (`SettingOptions`) and the tolerance of `siteSymmetry` (`SiteSymmetryOptions`). */
40
- export type WyckoffOptions = SettingOptions & SiteSymmetryOptions;
41
38
  /** The values substituted into ITA's Miller indices for the numeric representative. */
42
39
  export declare const REPRESENTATIVE_VALUES: Readonly<Record<'h' | 'k' | 'l', number>>;
40
+ /**
41
+ * The values for rhombohedral axes: h = 5, k = 2, l = 1. With 3, 2, 1 the face (h,k,l) would lie on
42
+ * the limiting form (h,k,2k-h) that ITA prints there (Table 3.2.3.2, 32, 3m and -3m with rhombohedral
43
+ * axes, pp. 755–759): (321) is (116) in hexagonal axes. (521), (318) in hexagonal axes, lies on no
44
+ * printed limiting form, and every printed face with these values is in lowest terms ((5,2,-7),
45
+ * (5,2,-1), (5,5,1)); h = 4 would give (4,2,-6) and (4,2,0).
46
+ */
47
+ export declare const RHOMBOHEDRAL_VALUES: Readonly<Record<'h' | 'k' | 'l', number>>;
48
+ /** The values of h, k, l for the representative faces of a setting. */
49
+ export declare function representativeValues(key: PointGroupKey, setting: number): Readonly<Record<'h' | 'k' | 'l', number>>;
43
50
  /** Printed Miller indices (three, or four for hexagonal axes) as three numbers, with the given values of h, k, l. */
44
- export declare function numericHkl(miller: string, values?: Readonly<Record<"h" | "k" | "l", number>>): Hkl;
51
+ export declare function numericHkl(miller: string, values?: Readonly<Record<"k" | "h" | "l", number>>): Hkl;
45
52
  export declare const IDENTITY: Mat3;
46
53
  /** The face normal of (hkl) as a Cartesian unit vector: h a* + k b* + l c* with the reciprocal basis B⁻ᵀ. */
47
54
  export declare function normal(basis: Mat3, hkl: Hkl): Vec3;
@@ -52,44 +59,67 @@ export declare function normal(basis: Mat3, hkl: Hkl): Vec3;
52
59
  */
53
60
  export declare function permutePattern(pattern: string, r: Mat3, letters: string): string;
54
61
  /**
55
- * The signed permutation r that carries setting 1 of a class into `setting` (new axis i = r[i][j] ×
56
- * old axis j), for the settings ITA does not print (`mm2` settings 2 and 3). Throws if the frame of
57
- * the setting is not a permutation of that of setting 1.
62
+ * The permutation r that carries setting 1 of a class into `setting` (new axis i = r[i][j] × old
63
+ * axis j), for the settings ITA does not print (`mm2` settings 2 and 3, monoclinic unique axis a):
64
+ * the transpose of the change
65
+ * of basis P of the ITC class data ((a′, b′, c′) = (a, b, c)·P, itcData.ts). Coordinates (P⁻¹·x)
66
+ * and Miller indices (h·P) are carried by the same r only because P is a signed permutation
67
+ * (P⁻¹ = Pᵀ); throws for a setting that is not carried from setting 1 by one.
58
68
  */
59
69
  export declare function permutationFromSetting1(key: PointGroupKey, setting: number): Mat3;
60
70
  /**
61
71
  * The entry of a table printed per setting (Wyckoff positions, face forms) for a setting of a class:
62
- * the one with the ITC short symbol (and unique axis) of the setting, or undefined if ITA does not
72
+ * the one with the ITC short symbol (and unique axis or axes) of the setting, or undefined if ITA does not
63
73
  * print the setting.
64
74
  */
65
75
  export declare function printedEntry<E extends {
66
76
  readonly symbol: string;
67
77
  readonly uniqueAxis?: 'b' | 'c';
78
+ readonly axes?: 'rhombohedral';
68
79
  }>(table: readonly E[], key: PointGroupKey, setting: number): E | undefined;
69
80
  /**
70
- * The lattice basis in which the Cartesian normals of the representatives are computed; monoclinic
71
- * and triclinic: a, b, c along x, y, z (docs/conventions.md, "Site symmetry and Wyckoff positions").
81
+ * The lattice basis in which the Cartesian normals of the representatives are computed, that of the
82
+ * setting (itcData.ts, `itcBasis`): monoclinic and triclinic a, b, c along x, y, z; rhombohedral
83
+ * axes in the hexagonal cell of `latticeBasis` (docs/conventions.md, "Site symmetry and Wyckoff
84
+ * positions").
85
+ */
86
+ export declare function faceBasis(key: PointGroupKey, setting: number): Mat3;
87
+ /** h, k, l of a representative face under the printed condition |h| < |l| (cubic forms (hhl)). */
88
+ export declare const SMALL_H: Readonly<Record<'h' | 'k' | 'l', number>>;
89
+ /**
90
+ * A face of a position or form with numbers, internal (#137 G3: the API gives the printed indices
91
+ * only): h, k, l = 3, 2, 1 (rhombohedral axes: 5, 2, 1; 1, 2, 3 under the condition |h| < |l|), and
92
+ * its normal in the basis of the setting (`faceBasis`; monoclinic and triclinic a, b, c along x, y,
93
+ * z, which gives the correct site symmetry but not the pole of a real cell, #137 G4).
72
94
  */
73
- export declare function faceBasis(key: PointGroupKey): Mat3;
95
+ export declare function representativeFace(key: PointGroupKey, setting: number, miller: string, condition?: string): {
96
+ readonly hkl: Hkl;
97
+ readonly cartesian: Vec3;
98
+ };
74
99
  /**
75
- * The setting index for a table that exists for the crystal classes in the ITC convention only
76
- * (`what`: 'Wyckoff positions', 'Crystal forms'); throws a RangeError for a magnetic point group
77
- * with time reversal and for another convention.
100
+ * The setting index for a table that exists for the crystal classes only (`what`: 'Wyckoff
101
+ * positions', 'Crystal forms'); throws a RangeError for a magnetic point group with time reversal.
78
102
  */
79
- export declare function itcSetting(key: PointGroupKey, options?: SettingOptions, what?: string): number;
103
+ export declare function tableSetting(key: PointGroupKey, options?: SettingOptions, what?: string): number;
80
104
  /**
81
105
  * The Wyckoff positions of a point group for directions, in ITA's printed order (general position
82
- * first), for the 32 crystal classes and in the ITC convention only (throws a RangeError for a
83
- * magnetic point group with time reversal and for `'birss'`). The point at the origin
84
- * (letter o) is not a direction and is left out. For `mm2` settings 2 and 3 (`2mm`, `m2m`), which
85
- * ITA does not print, the positions of setting 1 carried into their frame.
106
+ * first), for the 32 crystal classes only (throws a RangeError for a magnetic point group with
107
+ * time reversal). The point at the origin
108
+ * (letter o) is not a direction and is left out. For the settings ITA does not print (`mm2` settings 2 and 3, monoclinic unique axis a), the positions
109
+ * of setting 1 carried into their frame.
86
110
  */
87
111
  export declare function wyckoffPositions(key: PointGroupKey, options?: SettingOptions): readonly WyckoffPosition[];
88
112
  /**
89
- * The Wyckoff position of a direction (any non-zero Cartesian vector) in a point group, ITC
90
- * convention only: the position whose representative has a site symmetry conjugate to that of the
91
- * direction (ITA's definition). `tolerance` as for `siteSymmetry`; throws a RangeError if the
113
+ * The site symmetry of a direction (any non-zero Cartesian vector) under a point group in a
114
+ * setting: `siteSymmetryOf` applied to `operations(key, options)`, so the indices refer to those
115
+ * operations (#137 C1). Time reversal is ignored. Throws a RangeError as `siteSymmetryOf` does.
116
+ */
117
+ export declare function siteSymmetry(key: MagneticPointGroupKey, direction: Vec3, options?: SettingOptions & ToleranceOptions): SiteSymmetry;
118
+ /**
119
+ * The Wyckoff position of a direction (any non-zero Cartesian vector) in a crystal class: the
120
+ * position whose printed face has a site symmetry conjugate to that of the
121
+ * direction (ITA's definition). `tolerance` as for `siteSymmetryOf`; throws a RangeError if the
92
122
  * operations found within it do not match any position (a tolerance too large).
93
123
  */
94
- export declare function wyckoffPositionOf(key: PointGroupKey, direction: Vec3, options?: WyckoffOptions): WyckoffPosition;
124
+ export declare function wyckoffPosition(key: PointGroupKey, direction: Vec3, options?: SettingOptions & ToleranceOptions): WyckoffPosition;
95
125
  //# sourceMappingURL=wyckoff.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wyckoff.d.ts","sourceRoot":"","sources":["../../src/pointGroups/wyckoff.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAA6B,KAAK,IAAI,EAAE,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AAG/E,OAAO,EAKL,KAAK,aAAa,EAClB,KAAK,cAAc,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAA+B,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAG3F,8GAA8G;AAC9G,MAAM,MAAM,GAAG,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEpD,4DAA4D;AAC5D,MAAM,WAAW,eAAe;IAC9B,4BAA4B;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,2DAA2D;IAC3D,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,+EAA+E;IAC/E,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,yFAAyF;IACzF,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,oFAAoF;IACpF,QAAQ,CAAC,cAAc,EAAE;QACvB,4CAA4C;QAC5C,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;QAClB;;;WAGG;QACH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AC,GAAG,SAAS,CAQzE;AAmBD;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAEnE;AAED,kGAAkG;AAClG,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,EAAE,MAAM,CAAC,CAAuC,CAAC;AAEtG;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,aAAa,EAClB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,GACjB;IAAE,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAA;CAAE,CAGjD;AAID;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,EAAE,IAAI,SAAsB,GAAG,MAAM,CAO7G;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,SAAS,eAAe,EAAE,CA8BzG;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,GAAG,EAAE,qBAAqB,EAC1B,SAAS,EAAE,IAAI,EACf,OAAO,CAAC,EAAE,cAAc,GAAG,gBAAgB,GAC1C,YAAY,CAGd;AAID;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,aAAa,EAClB,SAAS,EAAE,IAAI,EACf,OAAO,CAAC,EAAE,cAAc,GAAG,gBAAgB,GAC1C,eAAe,CAgBjB"}
@@ -1,37 +1,33 @@
1
1
  /**
2
- * Wyckoff positions of the crystal classes for directions (face normals), in the ITC convention:
3
- * ITA's letters, multiplicities and oriented site-symmetry symbols, a representative face, and the
2
+ * Wyckoff positions of the crystal classes for directions (face normals), as ITA gives them:
3
+ * ITA's letters, multiplicities, oriented site-symmetry symbols, coordinates and faces as printed, and the
4
4
  * Wyckoff position of any direction (docs/conventions.md, "Site symmetry and Wyckoff positions").
5
5
  */
6
+ import { checkOptions, pick, SETTING_KEYS, shown, TOLERANCE_KEYS } from '../checks.js';
6
7
  import { apply, inverse, transpose } from '../linalg.js';
7
- import { crystalFamily, latticeBasis } from '../lattice.js';
8
- import { POINT_GROUP_DATA } from './data.js';
9
- import { isMagneticPointGroupKey, isPointGroupKey, operations, settings, } from './pointGroups.js';
10
- import { siteSymmetry, siteTolerance } from '../siteSymmetry.js';
8
+ import { crystalFamily } from '../lattice.js';
9
+ import { substituteMillerIndices } from '../indices.js';
10
+ import { itcBasis, itcClass, itcSetting as itcClassSetting } from './itcData.js';
11
+ import { settingIndexOf, isMagneticPointGroupKey, isPointGroupKey, operations, settings, } from './pointGroups.js';
12
+ import { siteSymmetryOf, siteTolerance } from '../siteSymmetry.js';
11
13
  import { ITA_WYCKOFF } from './wyckoffData.js';
12
14
  /** The values substituted into ITA's Miller indices for the numeric representative. */
13
15
  export const REPRESENTATIVE_VALUES = { h: 3, k: 2, l: 1 };
14
- /** One printed index (`h`, `-2h`, `0`, `1`) as a number. */
15
- function index(component, values) {
16
- const m = /^(-?)(\d*)([hkil]?)$/.exec(component);
17
- if (!m || (m[2] === '' && m[3] === ''))
18
- throw new Error(`Unreadable Miller index: ${component}`);
19
- const sign = m[1] ? -1 : 1;
20
- const factor = m[2] === '' ? 1 : Number(m[2]);
21
- if (m[3] === '')
22
- return sign * factor;
23
- if (m[3] === 'i')
24
- return sign * factor * -(values.h + values.k);
25
- return sign * factor * values[m[3]];
16
+ /**
17
+ * The values for rhombohedral axes: h = 5, k = 2, l = 1. With 3, 2, 1 the face (h,k,l) would lie on
18
+ * the limiting form (h,k,2k-h) that ITA prints there (Table 3.2.3.2, 32, 3m and -3m with rhombohedral
19
+ * axes, pp. 755–759): (321) is (116) in hexagonal axes. (521), (318) in hexagonal axes, lies on no
20
+ * printed limiting form, and every printed face with these values is in lowest terms ((5,2,-7),
21
+ * (5,2,-1), (5,5,1)); h = 4 would give (4,2,-6) and (4,2,0).
22
+ */
23
+ export const RHOMBOHEDRAL_VALUES = { h: 5, k: 2, l: 1 };
24
+ /** The values of h, k, l for the representative faces of a setting. */
25
+ export function representativeValues(key, setting) {
26
+ return itcClassSetting(key, setting).axes === 'rhombohedral' ? RHOMBOHEDRAL_VALUES : REPRESENTATIVE_VALUES;
26
27
  }
27
28
  /** Printed Miller indices (three, or four for hexagonal axes) as three numbers, with the given values of h, k, l. */
28
29
  export function numericHkl(miller, values = REPRESENTATIVE_VALUES) {
29
- const parts = miller.split(',').map((c) => index(c, values));
30
- if (parts.length === 3)
31
- return [parts[0], parts[1], parts[2]];
32
- if (parts.length === 4 && parts[2] === -(parts[0] + parts[1]))
33
- return [parts[0], parts[1], parts[3]];
34
- throw new Error(`Unreadable Miller indices: ${miller}`);
30
+ return substituteMillerIndices(miller, values, (m) => new Error(m));
35
31
  }
36
32
  export const IDENTITY = [
37
33
  [1, 0, 0],
@@ -80,36 +76,36 @@ function permuteSymbol(symbolText, r) {
80
76
  throw new Error(`Cannot carry ${symbolText} into another setting`);
81
77
  return [0, 1, 2].map((i) => symbolText[[0, 1, 2].find((k) => Math.abs(r[i][k]) === 1) ?? -1]).join('');
82
78
  }
83
- function isSignedPermutation(r) {
84
- return r.every((row) => row.filter((v) => Math.abs(v) > 1e-9).length === 1 && row.some((v) => Math.abs(Math.abs(v) - 1) < 1e-9));
85
- }
86
79
  /**
87
- * The signed permutation r that carries setting 1 of a class into `setting` (new axis i = r[i][j] ×
88
- * old axis j), for the settings ITA does not print (`mm2` settings 2 and 3). Throws if the frame of
89
- * the setting is not a permutation of that of setting 1.
80
+ * The permutation r that carries setting 1 of a class into `setting` (new axis i = r[i][j] × old
81
+ * axis j), for the settings ITA does not print (`mm2` settings 2 and 3, monoclinic unique axis a):
82
+ * the transpose of the change
83
+ * of basis P of the ITC class data ((a′, b′, c′) = (a, b, c)·P, itcData.ts). Coordinates (P⁻¹·x)
84
+ * and Miller indices (h·P) are carried by the same r only because P is a signed permutation
85
+ * (P⁻¹ = Pᵀ); throws for a setting that is not carried from setting 1 by one.
90
86
  */
91
87
  export function permutationFromSetting1(key, setting) {
92
- const d = POINT_GROUP_DATA.find((x) => x.key === key);
93
- if (!d)
94
- throw new RangeError(`Unknown point group key: ${JSON.stringify(key)}`);
95
- const f1 = d.settings[0].frame;
96
- const fk = d.settings[setting - 1].frame;
97
- const raw = fk.map((row) => [0, 1, 2].map((j) => row[0] * f1[j][0] + row[1] * f1[j][1] + row[2] * f1[j][2]));
98
- const r = raw.map((row) => row.map((v) => Math.round(v)));
99
- if (!isSignedPermutation(raw) ||
100
- !raw.every((row, i) => row.every((v, j) => Math.abs(v - r[i][j]) < 1e-9))) {
101
- throw new Error(`Point group ${key}, setting ${setting}: frame is not a permutation of setting 1`);
102
- }
103
- return r;
88
+ const from = itcClassSetting(key, setting).from;
89
+ if (from?.index !== 1)
90
+ throw new Error(`Point group ${key}, setting ${setting}: not carried from setting 1`);
91
+ const p = from.basis;
92
+ const signedPermutation = [0, 1, 2].every((i) => p[i].filter((v) => v !== 0).length === 1 &&
93
+ p[i].every((v) => v === 0 || Math.abs(v) === 1) &&
94
+ p.filter((row) => row[i] !== 0).length === 1);
95
+ if (!signedPermutation)
96
+ throw new Error(`Point group ${key}, setting ${setting}: not a signed permutation of setting 1`);
97
+ return [0, 1, 2].map((i) => [0, 1, 2].map((j) => p[j][i]));
104
98
  }
105
99
  /**
106
100
  * The entry of a table printed per setting (Wyckoff positions, face forms) for a setting of a class:
107
- * the one with the ITC short symbol (and unique axis) of the setting, or undefined if ITA does not
101
+ * the one with the ITC short symbol (and unique axis or axes) of the setting, or undefined if ITA does not
108
102
  * print the setting.
109
103
  */
110
104
  export function printedEntry(table, key, setting) {
111
- const s = settings(key, 'itc')[setting - 1];
112
- return table.find((e) => e.symbol === s.symbol && (e.uniqueAxis === undefined || e.uniqueAxis === s.uniqueAxis));
105
+ const s = settings(key)[setting - 1];
106
+ return table.find((e) => e.symbol === s.symbol &&
107
+ (e.uniqueAxis === undefined || e.uniqueAxis === s.uniqueAxis) &&
108
+ (e.axes === 'rhombohedral') === (s.axes === 'rhombohedral'));
113
109
  }
114
110
  /** The printed rows of a setting; for a setting ITA does not print, those of setting 1 carried into its frame. */
115
111
  function printedRows(key, setting) {
@@ -119,63 +115,68 @@ function printedRows(key, setting) {
119
115
  if (setting === 1)
120
116
  throw new Error(`Point group ${key}: no printed Wyckoff positions for setting 1`);
121
117
  const r = permutationFromSetting1(key, setting);
118
+ // A monoclinic site symmetry (`2`, `m`, `2/m`) names the element on the unique axis, not a position.
119
+ const oriented = crystalFamily(itcClass(key).crystalSystem) !== 'monoclinic';
122
120
  return printedRows(key, 1).map(([letter, mult, site, coords, miller]) => [
123
121
  letter,
124
122
  mult,
125
- permuteSymbol(site, r),
126
- permutePattern(coords, r, XYZ),
123
+ oriented ? permuteSymbol(site, r) : site,
124
+ coords.map((c) => permutePattern(c, r, XYZ)),
127
125
  miller === '' ? '' : permutePattern(miller, r, HKL),
128
126
  ]);
129
127
  }
130
128
  /**
131
- * The lattice basis in which the Cartesian normals of the representatives are computed; monoclinic
132
- * and triclinic: a, b, c along x, y, z (docs/conventions.md, "Site symmetry and Wyckoff positions").
129
+ * The lattice basis in which the Cartesian normals of the representatives are computed, that of the
130
+ * setting (itcData.ts, `itcBasis`): monoclinic and triclinic a, b, c along x, y, z; rhombohedral
131
+ * axes in the hexagonal cell of `latticeBasis` (docs/conventions.md, "Site symmetry and Wyckoff
132
+ * positions").
133
133
  */
134
- export function faceBasis(key) {
135
- const d = POINT_GROUP_DATA.find((x) => x.key === key);
136
- if (!d)
137
- throw new RangeError(`Unknown point group key: ${JSON.stringify(key)}`);
138
- const family = crystalFamily(d.crystalSystem);
139
- return family === 'monoclinic' || family === 'triclinic' ? IDENTITY : latticeBasis(family);
134
+ export function faceBasis(key, setting) {
135
+ return itcBasis(key, setting);
136
+ }
137
+ /** h, k, l of a representative face under the printed condition |h| < |l| (cubic forms (hhl)). */
138
+ export const SMALL_H = Object.freeze({ h: 1, k: 2, l: 3 });
139
+ /**
140
+ * A face of a position or form with numbers, internal (#137 G3: the API gives the printed indices
141
+ * only): h, k, l = 3, 2, 1 (rhombohedral axes: 5, 2, 1; 1, 2, 3 under the condition |h| < |l|), and
142
+ * its normal in the basis of the setting (`faceBasis`; monoclinic and triclinic a, b, c along x, y,
143
+ * z, which gives the correct site symmetry but not the pole of a real cell, #137 G4).
144
+ */
145
+ export function representativeFace(key, setting, miller, condition) {
146
+ const hkl = numericHkl(miller, condition === '|h|<|l|' ? SMALL_H : representativeValues(key, setting));
147
+ return { hkl, cartesian: normal(faceBasis(key, setting), hkl) };
140
148
  }
141
149
  const cache = new Map();
142
150
  /**
143
- * The setting index for a table that exists for the crystal classes in the ITC convention only
144
- * (`what`: 'Wyckoff positions', 'Crystal forms'); throws a RangeError for a magnetic point group
145
- * with time reversal and for another convention.
151
+ * The setting index for a table that exists for the crystal classes only (`what`: 'Wyckoff
152
+ * positions', 'Crystal forms'); throws a RangeError for a magnetic point group with time reversal.
146
153
  */
147
- export function itcSetting(key, options, what = 'Wyckoff positions') {
154
+ export function tableSetting(key, options, what = 'Wyckoff positions') {
148
155
  if (isMagneticPointGroupKey(key) && !isPointGroupKey(key)) {
149
- throw new RangeError(`${what} are given for the 32 crystal classes only; ${JSON.stringify(key)} is a magnetic point group`);
150
- }
151
- if ((options?.convention ?? 'itc') !== 'itc') {
152
- throw new RangeError(`${what} exist in the ITC convention only (convention 'itc')`);
156
+ throw new RangeError(`${what} are given for the 32 crystal classes only; ${shown(key)} is a magnetic point group`);
153
157
  }
154
- const list = settings(key, 'itc');
155
- const index = options?.setting ?? list.find((s) => s.isDefault)?.index ?? 1;
156
- operations(key, { convention: 'itc', setting: index }); // validates the setting index
158
+ const index = settingIndexOf(key, options);
159
+ operations(key, pick(options, SETTING_KEYS)); // validates the setting index
157
160
  return index;
158
161
  }
159
162
  /**
160
163
  * The Wyckoff positions of a point group for directions, in ITA's printed order (general position
161
- * first), for the 32 crystal classes and in the ITC convention only (throws a RangeError for a
162
- * magnetic point group with time reversal and for `'birss'`). The point at the origin
163
- * (letter o) is not a direction and is left out. For `mm2` settings 2 and 3 (`2mm`, `m2m`), which
164
- * ITA does not print, the positions of setting 1 carried into their frame.
164
+ * first), for the 32 crystal classes only (throws a RangeError for a magnetic point group with
165
+ * time reversal). The point at the origin
166
+ * (letter o) is not a direction and is left out. For the settings ITA does not print (`mm2` settings 2 and 3, monoclinic unique axis a), the positions
167
+ * of setting 1 carried into their frame.
165
168
  */
166
169
  export function wyckoffPositions(key, options) {
167
- const setting = itcSetting(key, options);
170
+ checkOptions(options, SETTING_KEYS, 'wyckoffPositions');
171
+ const setting = tableSetting(key, options);
168
172
  const cacheKey = `${key}#${setting}`;
169
173
  let result = cache.get(cacheKey);
170
174
  if (!result) {
171
- const ops = operations(key, { convention: 'itc', setting });
172
- const basis = faceBasis(key);
175
+ const ops = operations(key, { setting });
173
176
  result = Object.freeze(printedRows(key, setting)
174
177
  .filter(([letter]) => letter !== 'o')
175
178
  .map(([letter, multiplicity, site, coordinates, millerIndices]) => {
176
- const hkl = numericHkl(millerIndices);
177
- const cartesian = normal(basis, hkl);
178
- const stab = siteSymmetry(ops, cartesian);
179
+ const stab = siteSymmetryOf(ops, representativeFace(key, setting, millerIndices).cartesian);
179
180
  if (stab.multiplicity !== multiplicity) {
180
181
  throw new Error(`Point group ${key}, setting ${setting}, position ${letter}: multiplicity differs from print`);
181
182
  }
@@ -183,12 +184,8 @@ export function wyckoffPositions(key, options) {
183
184
  letter,
184
185
  multiplicity,
185
186
  siteSymmetry: site,
186
- coordinates,
187
+ coordinates: Object.freeze([...coordinates]),
187
188
  millerIndices,
188
- representative: Object.freeze({
189
- hkl: Object.freeze(hkl),
190
- cartesian: Object.freeze(cartesian),
191
- }),
192
189
  siteSymmetryOperations: stab.operations,
193
190
  });
194
191
  }));
@@ -196,26 +193,36 @@ export function wyckoffPositions(key, options) {
196
193
  }
197
194
  return result;
198
195
  }
196
+ /**
197
+ * The site symmetry of a direction (any non-zero Cartesian vector) under a point group in a
198
+ * setting: `siteSymmetryOf` applied to `operations(key, options)`, so the indices refer to those
199
+ * operations (#137 C1). Time reversal is ignored. Throws a RangeError as `siteSymmetryOf` does.
200
+ */
201
+ export function siteSymmetry(key, direction, options) {
202
+ checkOptions(options, [...SETTING_KEYS, ...TOLERANCE_KEYS], 'siteSymmetry');
203
+ return siteSymmetryOf(operations(key, pick(options, SETTING_KEYS)), direction, pick(options, TOLERANCE_KEYS));
204
+ }
199
205
  const sortedKey = (list) => [...list].sort((a, b) => a - b).join(',');
200
206
  /**
201
- * The Wyckoff position of a direction (any non-zero Cartesian vector) in a point group, ITC
202
- * convention only: the position whose representative has a site symmetry conjugate to that of the
203
- * direction (ITA's definition). `tolerance` as for `siteSymmetry`; throws a RangeError if the
207
+ * The Wyckoff position of a direction (any non-zero Cartesian vector) in a crystal class: the
208
+ * position whose printed face has a site symmetry conjugate to that of the
209
+ * direction (ITA's definition). `tolerance` as for `siteSymmetryOf`; throws a RangeError if the
204
210
  * operations found within it do not match any position (a tolerance too large).
205
211
  */
206
- export function wyckoffPositionOf(key, direction, options) {
212
+ export function wyckoffPosition(key, direction, options) {
213
+ checkOptions(options, [...SETTING_KEYS, ...TOLERANCE_KEYS], 'wyckoffPosition');
207
214
  const tolerance = siteTolerance(options);
208
- const setting = itcSetting(key, options);
209
- const ops = operations(key, { convention: 'itc', setting });
210
- const rows = wyckoffPositions(key, { convention: 'itc', setting });
211
- const site = siteSymmetry(ops, direction, { tolerance });
215
+ const setting = tableSetting(key, options);
216
+ const ops = operations(key, { setting });
217
+ const rows = wyckoffPositions(key, { setting });
218
+ const site = siteSymmetryOf(ops, direction, { tolerance });
212
219
  const candidates = rows.filter((r) => r.siteSymmetryOperations.length === site.operations.length);
213
220
  for (const g of ops) {
214
- const k = sortedKey(siteSymmetry(ops, apply(g.matrix, site.direction), { tolerance }).operations);
221
+ const k = sortedKey(siteSymmetryOf(ops, apply(g.cartesian, site.direction), { tolerance }).operations);
215
222
  const row = candidates.find((r) => sortedKey(r.siteSymmetryOperations) === k);
216
223
  if (row)
217
224
  return row;
218
225
  }
219
- throw new RangeError(`Point group ${key}, setting ${setting}: no Wyckoff position for ${JSON.stringify(direction)} (tolerance too large?)`);
226
+ throw new RangeError(`Point group ${key}, setting ${setting}: no Wyckoff position for ${shown(direction)} (tolerance too large?)`);
220
227
  }
221
228
  //# sourceMappingURL=wyckoff.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wyckoff.js","sourceRoot":"","sources":["../../src/pointGroups/wyckoff.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAwB,MAAM,cAAc,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,eAAe,EACf,UAAU,EACV,QAAQ,GAGT,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,aAAa,EAA4B,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAmB,MAAM,kBAAkB,CAAC;AAqChE,uFAAuF;AACvF,MAAM,CAAC,MAAM,qBAAqB,GAA8C,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AAErG,4DAA4D;AAC5D,SAAS,KAAK,CAAC,SAAiB,EAAE,MAAiD;IACjF,MAAM,CAAC,GAAG,sBAAsB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACjD,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,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AG,EAAE,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC;QACvG,MAAM,GAAG,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,CAAC;QAC9E,IAAI,GAAG;YAAE,OAAO,GAAG,CAAC;IACtB,CAAC;IACD,MAAM,IAAI,UAAU,CAClB,eAAe,GAAG,aAAa,OAAO,6BAA6B,KAAK,CAAC,SAAS,CAAC,yBAAyB,CAC7G,CAAC;AACJ,CAAC"}
@@ -1,20 +1,23 @@
1
1
  /**
2
2
  * The Wyckoff positions of the crystal classes as ITA prints them (6th ed., 2016, Table 3.2.3.2,
3
3
  * pp. 745–769), one entry per printed setting: letter, multiplicity, oriented site-symmetry symbol,
4
- * the first coordinate triplet and the Miller indices of the first face. The same rows are in
4
+ * the coordinate triplets in printed order and the Miller indices of the first face. The same rows are in
5
5
  * references/itc/vol-a-table-3.2.3.2-wyckoff-positions.md, which the reference test re-parses and
6
6
  * compares with this file; change both only by transcription from print.
7
7
  *
8
8
  * Notation: a leading `-` is an overbar; components separated by commas; Bravais–Miller indices
9
- * (four components) for hexagonal axes. The origin (letter o) has no face (`''`).
9
+ * (four components) for hexagonal axes, three Miller indices for rhombohedral axes, where an index
10
+ * may be a sum as printed (`h,k,-h-k`). The origin (letter o) has no face (`''`).
10
11
  */
11
- /** [letter, multiplicity, oriented site symmetry, coordinates, Miller indices]. */
12
- export type WyckoffRow = readonly [string, number, string, string, string];
12
+ /** [letter, multiplicity, oriented site symmetry, coordinate triplets in printed order, Miller indices]. */
13
+ export type WyckoffRow = readonly [string, number, string, readonly string[], string];
13
14
  export interface WyckoffEntry {
14
15
  /** ITC short symbol of the setting as in the headline of the entry. */
15
16
  readonly symbol: string;
16
17
  /** Monoclinic: the unique axis of the entry. */
17
18
  readonly uniqueAxis?: 'b' | 'c';
19
+ /** Trigonal: `'rhombohedral'` for an entry with rhombohedral axes (hexagonal axes otherwise). */
20
+ readonly axes?: 'rhombohedral';
18
21
  /** Printed page. */
19
22
  readonly page: number;
20
23
  /** In printed order, general position first. */
@@ -1 +1 @@
1
- {"version":3,"file":"wyckoffData.d.ts","sourceRoot":"","sources":["../../src/pointGroups/wyckoffData.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,mFAAmF;AACnF,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAE3E,MAAM,WAAW,YAAY;IAC3B,uEAAuE;IACvE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,QAAQ,CAAC,UAAU,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;IAChC,oBAAoB;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,gDAAgD;IAChD,QAAQ,CAAC,IAAI,EAAE,SAAS,UAAU,EAAE,CAAC;CACtC;AAED,eAAO,MAAM,WAAW,EAAE,SAAS,YAAY,EA2Z9C,CAAC"}
1
+ {"version":3,"file":"wyckoffData.d.ts","sourceRoot":"","sources":["../../src/pointGroups/wyckoffData.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,4GAA4G;AAC5G,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,CAAC,CAAC;AAEtF,MAAM,WAAW,YAAY;IAC3B,uEAAuE;IACvE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,QAAQ,CAAC,UAAU,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;IAChC,iGAAiG;IACjG,QAAQ,CAAC,IAAI,CAAC,EAAE,cAAc,CAAC;IAC/B,oBAAoB;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,gDAAgD;IAChD,QAAQ,CAAC,IAAI,EAAE,SAAS,UAAU,EAAE,CAAC;CACtC;AAED,eAAO,MAAM,WAAW,EAAE,SAAS,YAAY,EAugC9C,CAAC"}