forked from OctaDist/OctaDist
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
35 lines (27 loc) · 862 Bytes
/
Copy pathtest.py
File metadata and controls
35 lines (27 loc) · 862 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
32
33
34
import octadist as oc
# Prepare list of atomic coordinates of octahedral structure:
atom = ['Fe', 'O', 'O', 'N', 'N', 'N', 'N']
coord = [
[2.298354000, 5.161785000, 7.971898000], # <- Metal atom
[1.885657000, 4.804777000, 6.183726000],
[1.747515000, 6.960963000, 7.932784000],
[4.094380000, 5.807257000, 7.588689000],
[0.539005000, 4.482809000, 8.460004000],
[2.812425000, 3.266553000, 8.131637000],
[2.886404000, 5.392925000, 9.848966000],
]
dist = oc.CalcDistortion(coord)
zeta = dist.zeta
delta = dist.delta
sigma = dist.sigma
theta = dist.theta
zeta_ref = 0.228072561
delta_ref = 0.000476251
sigma_ref = 47.926528379
theta_ref = 122.688972774
cutoff = 0.00000001
def test_results():
assert zeta - zeta_ref < cutoff
assert delta - delta_ref < cutoff
assert sigma - sigma_ref < cutoff
assert theta - theta_ref < cutoff