symcrys 0.8.0 → 0.9.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 +11 -2
- package/dist/cell.d.ts +5 -2
- package/dist/cell.d.ts.map +1 -1
- package/dist/cell.js +7 -7
- package/dist/cell.js.map +1 -1
- package/dist/crystalClasses.d.ts +13 -8
- package/dist/crystalClasses.d.ts.map +1 -1
- package/dist/crystalClasses.js +13 -8
- package/dist/crystalClasses.js.map +1 -1
- package/dist/indices.d.ts +3 -1
- package/dist/indices.d.ts.map +1 -1
- package/dist/indices.js +6 -2
- package/dist/indices.js.map +1 -1
- package/dist/linalg.d.ts +7 -1
- package/dist/linalg.d.ts.map +1 -1
- package/dist/linalg.js +20 -3
- package/dist/linalg.js.map +1 -1
- package/dist/operations.d.ts +6 -0
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +19 -0
- package/dist/operations.js.map +1 -1
- package/dist/plane.d.ts +225 -0
- package/dist/plane.d.ts.map +1 -0
- package/dist/plane.js +219 -0
- package/dist/plane.js.map +1 -0
- package/dist/pointGroups/identify.d.ts +4 -2
- package/dist/pointGroups/identify.d.ts.map +1 -1
- package/dist/pointGroups/identify.js +5 -18
- package/dist/pointGroups/identify.js.map +1 -1
- package/dist/pointGroups/orbits.d.ts +1 -1
- package/dist/pointGroups/orbits.d.ts.map +1 -1
- package/dist/pointGroups/orbits.js +3 -3
- package/dist/pointGroups/orbits.js.map +1 -1
- package/dist/pointGroups/properties.d.ts +6 -2
- package/dist/pointGroups/properties.d.ts.map +1 -1
- package/dist/pointGroups/properties.js +6 -2
- package/dist/pointGroups/properties.js.map +1 -1
- package/dist/siteSymmetry.d.ts +5 -3
- package/dist/siteSymmetry.d.ts.map +1 -1
- package/dist/siteSymmetry.js +6 -2
- package/dist/siteSymmetry.js.map +1 -1
- package/dist/spaceGroups/affine.d.ts +81 -0
- package/dist/spaceGroups/affine.d.ts.map +1 -0
- package/dist/spaceGroups/affine.js +245 -0
- package/dist/spaceGroups/affine.js.map +1 -0
- package/dist/spaceGroups/cell.d.ts +58 -0
- package/dist/spaceGroups/cell.d.ts.map +1 -0
- package/dist/spaceGroups/cell.js +297 -0
- package/dist/spaceGroups/cell.js.map +1 -0
- package/dist/spaceGroups/describe.d.ts +44 -0
- package/dist/spaceGroups/describe.d.ts.map +1 -0
- package/dist/spaceGroups/describe.js +92 -0
- package/dist/spaceGroups/describe.js.map +1 -0
- package/dist/spaceGroups/planeGroupData.d.ts +44 -0
- package/dist/spaceGroups/planeGroupData.d.ts.map +1 -0
- package/dist/spaceGroups/planeGroupData.js +371 -0
- package/dist/spaceGroups/planeGroupData.js.map +1 -0
- package/dist/spaceGroups/planeGroups.d.ts +28 -0
- package/dist/spaceGroups/planeGroups.d.ts.map +1 -0
- package/dist/spaceGroups/planeGroups.js +61 -0
- package/dist/spaceGroups/planeGroups.js.map +1 -0
- package/dist/spaceGroups/planePointGroups.d.ts +31 -0
- package/dist/spaceGroups/planePointGroups.d.ts.map +1 -0
- package/dist/spaceGroups/planePointGroups.js +77 -0
- package/dist/spaceGroups/planePointGroups.js.map +1 -0
- package/dist/spaceGroups/positions.d.ts +65 -0
- package/dist/spaceGroups/positions.d.ts.map +1 -0
- package/dist/spaceGroups/positions.js +183 -0
- package/dist/spaceGroups/positions.js.map +1 -0
- package/dist/spaceGroups/rational.d.ts +43 -0
- package/dist/spaceGroups/rational.d.ts.map +1 -0
- package/dist/spaceGroups/rational.js +95 -0
- package/dist/spaceGroups/rational.js.map +1 -0
- package/dist/tensors/tensorForm.d.ts +3 -1
- package/dist/tensors/tensorForm.d.ts.map +1 -1
- package/dist/tensors/tensorForm.js +3 -1
- package/dist/tensors/tensorForm.js.map +1 -1
- package/dist/tensors/tensorProperties.d.ts +4 -2
- package/dist/tensors/tensorProperties.d.ts.map +1 -1
- package/dist/tensors/tensorProperties.js +4 -2
- package/dist/tensors/tensorProperties.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +7 -2
- package/src/cell.ts +9 -8
- package/src/crystalClasses.ts +13 -8
- package/src/indices.ts +5 -2
- package/src/linalg.ts +21 -2
- package/src/operations.ts +20 -0
- package/src/plane.ts +455 -0
- package/src/pointGroups/identify.ts +5 -19
- package/src/pointGroups/orbits.ts +3 -3
- package/src/pointGroups/properties.ts +6 -2
- package/src/siteSymmetry.ts +6 -3
- package/src/spaceGroups/affine.ts +315 -0
- package/src/spaceGroups/cell.ts +371 -0
- package/src/spaceGroups/describe.ts +133 -0
- package/src/spaceGroups/planeGroupData.ts +407 -0
- package/src/spaceGroups/planeGroups.ts +75 -0
- package/src/spaceGroups/planePointGroups.ts +90 -0
- package/src/spaceGroups/positions.ts +237 -0
- package/src/spaceGroups/rational.ts +115 -0
- package/src/tensors/tensorForm.ts +3 -1
- package/src/tensors/tensorProperties.ts +4 -2
- package/src/version.ts +1 -1
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The 17 plane groups as ITA prints them (6th ed., 2016, Chapter 2.2, pp. 176–192, plane group n on
|
|
3
|
+
* p. 175 + n). The same data are in references/itc/vol-a-2016-plane-groups.md, which the reference
|
|
4
|
+
* test re-parses and compares with this file; change both only by transcription from print.
|
|
5
|
+
*
|
|
6
|
+
* Notation as in the transcription: a leading `-` is an overbar; coordinates in the lattice basis
|
|
7
|
+
* a, b; `<=` for ≤. The oriented site-symmetry symbols without the spaces of the print.
|
|
8
|
+
*/
|
|
9
|
+
/** The 17 plane groups in ITA's order. */
|
|
10
|
+
export const PLANE_GROUP_DATA = [
|
|
11
|
+
{
|
|
12
|
+
number: 1,
|
|
13
|
+
symbol: 'p1',
|
|
14
|
+
fullSymbol: 'p1',
|
|
15
|
+
pointGroup: '1',
|
|
16
|
+
system: 'oblique',
|
|
17
|
+
page: 176,
|
|
18
|
+
origin: 'arbitrary',
|
|
19
|
+
asymmetricUnit: '0 <= x <= 1; 0 <= y <= 1',
|
|
20
|
+
centring: [],
|
|
21
|
+
generalPosition: ['x,y'],
|
|
22
|
+
generators: [],
|
|
23
|
+
wyckoff: [[1, 'a', '1', ['x,y']]],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
number: 2,
|
|
27
|
+
symbol: 'p2',
|
|
28
|
+
fullSymbol: 'p2',
|
|
29
|
+
pointGroup: '2',
|
|
30
|
+
system: 'oblique',
|
|
31
|
+
page: 177,
|
|
32
|
+
origin: 'at 2',
|
|
33
|
+
asymmetricUnit: '0 <= x <= 1/2; 0 <= y <= 1',
|
|
34
|
+
centring: [],
|
|
35
|
+
generalPosition: ['x,y', '-x,-y'],
|
|
36
|
+
generators: [2],
|
|
37
|
+
wyckoff: [
|
|
38
|
+
[2, 'e', '1', ['x,y', '-x,-y']],
|
|
39
|
+
[1, 'd', '2', ['1/2,1/2']],
|
|
40
|
+
[1, 'c', '2', ['1/2,0']],
|
|
41
|
+
[1, 'b', '2', ['0,1/2']],
|
|
42
|
+
[1, 'a', '2', ['0,0']],
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
number: 3,
|
|
47
|
+
symbol: 'pm',
|
|
48
|
+
fullSymbol: 'p1m1',
|
|
49
|
+
pointGroup: 'm',
|
|
50
|
+
system: 'rectangular',
|
|
51
|
+
page: 178,
|
|
52
|
+
origin: 'on m',
|
|
53
|
+
asymmetricUnit: '0 <= x <= 1/2; 0 <= y <= 1',
|
|
54
|
+
centring: [],
|
|
55
|
+
generalPosition: ['x,y', '-x,y'],
|
|
56
|
+
generators: [2],
|
|
57
|
+
wyckoff: [
|
|
58
|
+
[2, 'c', '1', ['x,y', '-x,y']],
|
|
59
|
+
[1, 'b', '.m.', ['1/2,y']],
|
|
60
|
+
[1, 'a', '.m.', ['0,y']],
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
number: 4,
|
|
65
|
+
symbol: 'pg',
|
|
66
|
+
fullSymbol: 'p1g1',
|
|
67
|
+
pointGroup: 'm',
|
|
68
|
+
system: 'rectangular',
|
|
69
|
+
page: 179,
|
|
70
|
+
origin: 'on g',
|
|
71
|
+
asymmetricUnit: '0 <= x <= 1/2; 0 <= y <= 1',
|
|
72
|
+
centring: [],
|
|
73
|
+
generalPosition: ['x,y', '-x,y+1/2'],
|
|
74
|
+
generators: [2],
|
|
75
|
+
wyckoff: [[2, 'a', '1', ['x,y', '-x,y+1/2']]],
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
number: 5,
|
|
79
|
+
symbol: 'cm',
|
|
80
|
+
fullSymbol: 'c1m1',
|
|
81
|
+
pointGroup: 'm',
|
|
82
|
+
system: 'rectangular',
|
|
83
|
+
page: 180,
|
|
84
|
+
origin: 'on m',
|
|
85
|
+
asymmetricUnit: '0 <= x <= 1/2; 0 <= y <= 1/2',
|
|
86
|
+
centring: ['1/2,1/2'],
|
|
87
|
+
generalPosition: ['x,y', '-x,y'],
|
|
88
|
+
generators: [2],
|
|
89
|
+
wyckoff: [
|
|
90
|
+
[4, 'b', '1', ['x,y', '-x,y']],
|
|
91
|
+
[2, 'a', '.m.', ['0,y']],
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
number: 6,
|
|
96
|
+
symbol: 'p2mm',
|
|
97
|
+
fullSymbol: 'p2mm',
|
|
98
|
+
pointGroup: '2mm',
|
|
99
|
+
system: 'rectangular',
|
|
100
|
+
page: 181,
|
|
101
|
+
origin: 'at 2mm',
|
|
102
|
+
asymmetricUnit: '0 <= x <= 1/2; 0 <= y <= 1/2',
|
|
103
|
+
centring: [],
|
|
104
|
+
generalPosition: ['x,y', '-x,-y', '-x,y', 'x,-y'],
|
|
105
|
+
generators: [2, 3],
|
|
106
|
+
wyckoff: [
|
|
107
|
+
[4, 'i', '1', ['x,y', '-x,-y', '-x,y', 'x,-y']],
|
|
108
|
+
[2, 'h', '.m.', ['1/2,y', '1/2,-y']],
|
|
109
|
+
[2, 'g', '.m.', ['0,y', '0,-y']],
|
|
110
|
+
[2, 'f', '..m', ['x,1/2', '-x,1/2']],
|
|
111
|
+
[2, 'e', '..m', ['x,0', '-x,0']],
|
|
112
|
+
[1, 'd', '2mm', ['1/2,1/2']],
|
|
113
|
+
[1, 'c', '2mm', ['1/2,0']],
|
|
114
|
+
[1, 'b', '2mm', ['0,1/2']],
|
|
115
|
+
[1, 'a', '2mm', ['0,0']],
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
number: 7,
|
|
120
|
+
symbol: 'p2mg',
|
|
121
|
+
fullSymbol: 'p2mg',
|
|
122
|
+
pointGroup: '2mm',
|
|
123
|
+
system: 'rectangular',
|
|
124
|
+
page: 182,
|
|
125
|
+
origin: 'at 21g',
|
|
126
|
+
asymmetricUnit: '0 <= x <= 1/4; 0 <= y <= 1',
|
|
127
|
+
centring: [],
|
|
128
|
+
generalPosition: ['x,y', '-x,-y', '-x+1/2,y', 'x+1/2,-y'],
|
|
129
|
+
generators: [2, 3],
|
|
130
|
+
wyckoff: [
|
|
131
|
+
[4, 'd', '1', ['x,y', '-x,-y', '-x+1/2,y', 'x+1/2,-y']],
|
|
132
|
+
[2, 'c', '.m.', ['1/4,y', '3/4,-y']],
|
|
133
|
+
[2, 'b', '2..', ['0,1/2', '1/2,1/2']],
|
|
134
|
+
[2, 'a', '2..', ['0,0', '1/2,0']],
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
number: 8,
|
|
139
|
+
symbol: 'p2gg',
|
|
140
|
+
fullSymbol: 'p2gg',
|
|
141
|
+
pointGroup: '2mm',
|
|
142
|
+
system: 'rectangular',
|
|
143
|
+
page: 183,
|
|
144
|
+
origin: 'at 2',
|
|
145
|
+
asymmetricUnit: '0 <= x <= 1/2; 0 <= y <= 1/2',
|
|
146
|
+
centring: [],
|
|
147
|
+
generalPosition: ['x,y', '-x,-y', '-x+1/2,y+1/2', 'x+1/2,-y+1/2'],
|
|
148
|
+
generators: [2, 3],
|
|
149
|
+
wyckoff: [
|
|
150
|
+
[4, 'c', '1', ['x,y', '-x,-y', '-x+1/2,y+1/2', 'x+1/2,-y+1/2']],
|
|
151
|
+
[2, 'b', '2..', ['1/2,0', '0,1/2']],
|
|
152
|
+
[2, 'a', '2..', ['0,0', '1/2,1/2']],
|
|
153
|
+
],
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
number: 9,
|
|
157
|
+
symbol: 'c2mm',
|
|
158
|
+
fullSymbol: 'c2mm',
|
|
159
|
+
pointGroup: '2mm',
|
|
160
|
+
system: 'rectangular',
|
|
161
|
+
page: 184,
|
|
162
|
+
origin: 'at 2mm',
|
|
163
|
+
asymmetricUnit: '0 <= x <= 1/4; 0 <= y <= 1/2',
|
|
164
|
+
centring: ['1/2,1/2'],
|
|
165
|
+
generalPosition: ['x,y', '-x,-y', '-x,y', 'x,-y'],
|
|
166
|
+
generators: [2, 3],
|
|
167
|
+
wyckoff: [
|
|
168
|
+
[8, 'f', '1', ['x,y', '-x,-y', '-x,y', 'x,-y']],
|
|
169
|
+
[4, 'e', '.m.', ['0,y', '0,-y']],
|
|
170
|
+
[4, 'd', '..m', ['x,0', '-x,0']],
|
|
171
|
+
[4, 'c', '2..', ['1/4,1/4', '3/4,1/4']],
|
|
172
|
+
[2, 'b', '2mm', ['0,1/2']],
|
|
173
|
+
[2, 'a', '2mm', ['0,0']],
|
|
174
|
+
],
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
number: 10,
|
|
178
|
+
symbol: 'p4',
|
|
179
|
+
fullSymbol: 'p4',
|
|
180
|
+
pointGroup: '4',
|
|
181
|
+
system: 'square',
|
|
182
|
+
page: 185,
|
|
183
|
+
origin: 'at 4',
|
|
184
|
+
asymmetricUnit: '0 <= x <= 1/2; 0 <= y <= 1/2',
|
|
185
|
+
centring: [],
|
|
186
|
+
generalPosition: ['x,y', '-x,-y', '-y,x', 'y,-x'],
|
|
187
|
+
generators: [2, 3],
|
|
188
|
+
wyckoff: [
|
|
189
|
+
[4, 'd', '1', ['x,y', '-x,-y', '-y,x', 'y,-x']],
|
|
190
|
+
[2, 'c', '2..', ['1/2,0', '0,1/2']],
|
|
191
|
+
[1, 'b', '4..', ['1/2,1/2']],
|
|
192
|
+
[1, 'a', '4..', ['0,0']],
|
|
193
|
+
],
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
number: 11,
|
|
197
|
+
symbol: 'p4mm',
|
|
198
|
+
fullSymbol: 'p4mm',
|
|
199
|
+
pointGroup: '4mm',
|
|
200
|
+
system: 'square',
|
|
201
|
+
page: 186,
|
|
202
|
+
origin: 'at 4mm',
|
|
203
|
+
asymmetricUnit: '0 <= x <= 1/2; 0 <= y <= 1/2; x <= y',
|
|
204
|
+
centring: [],
|
|
205
|
+
generalPosition: ['x,y', '-x,-y', '-y,x', 'y,-x', '-x,y', 'x,-y', 'y,x', '-y,-x'],
|
|
206
|
+
generators: [2, 3, 5],
|
|
207
|
+
wyckoff: [
|
|
208
|
+
[8, 'g', '1', ['x,y', '-x,-y', '-y,x', 'y,-x', '-x,y', 'x,-y', 'y,x', '-y,-x']],
|
|
209
|
+
[4, 'f', '..m', ['x,x', '-x,-x', '-x,x', 'x,-x']],
|
|
210
|
+
[4, 'e', '.m.', ['x,1/2', '-x,1/2', '1/2,x', '1/2,-x']],
|
|
211
|
+
[4, 'd', '.m.', ['x,0', '-x,0', '0,x', '0,-x']],
|
|
212
|
+
[2, 'c', '2mm.', ['1/2,0', '0,1/2']],
|
|
213
|
+
[1, 'b', '4mm', ['1/2,1/2']],
|
|
214
|
+
[1, 'a', '4mm', ['0,0']],
|
|
215
|
+
],
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
number: 12,
|
|
219
|
+
symbol: 'p4gm',
|
|
220
|
+
fullSymbol: 'p4gm',
|
|
221
|
+
pointGroup: '4mm',
|
|
222
|
+
system: 'square',
|
|
223
|
+
page: 187,
|
|
224
|
+
origin: 'at 41g',
|
|
225
|
+
asymmetricUnit: '0 <= x <= 1/2; 0 <= y <= 1/2; y <= 1/2 - x',
|
|
226
|
+
centring: [],
|
|
227
|
+
generalPosition: ['x,y', '-x,-y', '-y,x', 'y,-x', '-x+1/2,y+1/2', 'x+1/2,-y+1/2', 'y+1/2,x+1/2', '-y+1/2,-x+1/2'],
|
|
228
|
+
generators: [2, 3, 5],
|
|
229
|
+
wyckoff: [
|
|
230
|
+
[8, 'd', '1', ['x,y', '-x,-y', '-y,x', 'y,-x', '-x+1/2,y+1/2', 'x+1/2,-y+1/2', 'y+1/2,x+1/2', '-y+1/2,-x+1/2']],
|
|
231
|
+
[4, 'c', '..m', ['x,x+1/2', '-x,-x+1/2', '-x+1/2,x', 'x+1/2,-x']],
|
|
232
|
+
[2, 'b', '2.mm', ['1/2,0', '0,1/2']],
|
|
233
|
+
[2, 'a', '4..', ['0,0', '1/2,1/2']],
|
|
234
|
+
],
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
number: 13,
|
|
238
|
+
symbol: 'p3',
|
|
239
|
+
fullSymbol: 'p3',
|
|
240
|
+
pointGroup: '3',
|
|
241
|
+
system: 'hexagonal',
|
|
242
|
+
page: 188,
|
|
243
|
+
origin: 'at 3',
|
|
244
|
+
asymmetricUnit: '0 <= x <= 2/3; 0 <= y <= 2/3; x <= (1 + y)/2; y <= min(1 - x, (1 + x)/2)',
|
|
245
|
+
vertices: ['0,0', '1/2,0', '2/3,1/3', '1/3,2/3', '0,1/2'],
|
|
246
|
+
centring: [],
|
|
247
|
+
generalPosition: ['x,y', '-y,x-y', '-x+y,-x'],
|
|
248
|
+
generators: [2],
|
|
249
|
+
wyckoff: [
|
|
250
|
+
[3, 'd', '1', ['x,y', '-y,x-y', '-x+y,-x']],
|
|
251
|
+
[1, 'c', '3..', ['2/3,1/3']],
|
|
252
|
+
[1, 'b', '3..', ['1/3,2/3']],
|
|
253
|
+
[1, 'a', '3..', ['0,0']],
|
|
254
|
+
],
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
number: 14,
|
|
258
|
+
symbol: 'p3m1',
|
|
259
|
+
fullSymbol: 'p3m1',
|
|
260
|
+
pointGroup: '3m',
|
|
261
|
+
system: 'hexagonal',
|
|
262
|
+
page: 189,
|
|
263
|
+
origin: 'at 3m1',
|
|
264
|
+
asymmetricUnit: '0 <= x <= 2/3; 0 <= y <= 2/3; x <= 2y; y <= min(1 - x, 2x)',
|
|
265
|
+
vertices: ['0,0', '2/3,1/3', '1/3,2/3'],
|
|
266
|
+
centring: [],
|
|
267
|
+
generalPosition: ['x,y', '-y,x-y', '-x+y,-x', '-y,-x', '-x+y,y', 'x,x-y'],
|
|
268
|
+
generators: [2, 4],
|
|
269
|
+
wyckoff: [
|
|
270
|
+
[6, 'e', '1', ['x,y', '-y,x-y', '-x+y,-x', '-y,-x', '-x+y,y', 'x,x-y']],
|
|
271
|
+
[3, 'd', '.m.', ['x,-x', 'x,2x', '-2x,-x']],
|
|
272
|
+
[1, 'c', '3m.', ['2/3,1/3']],
|
|
273
|
+
[1, 'b', '3m.', ['1/3,2/3']],
|
|
274
|
+
[1, 'a', '3m.', ['0,0']],
|
|
275
|
+
],
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
number: 15,
|
|
279
|
+
symbol: 'p31m',
|
|
280
|
+
fullSymbol: 'p31m',
|
|
281
|
+
pointGroup: '3m',
|
|
282
|
+
system: 'hexagonal',
|
|
283
|
+
page: 190,
|
|
284
|
+
origin: 'at 31m',
|
|
285
|
+
asymmetricUnit: '0 <= x <= 2/3; 0 <= y <= 1/2; x <= (1 + y)/2; y <= min(1 - x, x)',
|
|
286
|
+
vertices: ['0,0', '1/2,0', '2/3,1/3', '1/2,1/2'],
|
|
287
|
+
centring: [],
|
|
288
|
+
generalPosition: ['x,y', '-y,x-y', '-x+y,-x', 'y,x', 'x-y,-y', '-x,-x+y'],
|
|
289
|
+
generators: [2, 4],
|
|
290
|
+
wyckoff: [
|
|
291
|
+
[6, 'd', '1', ['x,y', '-y,x-y', '-x+y,-x', 'y,x', 'x-y,-y', '-x,-x+y']],
|
|
292
|
+
[3, 'c', '..m', ['x,0', '0,x', '-x,-x']],
|
|
293
|
+
[2, 'b', '3..', ['1/3,2/3', '2/3,1/3']],
|
|
294
|
+
[1, 'a', '3.m', ['0,0']],
|
|
295
|
+
],
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
number: 16,
|
|
299
|
+
symbol: 'p6',
|
|
300
|
+
fullSymbol: 'p6',
|
|
301
|
+
pointGroup: '6',
|
|
302
|
+
system: 'hexagonal',
|
|
303
|
+
page: 191,
|
|
304
|
+
origin: 'at 6',
|
|
305
|
+
asymmetricUnit: '0 <= x <= 2/3; 0 <= y <= 1/2; x <= (1 + y)/2; y <= min(1 - x, x)',
|
|
306
|
+
vertices: ['0,0', '1/2,0', '2/3,1/3', '1/2,1/2'],
|
|
307
|
+
centring: [],
|
|
308
|
+
generalPosition: ['x,y', '-y,x-y', '-x+y,-x', '-x,-y', 'y,-x+y', 'x-y,x'],
|
|
309
|
+
generators: [2, 4],
|
|
310
|
+
wyckoff: [
|
|
311
|
+
[6, 'd', '1', ['x,y', '-y,x-y', '-x+y,-x', '-x,-y', 'y,-x+y', 'x-y,x']],
|
|
312
|
+
[3, 'c', '2..', ['1/2,0', '0,1/2', '1/2,1/2']],
|
|
313
|
+
[2, 'b', '3..', ['1/3,2/3', '2/3,1/3']],
|
|
314
|
+
[1, 'a', '6..', ['0,0']],
|
|
315
|
+
],
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
number: 17,
|
|
319
|
+
symbol: 'p6mm',
|
|
320
|
+
fullSymbol: 'p6mm',
|
|
321
|
+
pointGroup: '6mm',
|
|
322
|
+
system: 'hexagonal',
|
|
323
|
+
page: 192,
|
|
324
|
+
origin: 'at 6mm',
|
|
325
|
+
asymmetricUnit: '0 <= x <= 2/3; 0 <= y <= 1/3; x <= (1 + y)/2; y <= x/2',
|
|
326
|
+
vertices: ['0,0', '1/2,0', '2/3,1/3'],
|
|
327
|
+
centring: [],
|
|
328
|
+
generalPosition: [
|
|
329
|
+
'x,y',
|
|
330
|
+
'-y,x-y',
|
|
331
|
+
'-x+y,-x',
|
|
332
|
+
'-x,-y',
|
|
333
|
+
'y,-x+y',
|
|
334
|
+
'x-y,x',
|
|
335
|
+
'-y,-x',
|
|
336
|
+
'-x+y,y',
|
|
337
|
+
'x,x-y',
|
|
338
|
+
'y,x',
|
|
339
|
+
'x-y,-y',
|
|
340
|
+
'-x,-x+y',
|
|
341
|
+
],
|
|
342
|
+
generators: [2, 4, 7],
|
|
343
|
+
wyckoff: [
|
|
344
|
+
[
|
|
345
|
+
12,
|
|
346
|
+
'f',
|
|
347
|
+
'1',
|
|
348
|
+
[
|
|
349
|
+
'x,y',
|
|
350
|
+
'-y,x-y',
|
|
351
|
+
'-x+y,-x',
|
|
352
|
+
'-x,-y',
|
|
353
|
+
'y,-x+y',
|
|
354
|
+
'x-y,x',
|
|
355
|
+
'-y,-x',
|
|
356
|
+
'-x+y,y',
|
|
357
|
+
'x,x-y',
|
|
358
|
+
'y,x',
|
|
359
|
+
'x-y,-y',
|
|
360
|
+
'-x,-x+y',
|
|
361
|
+
],
|
|
362
|
+
],
|
|
363
|
+
[6, 'e', '.m.', ['x,-x', 'x,2x', '-2x,-x', '-x,x', '-x,-2x', '2x,x']],
|
|
364
|
+
[6, 'd', '..m', ['x,0', '0,x', '-x,-x', '-x,0', '0,-x', 'x,x']],
|
|
365
|
+
[3, 'c', '2mm', ['1/2,0', '0,1/2', '1/2,1/2']],
|
|
366
|
+
[2, 'b', '3m.', ['1/3,2/3', '2/3,1/3']],
|
|
367
|
+
[1, 'a', '6mm', ['0,0']],
|
|
368
|
+
],
|
|
369
|
+
},
|
|
370
|
+
];
|
|
371
|
+
//# sourceMappingURL=planeGroupData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planeGroupData.js","sourceRoot":"","sources":["../../src/spaceGroups/planeGroupData.ts"],"names":[],"mappings":"A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E,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC;QACrC,QAAQ,EAAE,EAAE;QACZ,eAAe,EAAE;YACf,KAAK;YACL,QAAQ;YACR,SAAS;YACT,OAAO;YACP,QAAQ;YACR,OAAO;YACP,OAAO;YACP,QAAQ;YACR,OAAO;YACP,KAAK;YACL,QAAQ;YACR,SAAS;SACV;QACD,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACrB,OAAO,EAAE;YACP;gBACE,EAAE;gBACF,GAAG;gBACH,GAAG;gBACH;oBACE,KAAK;oBACL,QAAQ;oBACR,SAAS;oBACT,OAAO;oBACP,QAAQ;oBACR,OAAO;oBACP,OAAO;oBACP,QAAQ;oBACR,OAAO;oBACP,KAAK;oBACL,QAAQ;oBACR,SAAS;iBACV;aACF;YACD,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;YACrE,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;YAC/D,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;YAC9C,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;YACvC,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;SACzB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The 17 plane groups as exact operations: the general position of ITA in its numbering, the
|
|
3
|
+
* centring and ITA's selected generators (CLAUDE.md, "Plane groups (and later space groups)").
|
|
4
|
+
* Internal for now; the entry point `symcrys/plane` comes later.
|
|
5
|
+
*/
|
|
6
|
+
import { type ExactOperation } from './affine.js';
|
|
7
|
+
import { type PlaneGroupEntry } from './planeGroupData.js';
|
|
8
|
+
/** The short symbols of the 17 plane groups, in ITA's order. */
|
|
9
|
+
export declare const PLANE_GROUP_KEYS: string[];
|
|
10
|
+
/** The printed data of a plane group, by short symbol (`'p2mg'`) or number (7); throws if unknown. */
|
|
11
|
+
export declare function planeGroupEntry(key: string | number): PlaneGroupEntry;
|
|
12
|
+
/** The centring translations of a plane group as operations, (0,0) first. */
|
|
13
|
+
export declare function centringOperations(entry: PlaneGroupEntry): ExactOperation[];
|
|
14
|
+
/**
|
|
15
|
+
* The operations of a plane group, one per coset of the integer translations, translations in
|
|
16
|
+
* [0, 1): the general position in ITA's numbering, then, for a centred group, the same sequence
|
|
17
|
+
* with the centring (1/2, 1/2) added, as ITA prints the "(1/2,1/2)+ set". Throws if ITA's selected
|
|
18
|
+
* generators, with the integer translations and the centring, do not give exactly this set, which
|
|
19
|
+
* would be an error in the data.
|
|
20
|
+
*/
|
|
21
|
+
export declare function planeGroupOperations(key: string | number): ExactOperation[];
|
|
22
|
+
/**
|
|
23
|
+
* ITA's "Generators selected" of a plane group as operations, in printed order: the centring
|
|
24
|
+
* translation (for a centred group), then the operations named by number. The identity and the
|
|
25
|
+
* integer translations, which begin the printed line, are left out.
|
|
26
|
+
*/
|
|
27
|
+
export declare function planeGroupGenerators(key: string | number): ExactOperation[];
|
|
28
|
+
//# sourceMappingURL=planeGroups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planeGroups.d.ts","sourceRoot":"","sources":["../../src/spaceGroups/planeGroups.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAOL,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG7E,gEAAgE;AAChE,eAAO,MAAM,gBAAgB,UAAwC,CAAC;AAEtE,sGAAsG;AACtG,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,eAAe,CAMrE;AAED,6EAA6E;AAC7E,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,eAAe,GAAG,cAAc,EAAE,CAK3E;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,EAAE,CAgB3E;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,EAAE,CAI3E"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The 17 plane groups as exact operations: the general position of ITA in its numbering, the
|
|
3
|
+
* centring and ITA's selected generators (CLAUDE.md, "Plane groups (and later space groups)").
|
|
4
|
+
* Internal for now; the entry point `symcrys/plane` comes later.
|
|
5
|
+
*/
|
|
6
|
+
import { closure, compose, equalModLattice, parseOperation, reduceModLattice, translationOperation, } from './affine.js';
|
|
7
|
+
import { PLANE_GROUP_DATA } from './planeGroupData.js';
|
|
8
|
+
import { parseRational } from './rational.js';
|
|
9
|
+
/** The short symbols of the 17 plane groups, in ITA's order. */
|
|
10
|
+
export const PLANE_GROUP_KEYS = PLANE_GROUP_DATA.map((g) => g.symbol);
|
|
11
|
+
/** The printed data of a plane group, by short symbol (`'p2mg'`) or number (7); throws if unknown. */
|
|
12
|
+
export function planeGroupEntry(key) {
|
|
13
|
+
const entry = PLANE_GROUP_DATA.find((g) => g.symbol === key || g.number === key);
|
|
14
|
+
if (!entry) {
|
|
15
|
+
throw new RangeError(`Unknown plane group: ${JSON.stringify(key)}`);
|
|
16
|
+
}
|
|
17
|
+
return entry;
|
|
18
|
+
}
|
|
19
|
+
/** The centring translations of a plane group as operations, (0,0) first. */
|
|
20
|
+
export function centringOperations(entry) {
|
|
21
|
+
return [
|
|
22
|
+
translationOperation([parseRational('0'), parseRational('0')]),
|
|
23
|
+
...entry.centring.map((t) => translationOperation(t.split(',').map(parseRational))),
|
|
24
|
+
];
|
|
25
|
+
}
|
|
26
|
+
const cache = new Map();
|
|
27
|
+
/**
|
|
28
|
+
* The operations of a plane group, one per coset of the integer translations, translations in
|
|
29
|
+
* [0, 1): the general position in ITA's numbering, then, for a centred group, the same sequence
|
|
30
|
+
* with the centring (1/2, 1/2) added, as ITA prints the "(1/2,1/2)+ set". Throws if ITA's selected
|
|
31
|
+
* generators, with the integer translations and the centring, do not give exactly this set, which
|
|
32
|
+
* would be an error in the data.
|
|
33
|
+
*/
|
|
34
|
+
export function planeGroupOperations(key) {
|
|
35
|
+
const entry = planeGroupEntry(key);
|
|
36
|
+
const cached = cache.get(entry.number);
|
|
37
|
+
if (cached)
|
|
38
|
+
return cached;
|
|
39
|
+
const general = entry.generalPosition.map(parseOperation);
|
|
40
|
+
const ops = centringOperations(entry).flatMap((t) => general.map((op) => reduceModLattice(compose(t, op))));
|
|
41
|
+
const generated = closure(planeGroupGenerators(entry.number), { dimension: 2 });
|
|
42
|
+
const same = generated.length === ops.length &&
|
|
43
|
+
generated.every((g) => ops.some((op) => equalModLattice(op, g))) &&
|
|
44
|
+
ops.every((op, i) => ops.findIndex((o) => equalModLattice(o, op)) === i);
|
|
45
|
+
if (!same) {
|
|
46
|
+
throw new Error(`The selected generators of ${entry.symbol} do not give its general position`);
|
|
47
|
+
}
|
|
48
|
+
cache.set(entry.number, ops);
|
|
49
|
+
return ops;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* ITA's "Generators selected" of a plane group as operations, in printed order: the centring
|
|
53
|
+
* translation (for a centred group), then the operations named by number. The identity and the
|
|
54
|
+
* integer translations, which begin the printed line, are left out.
|
|
55
|
+
*/
|
|
56
|
+
export function planeGroupGenerators(key) {
|
|
57
|
+
const entry = planeGroupEntry(key);
|
|
58
|
+
const general = entry.generalPosition.map(parseOperation);
|
|
59
|
+
return [...centringOperations(entry).slice(1), ...entry.generators.map((n) => general[n - 1])];
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=planeGroups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planeGroups.js","sourceRoot":"","sources":["../../src/spaceGroups/planeGroups.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,OAAO,EACP,OAAO,EACP,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,oBAAoB,GAErB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAwB,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,gEAAgE;AAChE,MAAM,CAAC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,sGAAsG;AACtG,MAAM,UAAU,eAAe,CAAC,GAAoB;IAClD,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC;IACjF,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,UAAU,CAAC,wBAAwB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACtE,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,kBAAkB,CAAC,KAAsB;IACvD,OAAO;QACL,oBAAoB,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;QAC9D,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,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AE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,8BAA8B,KAAK,CAAC,MAAM,mCAAmC,CAAC,CAAC;IACjG,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,OAAO,GAAG,CAAC;AACb,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,GAAoB;IACvD,MAAM,KAAK,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;IACnC,MAAM,OAAO,GAAG,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAC1D,OAAO,CAAC,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACjG,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ten plane point groups (ITA 6th ed., Table 3.2.1.1, p. 720), `3m` in its two orientations
|
|
3
|
+
* `3m1` and `31m` (Ch. 3.2, p. 721, item (d)). Their operations are the linear parts of the
|
|
4
|
+
* symmorphic plane group of each, in ITA's order (pm for m, p3m1 and p31m for the two settings of
|
|
5
|
+
* 3m), so that the point group of a plane group is its linear part and one data source serves both.
|
|
6
|
+
* Internal; exported through `symcrys/plane`.
|
|
7
|
+
*/
|
|
8
|
+
import { type ExactOperation } from './affine.js';
|
|
9
|
+
import { type PlaneSystem } from './planeGroupData.js';
|
|
10
|
+
/** The keys of the ten plane point groups, in the order of ITA Table 3.2.1.1. */
|
|
11
|
+
export declare const PLANE_POINT_GROUP_KEYS: readonly ["1", "2", "m", "2mm", "4", "4mm", "3", "3m", "6", "6mm"];
|
|
12
|
+
/** The key of a plane point group. */
|
|
13
|
+
export type PlanePointGroupKey = (typeof PLANE_POINT_GROUP_KEYS)[number];
|
|
14
|
+
/** The point group of a plane group and its setting: the key under which the plane group's symbol appears in `SOURCE`. */
|
|
15
|
+
export declare function planePointGroupOf(groupSymbol: string): {
|
|
16
|
+
key: PlanePointGroupKey;
|
|
17
|
+
setting: number;
|
|
18
|
+
};
|
|
19
|
+
/** True if `key` is the key of a plane point group. */
|
|
20
|
+
export declare function isPlanePointGroupKey(key: unknown): key is PlanePointGroupKey;
|
|
21
|
+
/** The number of settings of a plane point group: 2 for `3m`, otherwise 1. */
|
|
22
|
+
export declare function planePointGroupSettingCount(key: PlanePointGroupKey): number;
|
|
23
|
+
/** The symbol of a plane point group in a setting: `3m1` or `31m` for `3m`, otherwise the key. */
|
|
24
|
+
export declare function planePointGroupSymbol(key: PlanePointGroupKey, setting?: number): string;
|
|
25
|
+
/** The crystal system of a plane point group. */
|
|
26
|
+
export declare function planePointGroupSystem(key: PlanePointGroupKey): PlaneSystem;
|
|
27
|
+
/** The operations of a plane point group in a setting, in ITA's order, as operations without translation. */
|
|
28
|
+
export declare function planePointGroupOperations(key: PlanePointGroupKey, setting?: number): ExactOperation[];
|
|
29
|
+
/** The generators of a plane point group: the linear parts of ITA's selected generators of its symmorphic plane group. */
|
|
30
|
+
export declare function planePointGroupGenerators(key: PlanePointGroupKey, setting?: number): ExactOperation[];
|
|
31
|
+
//# sourceMappingURL=planePointGroups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planePointGroups.d.ts","sourceRoot":"","sources":["../../src/spaceGroups/planePointGroups.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIvD,iFAAiF;AACjF,eAAO,MAAM,sBAAsB,oEAAqE,CAAC;AAEzG,sCAAsC;AACtC,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAgBzE,0HAA0H;AAC1H,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG;IAAE,GAAG,EAAE,kBAAkB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAQnG;AAED,uDAAuD;AACvD,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,kBAAkB,CAE5E;AAWD,8EAA8E;AAC9E,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,kBAAkB,GAAG,MAAM,CAE3E;AAED,kGAAkG;AAClG,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,kBAAkB,EAAE,OAAO,SAAI,GAAG,MAAM,CAGlF;AAED,iDAAiD;AACjD,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,kBAAkB,GAAG,WAAW,CAE1E;AAOD,6GAA6G;AAC7G,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,kBAAkB,EAAE,OAAO,SAAI,GAAG,cAAc,EAAE,CAEhG;AAED,0HAA0H;AAC1H,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,kBAAkB,EAAE,OAAO,SAAI,GAAG,cAAc,EAAE,CAIhG"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ten plane point groups (ITA 6th ed., Table 3.2.1.1, p. 720), `3m` in its two orientations
|
|
3
|
+
* `3m1` and `31m` (Ch. 3.2, p. 721, item (d)). Their operations are the linear parts of the
|
|
4
|
+
* symmorphic plane group of each, in ITA's order (pm for m, p3m1 and p31m for the two settings of
|
|
5
|
+
* 3m), so that the point group of a plane group is its linear part and one data source serves both.
|
|
6
|
+
* Internal; exported through `symcrys/plane`.
|
|
7
|
+
*/
|
|
8
|
+
import {} from './affine.js';
|
|
9
|
+
import {} from './planeGroupData.js';
|
|
10
|
+
import { planeGroupEntry, planeGroupGenerators, planeGroupOperations } from './planeGroups.js';
|
|
11
|
+
import { ZERO } from './rational.js';
|
|
12
|
+
/** The keys of the ten plane point groups, in the order of ITA Table 3.2.1.1. */
|
|
13
|
+
export const PLANE_POINT_GROUP_KEYS = ['1', '2', 'm', '2mm', '4', '4mm', '3', '3m', '6', '6mm'];
|
|
14
|
+
/** The symmorphic plane group of each point group and setting, whose linear parts it is. */
|
|
15
|
+
const SOURCE = {
|
|
16
|
+
'1': ['p1'],
|
|
17
|
+
'2': ['p2'],
|
|
18
|
+
m: ['pm'],
|
|
19
|
+
'2mm': ['p2mm'],
|
|
20
|
+
'4': ['p4'],
|
|
21
|
+
'4mm': ['p4mm'],
|
|
22
|
+
'3': ['p3'],
|
|
23
|
+
'3m': ['p3m1', 'p31m'],
|
|
24
|
+
'6': ['p6'],
|
|
25
|
+
'6mm': ['p6mm'],
|
|
26
|
+
};
|
|
27
|
+
/** The point group of a plane group and its setting: the key under which the plane group's symbol appears in `SOURCE`. */
|
|
28
|
+
export function planePointGroupOf(groupSymbol) {
|
|
29
|
+
for (const key of PLANE_POINT_GROUP_KEYS) {
|
|
30
|
+
const i = SOURCE[key].indexOf(groupSymbol);
|
|
31
|
+
if (i >= 0)
|
|
32
|
+
return { key, setting: i + 1 };
|
|
33
|
+
}
|
|
34
|
+
// A plane group that is not symmorphic has the setting of the symmorphic group of its point group.
|
|
35
|
+
const entry = planeGroupEntry(groupSymbol);
|
|
36
|
+
return { key: entry.pointGroup, setting: 1 };
|
|
37
|
+
}
|
|
38
|
+
/** True if `key` is the key of a plane point group. */
|
|
39
|
+
export function isPlanePointGroupKey(key) {
|
|
40
|
+
return typeof key === 'string' && PLANE_POINT_GROUP_KEYS.includes(key);
|
|
41
|
+
}
|
|
42
|
+
/** The symmorphic plane group for a point group and a setting (1-based); throws for an unknown one. */
|
|
43
|
+
function source(key, setting = 1) {
|
|
44
|
+
const list = SOURCE[key];
|
|
45
|
+
if (!Number.isInteger(setting) || setting < 1 || setting > list.length) {
|
|
46
|
+
throw new RangeError(`The plane point group ${key} has no setting ${String(setting)}`);
|
|
47
|
+
}
|
|
48
|
+
return list[setting - 1];
|
|
49
|
+
}
|
|
50
|
+
/** The number of settings of a plane point group: 2 for `3m`, otherwise 1. */
|
|
51
|
+
export function planePointGroupSettingCount(key) {
|
|
52
|
+
return SOURCE[key].length;
|
|
53
|
+
}
|
|
54
|
+
/** The symbol of a plane point group in a setting: `3m1` or `31m` for `3m`, otherwise the key. */
|
|
55
|
+
export function planePointGroupSymbol(key, setting = 1) {
|
|
56
|
+
const full = planeGroupEntry(source(key, setting)).fullSymbol.slice(1);
|
|
57
|
+
return key === '3m' ? full : key;
|
|
58
|
+
}
|
|
59
|
+
/** The crystal system of a plane point group. */
|
|
60
|
+
export function planePointGroupSystem(key) {
|
|
61
|
+
return planeGroupEntry(source(key)).system;
|
|
62
|
+
}
|
|
63
|
+
const linear = (op) => ({
|
|
64
|
+
matrix: op.matrix,
|
|
65
|
+
translation: op.translation.map(() => ZERO),
|
|
66
|
+
});
|
|
67
|
+
/** The operations of a plane point group in a setting, in ITA's order, as operations without translation. */
|
|
68
|
+
export function planePointGroupOperations(key, setting = 1) {
|
|
69
|
+
return planeGroupOperations(source(key, setting)).map(linear);
|
|
70
|
+
}
|
|
71
|
+
/** The generators of a plane point group: the linear parts of ITA's selected generators of its symmorphic plane group. */
|
|
72
|
+
export function planePointGroupGenerators(key, setting = 1) {
|
|
73
|
+
return planeGroupGenerators(source(key, setting))
|
|
74
|
+
.filter((op) => !(op.matrix[0][0] === 1 && op.matrix[0][1] === 0 && op.matrix[1][0] === 0 && op.matrix[1][1] === 1))
|
|
75
|
+
.map(linear);
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=planePointGroups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planePointGroups.js","sourceRoot":"","sources":["../../src/spaceGroups/planePointGroups.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAuB,MAAM,aAAa,CAAC;AAClD,OAAO,EAAoB,MAAM,qBAAqB,C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