mat3ra-esse 2025.6.14.post0__py3-none-any.whl → 2025.7.1.post0__py3-none-any.whl
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.
Potentially problematic release.
This version of mat3ra-esse might be problematic. Click here for more details.
- {mat3ra_esse-2025.6.14.post0.dist-info → mat3ra_esse-2025.7.1.post0.dist-info}/METADATA +2 -2
- {mat3ra_esse-2025.6.14.post0.dist-info → mat3ra_esse-2025.7.1.post0.dist-info}/RECORD +5 -118
- mat3ra/esse/models/coordinates_shape_enum.py +0 -15
- mat3ra/esse/models/core/abstract/2d_data.py +0 -17
- mat3ra/esse/models/core/abstract/2d_plot.py +0 -34
- mat3ra/esse/models/core/abstract/3d_grid.py +0 -14
- mat3ra/esse/models/core/abstract/3d_tensor.py +0 -19
- mat3ra/esse/models/core/abstract/3d_vector_basis.py +0 -15
- mat3ra/esse/models/core/abstract/_3d_tensor.py +0 -19
- mat3ra/esse/models/core/abstract/_3d_vector_basis.py +0 -15
- mat3ra/esse/models/core/abstract/point.py +0 -13
- mat3ra/esse/models/core/abstract/vector.py +0 -13
- mat3ra/esse/models/core/primitive/1d_data_series.py +0 -13
- mat3ra/esse/models/core/primitive/3d_lattice.py +0 -34
- mat3ra/esse/models/core/primitive/_3d_lattice.py +0 -34
- mat3ra/esse/models/core/reusable/accuracy_level.py +0 -27
- mat3ra/esse/models/core/reusable/atomic_strings.py +0 -24
- mat3ra/esse/models/core/reusable/coordinate_conditions/cylinder.py +0 -26
- mat3ra/esse/models/core/reusable/coordinate_conditions/plane.py +0 -24
- mat3ra/esse/models/core/reusable/coordinate_conditions/sphere.py +0 -24
- mat3ra/esse/models/core/reusable/coordinate_conditions/triangular_prism.py +0 -27
- mat3ra/esse/models/core/reusable/energy_accuracy_levels/__init__.py +0 -3
- mat3ra/esse/models/core/reusable/energy_accuracy_levels.py +0 -31
- mat3ra/esse/models/enums/__init__.py +0 -3
- mat3ra/esse/models/enums/chemical_elements.py +0 -13
- mat3ra/esse/models/material/builders/base/__init__.py +0 -3
- mat3ra/esse/models/material/builders/base/selector_parameters.py +0 -16
- mat3ra/esse/models/material/builders/single_material/two_dimensional/slab/__init__.py +0 -3
- mat3ra/esse/models/material/builders/single_material/two_dimensional/slab/builder_parameters.py +0 -28
- mat3ra/esse/models/material/builders/single_material/two_dimensional/slab/selector_parameters.py +0 -151
- mat3ra/esse/models/material/reusable/__init__.py +0 -3
- mat3ra/esse/models/material/reusable/coordinate_conditions/__init__.py +0 -3
- mat3ra/esse/models/material/reusable/coordinate_conditions/base.py +0 -21
- mat3ra/esse/models/material/reusable/coordinate_conditions/box.py +0 -24
- mat3ra/esse/models/material/reusable/coordinate_conditions/cylinder.py +0 -26
- mat3ra/esse/models/material/reusable/coordinate_conditions/plane.py +0 -24
- mat3ra/esse/models/material/reusable/coordinate_conditions/sphere.py +0 -24
- mat3ra/esse/models/material/reusable/coordinate_conditions/triangular_prism.py +0 -27
- mat3ra/esse/models/material/reusable/repetitions.py +0 -25
- mat3ra/esse/models/material/reusable/slab/__init__.py +0 -3
- mat3ra/esse/models/material/reusable/slab/enums/__init__.py +0 -3
- mat3ra/esse/models/material/reusable/slab/enums/exposed_face.py +0 -13
- mat3ra/esse/models/material/reusable/slab/enums.py +0 -13
- mat3ra/esse/models/material/reusable/slab/miller_indices.py +0 -16
- mat3ra/esse/models/material/reusable/slab/number_of_layers.py +0 -16
- mat3ra/esse/models/material/reusable/slab/slab_configuration_with_termination.py +0 -589
- mat3ra/esse/models/material/reusable/slab/slab_with_termination.py +0 -593
- mat3ra/esse/models/material/reusable/slab/termination.py +0 -144
- mat3ra/esse/models/material/reusable/slab/two_slabs_stack.py +0 -618
- mat3ra/esse/models/material/reusable/slab/vacuum.py +0 -16
- mat3ra/esse/models/material/reusable/slab_configuration_with_termination.py +0 -712
- mat3ra/esse/models/material/reusable/stack/__init__.py +0 -3
- mat3ra/esse/models/material/reusable/stack/slab_configuration_with_termination.py +0 -593
- mat3ra/esse/models/material/reusable/stack/slab_in_stack.py +0 -720
- mat3ra/esse/models/material/reusable/stack/stack_of_slabs.py +0 -737
- mat3ra/esse/models/material/reusable/stack/stack_of_two_slabs.py +0 -737
- mat3ra/esse/models/material/reusable/supercell/__init__.py +0 -3
- mat3ra/esse/models/material/reusable/supercell/supercell_matrix_2d.py +0 -25
- mat3ra/esse/models/material/reusable/supercell/supercell_matrix_3d.py +0 -27
- mat3ra/esse/models/material/reusable/supercell_matrix_2d.py +0 -25
- mat3ra/esse/models/material/reusable/supercell_matrix_3d.py +0 -27
- mat3ra/esse/models/materials_category/defects/__init__.py +0 -3
- mat3ra/esse/models/materials_category/defects/by_host/two_dimensional/adatom/__init__.py +0 -3
- mat3ra/esse/models/materials_category/defects/by_host/two_dimensional/adatom/configuration.py +0 -672
- mat3ra/esse/models/materials_category/defects/by_host/two_dimensional/layered/__init__.py +0 -3
- mat3ra/esse/models/materials_category/defects/by_host/two_dimensional/layered/configuration.py +0 -549
- mat3ra/esse/models/materials_category/defects/by_host/two_dimensional/point/__init__.py +0 -3
- mat3ra/esse/models/materials_category/defects/by_host/two_dimensional/point/configuration.py +0 -550
- mat3ra/esse/models/materials_category/defects/configuration.py +0 -545
- mat3ra/esse/models/materials_category/defects/enums/__init__.py +0 -3
- mat3ra/esse/models/materials_category/defects/enums/point_defect_type.py +0 -13
- mat3ra/esse/models/materials_category/defects/one_dimensional/terrace/__init__.py +0 -3
- mat3ra/esse/models/materials_category/defects/one_dimensional/terrace/configuration.py +0 -563
- mat3ra/esse/models/materials_category/defects/two_dimensional/grain_boundary_plane/__init__.py +0 -3
- mat3ra/esse/models/materials_category/defects/two_dimensional/grain_boundary_plane/configuration.py +0 -1200
- mat3ra/esse/models/materials_category/defects/two_dimensional/island/__init__.py +0 -3
- mat3ra/esse/models/materials_category/defects/two_dimensional/island/condition_json.py +0 -28
- mat3ra/esse/models/materials_category/defects/two_dimensional/island/configuration.py +0 -564
- mat3ra/esse/models/materials_category/defects/zero_dimensional/complex/pair/__init__.py +0 -3
- mat3ra/esse/models/materials_category/defects/zero_dimensional/complex/pair/configuration.py +0 -1538
- mat3ra/esse/models/materials_category/defects/zero_dimensional/point/__init__.py +0 -3
- mat3ra/esse/models/materials_category/defects/zero_dimensional/point/configuration.py +0 -672
- mat3ra/esse/models/materials_category/defects/zero_dimensional/point/interstitial/__init__.py +0 -3
- mat3ra/esse/models/materials_category/defects/zero_dimensional/point/interstitial/configuration.py +0 -672
- mat3ra/esse/models/materials_category/defects/zero_dimensional/point/substitution/__init__.py +0 -3
- mat3ra/esse/models/materials_category/defects/zero_dimensional/point/substitution/configuration.py +0 -672
- mat3ra/esse/models/materials_category/defects/zero_dimensional/point/vacancy/__init__.py +0 -3
- mat3ra/esse/models/materials_category/defects/zero_dimensional/point/vacancy/configuration.py +0 -672
- mat3ra/esse/models/materials_category/multi_material/interfaces/__init__.py +0 -3
- mat3ra/esse/models/materials_category/multi_material/interfaces/configuration.py +0 -737
- mat3ra/esse/models/materials_category/single_material/two_dimensional/slab/__init__.py +0 -3
- mat3ra/esse/models/materials_category/single_material/two_dimensional/slab/configuration.py +0 -567
- mat3ra/esse/models/methods_directory/physical/psp/file/__init__.py +0 -129
- mat3ra/esse/models/methods_directory/physical/psp/file_data_item/__init__.py +0 -111
- mat3ra/esse/models/properties_directory/structural/lattice/lattice_bravais.py +0 -74
- mat3ra/esse/models/property/base/__init__.py +0 -200
- mat3ra/esse/models/property/meta/__init__.py +0 -200
- mat3ra/esse/models/property/raw/__init__.py +0 -200
- mat3ra/esse/models/property/source/__init__.py +0 -150
- mat3ra/esse/models/third_party/db/nist_jarvis/2024_3.13/__init__.py +0 -3
- mat3ra/esse/models/third_party/db/nist_jarvis/2024_3.13/atoms.py +0 -41
- mat3ra/esse/models/third_party/db/nist_jarvis/2024_3.13/db_entry.py +0 -55
- mat3ra/esse/models/third_party/file/applications/espresso/7.2/__init__.py +0 -3
- mat3ra/esse/models/third_party/file/applications/espresso/7.2/pw.x/__init__.py +0 -3
- mat3ra/esse/models/third_party/file/applications/espresso/7.2/pw.x/atomic_positions.py +0 -51
- mat3ra/esse/models/third_party/file/applications/espresso/7.2/pw.x/atomic_species.py +0 -34
- mat3ra/esse/models/third_party/file/applications/espresso/7.2/pw.x/cell.py +0 -111
- mat3ra/esse/models/third_party/file/applications/espresso/7.2/pw.x/cell_parameters.py +0 -36
- mat3ra/esse/models/third_party/file/applications/espresso/7.2/pw.x/control.py +0 -169
- mat3ra/esse/models/third_party/file/applications/espresso/7.2/pw.x/electrons.py +0 -139
- mat3ra/esse/models/third_party/file/applications/espresso/7.2/pw.x/hubbard.py +0 -194
- mat3ra/esse/models/third_party/file/applications/espresso/7.2/pw.x/ions.py +0 -422
- mat3ra/esse/models/third_party/file/applications/espresso/7.2/pw.x/k_points.py +0 -73
- mat3ra/esse/models/third_party/file/applications/espresso/7.2/pw.x/system.py +0 -841
- mat3ra/esse/models/third_party/file/applications/espresso/7.2/pw_x.py +0 -1990
- {mat3ra_esse-2025.6.14.post0.dist-info → mat3ra_esse-2025.7.1.post0.dist-info}/WHEEL +0 -0
- {mat3ra_esse-2025.6.14.post0.dist-info → mat3ra_esse-2025.7.1.post0.dist-info}/licenses/LICENSE.md +0 -0
- {mat3ra_esse-2025.6.14.post0.dist-info → mat3ra_esse-2025.7.1.post0.dist-info}/top_level.txt +0 -0
|
@@ -1,567 +0,0 @@
|
|
|
1
|
-
# generated by datamodel-codegen:
|
|
2
|
-
# filename: materials_category/single_material/two_dimensional/slab/configuration.json
|
|
3
|
-
# version: 0.28.5
|
|
4
|
-
|
|
5
|
-
from __future__ import annotations
|
|
6
|
-
|
|
7
|
-
from enum import Enum
|
|
8
|
-
from typing import Any, Dict, List, Literal, Optional, Union
|
|
9
|
-
|
|
10
|
-
from pydantic import BaseModel, Field, RootModel, confloat, conint
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class Value(Enum):
|
|
14
|
-
H = "H"
|
|
15
|
-
He = "He"
|
|
16
|
-
Li = "Li"
|
|
17
|
-
Be = "Be"
|
|
18
|
-
B = "B"
|
|
19
|
-
C = "C"
|
|
20
|
-
N = "N"
|
|
21
|
-
O = "O"
|
|
22
|
-
F = "F"
|
|
23
|
-
Ne = "Ne"
|
|
24
|
-
Na = "Na"
|
|
25
|
-
Mg = "Mg"
|
|
26
|
-
Al = "Al"
|
|
27
|
-
Si = "Si"
|
|
28
|
-
P = "P"
|
|
29
|
-
S = "S"
|
|
30
|
-
Cl = "Cl"
|
|
31
|
-
Ar = "Ar"
|
|
32
|
-
K = "K"
|
|
33
|
-
Ca = "Ca"
|
|
34
|
-
Sc = "Sc"
|
|
35
|
-
Ti = "Ti"
|
|
36
|
-
V = "V"
|
|
37
|
-
Cr = "Cr"
|
|
38
|
-
Mn = "Mn"
|
|
39
|
-
Fe = "Fe"
|
|
40
|
-
Co = "Co"
|
|
41
|
-
Ni = "Ni"
|
|
42
|
-
Cu = "Cu"
|
|
43
|
-
Zn = "Zn"
|
|
44
|
-
Ga = "Ga"
|
|
45
|
-
Ge = "Ge"
|
|
46
|
-
As = "As"
|
|
47
|
-
Se = "Se"
|
|
48
|
-
Br = "Br"
|
|
49
|
-
Kr = "Kr"
|
|
50
|
-
Rb = "Rb"
|
|
51
|
-
Sr = "Sr"
|
|
52
|
-
Y = "Y"
|
|
53
|
-
Zr = "Zr"
|
|
54
|
-
Nb = "Nb"
|
|
55
|
-
Mo = "Mo"
|
|
56
|
-
Tc = "Tc"
|
|
57
|
-
Ru = "Ru"
|
|
58
|
-
Rh = "Rh"
|
|
59
|
-
Pd = "Pd"
|
|
60
|
-
Ag = "Ag"
|
|
61
|
-
Cd = "Cd"
|
|
62
|
-
In = "In"
|
|
63
|
-
Sn = "Sn"
|
|
64
|
-
Sb = "Sb"
|
|
65
|
-
Te = "Te"
|
|
66
|
-
I = "I"
|
|
67
|
-
Xe = "Xe"
|
|
68
|
-
Cs = "Cs"
|
|
69
|
-
Ba = "Ba"
|
|
70
|
-
La = "La"
|
|
71
|
-
Ce = "Ce"
|
|
72
|
-
Pr = "Pr"
|
|
73
|
-
Nd = "Nd"
|
|
74
|
-
Pm = "Pm"
|
|
75
|
-
Sm = "Sm"
|
|
76
|
-
Eu = "Eu"
|
|
77
|
-
Gd = "Gd"
|
|
78
|
-
Tb = "Tb"
|
|
79
|
-
Dy = "Dy"
|
|
80
|
-
Ho = "Ho"
|
|
81
|
-
Er = "Er"
|
|
82
|
-
Tm = "Tm"
|
|
83
|
-
Yb = "Yb"
|
|
84
|
-
Lu = "Lu"
|
|
85
|
-
Hf = "Hf"
|
|
86
|
-
Ta = "Ta"
|
|
87
|
-
W = "W"
|
|
88
|
-
Re = "Re"
|
|
89
|
-
Os = "Os"
|
|
90
|
-
Ir = "Ir"
|
|
91
|
-
Pt = "Pt"
|
|
92
|
-
Au = "Au"
|
|
93
|
-
Hg = "Hg"
|
|
94
|
-
Tl = "Tl"
|
|
95
|
-
Pb = "Pb"
|
|
96
|
-
Bi = "Bi"
|
|
97
|
-
Po = "Po"
|
|
98
|
-
At = "At"
|
|
99
|
-
Rn = "Rn"
|
|
100
|
-
Fr = "Fr"
|
|
101
|
-
Ra = "Ra"
|
|
102
|
-
Ac = "Ac"
|
|
103
|
-
Th = "Th"
|
|
104
|
-
Pa = "Pa"
|
|
105
|
-
U = "U"
|
|
106
|
-
Np = "Np"
|
|
107
|
-
Pu = "Pu"
|
|
108
|
-
Am = "Am"
|
|
109
|
-
Cm = "Cm"
|
|
110
|
-
Bk = "Bk"
|
|
111
|
-
Cf = "Cf"
|
|
112
|
-
Es = "Es"
|
|
113
|
-
Fm = "Fm"
|
|
114
|
-
Md = "Md"
|
|
115
|
-
No = "No"
|
|
116
|
-
Lr = "Lr"
|
|
117
|
-
Rf = "Rf"
|
|
118
|
-
Db = "Db"
|
|
119
|
-
Sg = "Sg"
|
|
120
|
-
Bh = "Bh"
|
|
121
|
-
Hs = "Hs"
|
|
122
|
-
Mt = "Mt"
|
|
123
|
-
Ds = "Ds"
|
|
124
|
-
Rg = "Rg"
|
|
125
|
-
Cn = "Cn"
|
|
126
|
-
Nh = "Nh"
|
|
127
|
-
Fl = "Fl"
|
|
128
|
-
Mc = "Mc"
|
|
129
|
-
Lv = "Lv"
|
|
130
|
-
Ts = "Ts"
|
|
131
|
-
Og = "Og"
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
class Value41(Enum):
|
|
135
|
-
X = "X"
|
|
136
|
-
Vac = "Vac"
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
class AtomicElementSchema(BaseModel):
|
|
140
|
-
value: Union[Value, Value41]
|
|
141
|
-
"""
|
|
142
|
-
All elements, including extra elements
|
|
143
|
-
"""
|
|
144
|
-
id: int
|
|
145
|
-
"""
|
|
146
|
-
integer id of this entry
|
|
147
|
-
"""
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
class AtomicCoordinateSchema(BaseModel):
|
|
151
|
-
value: List[float] = Field(..., max_length=3, min_length=3, title="coordinate 3d schema")
|
|
152
|
-
"""
|
|
153
|
-
value of this entry
|
|
154
|
-
"""
|
|
155
|
-
id: int
|
|
156
|
-
"""
|
|
157
|
-
integer id of this entry
|
|
158
|
-
"""
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
class BasisUnitsEnum(Enum):
|
|
162
|
-
crystal = "crystal"
|
|
163
|
-
cartesian = "cartesian"
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
class AtomicLabelSchema(BaseModel):
|
|
167
|
-
value: Union[Union[int, str, float], conint(ge=1, le=9)]
|
|
168
|
-
"""
|
|
169
|
-
value of this entry
|
|
170
|
-
"""
|
|
171
|
-
id: int
|
|
172
|
-
"""
|
|
173
|
-
integer id of this entry
|
|
174
|
-
"""
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
class BasisSchema(BaseModel):
|
|
178
|
-
elements: List[AtomicElementSchema] = Field(..., title="atomic elements schema")
|
|
179
|
-
"""
|
|
180
|
-
atomic elements schema
|
|
181
|
-
"""
|
|
182
|
-
coordinates: List[AtomicCoordinateSchema] = Field(..., title="atomic coordinates schema")
|
|
183
|
-
"""
|
|
184
|
-
atomic coordinates schema
|
|
185
|
-
"""
|
|
186
|
-
units: Optional[BasisUnitsEnum] = Field("crystal", title="basis units enum")
|
|
187
|
-
labels: Optional[List[AtomicLabelSchema]] = Field(None, title="atomic labels schema")
|
|
188
|
-
"""
|
|
189
|
-
atomic labels schema
|
|
190
|
-
"""
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
class LatticeVectorsUnitsEnum(Enum):
|
|
194
|
-
angstrom = "angstrom"
|
|
195
|
-
bohr = "bohr"
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
class LatticeVectorsSchema(BaseModel):
|
|
199
|
-
a: List[float] = Field(..., max_length=3, min_length=3, title="vector 3d schema")
|
|
200
|
-
b: List[float] = Field(..., max_length=3, min_length=3, title="vector 3d schema")
|
|
201
|
-
c: List[float] = Field(..., max_length=3, min_length=3, title="vector 3d schema")
|
|
202
|
-
alat: Optional[float] = 1
|
|
203
|
-
"""
|
|
204
|
-
lattice parameter for fractional coordinates
|
|
205
|
-
"""
|
|
206
|
-
units: Optional[LatticeVectorsUnitsEnum] = Field("angstrom", title="lattice vectors units enum")
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
class LatticeTypeEnum(Enum):
|
|
210
|
-
CUB = "CUB"
|
|
211
|
-
BCC = "BCC"
|
|
212
|
-
FCC = "FCC"
|
|
213
|
-
TET = "TET"
|
|
214
|
-
MCL = "MCL"
|
|
215
|
-
ORC = "ORC"
|
|
216
|
-
ORCC = "ORCC"
|
|
217
|
-
ORCF = "ORCF"
|
|
218
|
-
ORCI = "ORCI"
|
|
219
|
-
HEX = "HEX"
|
|
220
|
-
BCT = "BCT"
|
|
221
|
-
TRI = "TRI"
|
|
222
|
-
MCLC = "MCLC"
|
|
223
|
-
RHL = "RHL"
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
class LatticeUnitsLengthEnum(Enum):
|
|
227
|
-
angstrom = "angstrom"
|
|
228
|
-
bohr = "bohr"
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
class LatticeUnitsAngleEnum(Enum):
|
|
232
|
-
degree = "degree"
|
|
233
|
-
radian = "radian"
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
class LatticeUnitsSchema(BaseModel):
|
|
237
|
-
length: Optional[LatticeUnitsLengthEnum] = Field("angstrom", title="lattice units length enum")
|
|
238
|
-
angle: Optional[LatticeUnitsAngleEnum] = Field("degree", title="lattice units angle enum")
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
class LatticeSchema(BaseModel):
|
|
242
|
-
a: float
|
|
243
|
-
"""
|
|
244
|
-
length of the first lattice vector
|
|
245
|
-
"""
|
|
246
|
-
b: float
|
|
247
|
-
"""
|
|
248
|
-
length of the second lattice vector
|
|
249
|
-
"""
|
|
250
|
-
c: float
|
|
251
|
-
"""
|
|
252
|
-
length of the third lattice vector
|
|
253
|
-
"""
|
|
254
|
-
alpha: float
|
|
255
|
-
"""
|
|
256
|
-
angle between first and second lattice vector
|
|
257
|
-
"""
|
|
258
|
-
beta: float
|
|
259
|
-
"""
|
|
260
|
-
angle between second and third lattice vector
|
|
261
|
-
"""
|
|
262
|
-
gamma: float
|
|
263
|
-
"""
|
|
264
|
-
angle between first and third lattice vector
|
|
265
|
-
"""
|
|
266
|
-
vectors: Optional[LatticeVectorsSchema] = Field(None, title="lattice vectors schema")
|
|
267
|
-
type: Optional[LatticeTypeEnum] = Field("TRI", title="lattice type enum")
|
|
268
|
-
units: Optional[LatticeUnitsSchema] = Field(
|
|
269
|
-
default_factory=lambda: LatticeUnitsSchema.model_validate({"length": "angstrom", "angle": "degree"}),
|
|
270
|
-
title="Lattice units schema",
|
|
271
|
-
)
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
class Name(Enum):
|
|
275
|
-
volume = "volume"
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
class Units(Enum):
|
|
279
|
-
angstrom_3 = "angstrom^3"
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
class VolumeSchema(BaseModel):
|
|
283
|
-
name: Literal["0#-datamodel-code-generator-#-object-#-special-#"]
|
|
284
|
-
units: Optional[Units] = None
|
|
285
|
-
value: float
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
class Name136(Enum):
|
|
289
|
-
density = "density"
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
class Units58(Enum):
|
|
293
|
-
g_cm_3 = "g/cm^3"
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
class DensitySchema(BaseModel):
|
|
297
|
-
name: Literal["1#-datamodel-code-generator-#-object-#-special-#"]
|
|
298
|
-
units: Optional[Units58] = None
|
|
299
|
-
value: float
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
class Units59(Enum):
|
|
303
|
-
angstrom = "angstrom"
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
class ScalarSchema(BaseModel):
|
|
307
|
-
units: Optional[Units59] = None
|
|
308
|
-
value: float
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
class Name137(Enum):
|
|
312
|
-
symmetry = "symmetry"
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
class SymmetrySchema(BaseModel):
|
|
316
|
-
pointGroupSymbol: Optional[str] = None
|
|
317
|
-
"""
|
|
318
|
-
point group symbol in Schoenflies notation
|
|
319
|
-
"""
|
|
320
|
-
spaceGroupSymbol: Optional[str] = None
|
|
321
|
-
"""
|
|
322
|
-
space group symbol in Hermann–Mauguin notation
|
|
323
|
-
"""
|
|
324
|
-
tolerance: Optional[ScalarSchema] = Field(None, title="scalar schema")
|
|
325
|
-
"""
|
|
326
|
-
tolerance used for symmetry calculation
|
|
327
|
-
"""
|
|
328
|
-
name: Literal["2#-datamodel-code-generator-#-object-#-special-#"]
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
class Name138(Enum):
|
|
332
|
-
elemental_ratio = "elemental_ratio"
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
class ElementalRatio(BaseModel):
|
|
336
|
-
name: Literal["3#-datamodel-code-generator-#-object-#-special-#"]
|
|
337
|
-
value: confloat(ge=0.0, le=1.0)
|
|
338
|
-
element: Optional[str] = None
|
|
339
|
-
"""
|
|
340
|
-
the element this ratio is for
|
|
341
|
-
"""
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
class Name139(Enum):
|
|
345
|
-
p_norm = "p-norm"
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
class PNorm(BaseModel):
|
|
349
|
-
name: Literal["4#-datamodel-code-generator-#-object-#-special-#"]
|
|
350
|
-
degree: Optional[int] = None
|
|
351
|
-
"""
|
|
352
|
-
degree of the dimensionality of the norm
|
|
353
|
-
"""
|
|
354
|
-
value: float
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
class Name140(Enum):
|
|
358
|
-
inchi = "inchi"
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
class InChIRepresentationSchema(BaseModel):
|
|
362
|
-
name: Literal["5#-datamodel-code-generator-#-object-#-special-#"]
|
|
363
|
-
value: str
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
class Name141(Enum):
|
|
367
|
-
inchi_key = "inchi_key"
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
class InChIKeyRepresentationSchema(BaseModel):
|
|
371
|
-
name: Literal["6#-datamodel-code-generator-#-object-#-special-#"]
|
|
372
|
-
value: str
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
class DerivedPropertiesSchema(
|
|
376
|
-
RootModel[
|
|
377
|
-
Union[
|
|
378
|
-
VolumeSchema,
|
|
379
|
-
DensitySchema,
|
|
380
|
-
SymmetrySchema,
|
|
381
|
-
ElementalRatio,
|
|
382
|
-
PNorm,
|
|
383
|
-
InChIRepresentationSchema,
|
|
384
|
-
InChIKeyRepresentationSchema,
|
|
385
|
-
]
|
|
386
|
-
]
|
|
387
|
-
):
|
|
388
|
-
root: Union[
|
|
389
|
-
VolumeSchema,
|
|
390
|
-
DensitySchema,
|
|
391
|
-
SymmetrySchema,
|
|
392
|
-
ElementalRatio,
|
|
393
|
-
PNorm,
|
|
394
|
-
InChIRepresentationSchema,
|
|
395
|
-
InChIKeyRepresentationSchema,
|
|
396
|
-
] = Field(..., discriminator="name")
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
class DatabaseSourceSchema(BaseModel):
|
|
400
|
-
id: Union[str, float]
|
|
401
|
-
"""
|
|
402
|
-
ID string for the materials uploaded from a third party source inside the third party source. For materialsproject.org an example ID is mp-32
|
|
403
|
-
"""
|
|
404
|
-
source: str
|
|
405
|
-
"""
|
|
406
|
-
Third party source name, e.g. materials project, 2dmatpedia, ICSD, etc.
|
|
407
|
-
"""
|
|
408
|
-
origin: bool
|
|
409
|
-
"""
|
|
410
|
-
Deprecated. To be removed. A flag that is true when material is initially imported from a third party * (as opposed to being independently designed from scratch).
|
|
411
|
-
"""
|
|
412
|
-
data: Optional[Dict[str, Any]] = None
|
|
413
|
-
"""
|
|
414
|
-
Original response from external source.
|
|
415
|
-
"""
|
|
416
|
-
doi: Optional[str] = None
|
|
417
|
-
"""
|
|
418
|
-
Digital Object Identifier, e.g. 10.1088/0953-8984/25/10/105506
|
|
419
|
-
"""
|
|
420
|
-
url: Optional[str] = None
|
|
421
|
-
"""
|
|
422
|
-
The URL of the original record, e.g. https://next-gen.materialsproject.org/materials/mp-48; ToDo: update to use URI type per https://json-schema.org/understanding-json-schema/reference/string#resource-identifiers
|
|
423
|
-
"""
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
class FileSourceSchema(BaseModel):
|
|
427
|
-
extension: Optional[str] = None
|
|
428
|
-
"""
|
|
429
|
-
file extension
|
|
430
|
-
"""
|
|
431
|
-
filename: str
|
|
432
|
-
"""
|
|
433
|
-
file name without extension
|
|
434
|
-
"""
|
|
435
|
-
text: str
|
|
436
|
-
"""
|
|
437
|
-
file content as raw text
|
|
438
|
-
"""
|
|
439
|
-
hash: str
|
|
440
|
-
"""
|
|
441
|
-
MD5 hash based on file content
|
|
442
|
-
"""
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
class Name142(Enum):
|
|
446
|
-
default = "default"
|
|
447
|
-
atomsTooClose = "atomsTooClose"
|
|
448
|
-
atomsOverlap = "atomsOverlap"
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
class Severity(Enum):
|
|
452
|
-
info = "info"
|
|
453
|
-
warning = "warning"
|
|
454
|
-
error = "error"
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
class MaterialConsistencyCheckSchema(BaseModel):
|
|
458
|
-
name: Name142
|
|
459
|
-
"""
|
|
460
|
-
Name of the consistency check that is performed, which is listed in an enum.
|
|
461
|
-
"""
|
|
462
|
-
key: str
|
|
463
|
-
"""
|
|
464
|
-
Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'
|
|
465
|
-
"""
|
|
466
|
-
severity: Severity
|
|
467
|
-
"""
|
|
468
|
-
Severity level of the problem, which is used in UI to differentiate.
|
|
469
|
-
"""
|
|
470
|
-
message: str
|
|
471
|
-
"""
|
|
472
|
-
Message generated by the consistency check describing the problem.
|
|
473
|
-
"""
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
class MaterialSchema(BaseModel):
|
|
477
|
-
formula: Optional[str] = None
|
|
478
|
-
"""
|
|
479
|
-
reduced chemical formula
|
|
480
|
-
"""
|
|
481
|
-
unitCellFormula: Optional[str] = None
|
|
482
|
-
"""
|
|
483
|
-
chemical formula based on the number of atoms of each element in the supercell
|
|
484
|
-
"""
|
|
485
|
-
basis: BasisSchema = Field(..., title="basis schema")
|
|
486
|
-
lattice: LatticeSchema = Field(..., title="lattice schema")
|
|
487
|
-
derivedProperties: Optional[List[DerivedPropertiesSchema]] = Field(None, title="derived properties schema")
|
|
488
|
-
external: Optional[DatabaseSourceSchema] = Field(None, title="database source schema")
|
|
489
|
-
"""
|
|
490
|
-
information about a database source
|
|
491
|
-
"""
|
|
492
|
-
src: Optional[FileSourceSchema] = Field(None, title="file source schema")
|
|
493
|
-
"""
|
|
494
|
-
file source with the information inside
|
|
495
|
-
"""
|
|
496
|
-
scaledHash: Optional[str] = None
|
|
497
|
-
"""
|
|
498
|
-
Hash string for a scaled structure with lattice vector a set to 1 (eg. for materials under pressure).
|
|
499
|
-
"""
|
|
500
|
-
icsdId: Optional[int] = None
|
|
501
|
-
"""
|
|
502
|
-
Corresponding ICSD id of the material
|
|
503
|
-
"""
|
|
504
|
-
isNonPeriodic: Optional[bool] = None
|
|
505
|
-
"""
|
|
506
|
-
Whether to work in the finite molecular picture (usually with atomic orbital basis)
|
|
507
|
-
"""
|
|
508
|
-
consistencyChecks: Optional[List[MaterialConsistencyCheckSchema]] = None
|
|
509
|
-
field_id: Optional[str] = Field(None, alias="_id")
|
|
510
|
-
"""
|
|
511
|
-
entity identity
|
|
512
|
-
"""
|
|
513
|
-
slug: Optional[str] = None
|
|
514
|
-
"""
|
|
515
|
-
entity slug
|
|
516
|
-
"""
|
|
517
|
-
systemName: Optional[str] = None
|
|
518
|
-
schemaVersion: Optional[str] = "2022.8.16"
|
|
519
|
-
"""
|
|
520
|
-
entity's schema version. Used to distinct between different schemas.
|
|
521
|
-
"""
|
|
522
|
-
name: Optional[str] = None
|
|
523
|
-
"""
|
|
524
|
-
entity name
|
|
525
|
-
"""
|
|
526
|
-
isDefault: Optional[bool] = False
|
|
527
|
-
"""
|
|
528
|
-
Identifies that entity is defaultable
|
|
529
|
-
"""
|
|
530
|
-
metadata: Optional[Dict[str, Any]] = None
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
class SupercellMatrix2DSchemaItem(RootModel[List[int]]):
|
|
534
|
-
root: List[int]
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
class SlabConfigurationSchema(BaseModel):
|
|
538
|
-
bulk: Optional[MaterialSchema] = Field(None, title="material schema")
|
|
539
|
-
miller_indices: Optional[List[int]] = Field([0, 0, 1], max_length=3, min_length=3, title="Miller Indices Schema")
|
|
540
|
-
"""
|
|
541
|
-
Miller indices for crystallographic plane designation
|
|
542
|
-
"""
|
|
543
|
-
number_of_layers: Optional[conint(ge=1)] = Field(1, title="Number of Layers Schema")
|
|
544
|
-
"""
|
|
545
|
-
Number of atomic layers in a structural component
|
|
546
|
-
"""
|
|
547
|
-
vacuum: Optional[confloat(ge=0.0)] = Field(5, title="Vacuum Thickness Schema")
|
|
548
|
-
"""
|
|
549
|
-
Vacuum thickness in Angstroms
|
|
550
|
-
"""
|
|
551
|
-
xy_supercell_matrix: Optional[List[SupercellMatrix2DSchemaItem]] = Field(
|
|
552
|
-
default_factory=lambda: [SupercellMatrix2DSchemaItem.model_validate(v) for v in [[1, 0], [0, 1]]],
|
|
553
|
-
max_length=2,
|
|
554
|
-
min_length=2,
|
|
555
|
-
title="Supercell Matrix 2D Schema",
|
|
556
|
-
)
|
|
557
|
-
"""
|
|
558
|
-
Supercell matrix for xy plane transformations
|
|
559
|
-
"""
|
|
560
|
-
use_conventional_cell: Optional[bool] = Field(True, title="Use Conventional Cell")
|
|
561
|
-
"""
|
|
562
|
-
Whether to use conventional cell when generating the slab.
|
|
563
|
-
"""
|
|
564
|
-
use_orthogonal_z: Optional[bool] = Field(True, title="Use Orthogonal Z")
|
|
565
|
-
"""
|
|
566
|
-
Whether to make vector c orthogonal to ab plane for the slab cell.
|
|
567
|
-
"""
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
# generated by datamodel-codegen:
|
|
2
|
-
# filename: methods_directory/physical/psp/file.json
|
|
3
|
-
# version: 0.25.5
|
|
4
|
-
|
|
5
|
-
from __future__ import annotations
|
|
6
|
-
|
|
7
|
-
from enum import Enum
|
|
8
|
-
from typing import Any, Dict, List, Optional
|
|
9
|
-
|
|
10
|
-
from pydantic import BaseModel, ConfigDict, Field, confloat, conint, constr
|
|
11
|
-
|
|
12
|
-
from ..Reusable_schema_for_energy_value_with_unit_corresponding_to_a_specific_accuracy_level__e import (
|
|
13
|
-
g,
|
|
14
|
-
)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class Slug(Enum):
|
|
18
|
-
pseudopotential = "pseudopotential"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
class Type(Enum):
|
|
22
|
-
us = "us"
|
|
23
|
-
nc = "nc"
|
|
24
|
-
nc_fr = "nc-fr"
|
|
25
|
-
paw = "paw"
|
|
26
|
-
coulomb = "coulomb"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
class ExchangeCorrelation(BaseModel):
|
|
30
|
-
approximation: Optional[str] = None
|
|
31
|
-
"""
|
|
32
|
-
DFT approximation
|
|
33
|
-
"""
|
|
34
|
-
functional: Optional[str] = None
|
|
35
|
-
"""
|
|
36
|
-
Exchange correlation functional
|
|
37
|
-
"""
|
|
38
|
-
path: Optional[str] = Field(None, title="category path schema")
|
|
39
|
-
"""
|
|
40
|
-
TODO: Use regex once schema draft version has been updated
|
|
41
|
-
"""
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
class AtomicOrbitalSchema(BaseModel):
|
|
45
|
-
orbitalName: Optional[constr(pattern=r"^[1-7][sSpPdDfF]$")] = None
|
|
46
|
-
orbitalIndex: Optional[conint(ge=1)] = None
|
|
47
|
-
principalNumber: Optional[conint(ge=1, le=7)] = None
|
|
48
|
-
angularMomentum: Optional[conint(ge=0, le=3)] = None
|
|
49
|
-
occupation: Optional[confloat(ge=0.0, le=14.0)] = None
|
|
50
|
-
"""
|
|
51
|
-
Shell occupation
|
|
52
|
-
"""
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
class Name(Enum):
|
|
56
|
-
pseudopotential = "pseudopotential"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
class Cutoffs(BaseModel):
|
|
60
|
-
model_config = ConfigDict(
|
|
61
|
-
extra="forbid",
|
|
62
|
-
)
|
|
63
|
-
wavefunction: Optional[List[g.FieldUsedForSuggestedWavefunctionAndChargeDensityCutoffs]] = None
|
|
64
|
-
"""
|
|
65
|
-
Energy cutoff values for wavefunction plane wave expansion.
|
|
66
|
-
"""
|
|
67
|
-
density: Optional[List[g.FieldUsedForSuggestedWavefunctionAndChargeDensityCutoffs]] = None
|
|
68
|
-
"""
|
|
69
|
-
Energy cutoff values for charge density plane wave expansion.
|
|
70
|
-
"""
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
class FileDataItem(BaseModel):
|
|
74
|
-
element: str
|
|
75
|
-
"""
|
|
76
|
-
chemical element
|
|
77
|
-
"""
|
|
78
|
-
hash: Optional[str] = None
|
|
79
|
-
"""
|
|
80
|
-
MD5 hash of the pseudopotential file
|
|
81
|
-
"""
|
|
82
|
-
type: Type
|
|
83
|
-
source: str
|
|
84
|
-
"""
|
|
85
|
-
explains where this came from
|
|
86
|
-
"""
|
|
87
|
-
version: Optional[str] = None
|
|
88
|
-
"""
|
|
89
|
-
explains the version of where this came from
|
|
90
|
-
"""
|
|
91
|
-
exchangeCorrelation: ExchangeCorrelation
|
|
92
|
-
valenceConfiguration: Optional[List[AtomicOrbitalSchema]] = None
|
|
93
|
-
"""
|
|
94
|
-
contains pseudo orbital information, including orbital names and occupations
|
|
95
|
-
"""
|
|
96
|
-
path: str
|
|
97
|
-
"""
|
|
98
|
-
location of the pseudopotential file on filesystem
|
|
99
|
-
"""
|
|
100
|
-
apps: List[str]
|
|
101
|
-
"""
|
|
102
|
-
The names of the simulation engines that can use this pseudopotential, e.g. espresso
|
|
103
|
-
"""
|
|
104
|
-
filename: Optional[str] = None
|
|
105
|
-
"""
|
|
106
|
-
filename of pseudopotential file on filesystem
|
|
107
|
-
"""
|
|
108
|
-
name: Optional[Name] = None
|
|
109
|
-
"""
|
|
110
|
-
name of the data category
|
|
111
|
-
"""
|
|
112
|
-
cutoffs: Optional[Cutoffs] = None
|
|
113
|
-
"""
|
|
114
|
-
Suggested cutoff values for wave function and charge density.
|
|
115
|
-
"""
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
class Source(BaseModel):
|
|
119
|
-
info: Optional[Dict[str, Any]] = None
|
|
120
|
-
type: Optional[str] = None
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
class PseudopotentialFile(BaseModel):
|
|
124
|
-
slug: Optional[Slug] = None
|
|
125
|
-
data: Optional[FileDataItem] = Field(None, title="File data item")
|
|
126
|
-
source: Optional[Source] = None
|
|
127
|
-
"""
|
|
128
|
-
TODO: remove in the future
|
|
129
|
-
"""
|