Magesty.jl

Magesty.jl (MAGnetic model ESTimator) is a Julia package for construction of Spin-Cluster Expansion (SCE) [1] model. It provides comprehensive tools for:

  • Construction of symmetry-adapted SCE basis set
  • Derivation of SCE coefficients
  • Tools for spin configuration sampling

Documentation

PageDescription
InstallationPackage installation and how to run the CLI tools
TutorialsEnd-to-end walkthroughs applying the SCE workflow to specific systems
API ExamplesShort, feature-by-feature snippets of the public API
Input KeysFull reference for TOML configuration keys
API ReferenceDetailed documentation of all exported functions and types
Internal APILower-level building blocks, not covered by the stability guarantee
ToolsThe magesty command-line interface
Theoretical BackgroundThe SCE theory, end to end, linked to the implementation
TipsPractical tips

Tools

Magesty.jl provides a magesty command-line interface for converting VASP output into the formats used by the spin-cluster expansion workflow:

  • magesty vasp extxyz — convert a VASP run to extended XYZ
  • magesty vasp toml — convert a VASP POSCAR to a Magesty input TOML configuration
  • magesty vasp embset — convert VASP OSZICAR files to the EMBSET training-data format

See the Tools page for details.

Citation

If you use Magesty.jl in your research, please cite:

Tomonori Tanaka and Yoshihiro Gohda, "General spin models from noncollinear spin density functional theory and spin-cluster expansion", Phys. Rev. Research 8, 023300 (2026). DOI: 10.1103/qqlf-d531

References

  1. R. Drautz and M. Fähnle, "Spin-cluster expansion: Parametrization of the general adiabatic magnetic energy surface with ab initio accuracy", Phys. Rev. B 69, 104404 (2004). DOI: 10.1103/PhysRevB.69.104404