SpinVibe is a Python package for simulating spin-phonon coupling and
calculating SpinVibe enables the parametric analysis of mpi4py.
Please take a look at the Documentation
- Solid-state phonons and eigenvectors
- Molecular Spin-Hamiltonian parameters (e.g. g-factor, zero-field splitting tensor)
- Parameters: Temperature, Polarization, external magnetic field, etc.
- Time evolution of the spin density and magnetization
- Spin-phonon relaxation time (T1)
The code was written using the following Python Libraries:
- python 3.9.21
- numpy 1.26.4
- scipy 1.13.1
- h5py 3.12.1
- mpi4py 4.0.2 (optional for MPI parallelization)
Download SpinVibe source code using the command:
git clone https://github.com/victorchanglee/SpinVibe.gitcd SpinVibeInstall the code with the command:
pip install -e .Optionally, the code is parallelize over MPI using the mpi4py library. If MPI parallelization is available you can use
pip install -e ".[mpi]" Once the installation is succesful, you can test it using the files provided in the test directory.
An example is included in the test directory. To run the example just run
spinvibe input.jsonThe expected output for a serial run is in test.out.
Additionally, a Jupyter Notebook Ttutorial is included inside the test directory.
Please use the Issue Tracker to report bugs or request new features.
Contributions are also welcome! Please use the Pull Request and Fork workflow to contribute.
Feel free to reach out at victor.changlee@northwestern.edu or jrondinelli@northwestern.edu
