Documentation of user libs (user functions)¶
Functions to analyze β-NMR data (BNMR libs)¶
This is a collection of C++
classes using the musrfit
user-functions
interface in order to facilitate the usage in conjunction with musrfit
. It consists of two libraries:
libBNMR
contains functions to fit spin lattice relaxation (SLR) data.libLineProfile
contains functions to fit resonance lineshapes.
Note
Currently it is recommended to read in the data in ASCII format as a non-μSR fit (fit type 8).
libBNMR¶
In β-NMR the SLR is usually measured by implanting a pulse of \(^8\)Li with a length \(t_0\) into the sample. The asymmetry is measured both during the pulse and afterwards. For a a general spin relaxation function \(f(t)\) the time evolution of the asymmetry is then given by [Z. Salman, et al., PRL 96, 147601 (2006)]:
where \(\tau_{\mathrm{Li}}=1.21\)s is the \(^8\)Li lifetime.
Functions¶
The libBNMR
library currently contains the following functions:
Exponential relaxation
userFcn libBNMR ExpRlx 1 2
The parameters are:
- pulse length \(t_0\) (s)
- relaxation rate \(\lambda\) (s\(^{-1}\))
This function implements \(f(t)=e^{-\lambda t}\).
Stretched exponential relaxation
userFcn libBNMR SExpRlx 1 2 3
The parameters are:
- pulse length \(t_0\) (s)
- relaxation rate \(\lambda\) (s\(^{-1}\))
- stretching exponent \(\beta\)
This function implements \(f(t)=e^{-(\lambda t)^{\beta}}\).
libLineProfile¶
In addition to some simple line shapes libLineProfile
contains functions to fit chemical shift anisotropies in the powder average.
Their functional form can be found in M. Mehring, Principles of High Resolution NMR in Solids (Springer 1983).
For an axially symmetric interaction it is given by:
where \(f_\parallel\) and \(f_\perp\) are the frequencies that would be observed if the field is oriented paralell or perpendicular to the symmetry axis, respectively.
\(K(m)\) is the complete elliptic integral of the first kind.
Functions¶
The libLineProfile
library currently contains the following functions:
Gaussian
userFcn libLineProfile LineGauss 1 2
The parameters are:
- center of the line \(f_0\)
- FWHM of the line \(\sigma\)
Lorentzian
userFcn libLineProfile LineLorentzian 1 2
The parameters are:
- center of the line \(f_0\)
- FWHM of the line \(w\)
Laplacian
userFcn libLineProfile LineLaplace 1 2
The parameters are:
- center of the line \(f_0\)
- FWHM of the line \(w\)
Skewed Lorentzian
userFcn libLineProfile LineSkewLorentzian 1 2 3
The parameters are:
- center of the line \(f_0\)
- width of the line \(w\)
- skewness parameter \(a\)
Skewed Lorentzian 2
userFcn libLineProfile LineSkewLorentzian2 1 2 3
The parameters are:
- center of the line \(f_0\)
- width left of the center \(w_1\)
- width right of the center \(w_2\)
Powder average of an axially symmetric interaction convoluted with a Lorentzian
userFcn libLineProfile PowderLineAxialLor 1 2 3
The parameters are:
- frequency for the field oriented paralell to the symmetry axis \(f_\parallel\)
- frequency for the field oriented perpendicular to the symmetry axis \(f_\parallel\)
- FWHM of the Lorentzian \(w\)
with \(I_{\mathrm ax}(f)\) defined above.
Powder average of an axially symmetric interaction convoluted with a Gaussian
userFcn libLineProfile PowderLineAxialGss 1 2 3
The parameters are:
- frequency for the field oriented paralell to the symmetry axis \(f_\parallel\)
- frequency for the field oriented perpendicular to the symmetry axis \(f_\parallel\)
- FWHM of the Gaussian \(\sigma\)
with \(I_{\mathrm ax}(f)\) defined above.
Powder average of an anisotropic interaction convoluted with a Lorentzian
userFcn libLineProfile PowderLineAsymLor 1 2 3 4
The parameters are:
- \(f_1\)
- \(f_1\)
- \(f_3\) frequencies along the principal axes
- FWHM of the Lorentzian \(w\)
with \(I(f)\) defined above. Note that \(f_1<f_2<f_3\) is not required by the code.
Powder average of an anisotropic interaction convoluted with a Gaussian
userFcn libLineProfile PowderLineAsymGss 1 2 3 4
The parameters are:
- \(f_1\)
- \(f_1\)
- \(f_3\) frequencies along the principal axes
- FWHM of the Gaussian \(\sigma\)
with \(I(f)\) defined above. Note that \(f_1<f_2<f_3\) is not required by the code.