@mat3ra/esse 2025.5.17-1 → 2025.5.17-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/js/example/core/reusable/coordinate_conditions/box.json +13 -0
  2. package/dist/js/example/material/reusable/slab_configuration_with_termination.json +156 -0
  3. package/dist/js/example/materials_category/defects/two_dimensional/grain_boundary_plane/configuration.json +475 -0
  4. package/dist/js/json_include/index.js +1 -0
  5. package/dist/js/schema/core/reusable/axis_enum.json +12 -0
  6. package/dist/js/schema/core/reusable/coordinate_conditions/base.json +24 -0
  7. package/dist/js/schema/core/reusable/coordinate_conditions/box.json +47 -0
  8. package/dist/js/schema/core/reusable/coordinate_conditions/enum.json +13 -0
  9. package/dist/js/schema/material/reusable/slab_configuration_with_termination.json +996 -0
  10. package/dist/js/schema/material/reusable/stack/slab_in_stack.json +1005 -0
  11. package/dist/js/schema/material/reusable/stack/stack_of_slabs.json +1032 -0
  12. package/dist/js/schema/material/reusable/stack/stack_of_two_slabs.json +1033 -0
  13. package/dist/js/schema/material/reusable/{supercell_matrix_2d.json → supercell/supercell_matrix_2d.json} +1 -1
  14. package/dist/js/schema/material/reusable/{supercell_matrix_3d.json → supercell/supercell_matrix_3d.json} +1 -1
  15. package/dist/js/schema/materials_category/defects/two_dimensional/grain_boundary_plane/configuration.json +2019 -0
  16. package/dist/js/schema/materials_category/defects/two_dimensional/island/condition.json.json +52 -0
  17. package/dist/js/schema/materials_category/defects/two_dimensional/island/configuration.json +845 -0
  18. package/dist/js/schema/materials_category/multi_material/interfaces/configuration.json +1034 -0
  19. package/dist/js/schema/materials_category/single_material/two_dimensional/slab/configuration.json +3 -9
  20. package/dist/js/schemas.json +1 -1
  21. package/dist/js/types.d.ts +5516 -1356
  22. package/example/core/reusable/coordinate_conditions/box.json +13 -0
  23. package/example/material/reusable/slab_configuration_with_termination.json +8 -0
  24. package/example/material/reusable/supercell/supercell_matrix_3d.json +11 -0
  25. package/example/materials_category/defects/two-dimensional/grain_boundary_plane/configuration.json +21 -0
  26. package/package.json +1 -1
  27. package/schema/core/primitive/axis_3d_names_enum.json +12 -0
  28. package/schema/core/reusable/coordinate_conditions/base.json +15 -0
  29. package/schema/core/reusable/coordinate_conditions/box.json +25 -0
  30. package/schema/core/reusable/coordinate_conditions/enum.json +13 -0
  31. package/schema/material/reusable/slab_configuration_with_termination.json +19 -0
  32. package/schema/material/reusable/stack/slab_in_stack.json +26 -0
  33. package/schema/material/reusable/stack/stack_of_slabs.json +31 -0
  34. package/schema/material/reusable/stack/stack_of_two_slabs.json +17 -0
  35. package/schema/material/reusable/{supercell_matrix_2d.json → supercell/supercell_matrix_2d.json} +1 -1
  36. package/schema/material/reusable/{supercell_matrix_3d.json → supercell/supercell_matrix_3d.json} +1 -1
  37. package/schema/materials_category/defects/two-dimensional/grain_boundary_plane/configuration.json +20 -0
  38. package/schema/materials_category/defects/two-dimensional/island/condition.json +9 -0
  39. package/schema/materials_category/defects/two-dimensional/island/configuration.json +18 -0
  40. package/schema/materials_category/multi-material/interfaces/configuration.json +12 -0
  41. package/schema/materials_category/single_material/two_dimensional/slab/configuration.json +4 -10
  42. package/src/js/json_include/index.ts +1 -0
  43. package/example/material/reusable/supercell_matrix_3d.json +0 -5
  44. /package/dist/js/example/material/reusable/{supercell_matrix_2d.json → supercell/supercell_matrix_2d.json} +0 -0
  45. /package/dist/js/example/material/reusable/{supercell_matrix_3d.json → supercell/supercell_matrix_3d.json} +0 -0
  46. /package/example/material/reusable/{supercell_matrix_2d.json → supercell/supercell_matrix_2d.json} +0 -0
@@ -0,0 +1,13 @@
1
+ {
2
+ "shape": "box",
3
+ "min_coordinate": [
4
+ 0,
5
+ 0,
6
+ 0
7
+ ],
8
+ "max_coordinate": [
9
+ 0.5,
10
+ 0.5,
11
+ 0.5
12
+ ]
13
+ }
@@ -0,0 +1,156 @@
1
+ {
2
+ "slab_configuration": {
3
+ "bulk": {
4
+ "_id": "LCthJ6E2QabYCZqf3",
5
+ "basis": {
6
+ "coordinates": [
7
+ {
8
+ "id": 1,
9
+ "value": [
10
+ 0,
11
+ 0,
12
+ 0
13
+ ]
14
+ },
15
+ {
16
+ "id": 2,
17
+ "value": [
18
+ 0.25,
19
+ 0.25,
20
+ 0.25
21
+ ]
22
+ }
23
+ ],
24
+ "elements": [
25
+ {
26
+ "id": 1,
27
+ "value": "Si"
28
+ },
29
+ {
30
+ "id": 2,
31
+ "value": "Si"
32
+ }
33
+ ],
34
+ "name": "basis",
35
+ "units": "crystal"
36
+ },
37
+ "createdAt": "2016-04-03T05:25:37.430Z",
38
+ "creator": {
39
+ "_id": "HtxACY2wX4b2hS8Rv",
40
+ "cls": "User",
41
+ "slug": "exadmin"
42
+ },
43
+ "derivedProperties": [
44
+ {
45
+ "name": "volume",
46
+ "units": "angstrom^3",
47
+ "value": 131.1
48
+ },
49
+ {
50
+ "name": "density",
51
+ "units": "g/cm^3",
52
+ "value": 2.33
53
+ },
54
+ {
55
+ "name": "symmetry",
56
+ "spaceGroupSymbol": "Fd-3m",
57
+ "tolerance": {
58
+ "units": "angstrom",
59
+ "value": 0.3
60
+ }
61
+ },
62
+ {
63
+ "degree": 10,
64
+ "name": "p-norm",
65
+ "value": 0.71
66
+ },
67
+ {
68
+ "element": "Si",
69
+ "name": "elemental_ratio",
70
+ "value": 0.71
71
+ },
72
+ {
73
+ "name": "inchi",
74
+ "value": ""
75
+ },
76
+ {
77
+ "name": "inchi_key",
78
+ "value": ""
79
+ }
80
+ ],
81
+ "exabyteId": "RKiswuxHKkF3uvLyA",
82
+ "formula": "Si",
83
+ "hash": "4ac3fa057e3530628eb1295c77110eaa",
84
+ "isDefault": false,
85
+ "isNonPeriodic": false,
86
+ "lattice": {
87
+ "name": "lattice",
88
+ "a": 5.14,
89
+ "alpha": 90,
90
+ "b": 5.14,
91
+ "beta": 90,
92
+ "c": 5.14,
93
+ "gamma": 90,
94
+ "type": "CUB",
95
+ "units": {
96
+ "angle": "degree",
97
+ "length": "angstrom"
98
+ },
99
+ "vectors": {
100
+ "a": [
101
+ 5,
102
+ 0.000121312,
103
+ 0.000131415
104
+ ],
105
+ "alat": 1,
106
+ "b": [
107
+ 0.000121312,
108
+ 5,
109
+ 0.000121314
110
+ ],
111
+ "c": [
112
+ 0.000121313,
113
+ 0.000121312,
114
+ 5
115
+ ],
116
+ "units": "angstrom"
117
+ }
118
+ },
119
+ "name": "Silicon FCC",
120
+ "owner": {
121
+ "_id": "HtxACY2wX4b2hS8Rv",
122
+ "cls": "Account",
123
+ "slug": "exabyte"
124
+ },
125
+ "scaledHash": "5bd4eb168e3530628eb1295d88221cbb",
126
+ "schemaVersion": "0.2.0",
127
+ "slug": "silicon-fcc",
128
+ "unitCellFormula": "Si2",
129
+ "updatedAt": "2016-04-04T17:58:42.867Z"
130
+ },
131
+ "miller_indices": [
132
+ 0,
133
+ 0,
134
+ 1
135
+ ],
136
+ "number_of_layers": 3,
137
+ "vacuum": 15,
138
+ "xy_supercell_matrix": [
139
+ [
140
+ 1,
141
+ 0
142
+ ],
143
+ [
144
+ 0,
145
+ 1
146
+ ]
147
+ ],
148
+ "use_conventional_cell": true,
149
+ "use_orthogonal_z": true,
150
+ "make_primitive": true
151
+ },
152
+ "termination": {
153
+ "chemical_elements": "Si",
154
+ "space_group_symmetry_label": "P4/mmm_2"
155
+ }
156
+ }
@@ -0,0 +1,475 @@
1
+ {
2
+ "stack_slab_configurations": [
3
+ {
4
+ "stack_component": "phase1",
5
+ "distance_to_next_slab": 3,
6
+ "slab_configuration": {
7
+ "bulk": {
8
+ "_id": "LCthJ6E2QabYCZqf3",
9
+ "basis": {
10
+ "coordinates": [
11
+ {
12
+ "id": 1,
13
+ "value": [
14
+ 0,
15
+ 0,
16
+ 0
17
+ ]
18
+ },
19
+ {
20
+ "id": 2,
21
+ "value": [
22
+ 0.25,
23
+ 0.25,
24
+ 0.25
25
+ ]
26
+ }
27
+ ],
28
+ "elements": [
29
+ {
30
+ "id": 1,
31
+ "value": "Si"
32
+ },
33
+ {
34
+ "id": 2,
35
+ "value": "Si"
36
+ }
37
+ ],
38
+ "name": "basis",
39
+ "units": "crystal"
40
+ },
41
+ "createdAt": "2016-04-03T05:25:37.430Z",
42
+ "creator": {
43
+ "_id": "HtxACY2wX4b2hS8Rv",
44
+ "cls": "User",
45
+ "slug": "exadmin"
46
+ },
47
+ "derivedProperties": [
48
+ {
49
+ "name": "volume",
50
+ "units": "angstrom^3",
51
+ "value": 131.1
52
+ },
53
+ {
54
+ "name": "density",
55
+ "units": "g/cm^3",
56
+ "value": 2.33
57
+ },
58
+ {
59
+ "name": "symmetry",
60
+ "spaceGroupSymbol": "Fd-3m",
61
+ "tolerance": {
62
+ "units": "angstrom",
63
+ "value": 0.3
64
+ }
65
+ },
66
+ {
67
+ "degree": 10,
68
+ "name": "p-norm",
69
+ "value": 0.71
70
+ },
71
+ {
72
+ "element": "Si",
73
+ "name": "elemental_ratio",
74
+ "value": 0.71
75
+ },
76
+ {
77
+ "name": "inchi",
78
+ "value": ""
79
+ },
80
+ {
81
+ "name": "inchi_key",
82
+ "value": ""
83
+ }
84
+ ],
85
+ "exabyteId": "RKiswuxHKkF3uvLyA",
86
+ "formula": "Si",
87
+ "hash": "4ac3fa057e3530628eb1295c77110eaa",
88
+ "isDefault": false,
89
+ "isNonPeriodic": false,
90
+ "lattice": {
91
+ "name": "lattice",
92
+ "a": 5.14,
93
+ "alpha": 90,
94
+ "b": 5.14,
95
+ "beta": 90,
96
+ "c": 5.14,
97
+ "gamma": 90,
98
+ "type": "CUB",
99
+ "units": {
100
+ "angle": "degree",
101
+ "length": "angstrom"
102
+ },
103
+ "vectors": {
104
+ "a": [
105
+ 5,
106
+ 0.000121312,
107
+ 0.000131415
108
+ ],
109
+ "alat": 1,
110
+ "b": [
111
+ 0.000121312,
112
+ 5,
113
+ 0.000121314
114
+ ],
115
+ "c": [
116
+ 0.000121313,
117
+ 0.000121312,
118
+ 5
119
+ ],
120
+ "units": "angstrom"
121
+ }
122
+ },
123
+ "name": "Silicon FCC",
124
+ "owner": {
125
+ "_id": "HtxACY2wX4b2hS8Rv",
126
+ "cls": "Account",
127
+ "slug": "exabyte"
128
+ },
129
+ "scaledHash": "5bd4eb168e3530628eb1295d88221cbb",
130
+ "schemaVersion": "0.2.0",
131
+ "slug": "silicon-fcc",
132
+ "unitCellFormula": "Si2",
133
+ "updatedAt": "2016-04-04T17:58:42.867Z"
134
+ },
135
+ "miller_indices": [
136
+ 0,
137
+ 0,
138
+ 1
139
+ ],
140
+ "number_of_layers": 3,
141
+ "vacuum": 15,
142
+ "xy_supercell_matrix": [
143
+ [
144
+ 1,
145
+ 0
146
+ ],
147
+ [
148
+ 0,
149
+ 1
150
+ ]
151
+ ],
152
+ "use_conventional_cell": true,
153
+ "use_orthogonal_z": true,
154
+ "make_primitive": true
155
+ },
156
+ "termination": {
157
+ "chemical_elements": "Si",
158
+ "space_group_symmetry_label": "P4/mmm_2"
159
+ }
160
+ },
161
+ {
162
+ "stack_component": "phase2",
163
+ "distance_to_next_slab": 3,
164
+ "slab_configuration": {
165
+ "bulk": {
166
+ "_id": "LCthJ6E2QabYCZqf3",
167
+ "basis": {
168
+ "coordinates": [
169
+ {
170
+ "id": 1,
171
+ "value": [
172
+ 0,
173
+ 0,
174
+ 0
175
+ ]
176
+ },
177
+ {
178
+ "id": 2,
179
+ "value": [
180
+ 0.25,
181
+ 0.25,
182
+ 0.25
183
+ ]
184
+ }
185
+ ],
186
+ "elements": [
187
+ {
188
+ "id": 1,
189
+ "value": "Si"
190
+ },
191
+ {
192
+ "id": 2,
193
+ "value": "Si"
194
+ }
195
+ ],
196
+ "name": "basis",
197
+ "units": "crystal"
198
+ },
199
+ "createdAt": "2016-04-03T05:25:37.430Z",
200
+ "creator": {
201
+ "_id": "HtxACY2wX4b2hS8Rv",
202
+ "cls": "User",
203
+ "slug": "exadmin"
204
+ },
205
+ "derivedProperties": [
206
+ {
207
+ "name": "volume",
208
+ "units": "angstrom^3",
209
+ "value": 131.1
210
+ },
211
+ {
212
+ "name": "density",
213
+ "units": "g/cm^3",
214
+ "value": 2.33
215
+ },
216
+ {
217
+ "name": "symmetry",
218
+ "spaceGroupSymbol": "Fd-3m",
219
+ "tolerance": {
220
+ "units": "angstrom",
221
+ "value": 0.3
222
+ }
223
+ },
224
+ {
225
+ "degree": 10,
226
+ "name": "p-norm",
227
+ "value": 0.71
228
+ },
229
+ {
230
+ "element": "Si",
231
+ "name": "elemental_ratio",
232
+ "value": 0.71
233
+ },
234
+ {
235
+ "name": "inchi",
236
+ "value": ""
237
+ },
238
+ {
239
+ "name": "inchi_key",
240
+ "value": ""
241
+ }
242
+ ],
243
+ "exabyteId": "RKiswuxHKkF3uvLyA",
244
+ "formula": "Si",
245
+ "hash": "4ac3fa057e3530628eb1295c77110eaa",
246
+ "isDefault": false,
247
+ "isNonPeriodic": false,
248
+ "lattice": {
249
+ "name": "lattice",
250
+ "a": 5.14,
251
+ "alpha": 90,
252
+ "b": 5.14,
253
+ "beta": 90,
254
+ "c": 5.14,
255
+ "gamma": 90,
256
+ "type": "CUB",
257
+ "units": {
258
+ "angle": "degree",
259
+ "length": "angstrom"
260
+ },
261
+ "vectors": {
262
+ "a": [
263
+ 5,
264
+ 0.000121312,
265
+ 0.000131415
266
+ ],
267
+ "alat": 1,
268
+ "b": [
269
+ 0.000121312,
270
+ 5,
271
+ 0.000121314
272
+ ],
273
+ "c": [
274
+ 0.000121313,
275
+ 0.000121312,
276
+ 5
277
+ ],
278
+ "units": "angstrom"
279
+ }
280
+ },
281
+ "name": "Silicon FCC",
282
+ "owner": {
283
+ "_id": "HtxACY2wX4b2hS8Rv",
284
+ "cls": "Account",
285
+ "slug": "exabyte"
286
+ },
287
+ "scaledHash": "5bd4eb168e3530628eb1295d88221cbb",
288
+ "schemaVersion": "0.2.0",
289
+ "slug": "silicon-fcc",
290
+ "unitCellFormula": "Si2",
291
+ "updatedAt": "2016-04-04T17:58:42.867Z"
292
+ },
293
+ "miller_indices": [
294
+ 0,
295
+ 0,
296
+ 1
297
+ ],
298
+ "number_of_layers": 3,
299
+ "vacuum": 15,
300
+ "xy_supercell_matrix": [
301
+ [
302
+ 1,
303
+ 0
304
+ ],
305
+ [
306
+ 0,
307
+ 1
308
+ ]
309
+ ],
310
+ "use_conventional_cell": true,
311
+ "use_orthogonal_z": true,
312
+ "make_primitive": true
313
+ },
314
+ "termination": {
315
+ "chemical_elements": "Si",
316
+ "space_group_symmetry_label": "P4/mmm_2"
317
+ }
318
+ }
319
+ ],
320
+ "stacking_direction": "x",
321
+ "slab_configuration": {
322
+ "bulk": {
323
+ "_id": "LCthJ6E2QabYCZqf3",
324
+ "basis": {
325
+ "coordinates": [
326
+ {
327
+ "id": 1,
328
+ "value": [
329
+ 0,
330
+ 0,
331
+ 0
332
+ ]
333
+ },
334
+ {
335
+ "id": 2,
336
+ "value": [
337
+ 0.25,
338
+ 0.25,
339
+ 0.25
340
+ ]
341
+ }
342
+ ],
343
+ "elements": [
344
+ {
345
+ "id": 1,
346
+ "value": "Si"
347
+ },
348
+ {
349
+ "id": 2,
350
+ "value": "Si"
351
+ }
352
+ ],
353
+ "name": "basis",
354
+ "units": "crystal"
355
+ },
356
+ "createdAt": "2016-04-03T05:25:37.430Z",
357
+ "creator": {
358
+ "_id": "HtxACY2wX4b2hS8Rv",
359
+ "cls": "User",
360
+ "slug": "exadmin"
361
+ },
362
+ "derivedProperties": [
363
+ {
364
+ "name": "volume",
365
+ "units": "angstrom^3",
366
+ "value": 131.1
367
+ },
368
+ {
369
+ "name": "density",
370
+ "units": "g/cm^3",
371
+ "value": 2.33
372
+ },
373
+ {
374
+ "name": "symmetry",
375
+ "spaceGroupSymbol": "Fd-3m",
376
+ "tolerance": {
377
+ "units": "angstrom",
378
+ "value": 0.3
379
+ }
380
+ },
381
+ {
382
+ "degree": 10,
383
+ "name": "p-norm",
384
+ "value": 0.71
385
+ },
386
+ {
387
+ "element": "Si",
388
+ "name": "elemental_ratio",
389
+ "value": 0.71
390
+ },
391
+ {
392
+ "name": "inchi",
393
+ "value": ""
394
+ },
395
+ {
396
+ "name": "inchi_key",
397
+ "value": ""
398
+ }
399
+ ],
400
+ "exabyteId": "RKiswuxHKkF3uvLyA",
401
+ "formula": "Si",
402
+ "hash": "4ac3fa057e3530628eb1295c77110eaa",
403
+ "isDefault": false,
404
+ "isNonPeriodic": false,
405
+ "lattice": {
406
+ "name": "lattice",
407
+ "a": 5.14,
408
+ "alpha": 90,
409
+ "b": 5.14,
410
+ "beta": 90,
411
+ "c": 5.14,
412
+ "gamma": 90,
413
+ "type": "CUB",
414
+ "units": {
415
+ "angle": "degree",
416
+ "length": "angstrom"
417
+ },
418
+ "vectors": {
419
+ "a": [
420
+ 5,
421
+ 0.000121312,
422
+ 0.000131415
423
+ ],
424
+ "alat": 1,
425
+ "b": [
426
+ 0.000121312,
427
+ 5,
428
+ 0.000121314
429
+ ],
430
+ "c": [
431
+ 0.000121313,
432
+ 0.000121312,
433
+ 5
434
+ ],
435
+ "units": "angstrom"
436
+ }
437
+ },
438
+ "name": "Silicon FCC",
439
+ "owner": {
440
+ "_id": "HtxACY2wX4b2hS8Rv",
441
+ "cls": "Account",
442
+ "slug": "exabyte"
443
+ },
444
+ "scaledHash": "5bd4eb168e3530628eb1295d88221cbb",
445
+ "schemaVersion": "0.2.0",
446
+ "slug": "silicon-fcc",
447
+ "unitCellFormula": "Si2",
448
+ "updatedAt": "2016-04-04T17:58:42.867Z"
449
+ },
450
+ "miller_indices": [
451
+ 0,
452
+ 0,
453
+ 1
454
+ ],
455
+ "number_of_layers": 3,
456
+ "vacuum": 15,
457
+ "xy_supercell_matrix": [
458
+ [
459
+ 1,
460
+ 0
461
+ ],
462
+ [
463
+ 0,
464
+ 1
465
+ ]
466
+ ],
467
+ "use_conventional_cell": true,
468
+ "use_orthogonal_z": true,
469
+ "make_primitive": true
470
+ },
471
+ "termination": {
472
+ "chemical_elements": "Si",
473
+ "space_group_symmetry_label": "P4/mmm_2"
474
+ }
475
+ }
@@ -64,6 +64,7 @@ class JSONInclude {
64
64
  */
65
65
  parseIncludeStatements(filePath) {
66
66
  const data = (0, common_1.safeParseJSON)(fs_1.default.readFileSync(filePath, "utf8"));
67
+ console.log("Parsing file: ", filePath);
67
68
  if (settings_1.OBJECT_ONLY && !(0, common_1.isInstanceOf)(data, "Object")) {
68
69
  throw new Error("The JSON file being included should always be a dict rather than a list");
69
70
  }
@@ -0,0 +1,12 @@
1
+ {
2
+ "$id": "core/reusable/axis-enum",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Axis Enum",
5
+ "type": "string",
6
+ "description": "Enum for axis types",
7
+ "enum": [
8
+ "x",
9
+ "y",
10
+ "z"
11
+ ]
12
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$id": "core/reusable/coordinate-conditions/base",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Coordinate Condition Schema",
5
+ "description": "Base interface for coordinate shape filters",
6
+ "type": "object",
7
+ "required": [
8
+ "shape"
9
+ ],
10
+ "properties": {
11
+ "shape": {
12
+ "$schema": "http://json-schema.org/draft-07/schema#",
13
+ "title": "Coordinate Shape Enum",
14
+ "type": "string",
15
+ "enum": [
16
+ "cylinder",
17
+ "sphere",
18
+ "box",
19
+ "triangular_prism",
20
+ "plane"
21
+ ]
22
+ }
23
+ }
24
+ }