@mat3ra/esse 2025.5.17-0 → 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.
- package/dist/js/example/core/reusable/coordinate_conditions/box.json +13 -0
- package/dist/js/example/material/reusable/slab_configuration_with_termination.json +156 -0
- package/dist/js/example/materials_category/defects/one_dimensional/terrace/configuration.json +144 -0
- package/dist/js/example/materials_category/defects/two_dimensional/grain_boundary_plane/configuration.json +475 -0
- package/dist/js/example/materials_category/defects/zero_dimensional/complex/pair/configuration.json +406 -0
- package/dist/js/example/materials_category/defects/zero_dimensional/point/configuration.json +1 -1
- package/dist/js/example/materials_category/defects/zero_dimensional/point/interstitial/configuration.json +139 -0
- package/dist/js/example/materials_category/defects/zero_dimensional/point/substitution/configuration.json +138 -0
- package/dist/js/example/materials_category/defects/zero_dimensional/point/vacancy/configuration.json +137 -0
- package/dist/js/json_include/index.js +1 -0
- package/dist/js/schema/core/reusable/axis_enum.json +12 -0
- package/dist/js/schema/core/reusable/coordinate_conditions/base.json +24 -0
- package/dist/js/schema/core/reusable/coordinate_conditions/box.json +47 -0
- package/dist/js/schema/core/reusable/coordinate_conditions/enum.json +13 -0
- package/dist/js/schema/material/reusable/slab_configuration_with_termination.json +996 -0
- package/dist/js/schema/material/reusable/stack/slab_in_stack.json +1005 -0
- package/dist/js/schema/material/reusable/stack/stack_of_slabs.json +1032 -0
- package/dist/js/schema/material/reusable/stack/stack_of_two_slabs.json +1033 -0
- package/dist/js/schema/material/reusable/{supercell_matrix_2d.json → supercell/supercell_matrix_2d.json} +1 -1
- package/dist/js/schema/material/reusable/{supercell_matrix_3d.json → supercell/supercell_matrix_3d.json} +1 -1
- package/dist/js/schema/materials_category/defects/by_host/two_dimensional/layered/configuration.json +794 -0
- package/dist/js/schema/materials_category/defects/by_host/two_dimensional/{configuration.json → point/configuration.json} +6 -1
- package/dist/js/schema/materials_category/defects/configuration.json +5 -0
- package/dist/js/schema/materials_category/defects/one_dimensional/terrace/configuration.json +831 -0
- package/dist/js/schema/materials_category/defects/two_dimensional/grain_boundary_plane/configuration.json +2019 -0
- package/dist/js/schema/materials_category/defects/two_dimensional/island/condition.json.json +52 -0
- package/dist/js/schema/materials_category/defects/two_dimensional/island/configuration.json +845 -0
- package/dist/js/schema/materials_category/defects/zero_dimensional/complex/{pair.json → pair/configuration.json} +6 -1
- package/dist/js/schema/materials_category/multi_material/interfaces/configuration.json +1034 -0
- package/dist/js/schema/materials_category/single_material/two_dimensional/slab/configuration.json +3 -9
- package/dist/js/schemas.json +1 -1
- package/dist/js/types.d.ts +5716 -972
- package/example/core/reusable/coordinate_conditions/box.json +13 -0
- package/example/material/reusable/slab_configuration_with_termination.json +8 -0
- package/example/material/reusable/supercell/supercell_matrix_3d.json +11 -0
- package/example/materials_category/defects/by_host/two-dimensional/{configuration.json → point/configuration.json} +1 -1
- package/example/materials_category/defects/one-dimensional/terrace/configuration.json +19 -0
- package/example/materials_category/defects/two-dimensional/grain_boundary_plane/configuration.json +21 -0
- package/example/materials_category/defects/zero-dimensional/complex/pair/configuration.json +9 -0
- package/example/materials_category/defects/zero-dimensional/point/configuration.json +1 -1
- package/example/materials_category/defects/zero-dimensional/point/interstitial/configuration.json +14 -0
- package/example/materials_category/defects/zero-dimensional/point/substitution/configuration.json +13 -0
- package/example/materials_category/defects/zero-dimensional/point/vacancy/configuration.json +12 -0
- package/package.json +1 -1
- package/schema/core/primitive/axis_3d_names_enum.json +12 -0
- package/schema/core/reusable/coordinate_conditions/base.json +15 -0
- package/schema/core/reusable/coordinate_conditions/box.json +25 -0
- package/schema/core/reusable/coordinate_conditions/enum.json +13 -0
- package/schema/material/reusable/slab_configuration_with_termination.json +19 -0
- package/schema/material/reusable/stack/slab_in_stack.json +26 -0
- package/schema/material/reusable/stack/stack_of_slabs.json +31 -0
- package/schema/material/reusable/stack/stack_of_two_slabs.json +17 -0
- package/schema/material/reusable/{supercell_matrix_2d.json → supercell/supercell_matrix_2d.json} +1 -1
- package/schema/material/reusable/{supercell_matrix_3d.json → supercell/supercell_matrix_3d.json} +1 -1
- package/schema/materials_category/defects/by_host/two-dimensional/layered/configuration.json +16 -0
- package/schema/materials_category/defects/by_host/two-dimensional/{configuration.json → point/configuration.json} +3 -3
- package/schema/materials_category/defects/configuration.json +5 -0
- package/schema/materials_category/defects/one-dimensional/terrace/configuration.json +44 -0
- package/schema/materials_category/defects/two-dimensional/grain_boundary_plane/configuration.json +20 -0
- package/schema/materials_category/defects/two-dimensional/island/condition.json +9 -0
- package/schema/materials_category/defects/two-dimensional/island/configuration.json +18 -0
- package/schema/materials_category/defects/zero-dimensional/complex/{pair.json → pair/configuration.json} +4 -4
- package/schema/materials_category/multi-material/interfaces/configuration.json +12 -0
- package/schema/materials_category/single_material/two_dimensional/slab/configuration.json +4 -10
- package/src/js/json_include/index.ts +1 -0
- package/example/material/reusable/supercell_matrix_3d.json +0 -5
- /package/dist/js/example/material/reusable/{supercell_matrix_2d.json → supercell/supercell_matrix_2d.json} +0 -0
- /package/dist/js/example/material/reusable/{supercell_matrix_3d.json → supercell/supercell_matrix_3d.json} +0 -0
- /package/dist/js/example/materials_category/defects/by_host/two_dimensional/{configuration.json → point/configuration.json} +0 -0
- /package/example/material/reusable/{supercell_matrix_2d.json → supercell/supercell_matrix_2d.json} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"host": {
|
|
3
|
+
"...": "include(../../../../material.json)"
|
|
4
|
+
},
|
|
5
|
+
"number_of_added_layers": 3,
|
|
6
|
+
"defect_type": "terrace",
|
|
7
|
+
"cut_direction": [
|
|
8
|
+
1,
|
|
9
|
+
0,
|
|
10
|
+
0
|
|
11
|
+
],
|
|
12
|
+
"pivot_coordinate": [
|
|
13
|
+
0.5,
|
|
14
|
+
0.5,
|
|
15
|
+
0.5
|
|
16
|
+
],
|
|
17
|
+
"use_cartesian_coordinates": false,
|
|
18
|
+
"rotate_to_match_pbc": true
|
|
19
|
+
}
|
package/example/materials_category/defects/two-dimensional/grain_boundary_plane/configuration.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"stack_slab_configurations": [
|
|
3
|
+
{
|
|
4
|
+
"...": "include(../../../../material/reusable/slab_configuration_with_termination.json)",
|
|
5
|
+
"stack_component": "phase1",
|
|
6
|
+
"distance_to_next_slab": 3.0
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"...": "include(../../../../material/reusable/slab_configuration_with_termination.json)",
|
|
10
|
+
"stack_component": "phase2",
|
|
11
|
+
"distance_to_next_slab": 3.0
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"stacking_direction": "x",
|
|
15
|
+
"slab_configuration": {
|
|
16
|
+
"...": "include(../../../single_material/two_dimensional/slab/configuration.json)"
|
|
17
|
+
},
|
|
18
|
+
"termination": {
|
|
19
|
+
"...": "include(../../../../material/reusable/slab/termination.json)"
|
|
20
|
+
}
|
|
21
|
+
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
"properties": {
|
|
8
|
+
"shape": {
|
|
9
|
+
"$ref": "enum.json"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": [
|
|
13
|
+
"shape"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "core/reusable/coordinate-conditions/box",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Box Coordinate Condition Schema",
|
|
5
|
+
"allOf": [
|
|
6
|
+
{
|
|
7
|
+
"$ref": "base.json"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"shape": {
|
|
12
|
+
"const": "box"
|
|
13
|
+
},
|
|
14
|
+
"min_coordinate": {
|
|
15
|
+
"$ref": "../../abstract/coordinate_3d.json"
|
|
16
|
+
},
|
|
17
|
+
"max_coordinate": {
|
|
18
|
+
"$ref": "../../abstract/coordinate_3d.json"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"min_coordinate",
|
|
23
|
+
"max_coordinate"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "core/reusable/coordinate-conditions/enum",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Coordinate Shape Enum",
|
|
5
|
+
"type": "string",
|
|
6
|
+
"enum": [
|
|
7
|
+
"cylinder",
|
|
8
|
+
"sphere",
|
|
9
|
+
"box",
|
|
10
|
+
"triangular_prism",
|
|
11
|
+
"plane"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "material/reusable/slab-configuration-with-termination",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Slab Configuration With Termination Schema",
|
|
5
|
+
"description": "Configuration for a slab with termination",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"slab_configuration": {
|
|
9
|
+
"$ref": "../../materials_category/single_material/two_dimensional/slab/configuration.json"
|
|
10
|
+
},
|
|
11
|
+
"termination": {
|
|
12
|
+
"$ref": "slab/termination.json"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"slab_configuration",
|
|
17
|
+
"termination"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "material/reusable/stack/slab-in-stack",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Slab in Stack Configuration Schema",
|
|
5
|
+
"description": "Configuration for a slab in a stack with termination",
|
|
6
|
+
"allOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "../slab_configuration_with_termination.json"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"stack_component": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Component of the stack (e.g., slab1, slab2)"
|
|
15
|
+
},
|
|
16
|
+
"distance_to_next_slab": {
|
|
17
|
+
"type": "number",
|
|
18
|
+
"description": "Distance to the next slab in the stack, in Angstroms",
|
|
19
|
+
"default": 3.0
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"slab_configuration",
|
|
24
|
+
"termination"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "material/reusable/stack/stack-of-slabs",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Stack of Slabs Configuration Schema",
|
|
5
|
+
"description": "Configuration for a stack of multiple slabs.",
|
|
6
|
+
"properties": {
|
|
7
|
+
"stack_slab_configurations": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"description": "List of slab configurations for the slabs in the stack",
|
|
10
|
+
"items": {
|
|
11
|
+
"$ref": "./slab_in_stack.json"
|
|
12
|
+
},
|
|
13
|
+
"minItems": 2
|
|
14
|
+
},
|
|
15
|
+
"stacking_direction": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The axis along which the slabs are stacked",
|
|
18
|
+
"allOf": [
|
|
19
|
+
{
|
|
20
|
+
"$ref": "../../../core/primitive/axis_3d_names_enum.json"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"default": "z"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"stack_slab_configurations"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "material/reusable/stack/stack-of-two-slabs",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Stack Of Two Slabs Configuration Schema",
|
|
5
|
+
"description": "Configuration for two slabs stacked on top of each other.",
|
|
6
|
+
"allOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "./stack_of_slabs.json"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"stack_slab_configurations": {
|
|
13
|
+
"minItems": 2,
|
|
14
|
+
"maxItems": 2
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/schema/material/reusable/{supercell_matrix_2d.json → supercell/supercell_matrix_2d.json}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "material/reusable/supercell-matrix-2d",
|
|
2
|
+
"$id": "material/reusable/supercell/supercell-matrix-2d",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Supercell Matrix 2D Schema",
|
|
5
5
|
"description": "Supercell matrix for xy plane transformations",
|
package/schema/material/reusable/{supercell_matrix_3d.json → supercell/supercell_matrix_3d.json}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "material/reusable/supercell-matrix-3d",
|
|
2
|
+
"$id": "material/reusable/supercell/supercell-matrix-3d",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Supercell Matrix 3D Schema",
|
|
5
5
|
"description": "3x3 matrix of integers for transforming a unit cell into a supercell",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "materials-category/defects/by-host/two-dimensional/layered/configuration",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Two Dimensional Layered Defect Configuration Schema",
|
|
5
|
+
"description": "Two Dimensional Layered Defect Configuration Schema",
|
|
6
|
+
"allOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "../../../configuration.json"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"number_of_added_layers": {
|
|
13
|
+
"$ref": "../../../../../material/reusable/slab/number_of_layers.json"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "materials-category/defects/by-host/two-dimensional/configuration",
|
|
2
|
+
"$id": "materials-category/defects/by-host/two-dimensional/point/configuration",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Two Dimensional Defect Configuration Schema",
|
|
5
5
|
"description": "Configuration for defects in two-dimensional hosts",
|
|
6
6
|
"allOf": [
|
|
7
7
|
{
|
|
8
|
-
"$ref": "
|
|
8
|
+
"$ref": "../../../../defects/configuration.json"
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"properties": {
|
|
12
12
|
"position_on_surface": {
|
|
13
13
|
"description": "Position on the surface in 2D crystal coordinates",
|
|
14
|
-
"$ref": "
|
|
14
|
+
"$ref": "../../../../../core/abstract/coordinate_2d.json"
|
|
15
15
|
},
|
|
16
16
|
"distance_z": {
|
|
17
17
|
"description": "Distance from the surface in Angstroms",
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
}
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
|
+
"use_cartesian_coordinates": {
|
|
21
|
+
"description": "Whether to use Cartesian coordinates",
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"default": false
|
|
24
|
+
},
|
|
20
25
|
"isExternal": {
|
|
21
26
|
"description": "Whether the defect is external to the host material",
|
|
22
27
|
"type": "boolean",
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "materials-category/defects/one-dimensional/terrace/configuration",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Terrace Configuration Schema",
|
|
5
|
+
"description": "Configuration for creating a terrace",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "../../by_host/two-dimensional/layered/configuration.json"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"cut_direction": {
|
|
14
|
+
"allOf": [
|
|
15
|
+
{
|
|
16
|
+
"$ref": "../../../../material/reusable/slab/miller_indices.json"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"default": [
|
|
20
|
+
1,
|
|
21
|
+
0,
|
|
22
|
+
0
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"pivot_coordinate": {
|
|
26
|
+
"description": "Pivot coordinate where the cut plane passes through",
|
|
27
|
+
"allOf": [
|
|
28
|
+
{
|
|
29
|
+
"$ref": "../../../../core/abstract/coordinate_3d.json"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"default": [
|
|
33
|
+
0.5,
|
|
34
|
+
0.5,
|
|
35
|
+
0.5
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"rotate_to_match_pbc": {
|
|
39
|
+
"description": "Whether to rotate the slab to match periodic boundary conditions",
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"default": true
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
package/schema/materials_category/defects/two-dimensional/grain_boundary_plane/configuration.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "materials-category/defects/two-dimensional/grain-boundary-plane/configuration",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Grain Boundary Plane Configuration Schema",
|
|
5
|
+
"description": "Configuration for a grain boundary between two phases with different surfaces facing each other",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "../../../../material/reusable/slab_configuration_with_termination.json"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"$ref": "../../../../material/reusable/stack/stack_of_two_slabs.json"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"stacking_direction": {
|
|
17
|
+
"default": "x"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "materials-category/defects/two-dimensional/island/configuration",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Island Slab Defect Configuration Schema",
|
|
5
|
+
"description": "Configuration for an island defect on a slab surface",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "../../by_host/two-dimensional/layered/configuration.json"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"condition": {
|
|
14
|
+
"description": "Coordinate condition for the island defect",
|
|
15
|
+
"$ref": "./condition.json"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "materials-category/defects/zero-dimensional/complex/pair",
|
|
2
|
+
"$id": "materials-category/defects/zero-dimensional/complex/pair/configuration",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Pair Defect Schema",
|
|
5
5
|
"description": "Schema for pair defects, which are a type of zero-dimensional defect",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "../../../configuration.json"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"properties": {
|
|
13
13
|
"point_defect_configuration_1": {
|
|
14
|
-
"$ref": "
|
|
14
|
+
"$ref": "../../point/configuration.json"
|
|
15
15
|
},
|
|
16
16
|
"point_defect_configuration_2": {
|
|
17
|
-
"$ref": "
|
|
17
|
+
"$ref": "../../point/configuration.json"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "materials-category/multi-material/interfaces/configuration",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "Interface Configuration Schema",
|
|
5
|
+
"description": "Configuration for an interface between two materials",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "../../../material/reusable/stack/stack_of_two_slabs.json"
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
}
|
|
@@ -18,25 +18,19 @@
|
|
|
18
18
|
"$ref": "../../../../material/reusable/slab/vacuum.json"
|
|
19
19
|
},
|
|
20
20
|
"xy_supercell_matrix": {
|
|
21
|
-
"$ref": "../../../../material/reusable/supercell_matrix_2d.json"
|
|
21
|
+
"$ref": "../../../../material/reusable/supercell/supercell_matrix_2d.json"
|
|
22
22
|
},
|
|
23
23
|
"use_conventional_cell": {
|
|
24
24
|
"title": "Use Conventional Cell",
|
|
25
|
-
"description": "Whether to use conventional cell",
|
|
25
|
+
"description": "Whether to use conventional cell when generating the slab.",
|
|
26
26
|
"type": "boolean",
|
|
27
27
|
"default": true
|
|
28
28
|
},
|
|
29
29
|
"use_orthogonal_z": {
|
|
30
30
|
"title": "Use Orthogonal Z",
|
|
31
|
-
"description": "Whether to make
|
|
31
|
+
"description": "Whether to make vector c orthogonal to ab plane for the slab cell.",
|
|
32
32
|
"type": "boolean",
|
|
33
|
-
"default":
|
|
34
|
-
},
|
|
35
|
-
"make_primitive": {
|
|
36
|
-
"title": "Make Primitive",
|
|
37
|
-
"description": "Whether to make the slab primitive",
|
|
38
|
-
"type": "boolean",
|
|
39
|
-
"default": false
|
|
33
|
+
"default": true
|
|
40
34
|
}
|
|
41
35
|
}
|
|
42
36
|
}
|
|
@@ -64,6 +64,7 @@ export class JSONInclude {
|
|
|
64
64
|
*/
|
|
65
65
|
parseIncludeStatements(filePath: string) {
|
|
66
66
|
const data: CacheObject[] = safeParseJSON(fs.readFileSync(filePath, "utf8"));
|
|
67
|
+
console.log("Parsing file: ", filePath);
|
|
67
68
|
if (OBJECT_ONLY && !isInstanceOf(data, "Object")) {
|
|
68
69
|
throw new Error(
|
|
69
70
|
"The JSON file being included should always be a dict rather than a list",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/example/material/reusable/{supercell_matrix_2d.json → supercell/supercell_matrix_2d.json}
RENAMED
|
File without changes
|