symcrys 0.6.0 → 0.7.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 +5 -4
- package/dist/crystalClasses.d.ts +106 -1
- package/dist/crystalClasses.d.ts.map +1 -1
- package/dist/crystalClasses.js +80 -1
- package/dist/crystalClasses.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lattice.d.ts +5 -1
- package/dist/lattice.d.ts.map +1 -1
- package/dist/lattice.js +3 -1
- package/dist/lattice.js.map +1 -1
- package/dist/magnetic.d.ts +3 -0
- package/dist/magnetic.d.ts.map +1 -1
- package/dist/magnetic.js +2 -0
- package/dist/magnetic.js.map +1 -1
- package/dist/operations.d.ts +2 -0
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js.map +1 -1
- package/dist/pointGroups/crystalForms.d.ts +70 -0
- package/dist/pointGroups/crystalForms.d.ts.map +1 -0
- package/dist/pointGroups/crystalForms.js +69 -0
- package/dist/pointGroups/crystalForms.js.map +1 -0
- package/dist/pointGroups/crystalFormsData.d.ts +32 -0
- package/dist/pointGroups/crystalFormsData.d.ts.map +1 -0
- package/dist/pointGroups/crystalFormsData.js +518 -0
- package/dist/pointGroups/crystalFormsData.js.map +1 -0
- package/dist/pointGroups/data.d.ts +2 -1
- package/dist/pointGroups/data.d.ts.map +1 -1
- package/dist/pointGroups/data.js.map +1 -1
- package/dist/pointGroups/elements.d.ts +9 -2
- package/dist/pointGroups/elements.d.ts.map +1 -1
- package/dist/pointGroups/elements.js +7 -3
- package/dist/pointGroups/elements.js.map +1 -1
- package/dist/pointGroups/identify.d.ts +75 -0
- package/dist/pointGroups/identify.d.ts.map +1 -0
- package/dist/pointGroups/identify.js +193 -0
- package/dist/pointGroups/identify.js.map +1 -0
- package/dist/pointGroups/magneticData.d.ts +6 -1
- package/dist/pointGroups/magneticData.d.ts.map +1 -1
- package/dist/pointGroups/magneticData.js +4 -0
- package/dist/pointGroups/magneticData.js.map +1 -1
- package/dist/pointGroups/orbits.d.ts +85 -0
- package/dist/pointGroups/orbits.d.ts.map +1 -0
- package/dist/pointGroups/orbits.js +134 -0
- package/dist/pointGroups/orbits.js.map +1 -0
- package/dist/pointGroups/pointGroups.d.ts +10 -2
- package/dist/pointGroups/pointGroups.d.ts.map +1 -1
- package/dist/pointGroups/pointGroups.js +2 -2
- package/dist/pointGroups/pointGroups.js.map +1 -1
- package/dist/pointGroups/wyckoff.d.ts +42 -1
- package/dist/pointGroups/wyckoff.d.ts.map +1 -1
- package/dist/pointGroups/wyckoff.js +55 -27
- package/dist/pointGroups/wyckoff.js.map +1 -1
- package/dist/siteSymmetry.d.ts +2 -1
- package/dist/siteSymmetry.d.ts.map +1 -1
- package/dist/siteSymmetry.js.map +1 -1
- package/dist/tensors/propertyTable.d.ts +12 -2
- package/dist/tensors/propertyTable.d.ts.map +1 -1
- package/dist/tensors/propertyTable.js +11 -2
- package/dist/tensors/propertyTable.js.map +1 -1
- package/dist/tensors/tensorForm.d.ts +6 -1
- package/dist/tensors/tensorForm.d.ts.map +1 -1
- package/dist/tensors/tensorForm.js +1 -1
- package/dist/tensors/tensorForm.js.map +1 -1
- package/dist/version.d.ts +6 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +6 -2
- package/dist/version.js.map +1 -1
- package/package.json +2 -2
- package/src/crystalClasses.ts +164 -3
- package/src/index.ts +12 -0
- package/src/lattice.ts +5 -1
- package/src/magnetic.ts +18 -0
- package/src/operations.ts +2 -0
- package/src/pointGroups/crystalForms.ts +143 -0
- package/src/pointGroups/crystalFormsData.ts +539 -0
- package/src/pointGroups/data.ts +4 -1
- package/src/pointGroups/elements.ts +10 -3
- package/src/pointGroups/identify.ts +255 -0
- package/src/pointGroups/magneticData.ts +7 -1
- package/src/pointGroups/orbits.ts +228 -0
- package/src/pointGroups/pointGroups.ts +10 -2
- package/src/pointGroups/wyckoff.ts +61 -26
- package/src/siteSymmetry.ts +2 -1
- package/src/tensors/propertyTable.ts +12 -2
- package/src/tensors/tensorForm.ts +6 -1
- package/src/version.ts +6 -2
package/dist/siteSymmetry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"siteSymmetry.js","sourceRoot":"","sources":["../src/siteSymmetry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAa,MAAM,aAAa,CAAC;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"siteSymmetry.js","sourceRoot":"","sources":["../src/siteSymmetry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAa,MAAM,aAAa,CAAC;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AA+B1C,SAAS,IAAI,CAAC,CAAO;IACnB,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;QAAE,MAAM,IAAI,UAAU,CAAC,oBAAoB,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACnG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AACxC,CAAC;AAED,SAAS,KAAK,CAAC,EAAa,EAAE,CAAO,EAAE,SAAiB;IACtD,MAAM,CAAC,GAAG,KAAK,CAAC,EAAE,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S,EAAE,CAAC;YACvB,MAAM,IAAI,UAAU,CAClB,uDAAuD,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,SAAS,yBAAyB,CAC9H,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,GAAG,WAAW,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;QACnD,IAAI,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC;YAC3B,OAAO,GAAG,GAAG,CAAC;YACd,SAAS,GAAG,IAAI,CAAC;YACjB,MAAM;QACR,CAAC;QACD,GAAG,GAAG,IAAI,CAAC;IACb,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;QAClC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAS;QAC3C,YAAY,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM;QACzF,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;KACzD,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* name up here (docs/conventions.md, "Named tensor properties").
|
|
6
6
|
*/
|
|
7
7
|
import type { TensorSpec } from './tensorForm.js';
|
|
8
|
+
/** A named property: the tensor that describes it, what it is and where it is defined. */
|
|
8
9
|
export interface TensorProperty {
|
|
9
10
|
/** The kind of tensor whose non-zero form means that the property is allowed. */
|
|
10
11
|
readonly spec: TensorSpec;
|
|
@@ -14,16 +15,25 @@ export interface TensorProperty {
|
|
|
14
15
|
readonly source: string;
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
|
-
* The named tensor properties.
|
|
18
|
-
*
|
|
18
|
+
* The named tensor properties. For each name, the tensor that describes the property, what it is,
|
|
19
|
+
* and its print source. `'gyrotropic'` is optical activity.
|
|
20
|
+
*
|
|
21
|
+
* @remarks Names are adjectives, one lower-case word each (maintainer, 2026-11-19, #41).
|
|
19
22
|
*/
|
|
20
23
|
export declare const TENSOR_PROPERTIES: Readonly<{
|
|
24
|
+
/** Spontaneous polarization: a time-even polar vector. */
|
|
21
25
|
pyroelectric: TensorProperty;
|
|
26
|
+
/** Ferroaxial order: a time-even axial vector. */
|
|
22
27
|
ferroaxial: TensorProperty;
|
|
28
|
+
/** The piezoelectric effect (and second-harmonic generation, which has the same tensor): polar, rank 3, symmetric in j, k. */
|
|
23
29
|
piezoelectric: TensorProperty;
|
|
30
|
+
/** Optical activity: the symmetric axial tensor of rank 2. */
|
|
24
31
|
gyrotropic: TensorProperty;
|
|
32
|
+
/** Spontaneous magnetization: a time-odd axial vector (magnetic API only). */
|
|
25
33
|
ferromagnetic: TensorProperty;
|
|
34
|
+
/** The linear magnetoelectric effect: a time-odd axial tensor of rank 2 (magnetic API only). */
|
|
26
35
|
magnetoelectric: TensorProperty;
|
|
36
|
+
/** The piezomagnetic effect: a time-odd axial tensor of rank 3, symmetric in j, k (magnetic API only). */
|
|
27
37
|
piezomagnetic: TensorProperty;
|
|
28
38
|
}>;
|
|
29
39
|
/** Name of a tensor property in `TENSOR_PROPERTIES`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertyTable.d.ts","sourceRoot":"","sources":["../../src/tensors/propertyTable.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,cAAc;IAC7B,iFAAiF;IACjF,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,gDAAgD;IAChD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,yDAAyD;IACzD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAKD
|
|
1
|
+
{"version":3,"file":"propertyTable.d.ts","sourceRoot":"","sources":["../../src/tensors/propertyTable.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,0FAA0F;AAC1F,MAAM,WAAW,cAAc;IAC7B,iFAAiF;IACjF,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,gDAAgD;IAChD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,yDAAyD;IACzD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAKD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;IAC5B,0DAA0D;;IAM1D,kDAAkD;;IAMlD,8HAA8H;;IAM9H,8DAA8D;;IAM9D,8EAA8E;;IAM9E,gGAAgG;;IAMhG,0GAA0G;;EAMjE,CAAC;AAE5C,wDAAwD;AACxD,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAEhE,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,EAAoD,SAAS,kBAAkB,EAAE,CAAC;AAEpH,sFAAsF;AACtF,wBAAgB,MAAM,CAAC,UAAU,EAAE,UAAU,GAAG,kBAAkB,GAAG,UAAU,CAQ9E"}
|
|
@@ -6,16 +6,25 @@
|
|
|
6
6
|
*/
|
|
7
7
|
const property = (spec, description, source) => Object.freeze({ spec: Object.freeze(spec), description, source });
|
|
8
8
|
/**
|
|
9
|
-
* The named tensor properties.
|
|
10
|
-
*
|
|
9
|
+
* The named tensor properties. For each name, the tensor that describes the property, what it is,
|
|
10
|
+
* and its print source. `'gyrotropic'` is optical activity.
|
|
11
|
+
*
|
|
12
|
+
* @remarks Names are adjectives, one lower-case word each (maintainer, 2026-11-19, #41).
|
|
11
13
|
*/
|
|
12
14
|
export const TENSOR_PROPERTIES = Object.freeze({
|
|
15
|
+
/** Spontaneous polarization: a time-even polar vector. */
|
|
13
16
|
pyroelectric: property({ rank: 1, parity: 'polar', timeParity: 'i', intrinsic: 'none' }, 'Spontaneous electric polarization, which changes with temperature: a polar vector p_i.', 'ITC Vol. D (2013), § 1.1.4.4.2, p. 12; classes: ITA (2016) Table 3.2.2.1, p. 738'),
|
|
17
|
+
/** Ferroaxial order: a time-even axial vector. */
|
|
14
18
|
ferroaxial: property({ rank: 1, parity: 'axial', timeParity: 'i', intrinsic: 'none' }, 'Ferroaxial (ferro-rotational) order, e.g. a net rotation of structural units about an axis: an axial vector A_i.', 'Hlinka, Privratska, Ondrejkovic & Janovec, Phys. Rev. Lett. 116, 177602 (2016); classes: Birss (1966), Tables 4a and 4c, pp. 56–58'),
|
|
19
|
+
/** The piezoelectric effect (and second-harmonic generation, which has the same tensor): polar, rank 3, symmetric in j, k. */
|
|
15
20
|
piezoelectric: property({ rank: 3, parity: 'polar', timeParity: 'i', intrinsic: 'jk' }, 'Electric polarization linear in stress, P_i = d_ijk T_jk: a polar tensor of rank 3, symmetric in j, k.', 'ITC Vol. D (2013), § 1.1.4.4.3, p. 12; classes: ITA (2016) Table 3.2.2.1, p. 738'),
|
|
21
|
+
/** Optical activity: the symmetric axial tensor of rank 2. */
|
|
16
22
|
gyrotropic: property({ rank: 2, parity: 'axial', timeParity: 'i', intrinsic: 'ij' }, 'Optical activity (optical rotation), G = g_ij α_i α_j: the symmetric part of the axial gyration tensor of rank 2.', 'ITC Vol. D (2013), § 1.1.4.10.7.2, p. 30; classes: ITA (2016) Table 3.2.2.1, p. 738'),
|
|
23
|
+
/** Spontaneous magnetization: a time-odd axial vector (magnetic API only). */
|
|
17
24
|
ferromagnetic: property({ rank: 1, parity: 'axial', timeParity: 'c', intrinsic: 'none' }, 'Spontaneous magnetization M_s (ferromagnets, ferrimagnets, weak ferromagnets): an axial vector that changes sign under time reversal.', 'ITC Vol. D (2013), § 1.5.2.1 with Table 1.5.2.4, p. 113'),
|
|
25
|
+
/** The linear magnetoelectric effect: a time-odd axial tensor of rank 2 (magnetic API only). */
|
|
18
26
|
magnetoelectric: property({ rank: 2, parity: 'axial', timeParity: 'c', intrinsic: 'none' }, 'Linear magnetoelectric effect, P_i = α_ij H_j: an axial tensor of rank 2 that changes sign under time reversal.', 'ITC Vol. D (2013), § 1.5.8.1 with eqs. (1.5.8.2), (1.5.8.3) and Table 1.5.8.1, pp. 139–140'),
|
|
27
|
+
/** The piezomagnetic effect: a time-odd axial tensor of rank 3, symmetric in j, k (magnetic API only). */
|
|
19
28
|
piezomagnetic: property({ rank: 3, parity: 'axial', timeParity: 'c', intrinsic: 'jk' }, 'Magnetization linear in stress, M_i = Λ_ijk T_jk: an axial tensor of rank 3, symmetric in j, k, that changes sign under time reversal.', 'ITC Vol. D (2013), § 1.5.7.1 with eq. (1.5.7.2) and Table 1.5.7.1, pp. 134–135'),
|
|
20
29
|
});
|
|
21
30
|
/** The names of the tensor properties, in the order of `TENSOR_PROPERTIES`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertyTable.js","sourceRoot":"","sources":["../../src/tensors/propertyTable.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"propertyTable.js","sourceRoot":"","sources":["../../src/tensors/propertyTable.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAcH,MAAM,QAAQ,GAAG,CAAC,IAAgB,EAAE,WAAmB,EAAE,MAAc,EAAkB,EAAE,CACzF,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7C,0DAA0D;IAC1D,YAAY,EAAE,QAAQ,CACpB,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,SAAS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M,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAkC,CAAC;AAEpH,sFAAsF;AACtF,MAAM,UAAU,MAAM,CAAC,UAA2C;IAChE,IAAI,OAAO,UAAU,KAAK,QAAQ;QAAE,OAAO,UAAU,CAAC;IACtD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,UAAU,CAAC,EAAE,CAAC;QAClD,MAAM,IAAI,UAAU,CAClB,4BAA4B,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,YAAY,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CACtG,CAAC;IACJ,CAAC;IACD,OAAO,iBAAiB,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC;AAC5C,CAAC"}
|
|
@@ -30,9 +30,13 @@ export type TimeParity = 'i' | 'c';
|
|
|
30
30
|
export type IntrinsicSymmetry = 'none' | 'ij' | 'jk' | 'ij_kl' | 'voigt';
|
|
31
31
|
/** The kind of tensor, as in birss-app. */
|
|
32
32
|
export interface TensorSpec {
|
|
33
|
+
/** Number of indices, 0 to 4. */
|
|
33
34
|
readonly rank: TensorRank;
|
|
35
|
+
/** `'polar'` or `'axial'`: whether an improper operation changes the sign (factor det R). */
|
|
34
36
|
readonly parity: TensorParity;
|
|
37
|
+
/** `'i'` (time-even) or `'c'` (time-odd): whether time reversal changes the sign. */
|
|
35
38
|
readonly timeParity: TimeParity;
|
|
39
|
+
/** The index symmetry of the tensor. */
|
|
36
40
|
readonly intrinsic: IntrinsicSymmetry;
|
|
37
41
|
}
|
|
38
42
|
/**
|
|
@@ -41,6 +45,7 @@ export interface TensorSpec {
|
|
|
41
45
|
* components has length 3^rank (flat index, see the module documentation).
|
|
42
46
|
*/
|
|
43
47
|
export interface TensorForm {
|
|
48
|
+
/** The rank of the tensor. */
|
|
44
49
|
readonly rank: TensorRank;
|
|
45
50
|
/**
|
|
46
51
|
* A basis of the allowed tensors in reduced row echelon form: one row per free parameter, with 1
|
|
@@ -74,7 +79,7 @@ export declare function tensorForm(key: MagneticPointGroupKey, spec: TensorSpec
|
|
|
74
79
|
* surface normal (`siteSymmetry`) or the operations of a distorted crystal. The tensor is given by
|
|
75
80
|
* its specification or by the name of a property in `TENSOR_PROPERTIES`. The operations are
|
|
76
81
|
* Cartesian and orthogonal, and each says whether it is combined with time reversal
|
|
77
|
-
* (`timeReversal`, true or false); a list that is not closed is closed first.
|
|
82
|
+
* (`timeReversal`, `true` or `false`); a list that is not closed is closed first.
|
|
78
83
|
*/
|
|
79
84
|
export declare function tensorFormOf(operations: readonly Operation[], spec: TensorSpec | TensorPropertyName): TensorForm;
|
|
80
85
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tensorForm.d.ts","sourceRoot":"","sources":["../../src/tensors/tensorForm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAO,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAkD,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAwB,KAAK,qBAAqB,EAAE,KAAK,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACtH,OAAO,EAAU,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAIrE,yCAAyC;AACzC,MAAM,MAAM,UAAU,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE3C,6EAA6E;AAC7E,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;AAE7C,wFAAwF;AACxF,MAAM,MAAM,UAAU,GAAG,GAAG,GAAG,GAAG,CAAC;AAEnC;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,OAAO,CAAC;AAEzE,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EA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AAkB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAYZ;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,SAAS,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,GAAG,kBAAkB,GAAG,UAAU,CAMhH;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,QAAQ,EAAE,IAAI,EACd,UAAU,EAAE,UAAU,GAAG,kBAAkB,GAC1C,MAAM,EAAE,CAuBV"}
|
|
@@ -176,7 +176,7 @@ export function tensorForm(key, spec, options) {
|
|
|
176
176
|
* surface normal (`siteSymmetry`) or the operations of a distorted crystal. The tensor is given by
|
|
177
177
|
* its specification or by the name of a property in `TENSOR_PROPERTIES`. The operations are
|
|
178
178
|
* Cartesian and orthogonal, and each says whether it is combined with time reversal
|
|
179
|
-
* (`timeReversal`, true or false); a list that is not closed is closed first.
|
|
179
|
+
* (`timeReversal`, `true` or `false`); a list that is not closed is closed first.
|
|
180
180
|
*/
|
|
181
181
|
export function tensorFormOf(operations, spec) {
|
|
182
182
|
const resolved = specOf(spec);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tensorForm.js","sourceRoot":"","sources":["../../src/tensors/tensorForm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,GAAG,EAAa,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAmD,MAAM,+BAA+B,CAAC;AACtH,OAAO,EAAE,MAAM,EAA2B,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"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M,CAAC,IAAI,CAAC,CAAC;IACvB,MAAM,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC1B,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACjE,MAAM,GAAG,GAAG,IAAI,KAAK,CAAS,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC3C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QAC7B,IAAI,GAAG,GAAG,CAAC,CAAC;QACZ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7B,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;gBAAE,SAAS;YAC9B,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;YAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE;gBAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC7D,GAAG,IAAI,CAAC,CAAC;QACX,CAAC;QACD,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;IACnB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* The version of symcrys, the same for the TypeScript and the Python package.
|
|
3
|
+
*
|
|
4
|
+
* @remarks Kept equal to `version` in package.json (checked by version.test.ts).
|
|
5
|
+
*/
|
|
6
|
+
export declare const VERSION = "0.7.0";
|
|
3
7
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/dist/version.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* The version of symcrys, the same for the TypeScript and the Python package.
|
|
3
|
+
*
|
|
4
|
+
* @remarks Kept equal to `version` in package.json (checked by version.test.ts).
|
|
5
|
+
*/
|
|
6
|
+
export const VERSION = '0.7.0';
|
|
3
7
|
//# sourceMappingURL=version.js.map
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "symcrys",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Crystallographic symmetry calculations: point groups (crystallographic and magnetic), their settings, symbols and properties, and property tensors. TypeScript library without dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"crystallography",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"directory": "packages/ts"
|
|
18
18
|
},
|
|
19
19
|
"bugs": "https://github.com/manganite/symcrys/issues",
|
|
20
|
-
"homepage": "https://github.
|
|
20
|
+
"homepage": "https://manganite.github.io/symcrys/",
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
package/src/crystalClasses.ts
CHANGED
|
@@ -18,8 +18,13 @@ import * as elements from './pointGroups/elements.js';
|
|
|
18
18
|
import * as groups from './pointGroups/pointGroups.js';
|
|
19
19
|
import type { Convention, PointGroupKey, Setting, SettingOptions, SymbolOptions } from './pointGroups/pointGroups.js';
|
|
20
20
|
import * as properties from './pointGroups/properties.js';
|
|
21
|
+
import * as forms from './pointGroups/crystalForms.js';
|
|
22
|
+
import * as identify from './pointGroups/identify.js';
|
|
23
|
+
import * as orbits from './pointGroups/orbits.js';
|
|
21
24
|
import * as wyckoff from './pointGroups/wyckoff.js';
|
|
25
|
+
import type { Hkl } from './pointGroups/wyckoff.js';
|
|
22
26
|
import * as site from './siteSymmetry.js';
|
|
27
|
+
import type { Uvw } from './symmetryDirections.js';
|
|
23
28
|
import { TENSOR_PROPERTIES as ALL_TENSOR_PROPERTIES } from './tensors/propertyTable.js';
|
|
24
29
|
import type { TensorPropertyName as MagneticTensorPropertyName } from './tensors/propertyTable.js';
|
|
25
30
|
import * as tensors from './tensors/tensorForm.js';
|
|
@@ -30,6 +35,7 @@ const USE_MAGNETIC =
|
|
|
30
35
|
|
|
31
36
|
/** A point operation: an orthogonal Cartesian matrix (rotation, rotoinversion, mirror, inversion). */
|
|
32
37
|
export interface Operation {
|
|
38
|
+
/** The orthogonal Cartesian 3×3 matrix, rows first. */
|
|
33
39
|
readonly matrix: Mat3;
|
|
34
40
|
}
|
|
35
41
|
|
|
@@ -38,7 +44,9 @@ export interface Operation {
|
|
|
38
44
|
* the setting or the convention (docs/conventions.md, "Properties").
|
|
39
45
|
*/
|
|
40
46
|
export interface PointGroup {
|
|
47
|
+
/** The key (docs/conventions.md, "Keys"). */
|
|
41
48
|
readonly key: PointGroupKey;
|
|
49
|
+
/** The crystal system. */
|
|
42
50
|
readonly crystalSystem: CrystalSystem;
|
|
43
51
|
/** Number of operations. */
|
|
44
52
|
readonly order: number;
|
|
@@ -54,7 +62,9 @@ export interface PointGroup {
|
|
|
54
62
|
|
|
55
63
|
/** A crystal class in a given setting. */
|
|
56
64
|
export interface PointGroupInSetting {
|
|
65
|
+
/** The key of the crystal class. */
|
|
57
66
|
readonly key: PointGroupKey;
|
|
67
|
+
/** The 1-based index of the setting. */
|
|
58
68
|
readonly setting: number;
|
|
59
69
|
}
|
|
60
70
|
|
|
@@ -63,8 +73,11 @@ export type OperationDescription = Omit<elements.OperationDescription, 'timeReve
|
|
|
63
73
|
|
|
64
74
|
/** The kind of tensor. */
|
|
65
75
|
export interface TensorSpec {
|
|
76
|
+
/** Number of indices, 0 to 4. */
|
|
66
77
|
readonly rank: TensorRank;
|
|
78
|
+
/** `'polar'` or `'axial'`: whether an improper operation changes the sign (factor det R). */
|
|
67
79
|
readonly parity: TensorParity;
|
|
80
|
+
/** The index symmetry of the tensor. */
|
|
68
81
|
readonly intrinsic: IntrinsicSymmetry;
|
|
69
82
|
}
|
|
70
83
|
|
|
@@ -73,11 +86,18 @@ export interface TensorSpec {
|
|
|
73
86
|
* operation of the magnetic API without time reversal can be handed on from plain JavaScript; with
|
|
74
87
|
* `timeReversal: true` it is refused, at compile time and at run time.
|
|
75
88
|
*/
|
|
76
|
-
type OperationArgument = Operation & {
|
|
89
|
+
type OperationArgument = Operation & {
|
|
90
|
+
/** Accepted if false; an operation with time reversal belongs to the magnetic API. */
|
|
91
|
+
readonly timeReversal?: false;
|
|
92
|
+
};
|
|
77
93
|
|
|
78
94
|
/** A tensor specification as a caller may pass it; `timeParity: 'i'` is accepted, `'c'` refused. */
|
|
79
|
-
type TensorSpecArgument = TensorSpec & {
|
|
95
|
+
type TensorSpecArgument = TensorSpec & {
|
|
96
|
+
/** Accepted if `'i'`; a time-odd tensor belongs to the magnetic API. */
|
|
97
|
+
readonly timeParity?: 'i';
|
|
98
|
+
};
|
|
80
99
|
|
|
100
|
+
/** A named property: the tensor that describes it, what it is and where it is defined. */
|
|
81
101
|
export interface TensorProperty {
|
|
82
102
|
/** The kind of tensor whose non-zero form means that the property is allowed. */
|
|
83
103
|
readonly spec: TensorSpec;
|
|
@@ -280,6 +300,61 @@ export function isChiralOf(operations: readonly OperationArgument[]): boolean {
|
|
|
280
300
|
return properties.isChiralOf(unitary(operations));
|
|
281
301
|
}
|
|
282
302
|
|
|
303
|
+
// --- the point group of a list of operations -------------------------------------------------------
|
|
304
|
+
|
|
305
|
+
/** The crystal class of a list of operations: its key, and the setting if the operations are exactly those of one. */
|
|
306
|
+
export interface IdentifiedPointGroup {
|
|
307
|
+
/** The key of the crystal class the operations generate. */
|
|
308
|
+
readonly key: PointGroupKey;
|
|
309
|
+
/**
|
|
310
|
+
* The 1-based index of the setting whose operations the group equals, in the Cartesian frame of
|
|
311
|
+
* symcrys; absent if the group is the class in another orientation.
|
|
312
|
+
*/
|
|
313
|
+
readonly setting?: number;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/** One operation of any list described geometrically (`describeOperationsOf`). */
|
|
317
|
+
export type CartesianOperationDescription = Omit<identify.CartesianOperationDescription, 'timeReversal'>;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* The crystal class generated by a list of Cartesian operations, for instance those left after
|
|
321
|
+
* distorting a crystal: its key, and the setting whose operations it equals in the frame of symcrys
|
|
322
|
+
* (absent if the group is the class in another orientation, e.g. a threefold axis along [111]). The
|
|
323
|
+
* list is closed into a group first, two matrices being equal when no entry differs by `tolerance`
|
|
324
|
+
* (default `EPSILON`) or more. Returns undefined if the operations generate no crystal class (an
|
|
325
|
+
* operation of order 5, a group larger than 48). Throws a RangeError for a matrix that is not
|
|
326
|
+
* orthogonal (within `tolerance`, at least `EPSILON`). The classes `1` and `-1` have no
|
|
327
|
+
* orientation, so they always have setting 1. The first call builds a table of the groups (about
|
|
328
|
+
* 0.1 s; docs/conventions.md, "Point group of a list of operations").
|
|
329
|
+
*/
|
|
330
|
+
export function pointGroupOf(
|
|
331
|
+
operations: readonly OperationArgument[],
|
|
332
|
+
options?: identify.PointGroupOfOptions,
|
|
333
|
+
): IdentifiedPointGroup | undefined {
|
|
334
|
+
return identify.pointGroupOf(unitary(operations), options) as IdentifiedPointGroup | undefined;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Each operation of a list described geometrically, in the order of the list: kind, n, the
|
|
339
|
+
* Cartesian axis (rotation or rotoinversion axis, mirror normal) with its first non-zero component,
|
|
340
|
+
* in the order x, y, z, positive, and for n ≥ 3 the sense about that axis. The axes are not named
|
|
341
|
+
* by lattice directions, since the list need not belong to a setting; for a crystal class given by
|
|
342
|
+
* its key, `describeOperations` names them. Throws a RangeError for a matrix that is not orthogonal
|
|
343
|
+
* or not a crystallographic operation (a rotation part by an angle other than 360°/n, n = 1, 2, 3,
|
|
344
|
+
* 4, 6), both within `tolerance` (default `EPSILON`, as for `pointGroupOf`).
|
|
345
|
+
*/
|
|
346
|
+
export function describeOperationsOf(
|
|
347
|
+
operations: readonly OperationArgument[],
|
|
348
|
+
options?: identify.PointGroupOfOptions,
|
|
349
|
+
): readonly CartesianOperationDescription[] {
|
|
350
|
+
return Object.freeze(
|
|
351
|
+
identify.describeOperationsOf(unitary(operations), options).map((d) => {
|
|
352
|
+
const { timeReversal: _timeReversal, ...rest } = d;
|
|
353
|
+
return Object.freeze(rest);
|
|
354
|
+
}),
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
|
|
283
358
|
// --- symmetry elements -----------------------------------------------------------------------------
|
|
284
359
|
|
|
285
360
|
/**
|
|
@@ -308,7 +383,7 @@ export function describeOperations(key: PointGroupKey, options?: SettingOptions)
|
|
|
308
383
|
* positions of the crystal family are listed, also those the symbol of the class leaves out (then
|
|
309
384
|
* without `symbol`); the triclinic family has none. The directions keep the sign of Table 2.1.3.1
|
|
310
385
|
* in both conventions; in the Birss convention an axis of `describeOperations` may be reversed, so
|
|
311
|
-
* match it to a direction
|
|
386
|
+
* match it to a direction whose dot product with it is ±1, not by identity.
|
|
312
387
|
*/
|
|
313
388
|
export function symmetryDirections(
|
|
314
389
|
key: PointGroupKey,
|
|
@@ -360,6 +435,92 @@ export function wyckoffPositionOf(
|
|
|
360
435
|
return wyckoff.wyckoffPositionOf(classKey(key), direction, options);
|
|
361
436
|
}
|
|
362
437
|
|
|
438
|
+
// --- lattice basis and orbits ---------------------------------------------------------------------
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* The operations of the crystal class in the conventional lattice basis (a, b, c; for the trigonal
|
|
442
|
+
* classes the hexagonal axes), in the order of `operations` for the same setting and convention:
|
|
443
|
+
* integer matrices W acting on the coordinates of a lattice direction [uvw], W = B⁻¹·R·B with the
|
|
444
|
+
* basis B of `latticeBasis` and the Cartesian matrix R of `operations`. They do not depend on the
|
|
445
|
+
* cell angles, so they exist for every family; for the monoclinic and triclinic families a, b, c
|
|
446
|
+
* are taken along x, y, z, as for the Wyckoff positions. In the ITC convention they are the
|
|
447
|
+
* matrices of ITA's general position (6th ed., Table 3.2.3.2). Not orthogonal in general: pass
|
|
448
|
+
* them to no function that takes Cartesian operations (docs/conventions.md, "Lattice basis and
|
|
449
|
+
* orbits").
|
|
450
|
+
*/
|
|
451
|
+
export function latticeOperations(key: PointGroupKey, options?: SettingOptions): readonly Operation[] {
|
|
452
|
+
return matricesOnly(orbits.latticeOperations(classKey(key), options));
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* The orbit of a face (hkl) or of a lattice direction [uvw] under a crystal class, exactly, in the
|
|
457
|
+
* lattice basis: the distinct faces (directions), in the order in which the operations reach them
|
|
458
|
+
* (so in the ITC convention the given face first), each with the indices of the operations that map
|
|
459
|
+
* the given one onto it. A face transforms with the inverse transpose of a lattice operation,
|
|
460
|
+
* h' = W⁻ᵀ·h, a direction with the operation itself, u' = W·u. The number of entries is the
|
|
461
|
+
* multiplicity of the face (direction). Throws a RangeError unless exactly one of `hkl` and `uvw` is
|
|
462
|
+
* given, as three integers not all zero (hexagonal axes: three indices, without i).
|
|
463
|
+
*/
|
|
464
|
+
export function orbit(
|
|
465
|
+
key: PointGroupKey,
|
|
466
|
+
indices: { readonly hkl: Hkl },
|
|
467
|
+
options?: SettingOptions,
|
|
468
|
+
): readonly orbits.FaceOrbitEntry[];
|
|
469
|
+
export function orbit(
|
|
470
|
+
key: PointGroupKey,
|
|
471
|
+
indices: { readonly uvw: Uvw },
|
|
472
|
+
options?: SettingOptions,
|
|
473
|
+
): readonly orbits.DirectionOrbitEntry[];
|
|
474
|
+
export function orbit(
|
|
475
|
+
key: PointGroupKey,
|
|
476
|
+
indices: { readonly hkl: Hkl } | { readonly uvw: Uvw },
|
|
477
|
+
options?: SettingOptions,
|
|
478
|
+
): readonly orbits.FaceOrbitEntry[] | readonly orbits.DirectionOrbitEntry[];
|
|
479
|
+
export function orbit(
|
|
480
|
+
key: PointGroupKey,
|
|
481
|
+
indices: { readonly hkl: Hkl } | { readonly uvw: Uvw },
|
|
482
|
+
options?: SettingOptions,
|
|
483
|
+
): readonly orbits.FaceOrbitEntry[] | readonly orbits.DirectionOrbitEntry[] {
|
|
484
|
+
return orbits.orbit(classKey(key), indices as { readonly hkl: Hkl }, options);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* The orbit of a direction (any non-zero vector, Cartesian, e.g. a face normal) under a list of
|
|
489
|
+
* operations, for instance those of a distorted crystal: the images of its unit vector under each
|
|
490
|
+
* operation, coinciding images merged (closer than `tolerance`, default `EPSILON`, as for
|
|
491
|
+
* `siteSymmetry`), in the order in which the operations reach them, each with the indices of the
|
|
492
|
+
* operations that map the direction there. The list is taken as it is, not closed into a group.
|
|
493
|
+
* Throws a RangeError for a zero vector and for a matrix that is not orthogonal.
|
|
494
|
+
*/
|
|
495
|
+
export function orbitOf(
|
|
496
|
+
operations: readonly OperationArgument[],
|
|
497
|
+
direction: Vec3,
|
|
498
|
+
options?: orbits.OrbitOptions,
|
|
499
|
+
): readonly orbits.OrbitPole[] {
|
|
500
|
+
checkUnitary(operations);
|
|
501
|
+
return orbits.orbitOf(operations, direction, options);
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
// --- crystal forms ---------------------------------------------------------------------------------
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* The 47 crystal forms of ITA Table 3.2.1.3 (6th ed., pp. 724–726) with ITA's numbers, English
|
|
508
|
+
* names, numbers of faces and eigensymmetries: `CRYSTAL_FORM_TYPES[n - 1]` is form n. Each
|
|
509
|
+
* crystal form of `crystalForms` names its form by this number (docs/conventions.md, "Crystal
|
|
510
|
+
* forms").
|
|
511
|
+
*/
|
|
512
|
+
export const CRYSTAL_FORM_TYPES: readonly forms.CrystalFormType[] = forms.CRYSTAL_FORM_TYPES;
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* The crystal forms of a crystal class, as ITA 6th ed. Table 3.2.3.2 prints them: for each Wyckoff
|
|
516
|
+
* position (general position first) its basic form (two for the cubic faces (hhl) of -43m and
|
|
517
|
+
* m-3m), then its limiting forms. In the ITC convention
|
|
518
|
+
* only, like the Wyckoff positions (docs/conventions.md, "Crystal forms").
|
|
519
|
+
*/
|
|
520
|
+
export function crystalForms(key: PointGroupKey, options?: SettingOptions): readonly forms.CrystalForm[] {
|
|
521
|
+
return forms.crystalForms(classKey(key), options);
|
|
522
|
+
}
|
|
523
|
+
|
|
363
524
|
// --- tensors ---------------------------------------------------------------------------------------
|
|
364
525
|
|
|
365
526
|
/**
|
package/src/index.ts
CHANGED
|
@@ -21,24 +21,34 @@ export { LATTICE_SYMMETRY_DIRECTIONS, type Uvw } from './symmetryDirections.js';
|
|
|
21
21
|
export type { Axis, DirectionElements, OperationKind, SymmetryDirection } from './pointGroups/elements.js';
|
|
22
22
|
export type { SiteSymmetry, SiteSymmetryOptions } from './siteSymmetry.js';
|
|
23
23
|
export type { Hkl, WyckoffOptions, WyckoffPosition } from './pointGroups/wyckoff.js';
|
|
24
|
+
export type { CrystalForm, CrystalFormType } from './pointGroups/crystalForms.js';
|
|
25
|
+
export type { DirectionOrbitEntry, FaceOrbitEntry, OrbitOptions, OrbitPole } from './pointGroups/orbits.js';
|
|
26
|
+
export type { CartesianAxis, PointGroupOfOptions } from './pointGroups/identify.js';
|
|
24
27
|
export type { IntrinsicSymmetry, TensorForm, TensorParity, TensorRank } from './tensors/tensorForm.js';
|
|
25
28
|
|
|
26
29
|
export {
|
|
30
|
+
CRYSTAL_FORM_TYPES,
|
|
27
31
|
POINT_GROUP_KEYS,
|
|
28
32
|
TENSOR_PROPERTIES,
|
|
29
33
|
allowedProperties,
|
|
30
34
|
allowedPropertiesOf,
|
|
31
35
|
allowsProperty,
|
|
32
36
|
allowsPropertyOf,
|
|
37
|
+
crystalForms,
|
|
33
38
|
describeOperations,
|
|
39
|
+
describeOperationsOf,
|
|
34
40
|
findPointGroup,
|
|
35
41
|
generators,
|
|
36
42
|
holohedry,
|
|
37
43
|
isCentrosymmetricOf,
|
|
38
44
|
isChiralOf,
|
|
39
45
|
isPointGroupKey,
|
|
46
|
+
latticeOperations,
|
|
40
47
|
operations,
|
|
48
|
+
orbit,
|
|
49
|
+
orbitOf,
|
|
41
50
|
pointGroup,
|
|
51
|
+
pointGroupOf,
|
|
42
52
|
pointGroups,
|
|
43
53
|
rotateTensor,
|
|
44
54
|
settings,
|
|
@@ -49,6 +59,8 @@ export {
|
|
|
49
59
|
tensorFormOf,
|
|
50
60
|
wyckoffPositionOf,
|
|
51
61
|
wyckoffPositions,
|
|
62
|
+
type CartesianOperationDescription,
|
|
63
|
+
type IdentifiedPointGroup,
|
|
52
64
|
type Operation,
|
|
53
65
|
type OperationDescription,
|
|
54
66
|
type PointGroup,
|
package/src/lattice.ts
CHANGED
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
import type { Mat3 } from './linalg.js';
|
|
7
7
|
|
|
8
|
+
/** One of the seven crystal systems. */
|
|
8
9
|
export type CrystalSystem =
|
|
9
10
|
'triclinic' | 'monoclinic' | 'orthorhombic' | 'tetragonal' | 'trigonal' | 'hexagonal' | 'cubic';
|
|
10
11
|
|
|
12
|
+
/** One of the six crystal families: the trigonal and the hexagonal system form the hexagonal family. */
|
|
11
13
|
export type CrystalFamily = 'triclinic' | 'monoclinic' | 'orthorhombic' | 'tetragonal' | 'hexagonal' | 'cubic';
|
|
12
14
|
|
|
13
15
|
/** The crystal family of a crystal system: trigonal and hexagonal form the hexagonal family. */
|
|
@@ -38,12 +40,14 @@ const HEXAGONAL = frozen([
|
|
|
38
40
|
|
|
39
41
|
/**
|
|
40
42
|
* The conventional basis vectors a, b, c as the **columns** of a Cartesian matrix, with unit edge
|
|
41
|
-
* lengths
|
|
43
|
+
* lengths. Hexagonal family (hexagonal axes): x ∥ a, z ∥ c, y = z × x, so b points at 120° from a.
|
|
42
44
|
* Orthorhombic, tetragonal, cubic: x ∥ a, y ∥ b, z ∥ c.
|
|
43
45
|
*
|
|
44
46
|
* The edge lengths are set to 1 because the symmetry directions of these families, and so the
|
|
45
47
|
* point operations, do not depend on them. For a direction [uvw] that is not a symmetry direction,
|
|
46
48
|
* scale the columns by the real edge lengths first.
|
|
49
|
+
*
|
|
50
|
+
* @remarks The matrix is frozen and shared between calls.
|
|
47
51
|
*/
|
|
48
52
|
export function latticeBasis(family: FixedAngleFamily): Mat3 {
|
|
49
53
|
switch (family) {
|
package/src/magnetic.ts
CHANGED
|
@@ -35,6 +35,7 @@ import type {
|
|
|
35
35
|
export type CrystalClassKey = ClassKey;
|
|
36
36
|
/** The key of a magnetic point group: a crystal class (white group), a grey or a black-and-white group. */
|
|
37
37
|
export type PointGroupKey = MagneticPointGroupKey;
|
|
38
|
+
/** A magnetic point group with the properties that are fixed by its operations (docs/conventions.md, "Properties"). */
|
|
38
39
|
export type PointGroup<K extends PointGroupKey = PointGroupKey> = PointGroupOf<K>;
|
|
39
40
|
/** A point group in a given setting. */
|
|
40
41
|
export type PointGroupInSetting = PointGroupInSettingOf<PointGroupKey>;
|
|
@@ -67,6 +68,23 @@ export {
|
|
|
67
68
|
type SymmetryDirection,
|
|
68
69
|
} from './pointGroups/elements.js';
|
|
69
70
|
export { siteSymmetry, type SiteSymmetry, type SiteSymmetryOptions } from './siteSymmetry.js';
|
|
71
|
+
export {
|
|
72
|
+
describeOperationsOf,
|
|
73
|
+
pointGroupOf,
|
|
74
|
+
type CartesianAxis,
|
|
75
|
+
type CartesianOperationDescription,
|
|
76
|
+
type IdentifiedPointGroup,
|
|
77
|
+
type PointGroupOfOptions,
|
|
78
|
+
} from './pointGroups/identify.js';
|
|
79
|
+
export {
|
|
80
|
+
latticeOperations,
|
|
81
|
+
orbit,
|
|
82
|
+
orbitOf,
|
|
83
|
+
type DirectionOrbitEntry,
|
|
84
|
+
type FaceOrbitEntry,
|
|
85
|
+
type OrbitOptions,
|
|
86
|
+
type OrbitPole,
|
|
87
|
+
} from './pointGroups/orbits.js';
|
|
70
88
|
export {
|
|
71
89
|
rotateTensor,
|
|
72
90
|
tensorForm,
|
package/src/operations.ts
CHANGED
|
@@ -11,7 +11,9 @@ import { EPSILON } from './tolerances.js';
|
|
|
11
11
|
* combined with time reversal if `timeReversal` is true (a primed operation).
|
|
12
12
|
*/
|
|
13
13
|
export interface Operation {
|
|
14
|
+
/** The orthogonal Cartesian 3×3 matrix, rows first. */
|
|
14
15
|
readonly matrix: Mat3;
|
|
16
|
+
/** True if the operation is combined with time reversal (a primed operation). */
|
|
15
17
|
readonly timeReversal: boolean;
|
|
16
18
|
}
|
|
17
19
|
|