radtools.SpinHamiltonian.remove_bond#
method
- SpinHamiltonian.remove_bond(atom1: Atom, atom2: Atom, R)[source]#
Remove one bond from the Hamiltonian.
More straightforward syntax is advised:
>>> import radtools as rad >>> Cr = rad.Atom("Cr") >>> J = rad.ExchangeParameter(iso=1) >>> model = rad.SpinHamiltonian(rad.Crystal()) >>> model[Cr, Cr, (1,0,0)] = J >>> (Cr, Cr, (1,0,0)) in model True >>> del model[Cr, Cr, (1,0,0)] >>> (Cr, Cr, (1,0,0)) in model False
It is the same as
>>> import radtools as rad >>> Cr = rad.Atom("Cr") >>> J = rad.ExchangeParameter(iso=1) >>> model = rad.SpinHamiltonian(rad.Crystal()) >>> model[Cr, Cr, (1,0,0)] = J >>> (Cr, Cr, (1,0,0)) in model True >>> model.remove_bond(Cr, Cr, (1,0,0)) >>> (Cr, Cr, (1,0,0)) in model False
- Parameters:
- atom1py:class:.Atom
Atom object in (0, 0, 0) unit cell.
- atom2py:class:.Atom
Atom object in R unit cell.
- Rtuple of ints
Radius vector of the unit cell for atom2 (i,j,k).