radtools.ExchangeHamiltonian#
- class radtools.ExchangeHamiltonian(crystal: Crystal = None, notation=None)[source]#
Exchange Hamiltonian.
By default the notation of the exchange Hamiltonian is not defined and could be different in different context. However, in could always be checked via
notation. In user-specific cases it is the responsibility of the user to set the interpretation of the Hamiltonian`s notation.For the predefined notations see
notation():- Parameters:
- Attributes:
Methods:
add_atom(atom)Add atom to the Hamiltonian.
add_bond(J, atom1, atom2, R)Add one bond to the Hamiltonian.
ferromagnetic_energy([theta, phi])Compute energy of the Hamiltonian assuming ferromagnetic state.
filter([max_distance, min_distance, ...])Filter the exchange entries based on the given conditions.
filtered([max_distance, min_distance, ...])Create filtered exchange Hamiltonian based on the given conditions.
force_symmetry(template)Force the Hamiltonian to have the symmetries of the template.
forced_symmetry(template)Force the Hamiltonian to have the symmetries of the template.
get_atom_coordinates(atom[, R])Getter for the atom coordinates.
get_bond_vector(atom1, atom2[, R])Getter for distance between the atom1 and atom2.
get_distance(atom1, atom2[, R])Getter for distance between the atom1 and atom2.
Input from Exchange model.
remove_atom(atom)Remove magnetic atom from the Hamiltonian.
remove_bond(atom1, atom2, R)Remove one bond from the Hamiltonian.
set_interpretation([double_counting, ...])Set the interpretation of the Hamiltonian`s notation.
summary_as_txt(template[, decimals, ...])Return exchange Hamiltonian based on the template file in .txt format.
Properties:
Matrix of lattice vectors.
List of cells from the Hamiltonian.
Crystal of the Hamiltonian.
Whether double counting is present in the Hamiltonian.
Whether factor 1/2 is present in the Hamiltonian.
Whether factor 2 is present in the Hamiltonian.
Magnetic atoms of the model.
Whether the minus sign is present in the Hamiltonian.
Return a string with a simple comment about the Hamiltonian notation.
Number of spins (or magnetic atoms) in the unit cell.
Model minimum and maximum coordinates in real space.
Whether spin is normalized.