radtools.ExchangeHamiltonian.summary_as_txt#
method
- ExchangeHamiltonian.summary_as_txt(template: ExchangeTemplate, decimals=4, force_symmetry=False, isotropic=False, anisotropic=False, matrix=False, dmi=False)[source]#
Return exchange Hamiltonian based on the template file in .txt format.
- Parameters:
- template
ExchangeTemplate Template of the desired exchange Hamiltonian. (see rad-make-template.py)
- accuracyint, default 4
Accuracy for the exchange values
- force_symmetry: bool, default False
Whether to force the symmetry of the template on the exchange Hamiltonian. If
Falsethen each individual bond is written, otherwise exchange parameters of the template are written.- isotropicbool, default False
Whether to output isotropic exchange.
- anisotropicbool, default False
Whether to output anisotropic exchange.
- matrixbool, default False
Whether to output whole matrix exchange.
- dmibool, default False
Whether to output DMI exchange.
- template
- Returns:
- summarystr
Exchange information as a string.