-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample
More file actions
31 lines (25 loc) · 901 Bytes
/
Copy pathexample
File metadata and controls
31 lines (25 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from wulffpack import (SingleCrystal,
Decahedron,
Icosahedron)
from ase.build import bulk
from ase import Atoms
from ase.io import read,write
from ase.visualize import view
Li4Fe4S4O20H4=read('ortho_FeSO4OH_Ref.vasp')
print(Li4Fe4S4O20H4)
surface_energies = {(1, 0, 0): 1.194,
(0, 0, 1): 0.693,
(0, 1, 1): 1.143,
(0, 2, 0): 0.682,
(1, 1, 1): 1.188,
(1, 0, 1): 1.736,
(2, 0, 1): 1.145}
colors = {(1, 0, 0): '#FFE1FF',
(0, 0, 1): '#0053b5',
(0, 1, 1): '#f6faf5',
(0, 2, 0): '#2E8B57',
(1, 1, 1): '#A0522D',
(1, 0, 1): '#00008B',
(2, 0, 1): '#AAAAAA'}
particle = SingleCrystal(surface_energies, primitive_structure=Li4Fe4S4O20H4, natoms=8000)
particle.view(colors=colors)