obj = sw_model(model, param)
obj = sw_model(model, param) generates spin models, such as triangular
lattice antiferromagnet, square lattice, etc. It also generates the
magnetic ground state. For each lattice arbitrary number of further
neighbor bonds can be defined using a vector of exchange values.
- String, name of the model, one of the following:
'triAF'Triangular lattice Heisenberg antiferromagnet in the \(ab\) plane (\(a=b=3\) Å), with γ = 120° angle and optimised magnetic structure.
'squareAF'Square lattice antiferromagnet.
'chain'Chain with further neighbor interactions.
swm_*Custom models which are in the matlab path can be evaluated. Checkout: https://www.github.com/spinw/Models for pre-made models.
- Input parameters of the model, row vector which gives the values of the
Heisenberg exchange for first, second, thirs etc. neighbor bonds stored
p(3), etc. respectively.
- spinw class object with the selected model.