Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Magnopy's tutorials
Light Logo Dark Logo
  • Master tutorial
    • Magnopy as a python library
      • Introducing magnopy
      • Crystal structure
      • Convention of spin Hamiltonian
      • Spin Hamiltonian
      • Magnetic field
      • Magnetic dipole-dipole interaction
      • Classical Energy
      • (extra) Wulfric
      • Linear Spin Wave theory
    • Magnopy as a black box
      • magnopy-optimize-sd
      • magnopy-lswt
    • Solutions for the exercises
      • Introducing magnopy
      • Crystal structure
      • Convention of spin Hamiltonian
      • Spin Hamiltonian
      • Magnetic field
      • Classical Energy
      • (extra) Wulfric
      • Linear Spin Wave theory
  • TRILMAX summer school
    • Magnopy as a python library
      • Introducing magnopy
      • Crystal structure
      • Convention of spin Hamiltonian
      • Spin Hamiltonian
      • Classical Energy
      • (extra) K-points with wulfric
      • Linear Spin Wave theory
    • Magnopy as a black box
      • Optimization of spin directions
      • Linear Spin Wave theory
    • Preparing files for Vampire
      • Getting files for Vampire
      • Spin-plotting routine (2D)
      • Spin-plotting routine (3D)
Back to top
View this page

Magnopy as a black boxΒΆ

Alternative way to use magnopy, that does not require knowledge of Python is through its command line interface.

Hint

The command line scripts can be run from within python as well, see: magnopy.scenarios. One can study the source code of magnopy.scenarios.optimize_sd() and magnopy.scenarios.solve_lswt() for more advance example of how magnopy can be used as a python library.

magnopy-optimize-sd

magnopy-optimize-sd

magnopy-lswt

magnopy-lswt
Next
magnopy-optimize-sd
Previous
Linear Spin Wave theory
Copyright © 2025-2026, Magnopy Team
Made with Sphinx and @pradyunsg's Furo