qrotor 4.0.2__tar.gz → 4.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.
Potentially problematic release.
This version of qrotor might be problematic. Click here for more details.
- {qrotor-4.0.2 → qrotor-4.1.1}/PKG-INFO +1 -1
- {qrotor-4.0.2 → qrotor-4.1.1}/qrotor/_version.py +2 -1
- {qrotor-4.0.2 → qrotor-4.1.1}/qrotor/constants.py +9 -5
- {qrotor-4.0.2 → qrotor-4.1.1}/qrotor/solve.py +1 -1
- {qrotor-4.0.2 → qrotor-4.1.1}/qrotor/system.py +3 -3
- {qrotor-4.0.2 → qrotor-4.1.1}/qrotor.egg-info/PKG-INFO +1 -1
- {qrotor-4.0.2 → qrotor-4.1.1}/qrotor.egg-info/SOURCES.txt +0 -1
- {qrotor-4.0.2 → qrotor-4.1.1}/qrotor.egg-info/top_level.txt +0 -1
- qrotor-4.0.2/tests/__init__.py +0 -0
- {qrotor-4.0.2 → qrotor-4.1.1}/LICENSE +0 -0
- {qrotor-4.0.2 → qrotor-4.1.1}/README.md +0 -0
- {qrotor-4.0.2 → qrotor-4.1.1}/qrotor/__init__.py +0 -0
- {qrotor-4.0.2 → qrotor-4.1.1}/qrotor/plot.py +0 -0
- {qrotor-4.0.2 → qrotor-4.1.1}/qrotor/potential.py +0 -0
- {qrotor-4.0.2 → qrotor-4.1.1}/qrotor/rotate.py +0 -0
- {qrotor-4.0.2 → qrotor-4.1.1}/qrotor/systems.py +0 -0
- {qrotor-4.0.2 → qrotor-4.1.1}/qrotor.egg-info/dependency_links.txt +0 -0
- {qrotor-4.0.2 → qrotor-4.1.1}/qrotor.egg-info/requires.txt +0 -0
- {qrotor-4.0.2 → qrotor-4.1.1}/setup.cfg +0 -0
- {qrotor-4.0.2 → qrotor-4.1.1}/setup.py +0 -0
- {qrotor-4.0.2 → qrotor-4.1.1}/tests/test_constants.py +0 -0
- {qrotor-4.0.2 → qrotor-4.1.1}/tests/test_potential.py +0 -0
- {qrotor-4.0.2 → qrotor-4.1.1}/tests/test_rotate.py +0 -0
- {qrotor-4.0.2 → qrotor-4.1.1}/tests/test_solve.py +0 -0
- {qrotor-4.0.2 → qrotor-4.1.1}/tests/test_system.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
# Description
|
|
3
3
|
|
|
4
|
-
Common constants and default inertia values used in
|
|
4
|
+
Common constants and default inertia values used in QRotor.
|
|
5
5
|
|
|
6
6
|
Bond lengths and angles were obtained from MAPbI3, see
|
|
7
7
|
[K. Drużbicki *et al*., Crystal Growth & Design 24, 391–404 (2024)](https://doi.org/10.1021/acs.cgd.3c01112).
|
|
@@ -75,11 +75,15 @@ In meV units.
|
|
|
75
75
|
|
|
76
76
|
# Quick conversion factors
|
|
77
77
|
Ry_to_eV = const.physical_constants['Rydberg constant times hc in eV'][0]
|
|
78
|
-
"""Quick conversion factor from
|
|
78
|
+
"""Quick conversion factor from Rydberg to eV energy."""
|
|
79
79
|
Ry_to_meV = Ry_to_eV * 1000
|
|
80
|
-
"""Quick conversion factor from
|
|
80
|
+
"""Quick conversion factor from Rydberg to meV energy."""
|
|
81
81
|
eV_to_Ry = 1 / Ry_to_eV
|
|
82
|
-
"""Quick conversion factor from
|
|
82
|
+
"""Quick conversion factor from eV to Rydberg."""
|
|
83
83
|
meV_to_Ry = 1 / Ry_to_meV
|
|
84
|
-
"""Quick conversion factor from
|
|
84
|
+
"""Quick conversion factor from meV to Rydberg."""
|
|
85
|
+
cm1_to_meV = (const.h * const.c * 100 / const.e) * 1000
|
|
86
|
+
"""Quick conversion factor from cm$^{-1}$ to meV."""
|
|
87
|
+
meV_to_cm1 = 1/cm1_to_meV
|
|
88
|
+
"""Quick conversion factor from meV to cm$^{-1}$."""
|
|
85
89
|
|
|
@@ -100,7 +100,7 @@ def schrodinger(system:System) -> System:
|
|
|
100
100
|
system.version = __version__
|
|
101
101
|
system.runtime = time.time() - time_start
|
|
102
102
|
system.eigenvalues = eigenvalues
|
|
103
|
-
system.
|
|
103
|
+
system.E_activation = max(V) - min(eigenvalues)
|
|
104
104
|
# Solve excitations and tunnel splittings, assuming triplet degeneracy
|
|
105
105
|
system = excitations(system)
|
|
106
106
|
# Do we really need to save eigenvectors?
|
|
@@ -103,6 +103,8 @@ class System:
|
|
|
103
103
|
"""List of `eigenvalues` grouped by energy levels, found below `potential_max`."""
|
|
104
104
|
self.deg: float = None
|
|
105
105
|
"""Estimated degeneracy of the `E_levels` found below `potential_max`."""
|
|
106
|
+
self.E_activation: float = None
|
|
107
|
+
"""Activation energy or energy barrier, from the ground torsional state to the top of the potential barrier, `max(V) - min(eigenvalues)`"""
|
|
106
108
|
self.excitations: list = []
|
|
107
109
|
"""Torsional excitations, as the difference between each energy level with respect to the ground state.
|
|
108
110
|
|
|
@@ -115,8 +117,6 @@ class System:
|
|
|
115
117
|
the mean of the eigenvalues from A and the mean of the eigenvalues from E,
|
|
116
118
|
see [R. M. Dimeo, American Journal of Physics 71, 885–893 (2003)](https://doi.org/10.1119/1.1538575).
|
|
117
119
|
"""
|
|
118
|
-
self.energy_barrier: float = None
|
|
119
|
-
"""Activation energy or energy barrier, from the ground torsional state to the top of the potential barrier, `max(V) - min(eigenvalues)`"""
|
|
120
120
|
self.runtime: float = None
|
|
121
121
|
"""Time taken to solve the eigenvalues."""
|
|
122
122
|
|
|
@@ -269,7 +269,7 @@ class System:
|
|
|
269
269
|
'deg': self.deg,
|
|
270
270
|
'excitations': self.excitations,
|
|
271
271
|
'splittings': self.splittings,
|
|
272
|
-
'
|
|
272
|
+
'E_activation': self.E_activation,
|
|
273
273
|
'runtime': self.runtime,
|
|
274
274
|
}
|
|
275
275
|
|
qrotor-4.0.2/tests/__init__.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|