SkillAgentSearch skills...

Spindata

Spindata provides the gyromagnetic ratio, spin and quadrupole moments of nuclei as needed in Nuclear Magnetic Resonance.

Install / Use

/learn @bennomeier/Spindata
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Spindata

Spindata provides the gyromagnetic ratio, the spin and the quadrupole moment of all isotopes carrying spin, and the electron.

Spindata is available on PyPi and can be installed as follows:

pip install spindata

Alternatively, download the repository from github and run

python setup.py install

To access these data call spindata's routines gamma, spin and quadrupole, respectively.

Like so::

import spindata print(spindata.gamma("1H")) print(spindata.spin("17O")) print(spindata.quadrupole("17O"))

To calculate the thermal equilibrium polarization of e.g. electron spins at 6.7 Tesla and 1 Kelvin do

print(spindata.polarization("E", 6.7, 1))

To calculate the spin temperature for a given polarization of a nucleus at a field of 1 T use

polarizationToTemperatureAt1T(0.7, "1H")

To calculate the thermal equilibrium bulk magnetization (in A/m) of e.g. 15 mM electron spins at 6.7 Tesla and 1 Kelvin do

print(spindata.magnetization("E", 6.7, 1, 15e-3))

This assumes that the Zeeman interaction dominates the Hamiltonian.

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated1y ago
Forks1

Languages

Python

Security Score

55/100

Audited on May 29, 2024

No findings