fastmotion#
- torchspin.fastmotion(sys, field_mT, tcorr, domain='field')[source]#
Compute per-line Lorentzian FWHM linewidths for fast-motion CW EPR.
NumPy front end of
fastmotion_t()(same algorithm in torch, on the autograd graph whensyscarries tensors that require grad).- Parameters:
sys (SpinSystem) – Spin system. Must have
S = [0.5], and at least one anisotropic tensor (g or A). Ifsys.Ais given, it should contain principal values in MHz. Ifsys.Qis given (quadrupole), it should be in MHz.field_mT (float) – Static magnetic field [mT] used to evaluate the Larmor angular frequency ω₀ = g₀ μ_B B / ℏ.
tcorr (float) – Isotropic rotational correlation time [seconds].
domain (str) –
'field'(default) → return FWHM linewidths in mT;'freq'→ MHz.
- Returns:
lw (ndarray, shape
(nLines,))mI_all (ndarray, shape
(nLines, nNuclei))
- Return type: