surface-construct 0.5.10__tar.gz → 0.5.12__tar.gz
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.
- {surface_construct-0.5.10/surface_construct.egg-info → surface_construct-0.5.12}/PKG-INFO +6 -1
- {surface_construct-0.5.10 → surface_construct-0.5.12}/README.md +5 -0
- {surface_construct-0.5.10 → surface_construct-0.5.12}/setup.py +1 -1
- {surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct/surface_grid.py +15 -6
- {surface_construct-0.5.10 → surface_construct-0.5.12/surface_construct.egg-info}/PKG-INFO +6 -1
- {surface_construct-0.5.10 → surface_construct-0.5.12}/LICENSE +0 -0
- {surface_construct-0.5.10 → surface_construct-0.5.12}/setup.cfg +0 -0
- {surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct/__init__.py +0 -0
- {surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct/atoms.py +0 -0
- {surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct/db.py +0 -0
- {surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct/default_parameter.py +0 -0
- {surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct/sampling.py +0 -0
- {surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct/structure.py +0 -0
- {surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct/surface.py +0 -0
- {surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct/utils.py +0 -0
- {surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct.egg-info/SOURCES.txt +0 -0
- {surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct.egg-info/dependency_links.txt +0 -0
- {surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct.egg-info/requires.txt +0 -0
- {surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct.egg-info/top_level.txt +0 -0
- {surface_construct-0.5.10 → surface_construct-0.5.12}/tests/test_surface_grid.py +0 -0
- {surface_construct-0.5.10 → surface_construct-0.5.12}/tests/test_systematic_opt.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: surface_construct
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.12
|
|
4
4
|
Summary: Surface termination construction especially for complex model, such as oxides or carbides.
|
|
5
5
|
Home-page: https://gitee.com/pjren/surface_construct/
|
|
6
6
|
Author: ren
|
|
@@ -67,6 +67,11 @@ A Method with Stratified Sampling Strategy for Comprehensive Analysis of Catalys
|
|
|
67
67
|
|
|
68
68
|
`pip install -U surface-construct`
|
|
69
69
|
|
|
70
|
+
## 发布新版本 (only for 管理员)
|
|
71
|
+
|
|
72
|
+
python -m build
|
|
73
|
+
twine upload --verbose dist/*
|
|
74
|
+
|
|
70
75
|
## 使用方法 Manual
|
|
71
76
|
|
|
72
77
|
### 所需文件 Required Files
|
|
@@ -44,6 +44,11 @@ A Method with Stratified Sampling Strategy for Comprehensive Analysis of Catalys
|
|
|
44
44
|
|
|
45
45
|
`pip install -U surface-construct`
|
|
46
46
|
|
|
47
|
+
## 发布新版本 (only for 管理员)
|
|
48
|
+
|
|
49
|
+
python -m build
|
|
50
|
+
twine upload --verbose dist/*
|
|
51
|
+
|
|
47
52
|
## 使用方法 Manual
|
|
48
53
|
|
|
49
54
|
### 所需文件 Required Files
|
|
@@ -165,7 +165,7 @@ class SurfaceGrid:
|
|
|
165
165
|
result[dim, int((sign+1)/2)] = v
|
|
166
166
|
return np.concatenate(result) # [xmin, xmax, ymin, ymax, zmin, zmax]
|
|
167
167
|
|
|
168
|
-
def gridize(self):
|
|
168
|
+
def gridize(self, surface_index=None):
|
|
169
169
|
"""
|
|
170
170
|
格点化。
|
|
171
171
|
这种方法仅仅适用于无孔的材料,表面为z方向,且方向向上。
|
|
@@ -189,15 +189,19 @@ class SurfaceGrid:
|
|
|
189
189
|
xyz[:, 2] = zmax
|
|
190
190
|
z = zmax
|
|
191
191
|
nonbond_index = np.ones(len(xyz), bool)
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
atoms_pos = self.atoms.positions
|
|
193
|
+
atoms_num = self.atoms.numbers
|
|
194
|
+
if surface_index is not None:
|
|
195
|
+
atoms_pos = atoms_pos[surface_index]
|
|
196
|
+
atoms_num = atoms_num[surface_index]
|
|
197
|
+
grid_dist_array = np.zeros((len(xyz), len(atoms_pos), 3))
|
|
198
|
+
grid_dist = np.zeros((len(xyz), len(atoms_pos)))
|
|
194
199
|
while np.any(nonbond_index):
|
|
195
200
|
z -= self.interval / 10.0
|
|
196
201
|
xyz[nonbond_index, 2] = z
|
|
197
202
|
grid_dist_array[nonbond_index], grid_dist[nonbond_index] = get_distances(
|
|
198
|
-
xyz[nonbond_index], self.atoms.
|
|
199
|
-
|
|
200
|
-
R0 = np.asarray([self.radii[i] for i in self.atoms.numbers]) + self.rads
|
|
203
|
+
xyz[nonbond_index], atoms_pos, cell=self.atoms.cell, pbc=self.atoms.pbc)
|
|
204
|
+
R0 = np.asarray([self.radii[i] for i in atoms_num]) + self.rads
|
|
201
205
|
# 判断最小距离是否小于共价半径之和
|
|
202
206
|
nonbond_index = nonbond_index & (~np.any(grid_dist - R0 <= 0, axis=1))
|
|
203
207
|
|
|
@@ -208,6 +212,11 @@ class SurfaceGrid:
|
|
|
208
212
|
grid_dist = grid_dist[z_index]
|
|
209
213
|
break
|
|
210
214
|
self.points = xyz
|
|
215
|
+
|
|
216
|
+
if surface_index is not None: # grid_dist should contain all atoms
|
|
217
|
+
grid_dist_array, grid_dist = get_distances(
|
|
218
|
+
xyz[nonbond_index], atoms_pos, cell=self.atoms.cell, pbc=self.atoms.pbc)
|
|
219
|
+
|
|
211
220
|
self._Dga = grid_dist
|
|
212
221
|
self._DAga = grid_dist_array
|
|
213
222
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: surface_construct
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.12
|
|
4
4
|
Summary: Surface termination construction especially for complex model, such as oxides or carbides.
|
|
5
5
|
Home-page: https://gitee.com/pjren/surface_construct/
|
|
6
6
|
Author: ren
|
|
@@ -67,6 +67,11 @@ A Method with Stratified Sampling Strategy for Comprehensive Analysis of Catalys
|
|
|
67
67
|
|
|
68
68
|
`pip install -U surface-construct`
|
|
69
69
|
|
|
70
|
+
## 发布新版本 (only for 管理员)
|
|
71
|
+
|
|
72
|
+
python -m build
|
|
73
|
+
twine upload --verbose dist/*
|
|
74
|
+
|
|
70
75
|
## 使用方法 Manual
|
|
71
76
|
|
|
72
77
|
### 所需文件 Required Files
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct/default_parameter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct.egg-info/requires.txt
RENAMED
|
File without changes
|
{surface_construct-0.5.10 → surface_construct-0.5.12}/surface_construct.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|