Skip to main content

Set of tools useful in spin wave research.

Project description

SpinWaveToolkit

SpinWaveToolkit is an open-source Python package which provides analytical tools for spin-wave physics and research.

[!TIP] This package could use some updating. If you want to contrubute, see CONTRIBUTING GUIDELINES.

Installation

Currently you can either

  1. (recommended) install latest release from PyPI via pip by typing in the command line
py -m pip install SpinWaveToolkit --user
  1. or install from GitHub any branch via pip by typing in the command line
py -m pip install https://github.com/CEITECmagnonics/SpinWaveToolkit/tarball/<branch-name> --user
older installation approaches (not recommended)
  1. or copy the SpinWaveToolkit folder to your site-packages folder manually. Usually (on Windows machines) located at
C:\Users\<user>\AppData\Roaming\Python\Python<python-version>\site-packages

for user-installed modules, or at

C:\<python-installation-folder>\Python<python-version>\Lib\site-packages

for global modules.

Dependencies

The SpinWaveToolkit package is compatible with Python >3.7, and uses the following modules:

[!NOTE] If you encounter compatibility errors in contradiction with this list, let us know by posting your findings in a new Issue.

About

This package provides analytical tools in spin-wave physics. This section gives an overview of its capabilites. All functionalities are described in the SpinWaveToolkit Documentation.

Features:

  • Calculation of the dispersion relation and derived quantities for several systems using analytical, semi-analytical, and numerical models. These include
    • single magnetic layer (thin film) surrounded by dielectrics [^1] [^2],
    • coupled magnetic double layer (e.g. a synthetic antiferromagnet) [^3],
    • single magnetic layer inductively coupled to a superconducting layer from one side [^4].
  • Simple magnetic material management using a Material class.
  • Functions for modelling Brillouin light scattering (BLS) signal and experiments.

Example

Example of calculation of the spin-wave dispersion relation f(k_xi), and other important quantities, for the lowest-order mode in a 30 nm thick NiFe (Permalloy) layer.

import numpy as np
import SpinWaveToolkit as SWT

kxi = np.linspace(1e-6, 150e6, 150)

PyChar = SWT.SingleLayer(Bext=20e-3, kxi=kxi, theta=np.pi/2,
                         phi=np.pi/2, d=30e-9, weff=2e-6,
                         boundary_cond=2, material=SWT.NiFe)
DispPy = PyChar.GetDispersion()*1e-9/(2*np.pi)  # GHz
vgPy = PyChar.GetGroupVelocity()*1e-3  # km/s
lifetimePy = PyChar.GetLifetime()*1e9  # ns
decLen = PyChar.GetDecLen()*1e6  # um

For more examples (with images) look here.

Cite us

If you use SpinWaveToolkit in your work, please cite it as follows:

[1] Wojewoda, O., & Klíma, J. SpinWaveToolkit: Set of tools useful in spin wave research. GitHub, 2025. https://github.com/CEITECmagnonics/SpinWaveToolkit

BibTeX entry:

@online{swt,
    author = {Wojewoda, Ondřej and Klíma, Jan},
    title = {SpinWaveToolkit: Set of tools useful in spin wave research},
    year = {2025},
    publisher = {GitHub},
    version = {1.0.0},
    url = {https://github.com/CEITECmagnonics/SpinWaveToolkit},
    language = {en},
}

All sources of models used within the SpinWaveToolkit are cited in their respective documentation. Consider citing them as well if you use these models.

[^1]: B. A. Kalinikos and A. N. Slavin, J. Phys. C: Solid State Phys., 19, 7013 (1986). [^2]: S. Tacchi et al., Phys. Rev. B, 100, 104406 (2019). [^3]: R. A. Gallardo et al., Phys. Rev. Applied, 12, 034012 (2019). [^4]: X.-H. Zhou et al., Phys. Rev. B, 110, L020404 (2024).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spinwavetoolkit-1.1.1.tar.gz (42.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spinwavetoolkit-1.1.1-py3-none-any.whl (45.4 kB view details)

Uploaded Python 3

File details

Details for the file spinwavetoolkit-1.1.1.tar.gz.

File metadata

  • Download URL: spinwavetoolkit-1.1.1.tar.gz
  • Upload date:
  • Size: 42.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for spinwavetoolkit-1.1.1.tar.gz
Algorithm Hash digest
SHA256 f61531c8aeb15bf3d0a8fab6ef43b6ea8c1ae42ce942556255734cd07373d4d1
MD5 0403b8ce288964eecf2940c03e8d709f
BLAKE2b-256 6a5de6e5302f3f480c359f4207edd0e978b3dcb139ffa35135ac64e1abfbfb91

See more details on using hashes here.

Provenance

The following attestation bundles were made for spinwavetoolkit-1.1.1.tar.gz:

Publisher: release.yml on CEITECmagnonics/SpinWaveToolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spinwavetoolkit-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for spinwavetoolkit-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e94396539280427f952854a41edcd7056aa79b9ca2f38d7bdaa58448be449db
MD5 632aa83c5b0b25b71a159bcc181050c3
BLAKE2b-256 8544f34452f29f3fe886c5280d43355d84c77da5b87f10c2544ee118e768fc7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for spinwavetoolkit-1.1.1-py3-none-any.whl:

Publisher: release.yml on CEITECmagnonics/SpinWaveToolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page