Difference between revisions of "Gtensorof.m"
m (Rename Arguments section heading to Parameters) |
m (Move Description section into pre-Syntax prose) |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:gtensorof.m}} __NOTOC__ | {{DISPLAYTITLE:gtensorof.m}} __NOTOC__ | ||
Returns the g-tensor of the specified spin at the input orientation. | Returns the g-tensor of the specified spin at the input orientation. | ||
| + | |||
| + | Zeeman interaction specifications at the input stage may vary a lot, but this function always returns the g-tensor in Bohr magneton units. | ||
==Syntax== | ==Syntax== | ||
g=gtensorof(spin_system,spin_number) | g=gtensorof(spin_system,spin_number) | ||
| − | |||
| − | |||
| − | |||
==Parameters== | ==Parameters== | ||
Revision as of 19:01, 5 June 2026
Returns the g-tensor of the specified spin at the input orientation.
Zeeman interaction specifications at the input stage may vary a lot, but this function always returns the g-tensor in Bohr magneton units.
Syntax
g=gtensorof(spin_system,spin_number)
Parameters
spin_number - a positive integer specifying the number
of the spin in the sys.isotopes list
Outputs
g - a 3x3 matrix in Bohr magneton units
Notes
The same convention (mu=-mu_b*g*S/hbar) is used for the nuclei, meaning that their g-tensors are much smaller than those of electrons.
See also
Version 2.1, authors: Ilya Kuprov, Elizaveta Suturina