TRILMAX summer school

School: TRILMAX summer school

Dates: 8-12 September of 2025

Location: Oviedo, Spain

Organized by: TRILMAX consortium

Slides Introduction to magnopy

Target magnopy's version: v0.2.1

Magnopy as a python library

To get the most out of magnopy, use it as a python library. This tutorial teaches you how to do so.

Every page of the tutorial explains a concept about magnopy. There is a list of "Tutorial tasks", that can be found on top of each page. The tasks are meant for you to complete after reading the corresponding page and referenced materials.

Introducing magnopy

Introducing magnopy

Crystal structure

Crystal structure

Convention of spin Hamiltonian

Convention of spin Hamiltonian

Spin Hamiltonian

Spin Hamiltonian

Classical Energy

Classical Energy

(extra) K-points with wulfric

(extra) K-points with wulfric

Linear Spin Wave theory

Linear Spin Wave theory

Magnopy as a black box

Magnopy can be used without any knowledge of Python programming. In other words it can be used as a black-box software via its command line interface.

First, one need to install magnopy. Open a terminal and run the following command (type the command and press enter)

pip install "magnopy[visual]"

Check that everything is ok by executing the command

magnopy

There are currently two command line scripts in magnopy. Use GROGU file that you have obtained to follow the tutorial for each of them.

Hint

Those 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.

Optimization of spin directions

Optimization of spin directions

Linear Spin Wave theory

Linear Spin Wave theory

Preparing files for Vampire

This tutorial gives instructions on how to generate .UCF and .mat files from GROGU file with magnopy.

Getting files for Vampire

Getting files for Vampire

Spin-plotting routine (2D)

Spin-plotting routine (2D)

Spin-plotting routine (3D)

Spin-plotting routine (3D)

Gallery generated by Sphinx-Gallery