Master tutorial

Target magnopy's version: 0.4.3

Last updated: 9 January 2026

Magnopy as a python library

Every page of the tutorial explains some concepts about the magnopy. There is a list of exercises on top of each tutorial page. Exercises are connected to the content that you find in each page.

Introducing magnopy

Introducing magnopy

Crystal structure

Crystal structure

Convention of spin Hamiltonian

Convention of spin Hamiltonian

Spin Hamiltonian

Spin Hamiltonian

Magnetic field

Magnetic field

Magnetic dipole-dipole interaction

Magnetic dipole-dipole interaction

Classical Energy

Classical Energy

(extra) Wulfric

(extra) Wulfric

Linear Spin Wave theory

Linear Spin Wave theory

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

Solutions for the exercises

Introducing magnopy

Introducing magnopy

Crystal structure

Crystal structure

Convention of spin Hamiltonian

Convention of spin Hamiltonian

Spin Hamiltonian

Spin Hamiltonian

Magnetic field

Magnetic field

Classical Energy

Classical Energy

(extra) Wulfric

(extra) Wulfric

Linear Spin Wave theory

Linear Spin Wave theory

Gallery generated by Sphinx-Gallery