-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmetal_complexes.py
83 lines (73 loc) · 2.26 KB
/
metal_complexes.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
from math import cos, pi, sin
from stk import Edge
from stk.metal_complex import MetalComplex
from stk.molecular.topology_graphs.metal_complex.vertices import (
BiDentateLigandVertex,
MetalVertex,
MonoDentateLigandVertex,
)
class TwoMonoOneBidentateSquarePlanar(MetalComplex):
_metal_vertex_prototypes = (
MetalVertex(0, (0, 0, 0)),
)
_ligand_vertex_prototypes = (
# BiDentateLigandVertex(1, (2.5, 2.5, 0)),
BiDentateLigandVertex(1, (5, 5, 0)),
MonoDentateLigandVertex(2, (-2.5, 0, 0)),
MonoDentateLigandVertex(3, (0, -2.5, 0)),
)
_edge_prototypes = (
Edge(
id=0,
vertex1=_metal_vertex_prototypes[0],
vertex2=_ligand_vertex_prototypes[0],
position=(2.5, 0, 0),
),
Edge(
id=1,
vertex1=_metal_vertex_prototypes[0],
vertex2=_ligand_vertex_prototypes[0],
position=(0, 2.5, 0),
),
Edge(
id=2,
vertex1=_metal_vertex_prototypes[0],
vertex2=_ligand_vertex_prototypes[1],
position=(-1, 0, 0),
),
Edge(
id=3,
vertex1=_metal_vertex_prototypes[0],
vertex2=_ligand_vertex_prototypes[2],
position=(0, -1, 0),
),
)
class OneLargeTwoSmallMonodentateTrigonalPlanar(MetalComplex):
_metal_vertex_prototypes = (
MetalVertex(0, (0, 0, 0)),
)
_ligand_vertex_prototypes = (
MonoDentateLigandVertex(1, (5, 0, 0)),
MonoDentateLigandVertex(2, (2.5*cos(2*pi/3), 2.5*sin(2*pi/3), 0)),
MonoDentateLigandVertex(3, (2.5*cos(4*pi/3), 2.5*sin(4*pi/3), 0)),
)
_edge_prototypes = (
Edge(
id=0,
vertex1=_metal_vertex_prototypes[0],
vertex2=_ligand_vertex_prototypes[0],
position=(2.5, 0, 0),
),
Edge(
id=1,
vertex1=_metal_vertex_prototypes[0],
vertex2=_ligand_vertex_prototypes[1],
position=(cos(2*pi/3), sin(2*pi/3), 0),
),
Edge(
id=2,
vertex1=_metal_vertex_prototypes[0],
vertex2=_ligand_vertex_prototypes[2],
position=(cos(4*pi/3), sin(4*pi/3), 0),
),
)