tanabesugano 1.1__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.
- TanabeSugano-1.1/PKG-INFO +33 -0
- TanabeSugano-1.1/README.md +78 -0
- TanabeSugano-1.1/TanabeSugano.egg-info/PKG-INFO +33 -0
- TanabeSugano-1.1/TanabeSugano.egg-info/SOURCES.txt +13 -0
- TanabeSugano-1.1/TanabeSugano.egg-info/dependency_links.txt +1 -0
- TanabeSugano-1.1/TanabeSugano.egg-info/requires.txt +3 -0
- TanabeSugano-1.1/TanabeSugano.egg-info/top_level.txt +2 -0
- TanabeSugano-1.1/setup.cfg +4 -0
- TanabeSugano-1.1/setup.py +56 -0
- TanabeSugano-1.1/tanabe/__init__.py +4 -0
- TanabeSugano-1.1/tanabe/__main__.py +324 -0
- TanabeSugano-1.1/tanabe/matrices.py +1776 -0
- TanabeSugano-1.1/test/__init__.py +2 -0
- TanabeSugano-1.1/test/test_front.py +11 -0
- TanabeSugano-1.1/test/test_num.py +42 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Metadata-Version: 1.2
|
|
2
|
+
Name: TanabeSugano
|
|
3
|
+
Version: 1.1
|
|
4
|
+
Summary: A python-solver for Tanabe-Sugano and energy-correlation diagrams
|
|
5
|
+
Home-page: https://github.com/Anselmoo/TanabeSugano
|
|
6
|
+
Author: ['Anselm Hahn']
|
|
7
|
+
Author-email: Anselm.Hahn@gmail.com
|
|
8
|
+
Maintainer: ['Anselm Hahn']
|
|
9
|
+
Maintainer-email: Anselm.Hahn@gmail.com
|
|
10
|
+
License: MIT
|
|
11
|
+
Download-URL: https://github.com/Anselmoo/TanabeSugano/releases
|
|
12
|
+
Description: UNKNOWN
|
|
13
|
+
Keywords: terminal,data-visualization,tanabe,sugano,tanabe-sugano,energy-correlation,complex-ions
|
|
14
|
+
Platform: MacOS :: MacOS X
|
|
15
|
+
Platform: Microsoft :: Windows
|
|
16
|
+
Platform: POSIX :: Linux
|
|
17
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
18
|
+
Classifier: Environment :: Console
|
|
19
|
+
Classifier: Intended Audience :: Education
|
|
20
|
+
Classifier: Intended Audience :: Science/Research
|
|
21
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
22
|
+
Classifier: Operating System :: MacOS
|
|
23
|
+
Classifier: Operating System :: Unix
|
|
24
|
+
Classifier: Programming Language :: Python :: 3
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
28
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
29
|
+
Classifier: Topic :: System :: Shells
|
|
30
|
+
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
31
|
+
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
32
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
33
|
+
Classifier: Topic :: Utilities
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+

|
|
2
|
+
[](https://www.codefactor.io/repository/github/anselmoo/tanabesugano)
|
|
3
|
+
[](https://doi.org/10.5281/zenodo.3403688)
|
|
4
|
+
[](https://github.com/Anselmoo/TanabeSugano/blob/master/LICENSE)
|
|
5
|
+
[](https://github.com/Anselmoo/TanabeSugano/releases)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# TanabeSugano
|
|
10
|
+
A python-based Eigensolver for Tanabe-Sugano- & Energy-Correlation-Diagrams based on the original three proposed studies of *Yukito Tanabe and Satoru Sugano* for d<sup>2</sup>-d<sup>8</sup> transition metal ions:
|
|
11
|
+
|
|
12
|
+
1. On the Absorption Spectra of Complex Ions. I
|
|
13
|
+
|
|
14
|
+
**Yukito Tanabe, Satoru Sugano**
|
|
15
|
+
*Journal of the Physical Society of Japan*, 9, 753-766 (1954)
|
|
16
|
+
**DOI:** 10.1143/JPSJ.9.753
|
|
17
|
+
https://journals.jps.jp/doi/10.1143/JPSJ.9.753
|
|
18
|
+
|
|
19
|
+
2. On the Absorption Spectra of Complex Ions II
|
|
20
|
+
|
|
21
|
+
**Yukito Tanabe, Satoru Sugano**
|
|
22
|
+
*Journal of the Physical Society of Japan*, 9, 766-779 (1954)
|
|
23
|
+
**DOI:** 10.1143/JPSJ.9.766
|
|
24
|
+
https://journals.jps.jp/doi/10.1143/JPSJ.9.766
|
|
25
|
+
|
|
26
|
+
3. On the Absorption Spectra of Complex Ions, III The Calculation of the Crystalline Field Strength
|
|
27
|
+
|
|
28
|
+
**Yukito Tanabe, Satoru Sugano**
|
|
29
|
+
*Journal of the Physical Society of Japan*, 11, 864-877 (1956)
|
|
30
|
+
**DOI:** 10.1143/JPSJ.11.864
|
|
31
|
+
https://journals.jps.jp/doi/10.1143/JPSJ.11.864
|
|
32
|
+
|
|
33
|
+
It provides:
|
|
34
|
+
|
|
35
|
+
- Tanabe-Sugano- & Energy-Correlation-Diagrams plotted via `matplotlib`
|
|
36
|
+
- Tanabe-Sugano- & Energy-Correlation-Diagrams exported as `txt`-file
|
|
37
|
+
- Atomic-Termsymbols and their eigen-energies for a given 10Dq and oxidation state as exported table via `prettytable`
|
|
38
|
+
- Set-up individuall **C/B**-ratios
|
|
39
|
+
- Working with Slater-Condon-Parameters **F<sup>2</sup>, F<sup>4</sup>** instead of Racah-Parameters **B, C**
|
|
40
|
+
|
|
41
|
+
The **TanabeSugano**-application can be installed and run:
|
|
42
|
+
|
|
43
|
+
```console
|
|
44
|
+
#via PyPi
|
|
45
|
+
pip install TanabeSugano
|
|
46
|
+
|
|
47
|
+
#via pip+git
|
|
48
|
+
pip git+https://github.com/Anselmoo/TanabeSugano.git
|
|
49
|
+
|
|
50
|
+
# Via local
|
|
51
|
+
python setup.py install
|
|
52
|
+
python -m tanabe
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
The options of the **TanabeSugano**-application are:
|
|
57
|
+
|
|
58
|
+
```console
|
|
59
|
+
python -m tanabe --help
|
|
60
|
+
|
|
61
|
+
usage: __main__.py [-h] [-d D] [-Dq DQ] [-cut CUT] [-B B B] [-C C C] [-n N]
|
|
62
|
+
[-ndisp] [-ntxt] [-slater]
|
|
63
|
+
|
|
64
|
+
optional arguments:
|
|
65
|
+
-h, --help show this help message and exit
|
|
66
|
+
-d D Number of unpaired electrons (default d5)
|
|
67
|
+
-Dq DQ 10Dq crystal field splitting (default 10Dq = 8065 cm-)
|
|
68
|
+
-cut CUT 10Dq crystal field splitting (default 10Dq = 8065 cm-)
|
|
69
|
+
-B B B Racah Parameter B and the corresponding reduction (default B = 860 cm- * 1.)
|
|
70
|
+
-C C C Racah Parameter C and the corresponding reduction (default C = 4.477*860 cm- * 1.)
|
|
71
|
+
-n N Number of roots (default nroots = 500)
|
|
72
|
+
-ndisp Plot TS-diagram (default = on)
|
|
73
|
+
-ntxt Save TS-diagram and dd energies (default = on)
|
|
74
|
+
-slater Using Slater-Condon F2,F4 parameter instead Racah-Parameter B,C (default = off)
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Reference-Example** for d<sup>6</sup> for *B = 860 cm<sup>-</sup>* and *C = 3850 cm<sup>-</sup>*:
|
|
78
|
+

|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Metadata-Version: 1.2
|
|
2
|
+
Name: TanabeSugano
|
|
3
|
+
Version: 1.1
|
|
4
|
+
Summary: A python-solver for Tanabe-Sugano and energy-correlation diagrams
|
|
5
|
+
Home-page: https://github.com/Anselmoo/TanabeSugano
|
|
6
|
+
Author: ['Anselm Hahn']
|
|
7
|
+
Author-email: Anselm.Hahn@gmail.com
|
|
8
|
+
Maintainer: ['Anselm Hahn']
|
|
9
|
+
Maintainer-email: Anselm.Hahn@gmail.com
|
|
10
|
+
License: MIT
|
|
11
|
+
Download-URL: https://github.com/Anselmoo/TanabeSugano/releases
|
|
12
|
+
Description: UNKNOWN
|
|
13
|
+
Keywords: terminal,data-visualization,tanabe,sugano,tanabe-sugano,energy-correlation,complex-ions
|
|
14
|
+
Platform: MacOS :: MacOS X
|
|
15
|
+
Platform: Microsoft :: Windows
|
|
16
|
+
Platform: POSIX :: Linux
|
|
17
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
18
|
+
Classifier: Environment :: Console
|
|
19
|
+
Classifier: Intended Audience :: Education
|
|
20
|
+
Classifier: Intended Audience :: Science/Research
|
|
21
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
22
|
+
Classifier: Operating System :: MacOS
|
|
23
|
+
Classifier: Operating System :: Unix
|
|
24
|
+
Classifier: Programming Language :: Python :: 3
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
28
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
29
|
+
Classifier: Topic :: System :: Shells
|
|
30
|
+
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
31
|
+
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
32
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
33
|
+
Classifier: Topic :: Utilities
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
setup.py
|
|
3
|
+
TanabeSugano.egg-info/PKG-INFO
|
|
4
|
+
TanabeSugano.egg-info/SOURCES.txt
|
|
5
|
+
TanabeSugano.egg-info/dependency_links.txt
|
|
6
|
+
TanabeSugano.egg-info/requires.txt
|
|
7
|
+
TanabeSugano.egg-info/top_level.txt
|
|
8
|
+
tanabe/__init__.py
|
|
9
|
+
tanabe/__main__.py
|
|
10
|
+
tanabe/matrices.py
|
|
11
|
+
test/__init__.py
|
|
12
|
+
test/test_front.py
|
|
13
|
+
test/test_num.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
try:
|
|
2
|
+
from setuptools import setup
|
|
3
|
+
except ImportError:
|
|
4
|
+
from distutils.core import setup
|
|
5
|
+
|
|
6
|
+
__authors__ = ["Anselm Hahn"]
|
|
7
|
+
__author_email__ = "Anselm.Hahn@gmail.com"
|
|
8
|
+
__license__ = "MIT"
|
|
9
|
+
__date__ = "08/09/2019"
|
|
10
|
+
|
|
11
|
+
with open("requirements.txt") as f:
|
|
12
|
+
required = f.read().splitlines()
|
|
13
|
+
|
|
14
|
+
setup(
|
|
15
|
+
name="TanabeSugano",
|
|
16
|
+
version="1.1",
|
|
17
|
+
packages=["tanabe", "test"],
|
|
18
|
+
install_requires=required,
|
|
19
|
+
url="https://github.com/Anselmoo/TanabeSugano",
|
|
20
|
+
download_url="https://github.com/Anselmoo/TanabeSugano/releases",
|
|
21
|
+
license=__license__,
|
|
22
|
+
author=__authors__,
|
|
23
|
+
author_email=__author_email__,
|
|
24
|
+
maintainer=__authors__,
|
|
25
|
+
maintainer_email=__author_email__,
|
|
26
|
+
description="A python-solver for Tanabe-Sugano and energy-correlation diagrams",
|
|
27
|
+
platforms=["MacOS :: MacOS X", "Microsoft :: Windows", "POSIX :: Linux"],
|
|
28
|
+
classifiers=[
|
|
29
|
+
"Development Status :: 5 - Production/Stable",
|
|
30
|
+
"Environment :: Console",
|
|
31
|
+
"Intended Audience :: Education",
|
|
32
|
+
"Intended Audience :: Science/Research",
|
|
33
|
+
"License :: OSI Approved :: MIT License",
|
|
34
|
+
"Operating System :: MacOS",
|
|
35
|
+
"Operating System :: Unix",
|
|
36
|
+
"Programming Language :: Python :: 3",
|
|
37
|
+
"Programming Language :: Python :: 3.6",
|
|
38
|
+
"Programming Language :: Python :: 3.7",
|
|
39
|
+
"Programming Language :: Python :: 3.8",
|
|
40
|
+
"Programming Language :: Python :: 3.9",
|
|
41
|
+
"Topic :: System :: Shells",
|
|
42
|
+
"Topic :: Scientific/Engineering :: Visualization",
|
|
43
|
+
"Topic :: Scientific/Engineering :: Chemistry",
|
|
44
|
+
"Topic :: Scientific/Engineering :: Physics",
|
|
45
|
+
"Topic :: Utilities",
|
|
46
|
+
],
|
|
47
|
+
keywords=[
|
|
48
|
+
"terminal",
|
|
49
|
+
"data-visualization",
|
|
50
|
+
"tanabe",
|
|
51
|
+
"sugano",
|
|
52
|
+
"tanabe-sugano",
|
|
53
|
+
"energy-correlation",
|
|
54
|
+
"complex-ions",
|
|
55
|
+
],
|
|
56
|
+
)
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
import argparse
|
|
3
|
+
|
|
4
|
+
import matplotlib.pylab as plt
|
|
5
|
+
import numpy as np
|
|
6
|
+
from prettytable import PrettyTable
|
|
7
|
+
|
|
8
|
+
from tanabe import ts
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CMDmain(object):
|
|
12
|
+
def __init__(self, Dq=4000.0, B=400.0, C=3600.0, nroots=100, mode=5, slater=False):
|
|
13
|
+
self.Dq = Dq # Oh-crystalfield-splitting
|
|
14
|
+
self.B = B # Racah-Parameter B in wavenumbers
|
|
15
|
+
self.C = C # Racah-Parameter C in wavenumbers
|
|
16
|
+
|
|
17
|
+
if slater:
|
|
18
|
+
# Transformin Racah to Slater-Condon
|
|
19
|
+
self.B, self.C = self.racah(B, C)
|
|
20
|
+
self.nroot = nroots
|
|
21
|
+
self.e_range = np.linspace(0.0, self.Dq, nroots)
|
|
22
|
+
self.delta_B = self.e_range / self.B
|
|
23
|
+
|
|
24
|
+
self.spin_state = int(mode)
|
|
25
|
+
if self.spin_state in [4, 5, 6]:
|
|
26
|
+
self._size = 42
|
|
27
|
+
if self.spin_state in [3, 7]:
|
|
28
|
+
self._size = 19
|
|
29
|
+
if self.spin_state in [2, 8]:
|
|
30
|
+
self._size = 10
|
|
31
|
+
self.result = np.zeros((self._size + 1, nroots))
|
|
32
|
+
|
|
33
|
+
def plot(self):
|
|
34
|
+
|
|
35
|
+
# Figure one for classical Tanabe-Sugano-Diagram with B-dependency
|
|
36
|
+
fig_1 = plt.figure(1)
|
|
37
|
+
|
|
38
|
+
fig_1.canvas.set_window_title("Tanabe-Sugano-Diagram")
|
|
39
|
+
for i in range(self._size + 1):
|
|
40
|
+
plt.plot(self.delta_B, self.result[i, :] / self.B, ls="--")
|
|
41
|
+
# plt.title( 'Tanabe-Sugano-Diagram' )
|
|
42
|
+
plt.ylabel("$E/B$")
|
|
43
|
+
plt.xlabel("$\Delta/B$")
|
|
44
|
+
|
|
45
|
+
# Figure one for Energy-Correlation-Diagram Dq-Energy versus State-Energy
|
|
46
|
+
fig_2 = plt.figure(2)
|
|
47
|
+
fig_2.canvas.set_window_title("DD excitations -Diagram")
|
|
48
|
+
for i in range(self._size + 1):
|
|
49
|
+
plt.plot(self.e_range * 10.0, self.result[i, :], ls="--")
|
|
50
|
+
# plt.title( 'DD excitations -Diagram' )
|
|
51
|
+
plt.ylabel("$dd-state-energy\,(1/cm)$")
|
|
52
|
+
plt.xlabel("$10Dq\,(1/cm)$")
|
|
53
|
+
|
|
54
|
+
plt.show()
|
|
55
|
+
|
|
56
|
+
def savetxt(self):
|
|
57
|
+
|
|
58
|
+
title_TS = "TS-diagram_d%i_10Dq_%i_B_%i_C_%i.txt" % (
|
|
59
|
+
self.spin_state,
|
|
60
|
+
self.Dq * 10.0,
|
|
61
|
+
self.B,
|
|
62
|
+
self.C,
|
|
63
|
+
)
|
|
64
|
+
ts_states = np.concatenate(
|
|
65
|
+
(np.array([self.delta_B]), np.divide(self.result, self.B))
|
|
66
|
+
)
|
|
67
|
+
np.savetxt(title_TS, ts_states.T, delimiter="\t", fmt="%.6f")
|
|
68
|
+
|
|
69
|
+
title_DD = "DD-energies_d%i_10Dq_%i_B_%i_C_%i.txt" % (
|
|
70
|
+
self.spin_state,
|
|
71
|
+
self.Dq * 10.0,
|
|
72
|
+
self.B,
|
|
73
|
+
self.C,
|
|
74
|
+
)
|
|
75
|
+
dd_states = np.concatenate((np.array([self.e_range * 10.0]), self.result))
|
|
76
|
+
np.savetxt(title_DD, dd_states.T, delimiter="\t", fmt="%.6f")
|
|
77
|
+
|
|
78
|
+
def calculation(self):
|
|
79
|
+
"""
|
|
80
|
+
Is filling the self.result with the iTS states of over-iterated energy range
|
|
81
|
+
"""
|
|
82
|
+
for i, dq in enumerate(self.e_range):
|
|
83
|
+
|
|
84
|
+
if self.spin_state == 2: # d3
|
|
85
|
+
|
|
86
|
+
states = ts.d2(Dq=dq, B=self.B, C=self.C).solver()
|
|
87
|
+
self.result[:, i] = np.concatenate(list(states.values()))
|
|
88
|
+
|
|
89
|
+
elif self.spin_state == 3: # d3
|
|
90
|
+
|
|
91
|
+
states = ts.d3(Dq=dq, B=self.B, C=self.C).solver()
|
|
92
|
+
self.result[:, i] = np.concatenate(list(states.values()))
|
|
93
|
+
|
|
94
|
+
elif self.spin_state == 4: # d4
|
|
95
|
+
|
|
96
|
+
states = ts.d4(Dq=dq, B=self.B, C=self.C).solver()
|
|
97
|
+
self.result[:, i] = np.concatenate(list(states.values()))
|
|
98
|
+
|
|
99
|
+
elif self.spin_state == 5: # d5
|
|
100
|
+
states = ts.d5(Dq=dq, B=self.B, C=self.C).solver()
|
|
101
|
+
self.result[:, i] = np.concatenate(list(states.values()))
|
|
102
|
+
|
|
103
|
+
elif self.spin_state == 6: # d6
|
|
104
|
+
|
|
105
|
+
states = ts.d6(Dq=dq, B=self.B, C=self.C).solver()
|
|
106
|
+
self.result[:, i] = np.concatenate(list(states.values()))
|
|
107
|
+
|
|
108
|
+
elif self.spin_state == 7: # d7
|
|
109
|
+
|
|
110
|
+
states = ts.d7(Dq=dq, B=self.B, C=self.C).solver()
|
|
111
|
+
self.result[:, i] = np.concatenate(list(states.values()))
|
|
112
|
+
|
|
113
|
+
elif self.spin_state == 8: # d8
|
|
114
|
+
|
|
115
|
+
states = ts.d8(Dq=dq, B=self.B, C=self.C).solver()
|
|
116
|
+
self.result[:, i] = np.concatenate(list(states.values()))
|
|
117
|
+
|
|
118
|
+
else:
|
|
119
|
+
|
|
120
|
+
print("not a correct value!")
|
|
121
|
+
|
|
122
|
+
def ci_cut(self, dq_ci=None):
|
|
123
|
+
"""
|
|
124
|
+
Extracting the atomic-termsymbols for a specific dq depending on the oxidation state
|
|
125
|
+
"""
|
|
126
|
+
if self.spin_state == 2: # d2
|
|
127
|
+
|
|
128
|
+
states = ts.d2(Dq=dq_ci / 10.0, B=self.B, C=self.C).solver()
|
|
129
|
+
self.ts_print(states, dq_ci=dq_ci)
|
|
130
|
+
|
|
131
|
+
elif self.spin_state == 3: # d3
|
|
132
|
+
|
|
133
|
+
states = ts.d3(Dq=dq_ci / 10.0, B=self.B, C=self.C).solver()
|
|
134
|
+
self.ts_print(states, dq_ci=dq_ci)
|
|
135
|
+
|
|
136
|
+
elif self.spin_state == 4: # d4
|
|
137
|
+
|
|
138
|
+
states = ts.d4(Dq=dq_ci / 10.0, B=self.B, C=self.C).solver()
|
|
139
|
+
self.ts_print(states, dq_ci=dq_ci)
|
|
140
|
+
|
|
141
|
+
elif self.spin_state == 5: # d5
|
|
142
|
+
|
|
143
|
+
states = ts.d5(Dq=dq_ci / 10.0, B=self.B, C=self.C).solver()
|
|
144
|
+
self.ts_print(states, dq_ci=dq_ci)
|
|
145
|
+
|
|
146
|
+
elif self.spin_state == 6: # d6
|
|
147
|
+
|
|
148
|
+
states = ts.d6(Dq=dq_ci / 10.0, B=self.B, C=self.C).solver()
|
|
149
|
+
self.ts_print(states, dq_ci=dq_ci)
|
|
150
|
+
|
|
151
|
+
elif self.spin_state == 7: # d7
|
|
152
|
+
|
|
153
|
+
states = ts.d7(Dq=dq_ci / 10.0, B=self.B, C=self.C).solver()
|
|
154
|
+
self.ts_print(states, dq_ci=dq_ci)
|
|
155
|
+
|
|
156
|
+
elif self.spin_state == 8: # d8
|
|
157
|
+
|
|
158
|
+
states = ts.d8(Dq=dq_ci / 10.0, B=self.B, C=self.C).solver()
|
|
159
|
+
self.ts_print(states, dq_ci=dq_ci)
|
|
160
|
+
|
|
161
|
+
def ts_print(self, states, dq_ci=None):
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
parameter
|
|
165
|
+
---------
|
|
166
|
+
|
|
167
|
+
states: str-list
|
|
168
|
+
List of atomic-termsymbols for a specific oxidation state
|
|
169
|
+
dq_ci: float (optional)
|
|
170
|
+
Specific crystalfield-splitting in Dq
|
|
171
|
+
|
|
172
|
+
action
|
|
173
|
+
------
|
|
174
|
+
|
|
175
|
+
Table: str
|
|
176
|
+
Print the state-energies and their atomic-termsymbols on the screen
|
|
177
|
+
|
|
178
|
+
txt-file: ascii
|
|
179
|
+
Save the state-energies and their atomic-termsymbols as txt-file
|
|
180
|
+
|
|
181
|
+
"""
|
|
182
|
+
count = 0
|
|
183
|
+
cut = np.zeros(
|
|
184
|
+
self._size + 1,
|
|
185
|
+
dtype=[("state", np.unicode_, 7), ("cm", int), ("eV", float)],
|
|
186
|
+
)
|
|
187
|
+
for irreducible in states.keys():
|
|
188
|
+
for energy in states[irreducible]:
|
|
189
|
+
cut["state"][count] = irreducible
|
|
190
|
+
cut["cm"][count] = np.int(np.round(energy, 0))
|
|
191
|
+
cut["eV"][count] = np.round(energy * 0.00012, 4)
|
|
192
|
+
|
|
193
|
+
count += 1
|
|
194
|
+
|
|
195
|
+
results = np.sort(cut, order="eV")
|
|
196
|
+
|
|
197
|
+
x = PrettyTable(results.dtype.names)
|
|
198
|
+
for row in results:
|
|
199
|
+
x.add_row(row)
|
|
200
|
+
# Change some column alignments; default was 'c'
|
|
201
|
+
x.field_names = ["State", "cm-", "eV"]
|
|
202
|
+
x.align["state"] = "l"
|
|
203
|
+
x.align["cm"] = "r"
|
|
204
|
+
x.align["eV"] = "r"
|
|
205
|
+
print(x)
|
|
206
|
+
title = "TS_Cut_d%i_10Dq_%i_B_%i_C_%i.txt" % (
|
|
207
|
+
self.spin_state,
|
|
208
|
+
dq_ci,
|
|
209
|
+
self.B,
|
|
210
|
+
self.C,
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
np.savetxt(
|
|
214
|
+
title, results.T, delimiter="\t", header="state\tcm\teV", fmt="%s\t%i\t%.4f"
|
|
215
|
+
)
|
|
216
|
+
|
|
217
|
+
def racah(self, F2, F4):
|
|
218
|
+
"""
|
|
219
|
+
Re-calculating and normalization of the Slater-Condon-Parameter to Racah-Parameter
|
|
220
|
+
eV will be converted to wavenumbers
|
|
221
|
+
:parameter
|
|
222
|
+
---------
|
|
223
|
+
|
|
224
|
+
F2: float
|
|
225
|
+
Slater-Condon-Parameter
|
|
226
|
+
F4: float
|
|
227
|
+
Slater-Condon-Parameter
|
|
228
|
+
|
|
229
|
+
:returns
|
|
230
|
+
-------
|
|
231
|
+
|
|
232
|
+
B: float
|
|
233
|
+
Racah-Parameter
|
|
234
|
+
C: float
|
|
235
|
+
Racah-Parameter
|
|
236
|
+
"""
|
|
237
|
+
eVcm = 8065.54
|
|
238
|
+
B = eVcm * (F2 / 49.0 - 5 / 441.0 * F4)
|
|
239
|
+
C = eVcm * (35 / 441.0 * F4)
|
|
240
|
+
return B, C
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
if __name__ == "__main__":
|
|
244
|
+
description = (
|
|
245
|
+
"A python-based Eigensolver for Tanabe-Sugano- & Energy-Correlation-Diagrams "
|
|
246
|
+
"based on the original three proposed studies of *Yukito Tanabe and Satoru Sugano* "
|
|
247
|
+
"for d3-d8 transition metal ions:\n"
|
|
248
|
+
"For futher help, please use tanabe '--help'"
|
|
249
|
+
)
|
|
250
|
+
|
|
251
|
+
parser = argparse.ArgumentParser(description=description)
|
|
252
|
+
parser.add_argument(
|
|
253
|
+
"-d", type=int, default=6, help="Number of unpaired electrons (default d5)"
|
|
254
|
+
)
|
|
255
|
+
parser.add_argument(
|
|
256
|
+
"-Dq",
|
|
257
|
+
type=float,
|
|
258
|
+
default=25065.0,
|
|
259
|
+
help="10Dq crystal field splitting (default 10Dq = 8065 cm-)",
|
|
260
|
+
)
|
|
261
|
+
parser.add_argument(
|
|
262
|
+
"-cut",
|
|
263
|
+
type=float,
|
|
264
|
+
default=24000,
|
|
265
|
+
help="10Dq crystal field splitting (default 10Dq = 8065 cm-)",
|
|
266
|
+
)
|
|
267
|
+
parser.add_argument(
|
|
268
|
+
"-B",
|
|
269
|
+
type=float,
|
|
270
|
+
nargs=2,
|
|
271
|
+
default=[1080.0, 1.0],
|
|
272
|
+
help="Racah Parameter B and the corresponding "
|
|
273
|
+
"reduction (default B = 860 cm- * 1.)",
|
|
274
|
+
)
|
|
275
|
+
parser.add_argument(
|
|
276
|
+
"-C",
|
|
277
|
+
type=float,
|
|
278
|
+
nargs=2,
|
|
279
|
+
default=[4773.0, 1.0],
|
|
280
|
+
help="Racah Parameter C and the corresponding "
|
|
281
|
+
"reduction (default C = 4.477*860 cm- * "
|
|
282
|
+
"1.)",
|
|
283
|
+
)
|
|
284
|
+
parser.add_argument(
|
|
285
|
+
"-n", type=int, default=500, help="Number of roots (default nroots = 500)"
|
|
286
|
+
)
|
|
287
|
+
parser.add_argument(
|
|
288
|
+
"-ndisp",
|
|
289
|
+
action="store_true",
|
|
290
|
+
default=False,
|
|
291
|
+
help="Plot TS-diagram (default = on)",
|
|
292
|
+
)
|
|
293
|
+
parser.add_argument(
|
|
294
|
+
"-ntxt",
|
|
295
|
+
action="store_true",
|
|
296
|
+
default=False,
|
|
297
|
+
help="Save TS-diagram and dd energies (default = on)",
|
|
298
|
+
)
|
|
299
|
+
parser.add_argument(
|
|
300
|
+
"-slater",
|
|
301
|
+
action="store_true",
|
|
302
|
+
default=False,
|
|
303
|
+
help="Using Slater-Condon F2,F4 parameter "
|
|
304
|
+
"instead Racah-Parameter B,C (default = "
|
|
305
|
+
"off)",
|
|
306
|
+
)
|
|
307
|
+
args = parser.parse_args()
|
|
308
|
+
|
|
309
|
+
tmm = CMDmain(
|
|
310
|
+
Dq=args.Dq / 10.0,
|
|
311
|
+
B=args.B[0] * args.B[1],
|
|
312
|
+
C=args.C[0] * args.C[1],
|
|
313
|
+
nroots=args.n,
|
|
314
|
+
mode=args.d,
|
|
315
|
+
slater=args.slater,
|
|
316
|
+
)
|
|
317
|
+
tmm.calculation()
|
|
318
|
+
|
|
319
|
+
if args.ndisp is not True:
|
|
320
|
+
tmm.plot()
|
|
321
|
+
if args.ntxt is not True:
|
|
322
|
+
tmm.savetxt()
|
|
323
|
+
if args.cut is not None:
|
|
324
|
+
tmm.ci_cut(dq_ci=args.cut)
|