magnopy.SpinHamiltonian#
- class magnopy.SpinHamiltonian(cell, atoms, convention, units='meV')[source]#
Spin Hamiltonian.
- Parameters:
- convention
Conventionor str A convention of the spin Hamiltonian.
- cell(3, 3) array-like
Matrix of a cell, rows are interpreted as vectors.
- atomsdict
Dictionary with atoms.
- unitsstr, default "meV"
Added in version 0.3.0.
Units of the Hamiltonian's parameters. See
SpinHamiltonian.unitsfor more details. Case-insensitive.
- convention
Examples
For example of usage see the page in the user guide - Spin Hamiltonian.
Methods:
add_1(alpha, parameter[, units, ...])Adds a (one spin & one site) parameter to the Hamiltonian.
add_21(alpha, parameter[, units, ...])Adds a (two spins & one site) parameter to the Hamiltonian.
add_22(alpha, beta, nu, parameter[, units, ...])Adds a (two spins & two sites) parameter to the Hamiltonian.
add_31(alpha, parameter[, units, ...])Adds a (three spins & one site) parameter to the Hamiltonian.
add_32(alpha, beta, nu, parameter[, units, ...])Adds a (three spins & two sites) parameter to the Hamiltonian.
add_33(alpha, beta, gamma, nu, _lambda, ...)Adds a (three spins & three sites) parameter to the Hamiltonian.
add_41(alpha, parameter[, units, ...])Adds a (four spins & one site) parameter to the Hamiltonian.
add_421(alpha, beta, nu, parameter[, units, ...])Adds a (four spins & two sites (3+1)) parameter to the Hamiltonian.
add_422(alpha, beta, nu, parameter[, units, ...])Adds a (four spins & two sites (2+2)) parameter to the Hamiltonian.
add_43(alpha, beta, gamma, nu, _lambda, ...)Adds a (four spins & three sites) parameter to the Hamiltonian.
add_44(alpha, beta, gamma, epsilon, nu, ...)Adds a (four spins & four sites) parameter to the Hamiltonian.
add_dipole_dipole([R_cut, E_cut, alphas])Adds magnetic dipole dipole interaction to the Hamiltonian.
add_magnetic_field([B, alphas, h])Adds external magnetic field to the Hamiltonian in the form of one spin parameters.
copy()Returns a new, independent copy of the same Hamiltonian.
Returns the Hamiltonian with the same cell, atoms, units and convention, but with no parameters present.
remove_1(alpha)Removes a (one spin & one site) parameter from the Hamiltonian.
remove_21(alpha)Removes a (two spins & one site) parameter from the Hamiltonian.
remove_22(alpha, beta, nu)Removes a (two spins & two sites) parameter from the Hamiltonian.
remove_31(alpha)Removes a (three spins & one site) parameter from the Hamiltonian.
remove_32(alpha, beta, nu)Removes a (three spins & two sites) parameter from the Hamiltonian.
remove_33(alpha, beta, gamma, nu, _lambda)Removes a (three spins & three sites) parameter from the Hamiltonian.
remove_41(alpha)Removes a (four spins & one site) parameter from the Hamiltonian.
remove_421(alpha, beta, nu)Removes a (four spins & two sites (3+1)) parameter from the Hamiltonian.
remove_422(alpha, beta, nu)Removes a (four spins & two sites (2+2)) parameter from the Hamiltonian.
remove_43(alpha, beta, gamma, nu, _lambda)Removes a (four spins & three sites) parameter from the Hamiltonian.
remove_44(alpha, beta, gamma, epsilon, nu, ...)Removes a (four spins & four sites) parameter from the Hamiltonian.
Properties:
Number of spins (magnetic atoms) in the unit cell.
Atoms of the crystal on which the Hamiltonian is build.
Cell of the crystal on which the Hamiltonian is build.
Convention of the spin Hamiltonian.
Magnetic atoms of the spin Hamiltonian.
Index map from magnetic atoms to all atoms.
Index map from all atoms to the magnetic ones.
Parameters of (one spin & one site) term of the Hamiltonian.
Parameters of (two spins & one site) term of the Hamiltonian.
Parameters of (two spins & two sites) term of the Hamiltonian.
Parameters of (three spins & one site) term of the Hamiltonian.
Parameters of (three spins & two sites) term of the Hamiltonian.
Parameters of (three spins & three sites) term of the Hamiltonian.
Parameters of (four spins & one site) term of the Hamiltonian.
Parameters of (four spins & two sites (3+1)) term of the Hamiltonian.
Parameters of (four spins & two sites (2+2)) term of the Hamiltonian.
Parameters of (four spins & three sites) term of the Hamiltonian.
Parameters of (four spins & four sites) term of the Hamiltonian.
Units of the Hamiltonian's parameters.