mat3ra-esse 2025.7.15.post0__py3-none-any.whl → 2025.8.6.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/data/examples.py +1 -1
- mat3ra/esse/data/schemas.py +1 -1
- mat3ra/esse/models/apse/file/applications/espresso/7.2/pw_x.py +6 -6
- mat3ra/esse/models/core/abstract/vector_2d.py +13 -0
- mat3ra/esse/models/core/primitive/array_of_2_numbers.py +13 -0
- mat3ra/esse/models/core/reusable/energy.py +2 -2
- mat3ra/esse/models/element.py +6 -6
- mat3ra/esse/models/material/__init__.py +14 -14
- mat3ra/esse/models/materials_category/compound_pristine_structures/two_dimensional/interface/__init__.py +3 -0
- mat3ra/esse/models/materials_category/compound_pristine_structures/two_dimensional/interface/configuration.py +4269 -0
- mat3ra/esse/models/materials_category/defective_structures/one_dimensional/grain_boundary_linear/__init__.py +3 -0
- mat3ra/esse/models/materials_category/defective_structures/one_dimensional/grain_boundary_linear/configuration.py +4273 -0
- mat3ra/esse/models/materials_category/defective_structures/two_dimensional/__init__.py +3 -0
- mat3ra/esse/models/materials_category/defective_structures/two_dimensional/adatom/__init__.py +3 -0
- mat3ra/esse/models/materials_category/defective_structures/two_dimensional/adatom/configuration.py +2132 -0
- mat3ra/esse/models/materials_category/defective_structures/two_dimensional/base_configuration.py +1561 -0
- mat3ra/esse/models/materials_category/defective_structures/two_dimensional/grain_boundary_planar/__init__.py +3 -0
- mat3ra/esse/models/materials_category/defective_structures/two_dimensional/grain_boundary_planar/configuration.py +4269 -0
- mat3ra/esse/models/materials_category/defective_structures/two_dimensional/island/__init__.py +3 -0
- mat3ra/esse/models/materials_category/defective_structures/two_dimensional/island/configuration.py +2908 -0
- mat3ra/esse/models/materials_category/defective_structures/two_dimensional/terrace/__init__.py +3 -0
- mat3ra/esse/models/materials_category/defective_structures/two_dimensional/terrace/configuration.py +2912 -0
- mat3ra/esse/models/materials_category/defective_structures/zero_dimensional/point_defect/__init__.py +3 -0
- mat3ra/esse/models/materials_category/defective_structures/zero_dimensional/point_defect/base_configuration.py +544 -0
- mat3ra/esse/models/materials_category/defective_structures/zero_dimensional/point_defect/interstitial.py +1099 -0
- mat3ra/esse/models/materials_category/defective_structures/zero_dimensional/point_defect/substitutional.py +1099 -0
- mat3ra/esse/models/materials_category/defective_structures/zero_dimensional/point_defect/vacancy.py +556 -0
- mat3ra/esse/models/materials_category/pristine_structures/three_dimensional/ideal_crystal.py +14 -14
- mat3ra/esse/models/materials_category/pristine_structures/two_dimensional/nanoribbon.py +1598 -0
- mat3ra/esse/models/materials_category/pristine_structures/two_dimensional/nanotape.py +1160 -0
- mat3ra/esse/models/materials_category/pristine_structures/two_dimensional/slab.py +88 -92
- mat3ra/esse/models/materials_category/pristine_structures/two_dimensional/slab_strained_supercell.py +1159 -0
- mat3ra/esse/models/materials_category/processed_structures/two_dimensional/passivation/__init__.py +3 -0
- mat3ra/esse/models/materials_category/processed_structures/two_dimensional/passivation/configuration.py +1232 -0
- mat3ra/esse/models/materials_category_components/entities/auxiliary/one_dimensional/__init__.py +3 -0
- mat3ra/esse/models/materials_category_components/entities/auxiliary/one_dimensional/miller_indices_2d.py +16 -0
- mat3ra/esse/models/materials_category_components/entities/auxiliary/zero_dimensional/crystal_site.py +527 -2
- mat3ra/esse/models/materials_category_components/entities/auxiliary/zero_dimensional/point_defect_site.py +676 -0
- mat3ra/esse/models/materials_category_components/entities/auxiliary/zero_dimensional/void_region.py +555 -0
- mat3ra/esse/models/materials_category_components/entities/auxiliary/zero_dimensional/void_site.py +1576 -0
- mat3ra/esse/models/materials_category_components/entities/core/three_dimensional/crystal.py +14 -14
- mat3ra/esse/models/materials_category_components/entities/core/two_dimensional/vacuum.py +14 -14
- mat3ra/esse/models/materials_category_components/entities/core/zero_dimensional/vacancy.py +22 -0
- mat3ra/esse/models/materials_category_components/entities/reusable/one_dimensional/__init__.py +3 -0
- mat3ra/esse/models/materials_category_components/entities/reusable/one_dimensional/crystal_lattice_base.py +541 -0
- mat3ra/esse/models/materials_category_components/entities/reusable/one_dimensional/crystal_lattice_lines.py +545 -0
- mat3ra/esse/models/materials_category_components/entities/reusable/one_dimensional/crystal_lattice_lines_unique_repeated.py +708 -0
- mat3ra/esse/models/materials_category_components/entities/reusable/three_dimensional/crystal_lattice_base.py +541 -0
- mat3ra/esse/models/materials_category_components/entities/reusable/{repetitions.py → three_dimensional/repetitions.py} +1 -1
- mat3ra/esse/models/materials_category_components/entities/reusable/three_dimensional/strained_non_uniform.py +14 -14
- mat3ra/esse/models/materials_category_components/entities/reusable/three_dimensional/strained_uniform.py +14 -14
- mat3ra/esse/models/materials_category_components/entities/reusable/three_dimensional/supercell.py +14 -14
- mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/atomic_layers.py +4 -4
- mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/atomic_layers_unique.py +4 -4
- mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/atomic_layers_unique_repeated.py +4 -4
- mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/crystal_lattice_planes.py +18 -18
- mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/slab_stack_configuration.py +1577 -0
- mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/slab_unit_cell.py +74 -77
- mat3ra/esse/models/materials_category_components/operations/core/combinations/enums.py +13 -0
- mat3ra/esse/models/materials_category_components/operations/core/combinations/merge.py +9 -981
- mat3ra/esse/models/materials_category_components/operations/core/combinations/stack.py +8 -940
- mat3ra/esse/models/materials_category_components/operations/core/modifications/perturb.py +538 -0
- mat3ra/esse/models/properties_directory/derived_properties.py +11 -11
- mat3ra/esse/models/properties_directory/non_scalar/density_of_states.py +2 -2
- mat3ra/esse/models/properties_directory/non_scalar/phonon_dispersions.py +2 -2
- mat3ra/esse/models/properties_directory/non_scalar/phonon_dos.py +2 -2
- mat3ra/esse/models/properties_directory/non_scalar/total_energy_contributions.py +50 -50
- mat3ra/esse/models/properties_directory/non_scalar/vibrational_spectrum.py +2 -2
- mat3ra/esse/models/properties_directory/scalar/electron_affinity.py +2 -2
- mat3ra/esse/models/properties_directory/scalar/fermi_energy.py +2 -2
- mat3ra/esse/models/properties_directory/scalar/formation_energy.py +2 -2
- mat3ra/esse/models/properties_directory/scalar/ionization_potential.py +2 -2
- mat3ra/esse/models/properties_directory/scalar/reaction_energy_barrier.py +2 -2
- mat3ra/esse/models/properties_directory/scalar/surface_energy.py +2 -2
- mat3ra/esse/models/properties_directory/scalar/total_energy.py +2 -2
- mat3ra/esse/models/properties_directory/scalar/valence_band_offset.py +2 -2
- mat3ra/esse/models/properties_directory/scalar/zero_point_energy.py +2 -2
- mat3ra/esse/models/properties_directory/structural/basis/__init__.py +2 -2
- mat3ra/esse/models/properties_directory/structural/molecular_pattern.py +4 -4
- mat3ra/esse/models/properties_directory/workflow/convergence/ionic.py +2 -2
- {mat3ra_esse-2025.7.15.post0.dist-info → mat3ra_esse-2025.8.6.post0.dist-info}/METADATA +1 -1
- {mat3ra_esse-2025.7.15.post0.dist-info → mat3ra_esse-2025.8.6.post0.dist-info}/RECORD +85 -45
- {mat3ra_esse-2025.7.15.post0.dist-info → mat3ra_esse-2025.8.6.post0.dist-info}/WHEEL +0 -0
- {mat3ra_esse-2025.7.15.post0.dist-info → mat3ra_esse-2025.8.6.post0.dist-info}/licenses/LICENSE.md +0 -0
- {mat3ra_esse-2025.7.15.post0.dist-info → mat3ra_esse-2025.8.6.post0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,1099 @@
|
|
|
1
|
+
# generated by datamodel-codegen:
|
|
2
|
+
# filename: materials_category/defective_structures/zero_dimensional/point_defect/substitutional.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 Value165(Enum):
|
|
135
|
+
X = "X"
|
|
136
|
+
Vac = "Vac"
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
class AtomicElementSchema(BaseModel):
|
|
140
|
+
value: Union[Value, Value165]
|
|
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 Name663(Enum):
|
|
289
|
+
density = "density"
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
class Units271(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[Units271] = None
|
|
299
|
+
value: float
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
class Units272(Enum):
|
|
303
|
+
angstrom = "angstrom"
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
class ScalarSchema(BaseModel):
|
|
307
|
+
units: Optional[Units272] = None
|
|
308
|
+
value: float
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
class Name664(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 Name665(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 Name666(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 Name667(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 Name668(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 Name669(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: Name669
|
|
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 CrystalSchema(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 Value166(Enum):
|
|
534
|
+
H = "H"
|
|
535
|
+
He = "He"
|
|
536
|
+
Li = "Li"
|
|
537
|
+
Be = "Be"
|
|
538
|
+
B = "B"
|
|
539
|
+
C = "C"
|
|
540
|
+
N = "N"
|
|
541
|
+
O = "O"
|
|
542
|
+
F = "F"
|
|
543
|
+
Ne = "Ne"
|
|
544
|
+
Na = "Na"
|
|
545
|
+
Mg = "Mg"
|
|
546
|
+
Al = "Al"
|
|
547
|
+
Si = "Si"
|
|
548
|
+
P = "P"
|
|
549
|
+
S = "S"
|
|
550
|
+
Cl = "Cl"
|
|
551
|
+
Ar = "Ar"
|
|
552
|
+
K = "K"
|
|
553
|
+
Ca = "Ca"
|
|
554
|
+
Sc = "Sc"
|
|
555
|
+
Ti = "Ti"
|
|
556
|
+
V = "V"
|
|
557
|
+
Cr = "Cr"
|
|
558
|
+
Mn = "Mn"
|
|
559
|
+
Fe = "Fe"
|
|
560
|
+
Co = "Co"
|
|
561
|
+
Ni = "Ni"
|
|
562
|
+
Cu = "Cu"
|
|
563
|
+
Zn = "Zn"
|
|
564
|
+
Ga = "Ga"
|
|
565
|
+
Ge = "Ge"
|
|
566
|
+
As = "As"
|
|
567
|
+
Se = "Se"
|
|
568
|
+
Br = "Br"
|
|
569
|
+
Kr = "Kr"
|
|
570
|
+
Rb = "Rb"
|
|
571
|
+
Sr = "Sr"
|
|
572
|
+
Y = "Y"
|
|
573
|
+
Zr = "Zr"
|
|
574
|
+
Nb = "Nb"
|
|
575
|
+
Mo = "Mo"
|
|
576
|
+
Tc = "Tc"
|
|
577
|
+
Ru = "Ru"
|
|
578
|
+
Rh = "Rh"
|
|
579
|
+
Pd = "Pd"
|
|
580
|
+
Ag = "Ag"
|
|
581
|
+
Cd = "Cd"
|
|
582
|
+
In = "In"
|
|
583
|
+
Sn = "Sn"
|
|
584
|
+
Sb = "Sb"
|
|
585
|
+
Te = "Te"
|
|
586
|
+
I = "I"
|
|
587
|
+
Xe = "Xe"
|
|
588
|
+
Cs = "Cs"
|
|
589
|
+
Ba = "Ba"
|
|
590
|
+
La = "La"
|
|
591
|
+
Ce = "Ce"
|
|
592
|
+
Pr = "Pr"
|
|
593
|
+
Nd = "Nd"
|
|
594
|
+
Pm = "Pm"
|
|
595
|
+
Sm = "Sm"
|
|
596
|
+
Eu = "Eu"
|
|
597
|
+
Gd = "Gd"
|
|
598
|
+
Tb = "Tb"
|
|
599
|
+
Dy = "Dy"
|
|
600
|
+
Ho = "Ho"
|
|
601
|
+
Er = "Er"
|
|
602
|
+
Tm = "Tm"
|
|
603
|
+
Yb = "Yb"
|
|
604
|
+
Lu = "Lu"
|
|
605
|
+
Hf = "Hf"
|
|
606
|
+
Ta = "Ta"
|
|
607
|
+
W = "W"
|
|
608
|
+
Re = "Re"
|
|
609
|
+
Os = "Os"
|
|
610
|
+
Ir = "Ir"
|
|
611
|
+
Pt = "Pt"
|
|
612
|
+
Au = "Au"
|
|
613
|
+
Hg = "Hg"
|
|
614
|
+
Tl = "Tl"
|
|
615
|
+
Pb = "Pb"
|
|
616
|
+
Bi = "Bi"
|
|
617
|
+
Po = "Po"
|
|
618
|
+
At = "At"
|
|
619
|
+
Rn = "Rn"
|
|
620
|
+
Fr = "Fr"
|
|
621
|
+
Ra = "Ra"
|
|
622
|
+
Ac = "Ac"
|
|
623
|
+
Th = "Th"
|
|
624
|
+
Pa = "Pa"
|
|
625
|
+
U = "U"
|
|
626
|
+
Np = "Np"
|
|
627
|
+
Pu = "Pu"
|
|
628
|
+
Am = "Am"
|
|
629
|
+
Cm = "Cm"
|
|
630
|
+
Bk = "Bk"
|
|
631
|
+
Cf = "Cf"
|
|
632
|
+
Es = "Es"
|
|
633
|
+
Fm = "Fm"
|
|
634
|
+
Md = "Md"
|
|
635
|
+
No = "No"
|
|
636
|
+
Lr = "Lr"
|
|
637
|
+
Rf = "Rf"
|
|
638
|
+
Db = "Db"
|
|
639
|
+
Sg = "Sg"
|
|
640
|
+
Bh = "Bh"
|
|
641
|
+
Hs = "Hs"
|
|
642
|
+
Mt = "Mt"
|
|
643
|
+
Ds = "Ds"
|
|
644
|
+
Rg = "Rg"
|
|
645
|
+
Cn = "Cn"
|
|
646
|
+
Nh = "Nh"
|
|
647
|
+
Fl = "Fl"
|
|
648
|
+
Mc = "Mc"
|
|
649
|
+
Lv = "Lv"
|
|
650
|
+
Ts = "Ts"
|
|
651
|
+
Og = "Og"
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
class Value167(Enum):
|
|
655
|
+
X = "X"
|
|
656
|
+
Vac = "Vac"
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
class AtomicElementSchema79(BaseModel):
|
|
660
|
+
value: Union[Value166, Value167]
|
|
661
|
+
"""
|
|
662
|
+
All elements, including extra elements
|
|
663
|
+
"""
|
|
664
|
+
id: int
|
|
665
|
+
"""
|
|
666
|
+
integer id of this entry
|
|
667
|
+
"""
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
class BasisSchema77(BaseModel):
|
|
671
|
+
elements: List[AtomicElementSchema79] = Field(..., title="atomic elements schema")
|
|
672
|
+
"""
|
|
673
|
+
atomic elements schema
|
|
674
|
+
"""
|
|
675
|
+
coordinates: List[AtomicCoordinateSchema] = Field(..., title="atomic coordinates schema")
|
|
676
|
+
"""
|
|
677
|
+
atomic coordinates schema
|
|
678
|
+
"""
|
|
679
|
+
units: Optional[BasisUnitsEnum] = Field("crystal", title="basis units enum")
|
|
680
|
+
labels: Optional[List[AtomicLabelSchema]] = Field(None, title="atomic labels schema")
|
|
681
|
+
"""
|
|
682
|
+
atomic labels schema
|
|
683
|
+
"""
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
class LatticeVectorsSchema77(BaseModel):
|
|
687
|
+
a: List[float] = Field(..., max_length=3, min_length=3, title="vector 3d schema")
|
|
688
|
+
b: List[float] = Field(..., max_length=3, min_length=3, title="vector 3d schema")
|
|
689
|
+
c: List[float] = Field(..., max_length=3, min_length=3, title="vector 3d schema")
|
|
690
|
+
alat: Optional[float] = 1
|
|
691
|
+
"""
|
|
692
|
+
lattice parameter for fractional coordinates
|
|
693
|
+
"""
|
|
694
|
+
units: Optional[LatticeVectorsUnitsEnum] = Field("angstrom", title="lattice vectors units enum")
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
class LatticeUnitsSchema78(BaseModel):
|
|
698
|
+
length: Optional[LatticeUnitsLengthEnum] = Field("angstrom", title="lattice units length enum")
|
|
699
|
+
angle: Optional[LatticeUnitsAngleEnum] = Field("degree", title="lattice units angle enum")
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
class LatticeSchema77(BaseModel):
|
|
703
|
+
a: float
|
|
704
|
+
"""
|
|
705
|
+
length of the first lattice vector
|
|
706
|
+
"""
|
|
707
|
+
b: float
|
|
708
|
+
"""
|
|
709
|
+
length of the second lattice vector
|
|
710
|
+
"""
|
|
711
|
+
c: float
|
|
712
|
+
"""
|
|
713
|
+
length of the third lattice vector
|
|
714
|
+
"""
|
|
715
|
+
alpha: float
|
|
716
|
+
"""
|
|
717
|
+
angle between first and second lattice vector
|
|
718
|
+
"""
|
|
719
|
+
beta: float
|
|
720
|
+
"""
|
|
721
|
+
angle between second and third lattice vector
|
|
722
|
+
"""
|
|
723
|
+
gamma: float
|
|
724
|
+
"""
|
|
725
|
+
angle between first and third lattice vector
|
|
726
|
+
"""
|
|
727
|
+
vectors: Optional[LatticeVectorsSchema77] = Field(None, title="lattice vectors schema")
|
|
728
|
+
type: Optional[LatticeTypeEnum] = Field("TRI", title="lattice type enum")
|
|
729
|
+
units: Optional[LatticeUnitsSchema78] = Field(
|
|
730
|
+
default_factory=lambda: LatticeUnitsSchema78.model_validate({"length": "angstrom", "angle": "degree"}),
|
|
731
|
+
title="Lattice units schema",
|
|
732
|
+
)
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
class Name670(Enum):
|
|
736
|
+
volume = "volume"
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
class Units273(Enum):
|
|
740
|
+
angstrom_3 = "angstrom^3"
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
class VolumeSchema77(BaseModel):
|
|
744
|
+
name: Literal["0#-datamodel-code-generator-#-object-#-special-#"]
|
|
745
|
+
units: Optional[Units273] = None
|
|
746
|
+
value: float
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
class Name671(Enum):
|
|
750
|
+
density = "density"
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
class Units274(Enum):
|
|
754
|
+
g_cm_3 = "g/cm^3"
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
class DensitySchema78(BaseModel):
|
|
758
|
+
name: Literal["1#-datamodel-code-generator-#-object-#-special-#"]
|
|
759
|
+
units: Optional[Units274] = None
|
|
760
|
+
value: float
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
class Units275(Enum):
|
|
764
|
+
angstrom = "angstrom"
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
class ScalarSchema79(BaseModel):
|
|
768
|
+
units: Optional[Units275] = None
|
|
769
|
+
value: float
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
class Name672(Enum):
|
|
773
|
+
symmetry = "symmetry"
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
class SymmetrySchema77(BaseModel):
|
|
777
|
+
pointGroupSymbol: Optional[str] = None
|
|
778
|
+
"""
|
|
779
|
+
point group symbol in Schoenflies notation
|
|
780
|
+
"""
|
|
781
|
+
spaceGroupSymbol: Optional[str] = None
|
|
782
|
+
"""
|
|
783
|
+
space group symbol in Hermann–Mauguin notation
|
|
784
|
+
"""
|
|
785
|
+
tolerance: Optional[ScalarSchema79] = Field(None, title="scalar schema")
|
|
786
|
+
"""
|
|
787
|
+
tolerance used for symmetry calculation
|
|
788
|
+
"""
|
|
789
|
+
name: Literal["2#-datamodel-code-generator-#-object-#-special-#"]
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
class Name673(Enum):
|
|
793
|
+
elemental_ratio = "elemental_ratio"
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
class ElementalRatio78(BaseModel):
|
|
797
|
+
name: Literal["3#-datamodel-code-generator-#-object-#-special-#"]
|
|
798
|
+
value: confloat(ge=0.0, le=1.0)
|
|
799
|
+
element: Optional[str] = None
|
|
800
|
+
"""
|
|
801
|
+
the element this ratio is for
|
|
802
|
+
"""
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
class Name674(Enum):
|
|
806
|
+
p_norm = "p-norm"
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
class PNorm78(BaseModel):
|
|
810
|
+
name: Literal["4#-datamodel-code-generator-#-object-#-special-#"]
|
|
811
|
+
degree: Optional[int] = None
|
|
812
|
+
"""
|
|
813
|
+
degree of the dimensionality of the norm
|
|
814
|
+
"""
|
|
815
|
+
value: float
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
class Name675(Enum):
|
|
819
|
+
inchi = "inchi"
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
class InChIRepresentationSchema78(BaseModel):
|
|
823
|
+
name: Literal["5#-datamodel-code-generator-#-object-#-special-#"]
|
|
824
|
+
value: str
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
class Name676(Enum):
|
|
828
|
+
inchi_key = "inchi_key"
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
class InChIKeyRepresentationSchema78(BaseModel):
|
|
832
|
+
name: Literal["6#-datamodel-code-generator-#-object-#-special-#"]
|
|
833
|
+
value: str
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
class DerivedPropertiesSchema78(
|
|
837
|
+
RootModel[
|
|
838
|
+
Union[
|
|
839
|
+
VolumeSchema77,
|
|
840
|
+
DensitySchema78,
|
|
841
|
+
SymmetrySchema77,
|
|
842
|
+
ElementalRatio78,
|
|
843
|
+
PNorm78,
|
|
844
|
+
InChIRepresentationSchema78,
|
|
845
|
+
InChIKeyRepresentationSchema78,
|
|
846
|
+
]
|
|
847
|
+
]
|
|
848
|
+
):
|
|
849
|
+
root: Union[
|
|
850
|
+
VolumeSchema77,
|
|
851
|
+
DensitySchema78,
|
|
852
|
+
SymmetrySchema77,
|
|
853
|
+
ElementalRatio78,
|
|
854
|
+
PNorm78,
|
|
855
|
+
InChIRepresentationSchema78,
|
|
856
|
+
InChIKeyRepresentationSchema78,
|
|
857
|
+
] = Field(..., discriminator="name")
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
class Name677(Enum):
|
|
861
|
+
default = "default"
|
|
862
|
+
atomsTooClose = "atomsTooClose"
|
|
863
|
+
atomsOverlap = "atomsOverlap"
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
class MaterialConsistencyCheckSchema77(BaseModel):
|
|
867
|
+
name: Name677
|
|
868
|
+
"""
|
|
869
|
+
Name of the consistency check that is performed, which is listed in an enum.
|
|
870
|
+
"""
|
|
871
|
+
key: str
|
|
872
|
+
"""
|
|
873
|
+
Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'
|
|
874
|
+
"""
|
|
875
|
+
severity: Severity
|
|
876
|
+
"""
|
|
877
|
+
Severity level of the problem, which is used in UI to differentiate.
|
|
878
|
+
"""
|
|
879
|
+
message: str
|
|
880
|
+
"""
|
|
881
|
+
Message generated by the consistency check describing the problem.
|
|
882
|
+
"""
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
class CrystalSchema72(BaseModel):
|
|
886
|
+
formula: Optional[str] = None
|
|
887
|
+
"""
|
|
888
|
+
reduced chemical formula
|
|
889
|
+
"""
|
|
890
|
+
unitCellFormula: Optional[str] = None
|
|
891
|
+
"""
|
|
892
|
+
chemical formula based on the number of atoms of each element in the supercell
|
|
893
|
+
"""
|
|
894
|
+
basis: BasisSchema77 = Field(..., title="basis schema")
|
|
895
|
+
lattice: LatticeSchema77 = Field(..., title="lattice schema")
|
|
896
|
+
derivedProperties: Optional[List[DerivedPropertiesSchema78]] = Field(None, title="derived properties schema")
|
|
897
|
+
external: Optional[DatabaseSourceSchema] = Field(None, title="database source schema")
|
|
898
|
+
"""
|
|
899
|
+
information about a database source
|
|
900
|
+
"""
|
|
901
|
+
src: Optional[FileSourceSchema] = Field(None, title="file source schema")
|
|
902
|
+
"""
|
|
903
|
+
file source with the information inside
|
|
904
|
+
"""
|
|
905
|
+
scaledHash: Optional[str] = None
|
|
906
|
+
"""
|
|
907
|
+
Hash string for a scaled structure with lattice vector a set to 1 (eg. for materials under pressure).
|
|
908
|
+
"""
|
|
909
|
+
icsdId: Optional[int] = None
|
|
910
|
+
"""
|
|
911
|
+
Corresponding ICSD id of the material
|
|
912
|
+
"""
|
|
913
|
+
isNonPeriodic: Optional[bool] = None
|
|
914
|
+
"""
|
|
915
|
+
Whether to work in the finite molecular picture (usually with atomic orbital basis)
|
|
916
|
+
"""
|
|
917
|
+
consistencyChecks: Optional[List[MaterialConsistencyCheckSchema77]] = None
|
|
918
|
+
field_id: Optional[str] = Field(None, alias="_id")
|
|
919
|
+
"""
|
|
920
|
+
entity identity
|
|
921
|
+
"""
|
|
922
|
+
slug: Optional[str] = None
|
|
923
|
+
"""
|
|
924
|
+
entity slug
|
|
925
|
+
"""
|
|
926
|
+
systemName: Optional[str] = None
|
|
927
|
+
schemaVersion: Optional[str] = "2022.8.16"
|
|
928
|
+
"""
|
|
929
|
+
entity's schema version. Used to distinct between different schemas.
|
|
930
|
+
"""
|
|
931
|
+
name: Optional[str] = None
|
|
932
|
+
"""
|
|
933
|
+
entity name
|
|
934
|
+
"""
|
|
935
|
+
isDefault: Optional[bool] = False
|
|
936
|
+
"""
|
|
937
|
+
Identifies that entity is defaultable
|
|
938
|
+
"""
|
|
939
|
+
metadata: Optional[Dict[str, Any]] = None
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
class ChemicalElement(Enum):
|
|
943
|
+
H = "H"
|
|
944
|
+
He = "He"
|
|
945
|
+
Li = "Li"
|
|
946
|
+
Be = "Be"
|
|
947
|
+
B = "B"
|
|
948
|
+
C = "C"
|
|
949
|
+
N = "N"
|
|
950
|
+
O = "O"
|
|
951
|
+
F = "F"
|
|
952
|
+
Ne = "Ne"
|
|
953
|
+
Na = "Na"
|
|
954
|
+
Mg = "Mg"
|
|
955
|
+
Al = "Al"
|
|
956
|
+
Si = "Si"
|
|
957
|
+
P = "P"
|
|
958
|
+
S = "S"
|
|
959
|
+
Cl = "Cl"
|
|
960
|
+
Ar = "Ar"
|
|
961
|
+
K = "K"
|
|
962
|
+
Ca = "Ca"
|
|
963
|
+
Sc = "Sc"
|
|
964
|
+
Ti = "Ti"
|
|
965
|
+
V = "V"
|
|
966
|
+
Cr = "Cr"
|
|
967
|
+
Mn = "Mn"
|
|
968
|
+
Fe = "Fe"
|
|
969
|
+
Co = "Co"
|
|
970
|
+
Ni = "Ni"
|
|
971
|
+
Cu = "Cu"
|
|
972
|
+
Zn = "Zn"
|
|
973
|
+
Ga = "Ga"
|
|
974
|
+
Ge = "Ge"
|
|
975
|
+
As = "As"
|
|
976
|
+
Se = "Se"
|
|
977
|
+
Br = "Br"
|
|
978
|
+
Kr = "Kr"
|
|
979
|
+
Rb = "Rb"
|
|
980
|
+
Sr = "Sr"
|
|
981
|
+
Y = "Y"
|
|
982
|
+
Zr = "Zr"
|
|
983
|
+
Nb = "Nb"
|
|
984
|
+
Mo = "Mo"
|
|
985
|
+
Tc = "Tc"
|
|
986
|
+
Ru = "Ru"
|
|
987
|
+
Rh = "Rh"
|
|
988
|
+
Pd = "Pd"
|
|
989
|
+
Ag = "Ag"
|
|
990
|
+
Cd = "Cd"
|
|
991
|
+
In = "In"
|
|
992
|
+
Sn = "Sn"
|
|
993
|
+
Sb = "Sb"
|
|
994
|
+
Te = "Te"
|
|
995
|
+
I = "I"
|
|
996
|
+
Xe = "Xe"
|
|
997
|
+
Cs = "Cs"
|
|
998
|
+
Ba = "Ba"
|
|
999
|
+
La = "La"
|
|
1000
|
+
Ce = "Ce"
|
|
1001
|
+
Pr = "Pr"
|
|
1002
|
+
Nd = "Nd"
|
|
1003
|
+
Pm = "Pm"
|
|
1004
|
+
Sm = "Sm"
|
|
1005
|
+
Eu = "Eu"
|
|
1006
|
+
Gd = "Gd"
|
|
1007
|
+
Tb = "Tb"
|
|
1008
|
+
Dy = "Dy"
|
|
1009
|
+
Ho = "Ho"
|
|
1010
|
+
Er = "Er"
|
|
1011
|
+
Tm = "Tm"
|
|
1012
|
+
Yb = "Yb"
|
|
1013
|
+
Lu = "Lu"
|
|
1014
|
+
Hf = "Hf"
|
|
1015
|
+
Ta = "Ta"
|
|
1016
|
+
W = "W"
|
|
1017
|
+
Re = "Re"
|
|
1018
|
+
Os = "Os"
|
|
1019
|
+
Ir = "Ir"
|
|
1020
|
+
Pt = "Pt"
|
|
1021
|
+
Au = "Au"
|
|
1022
|
+
Hg = "Hg"
|
|
1023
|
+
Tl = "Tl"
|
|
1024
|
+
Pb = "Pb"
|
|
1025
|
+
Bi = "Bi"
|
|
1026
|
+
Po = "Po"
|
|
1027
|
+
At = "At"
|
|
1028
|
+
Rn = "Rn"
|
|
1029
|
+
Fr = "Fr"
|
|
1030
|
+
Ra = "Ra"
|
|
1031
|
+
Ac = "Ac"
|
|
1032
|
+
Th = "Th"
|
|
1033
|
+
Pa = "Pa"
|
|
1034
|
+
U = "U"
|
|
1035
|
+
Np = "Np"
|
|
1036
|
+
Pu = "Pu"
|
|
1037
|
+
Am = "Am"
|
|
1038
|
+
Cm = "Cm"
|
|
1039
|
+
Bk = "Bk"
|
|
1040
|
+
Cf = "Cf"
|
|
1041
|
+
Es = "Es"
|
|
1042
|
+
Fm = "Fm"
|
|
1043
|
+
Md = "Md"
|
|
1044
|
+
No = "No"
|
|
1045
|
+
Lr = "Lr"
|
|
1046
|
+
Rf = "Rf"
|
|
1047
|
+
Db = "Db"
|
|
1048
|
+
Sg = "Sg"
|
|
1049
|
+
Bh = "Bh"
|
|
1050
|
+
Hs = "Hs"
|
|
1051
|
+
Mt = "Mt"
|
|
1052
|
+
Ds = "Ds"
|
|
1053
|
+
Rg = "Rg"
|
|
1054
|
+
Cn = "Cn"
|
|
1055
|
+
Nh = "Nh"
|
|
1056
|
+
Fl = "Fl"
|
|
1057
|
+
Mc = "Mc"
|
|
1058
|
+
Lv = "Lv"
|
|
1059
|
+
Ts = "Ts"
|
|
1060
|
+
Og = "Og"
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
class AtomSchema(BaseModel):
|
|
1064
|
+
chemical_element: ChemicalElement
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
class ChemicalElement11(Enum):
|
|
1068
|
+
X = "X"
|
|
1069
|
+
Vac = "Vac"
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
class VacancySchema(BaseModel):
|
|
1073
|
+
chemical_element: Optional[ChemicalElement11] = "Vac"
|
|
1074
|
+
"""
|
|
1075
|
+
Extra elements, used for convenience purposed
|
|
1076
|
+
"""
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
class PointDefectSiteSchema(BaseModel):
|
|
1080
|
+
crystal: CrystalSchema72 = Field(..., title="Crystal Schema")
|
|
1081
|
+
"""
|
|
1082
|
+
A crystal structure, referencing the base material schema
|
|
1083
|
+
"""
|
|
1084
|
+
coordinate: List[float] = Field(..., max_length=3, min_length=3, title="coordinate 3d schema")
|
|
1085
|
+
element: Union[AtomSchema, VacancySchema]
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
class MergeMethodsEnum(Enum):
|
|
1089
|
+
ADD = "ADD"
|
|
1090
|
+
REPLACE = "REPLACE"
|
|
1091
|
+
YIELD = "YIELD"
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
class SubstitutionalPointDefectSchema(BaseModel):
|
|
1095
|
+
merge_components: List[Union[CrystalSchema, PointDefectSiteSchema]] = Field(..., max_length=2, min_length=2)
|
|
1096
|
+
merge_method: Optional[MergeMethodsEnum] = Field("REPLACE", title="Merge Methods Enum")
|
|
1097
|
+
"""
|
|
1098
|
+
Available methods for merging components
|
|
1099
|
+
"""
|