-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_ESO_CFPs.py
28 lines (20 loc) · 1.03 KB
/
get_ESO_CFPs.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
# ==============================================================================
# This script is used to transform
# crystal field parameters (CFPs) based on irreducible spherical tensors (ITO) to
# crystal field parameters (CFPs) based on extended Stevens operators (ESO).
# ==============================================================================
from functions import transform_Bqks_to_Bkqs
if __name__ == "__main__":
# Bkqs: crystal field parameters based on extended Stevens operators
# Bqks: crystal field parameters based on irreducible spherical tensors
# Suppoted conventions for ITOs:
# 1. "spherical": spherical harmonic tensor operators
# 2. "Racah": Racah irreducible tensor operators
# 3. "Wybourne": Wybourne irreducible tensor operators
# 4. "noname": unnamed irreducible tensor operators
# Input crystal field parameters
fin = "Bqks_spherical.dat"
# Total angular momentum
j = 8
# Transform crystal field parameters
transform_Bqks_to_Bkqs(fin, j, convention="spherical")