Home > Applications > SpinW > m_files > @sw > quickham.m

iFit/quickham

PURPOSE ^

creates magnetic Hamiltonian with a single command

SYNOPSIS ^

function quickham(obj,J)

DESCRIPTION ^

 creates magnetic Hamiltonian with a single command

 QUICKHAM(obj, J)

 The function generates the bonds from the predefined crystal structure
 and assigns exchange values to bonds such as J(1) to first neighbor, J(2)
 for second neighbor etc. The command will erase all previous bond,
 anisotropy, g-tensor and matrix definitions. Even if J(idx) == 0, the
 corresponding bond and matrix will be created.

 Input:

 obj       Spinw object.
 J         Vector containing the Heisenberg exchange values. J(1) for
           first neighbor bonds, etc.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1