@mat3ra/esse 2026.10.25-1 → 2026.10.31-1
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/dist/js/esse/JSONSchemasGenerator.d.ts +6 -0
- package/dist/js/esse/JSONSchemasGenerator.js +18 -5
- package/dist/js/example/core/reusable/band_energies.json +11 -0
- package/dist/js/example/core/reusable/eigenvalues_at_kpoint.json +21 -0
- package/dist/js/example/properties_directory/non_scalar/eigenvalues_at_kpoints.json +48 -0
- package/dist/js/example/properties_directory/scalar/band_edge_conduction_min.json +10 -0
- package/dist/js/example/properties_directory/scalar/band_edge_valence_max.json +10 -0
- package/dist/js/example/properties_directory/scalar/magnetization_absolute.json +5 -0
- package/dist/js/example/properties_directory/scalar/magnetization_total.json +5 -0
- package/dist/js/schema/core/reusable/band_energies.json +34 -0
- package/dist/js/schema/core/reusable/eigenvalues_at_kpoint.json +64 -0
- package/dist/js/schema/properties_directory/non_scalar/band_gaps.json +31 -4
- package/dist/js/schema/properties_directory/non_scalar/eigenvalues_at_kpoints.json +97 -0
- package/dist/js/schema/properties_directory/scalar/band_edge_conduction_min.json +63 -0
- package/dist/js/schema/properties_directory/scalar/band_edge_valence_max.json +63 -0
- package/dist/js/schema/properties_directory/scalar/magnetization_absolute.json +27 -0
- package/dist/js/schema/properties_directory/scalar/magnetization_total.json +27 -0
- package/dist/js/schema/property/holder.json +31 -4
- package/dist/js/schemas.json +1 -1
- package/dist/js/types.d.ts +186 -8
- package/package.json +1 -1
|
@@ -14,7 +14,13 @@ export default class JSONSchemasGenerator implements JSONSchemasGeneratorConfig
|
|
|
14
14
|
readonly schemasDir: string;
|
|
15
15
|
readonly examplesDir?: string;
|
|
16
16
|
readonly propertiesManifestDir?: string;
|
|
17
|
+
private resolvedSchemas?;
|
|
17
18
|
constructor(config?: JSONSchemasGeneratorConfig);
|
|
19
|
+
/**
|
|
20
|
+
* The schemas with every `allOf` merged into its parent, as dist/js/schema
|
|
21
|
+
* holds them. Computed once: the JS assets and the Python modules share it.
|
|
22
|
+
*/
|
|
23
|
+
getResolvedSchemas(skipMergeAllOff?: boolean): JSONSchema[];
|
|
18
24
|
writeResolvedSchemas(subfolder: string, skipMergeAllOff?: boolean): void;
|
|
19
25
|
writeResolvedExamples(subfolder: string): void;
|
|
20
26
|
}
|
|
@@ -32,15 +32,28 @@ class JSONSchemasGenerator {
|
|
|
32
32
|
.map((k) => (k[1].isResult ? k[0] : null))
|
|
33
33
|
.filter((x) => x);
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
/**
|
|
36
|
+
* The schemas with every `allOf` merged into its parent, as dist/js/schema
|
|
37
|
+
* holds them. Computed once: the JS assets and the Python modules share it.
|
|
38
|
+
*/
|
|
39
|
+
getResolvedSchemas(skipMergeAllOff = false) {
|
|
40
|
+
if (skipMergeAllOff)
|
|
41
|
+
return this.schemas;
|
|
42
|
+
if (this.resolvedSchemas)
|
|
43
|
+
return this.resolvedSchemas;
|
|
38
44
|
const mergeAllOfConfig = {
|
|
39
45
|
resolvers: { defaultResolver: json_schema_merge_allof_1.default.options.resolvers.title },
|
|
40
46
|
};
|
|
41
|
-
|
|
47
|
+
this.resolvedSchemas = this.schemas.map((schema) => {
|
|
42
48
|
console.log(`Resolving schema: ${schema.$id}`);
|
|
43
|
-
|
|
49
|
+
return (0, json_schema_merge_allof_1.default)(schema, mergeAllOfConfig);
|
|
50
|
+
});
|
|
51
|
+
return this.resolvedSchemas;
|
|
52
|
+
}
|
|
53
|
+
writeResolvedSchemas(subfolder, skipMergeAllOff = false) {
|
|
54
|
+
const schemasFolder = `${subfolder}/schema`;
|
|
55
|
+
fs_1.default.rmSync(schemasFolder, { recursive: true, force: true });
|
|
56
|
+
const schemas = this.getResolvedSchemas(skipMergeAllOff).map((mergedSchema) => {
|
|
44
57
|
let idAsPath = mergedSchema.$id;
|
|
45
58
|
if (!idAsPath) {
|
|
46
59
|
throw new Error(`Schema ID is missing:
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "eigenvalues_at_kpoints",
|
|
3
|
+
"units": "eV",
|
|
4
|
+
"values": [
|
|
5
|
+
{
|
|
6
|
+
"kpoint": [
|
|
7
|
+
0,
|
|
8
|
+
0,
|
|
9
|
+
0
|
|
10
|
+
],
|
|
11
|
+
"weight": 0.5,
|
|
12
|
+
"eigenvalues": [
|
|
13
|
+
{
|
|
14
|
+
"spin": 0.5,
|
|
15
|
+
"energies": [
|
|
16
|
+
-5.6,
|
|
17
|
+
6.2
|
|
18
|
+
],
|
|
19
|
+
"occupations": [
|
|
20
|
+
1,
|
|
21
|
+
0
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"kpoint": [
|
|
28
|
+
0.5,
|
|
29
|
+
0,
|
|
30
|
+
0
|
|
31
|
+
],
|
|
32
|
+
"weight": 1.5,
|
|
33
|
+
"eigenvalues": [
|
|
34
|
+
{
|
|
35
|
+
"spin": 0.5,
|
|
36
|
+
"energies": [
|
|
37
|
+
-4.1,
|
|
38
|
+
5.3
|
|
39
|
+
],
|
|
40
|
+
"occupations": [
|
|
41
|
+
1,
|
|
42
|
+
0
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "core/reusable/band-energies",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "band energies schema",
|
|
5
|
+
"description": "the band energies and occupations of one spin channel at one k-point",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"energies"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"spin": {
|
|
12
|
+
"description": "spin of the channel",
|
|
13
|
+
"type": "number",
|
|
14
|
+
"enum": [
|
|
15
|
+
0.5,
|
|
16
|
+
-0.5
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"energies": {
|
|
20
|
+
"description": "band energies, in band order",
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "number"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"occupations": {
|
|
27
|
+
"description": "band occupations, in the same order as energies",
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": {
|
|
30
|
+
"type": "number"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "core/reusable/eigenvalues-at-kpoint",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "eigenvalues at k-point schema",
|
|
5
|
+
"description": "the eigenvalues at one k-point: its coordinates, its integration weight, and the band energies and occupations of each spin channel",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"eigenvalues"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"kpoint": {
|
|
12
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
13
|
+
"title": "kpoint schema",
|
|
14
|
+
"description": "A k-point is a point in reciprocal space of a crystal.",
|
|
15
|
+
"type": "array",
|
|
16
|
+
"minItems": 3,
|
|
17
|
+
"maxItems": 3,
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "number"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"weight": {
|
|
23
|
+
"type": "number",
|
|
24
|
+
"description": "integration weight of the k-point"
|
|
25
|
+
},
|
|
26
|
+
"eigenvalues": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"description": "one entry per spin channel; a spin-unpolarized calculation has a single entry",
|
|
29
|
+
"items": {
|
|
30
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
31
|
+
"title": "band energies schema",
|
|
32
|
+
"description": "the band energies and occupations of one spin channel at one k-point",
|
|
33
|
+
"type": "object",
|
|
34
|
+
"required": [
|
|
35
|
+
"energies"
|
|
36
|
+
],
|
|
37
|
+
"properties": {
|
|
38
|
+
"spin": {
|
|
39
|
+
"description": "spin of the channel",
|
|
40
|
+
"type": "number",
|
|
41
|
+
"enum": [
|
|
42
|
+
0.5,
|
|
43
|
+
-0.5
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"energies": {
|
|
47
|
+
"description": "band energies, in band order",
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "number"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"occupations": {
|
|
54
|
+
"description": "band occupations, in the same order as energies",
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "number"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -86,7 +86,13 @@
|
|
|
86
86
|
"eigenvalues": {
|
|
87
87
|
"type": "array",
|
|
88
88
|
"items": {
|
|
89
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
90
|
+
"title": "eigenvalues at k-point schema",
|
|
91
|
+
"description": "the eigenvalues at one k-point: its coordinates, its integration weight, and the band energies and occupations of each spin channel",
|
|
89
92
|
"type": "object",
|
|
93
|
+
"required": [
|
|
94
|
+
"eigenvalues"
|
|
95
|
+
],
|
|
90
96
|
"properties": {
|
|
91
97
|
"kpoint": {
|
|
92
98
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -100,21 +106,42 @@
|
|
|
100
106
|
}
|
|
101
107
|
},
|
|
102
108
|
"weight": {
|
|
103
|
-
"type": "number"
|
|
109
|
+
"type": "number",
|
|
110
|
+
"description": "integration weight of the k-point"
|
|
104
111
|
},
|
|
105
112
|
"eigenvalues": {
|
|
106
113
|
"type": "array",
|
|
114
|
+
"description": "one entry per spin channel; a spin-unpolarized calculation has a single entry",
|
|
107
115
|
"items": {
|
|
116
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
117
|
+
"title": "band energies schema",
|
|
118
|
+
"description": "the band energies and occupations of one spin channel at one k-point",
|
|
108
119
|
"type": "object",
|
|
120
|
+
"required": [
|
|
121
|
+
"energies"
|
|
122
|
+
],
|
|
109
123
|
"properties": {
|
|
110
124
|
"spin": {
|
|
111
|
-
"
|
|
125
|
+
"description": "spin of the channel",
|
|
126
|
+
"type": "number",
|
|
127
|
+
"enum": [
|
|
128
|
+
0.5,
|
|
129
|
+
-0.5
|
|
130
|
+
]
|
|
112
131
|
},
|
|
113
132
|
"energies": {
|
|
114
|
-
"
|
|
133
|
+
"description": "band energies, in band order",
|
|
134
|
+
"type": "array",
|
|
135
|
+
"items": {
|
|
136
|
+
"type": "number"
|
|
137
|
+
}
|
|
115
138
|
},
|
|
116
139
|
"occupations": {
|
|
117
|
-
"
|
|
140
|
+
"description": "band occupations, in the same order as energies",
|
|
141
|
+
"type": "array",
|
|
142
|
+
"items": {
|
|
143
|
+
"type": "number"
|
|
144
|
+
}
|
|
118
145
|
}
|
|
119
146
|
}
|
|
120
147
|
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "properties-directory/non-scalar/eigenvalues-at-kpoints",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Eigenvalues at k-points property schema",
|
|
5
|
+
"description": "the band energies (and occupations) at each k-point of a calculation, in one energy unit",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"name",
|
|
9
|
+
"units",
|
|
10
|
+
"values"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"name": {
|
|
14
|
+
"enum": [
|
|
15
|
+
"eigenvalues_at_kpoints"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"units": {
|
|
19
|
+
"enum": [
|
|
20
|
+
"kcal/mol",
|
|
21
|
+
"kJ/mol",
|
|
22
|
+
"eV",
|
|
23
|
+
"J/mol",
|
|
24
|
+
"hartree",
|
|
25
|
+
"cm-1",
|
|
26
|
+
"Ry",
|
|
27
|
+
"eV/atom"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"values": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"items": {
|
|
33
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
34
|
+
"title": "eigenvalues at k-point schema",
|
|
35
|
+
"description": "the eigenvalues at one k-point: its coordinates, its integration weight, and the band energies and occupations of each spin channel",
|
|
36
|
+
"type": "object",
|
|
37
|
+
"required": [
|
|
38
|
+
"eigenvalues"
|
|
39
|
+
],
|
|
40
|
+
"properties": {
|
|
41
|
+
"kpoint": {
|
|
42
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
43
|
+
"title": "kpoint schema",
|
|
44
|
+
"description": "A k-point is a point in reciprocal space of a crystal.",
|
|
45
|
+
"type": "array",
|
|
46
|
+
"minItems": 3,
|
|
47
|
+
"maxItems": 3,
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "number"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"weight": {
|
|
53
|
+
"type": "number",
|
|
54
|
+
"description": "integration weight of the k-point"
|
|
55
|
+
},
|
|
56
|
+
"eigenvalues": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"description": "one entry per spin channel; a spin-unpolarized calculation has a single entry",
|
|
59
|
+
"items": {
|
|
60
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
61
|
+
"title": "band energies schema",
|
|
62
|
+
"description": "the band energies and occupations of one spin channel at one k-point",
|
|
63
|
+
"type": "object",
|
|
64
|
+
"required": [
|
|
65
|
+
"energies"
|
|
66
|
+
],
|
|
67
|
+
"properties": {
|
|
68
|
+
"spin": {
|
|
69
|
+
"description": "spin of the channel",
|
|
70
|
+
"type": "number",
|
|
71
|
+
"enum": [
|
|
72
|
+
0.5,
|
|
73
|
+
-0.5
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"energies": {
|
|
77
|
+
"description": "band energies, in band order",
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": {
|
|
80
|
+
"type": "number"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"occupations": {
|
|
84
|
+
"description": "band occupations, in the same order as energies",
|
|
85
|
+
"type": "array",
|
|
86
|
+
"items": {
|
|
87
|
+
"type": "number"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "properties-directory/scalar/band-edge-conduction-min",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Conduction band minimum property schema",
|
|
5
|
+
"description": "lowest unoccupied band energy of a crystal",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"name",
|
|
9
|
+
"units",
|
|
10
|
+
"value"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"name": {
|
|
14
|
+
"enum": [
|
|
15
|
+
"band_edge_conduction_min"
|
|
16
|
+
],
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"kpoint": {
|
|
20
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
21
|
+
"title": "kpoint schema",
|
|
22
|
+
"description": "A k-point is a point in reciprocal space of a crystal.",
|
|
23
|
+
"type": "array",
|
|
24
|
+
"minItems": 3,
|
|
25
|
+
"maxItems": 3,
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "number"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"spin": {
|
|
31
|
+
"description": "spin of the channel the band edge belongs to",
|
|
32
|
+
"type": "number",
|
|
33
|
+
"enum": [
|
|
34
|
+
0.5,
|
|
35
|
+
-0.5
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"units": {
|
|
39
|
+
"oneOf": [
|
|
40
|
+
{
|
|
41
|
+
"enum": [
|
|
42
|
+
"kcal/mol",
|
|
43
|
+
"kJ/mol",
|
|
44
|
+
"eV",
|
|
45
|
+
"J/mol",
|
|
46
|
+
"hartree",
|
|
47
|
+
"cm-1",
|
|
48
|
+
"Ry",
|
|
49
|
+
"eV/atom"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"enum": [
|
|
54
|
+
"eV/A^2"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"value": {
|
|
60
|
+
"type": "number"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "properties-directory/scalar/band-edge-valence-max",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Valence band maximum property schema",
|
|
5
|
+
"description": "highest occupied band energy of a crystal",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"name",
|
|
9
|
+
"units",
|
|
10
|
+
"value"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"name": {
|
|
14
|
+
"enum": [
|
|
15
|
+
"band_edge_valence_max"
|
|
16
|
+
],
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"kpoint": {
|
|
20
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
21
|
+
"title": "kpoint schema",
|
|
22
|
+
"description": "A k-point is a point in reciprocal space of a crystal.",
|
|
23
|
+
"type": "array",
|
|
24
|
+
"minItems": 3,
|
|
25
|
+
"maxItems": 3,
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "number"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"spin": {
|
|
31
|
+
"description": "spin of the channel the band edge belongs to",
|
|
32
|
+
"type": "number",
|
|
33
|
+
"enum": [
|
|
34
|
+
0.5,
|
|
35
|
+
-0.5
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"units": {
|
|
39
|
+
"oneOf": [
|
|
40
|
+
{
|
|
41
|
+
"enum": [
|
|
42
|
+
"kcal/mol",
|
|
43
|
+
"kJ/mol",
|
|
44
|
+
"eV",
|
|
45
|
+
"J/mol",
|
|
46
|
+
"hartree",
|
|
47
|
+
"cm-1",
|
|
48
|
+
"Ry",
|
|
49
|
+
"eV/atom"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"enum": [
|
|
54
|
+
"eV/A^2"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"value": {
|
|
60
|
+
"type": "number"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "properties-directory/scalar/magnetization-absolute",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Absolute magnetization property schema",
|
|
5
|
+
"description": "integral of the absolute value of the magnetization density over the cell",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"name",
|
|
9
|
+
"units",
|
|
10
|
+
"value"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"name": {
|
|
14
|
+
"enum": [
|
|
15
|
+
"magnetization_absolute"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"units": {
|
|
19
|
+
"enum": [
|
|
20
|
+
"uB"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"value": {
|
|
24
|
+
"type": "number"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "properties-directory/scalar/magnetization-total",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Total magnetization property schema",
|
|
5
|
+
"description": "net magnetization of the cell: the integral of the magnetization density",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"name",
|
|
9
|
+
"units",
|
|
10
|
+
"value"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"name": {
|
|
14
|
+
"enum": [
|
|
15
|
+
"magnetization_total"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"units": {
|
|
19
|
+
"enum": [
|
|
20
|
+
"uB"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"value": {
|
|
24
|
+
"type": "number"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|