Skip to content
SpinW Matlab library for spin wave calculation
Branch: master
Clone or download
Pull request Compare This branch is 123 commits ahead of tsdev:master.

DOITwitter Follow Old Github All ReleasesGithub All Releases

SpinW (spin-double-u) is a Matlab library that can optimize magnetic structures using mean field theory and calculate spin wave dispersion and spin-spin correlation function for complex crystal and magnetic structures. For details check

Keep up to date on announcements and more by following @spinw4 on Twitter.


  • experimental and under construction, the address can change in the future
  • documentation of the master branch
  • use swdoc/swhelp instead of the Matlab built-in doc/help functions to get help on SpinW
  • can be also accessed from the browser:

Build Status

We are currently testing on Centos 7.3, macOS and Windows using MATLAB R2018b. It should be noted that MATLAB symbolic calculation changed post R2018a and as such symbolic results may be differ with a relative tolerance of < 0.03 %.

Testing can be pulled from the testing repository and run with the runspinwFunctionalityTests command from the Testing directory.

You can’t perform that action at this time.