magnopy.io#

Input-output function of Magnopy.

Other#

read_spin_directions(filename)

Reads spin directions from the file.

TB2J#

load_tb2j(filename[, spin_values, ...])

Reads spin Hamiltonian from the "exchange.out" file produced by TB2J.

GROGU#

load_grogu(filename[, spin_values, ...])

Reads spin Hamiltonian from the .txt file produced by GROGU.

Vampire#

dump_vampire(spinham[, seedname, ...])

Saves spin Hamiltonian in the format suitable for Vampire (.UCF and .mat).

dump_vampire_mat(spinham, filename[, ...])

Generates .mat file for Vampire.

dump_vampire_ucf(spinham, filename[, ...])

Generates .UCF file for Vampire.

Plotting#

plot_dispersion(modes[, x_data, ticks, ...])

Plot dispersion curves.