magnopy.Convention.get_predefined#
method
- static Convention.get_predefined(name: str)[source]#
Returns one of the pre-defined conventions.
- Parameters:
- namestr
Name of the desired pre-defined convention. Supported are
"tb2j"
"grogu"
"vampire"
"spinw"
Case-insensitive.
- Returns:
- convention
Convention
- convention
Examples
>>> import magnopy >>> tb2j = magnopy.Convention.get_predefined("TB2J") >>> print(tb2j) "tb2j" convention where * Bonds are counted multiple times in the sum; * Spin vectors are normalized to 1; * Undefined c1 factor; * c21 = -1.0; * c22 = -1.0; * Undefined c31 factor; * Undefined c32 factor; * Undefined c33 factor; * Undefined c41 factor; * Undefined c421 factor; * Undefined c422 factor; * Undefined c43 factor; * Undefined c44 factor. >>> grogu = magnopy.Convention.get_predefined("GROGU") >>> print(grogu) "grogu" convention where * Bonds are counted multiple times in the sum; * Spin vectors are normalized to 1; * Undefined c1 factor; * c21 = 1.0; * c22 = 0.5; * Undefined c31 factor; * Undefined c32 factor; * Undefined c33 factor; * Undefined c41 factor; * Undefined c421 factor; * Undefined c422 factor; * Undefined c43 factor; * Undefined c44 factor. >>> vampire = magnopy.Convention.get_predefined("Vampire") >>> print(vampire) "vampire" convention where * Bonds are counted multiple times in the sum; * Spin vectors are normalized to 1; * Undefined c1 factor; * c21 = -1.0; * c22 = -0.5; * Undefined c31 factor; * Undefined c32 factor; * Undefined c33 factor; * Undefined c41 factor; * Undefined c421 factor; * Undefined c422 factor; * Undefined c43 factor; * Undefined c44 factor. >>> spinW = magnopy.Convention.get_predefined("spinW") >>> print(spinW) "spinw" convention where * Bonds are counted multiple times in the sum; * Spin vectors are not normalized; * Undefined c1 factor; * c21 = 1.0; * c22 = 1.0; * Undefined c31 factor; * Undefined c32 factor; * Undefined c33 factor; * Undefined c41 factor; * Undefined c421 factor; * Undefined c422 factor; * Undefined c43 factor; * Undefined c44 factor.