radtools.SpinHamiltonian.form_model#

method

SpinHamiltonian.form_model(template)[source]#

Force the Hamiltonian to have the symmetries of the template.

Takes mean values of the parameters. For DMI interaction directions are kept the same, but the length of the DMI vector is scaled.

This method modifies an instance on which it was called.

Changed in version 0.8.0: Renamed from force_symmetry

Parameters:
templateExchangeTemplate

Template.

See also

formed_model

Returns new object.