libFitPofB is a collection of C++ classes using the musrfit user-function interface in order to facilitate the usage in conjunction with musrfit. The classes contained in this library generally implement calculations of one-dimensional static magnetic field distributions
which lead to muon-spin depolarization functions
is the gyromagnetic ratio of the muon and
is the initial phase of the muon spins with respect to the positron detector.musrfit is explained—the calculations by themselves are only outlined. For further information please refer to the original literature and/or the source code of the implementation.
musrfit msr files an XML configuration file in the working directory is used. For details, see below.
Remark 2: The implementations in this library heavily rely on FFTW3. In principle, it always checks what is the best way to do efficient Fourier transforms for a given machine before the transforms are actually done. If repeatedly Fourier transforms of the same (sizable) length should be done, it might be worth storing the once obtained information in an external file and just load it the next time this information is needed ("wisdom handling"). In case this feature shall be used, a valid wisdom file has to be specified in the XML file.
Remark 3: The model functions described in the following do generally not behave nicely in conjunction with MINUIT function minimizations (or maximizations). The analysis process at the moment in most cases involves some tedious trial-and-error procedure, where the displayed MINUIT information as always deserves attention. This is especially true if small effects should be analyzed (e.g. small diamagnetic shifts in superconductors). The parameter uncertainty in many cases has to be estimated independently. Due to these limitations, also the use of the fit option of msr2data cannot be advised.
Remark 4: If these classes still prove useful and results obtained through them are part of scientific publications,
an acknowledgement of the use of the library is appreciated.
to vary only in the dimension parallel to the momentum of the incident muons. In such a case the magnetic field distribution is given by
is the muon implantation profile simulated by TRIM.SP.
Assuming an array of
isotropic local superconductors with a total thickness
in the Meissner state the magnetic induction is given by solving the 1D London equation
taking into account the boundary conditions(1)
specify the interfaces between two adjacent layers and
is the magnetic field penetration depth in the constituent
.
The calculation of the field distribution has been set up for a superconducting half-space as well as superconducting thin films with up to three superconducting layers with different penetration depths. The muon-spin depolarization functions are calculated using the following lines in the THEORY block of a musrfit msr file: userFcn libFitPofB TLondon1DHS 1 2 3 4 5
userFcn libFitPofB TLondon1D1L 1 2 3 4 5 6 [a b]
userFcn libFitPofB TLondon1D2L 1 2 3 4 5 6 7 8 [a b c]
userFcn libFitPofB TLondon1D3L 1 2 3 4 5 6 7 8 9 10 [a b c d]
,
are the reciprocal lattice vectors of a two-dimensional vortex lattice and the
are the Fourier coefficients depending on the magnetic penetration depth
and the superconducting coherence length
. The
for some specific models are as follows: 


and
is a modified Bessel function.
is obtained by an iterative minimization of the free energy of the vortex lattice.
Concerning the applicability (e.g. field regions) of each of the mentioned models please refer to the original publications!
At the moment, the calculation of the field distribution has been implemented for triangular flux-line lattices. The number of grid lines in which the inter-vortex distance is divided for the calculations to be specified through the XML file.musrfit msr file: userFcn libFitPofB TBulkTriVortexLondon 1 2 3 4
userFcn libFitPofB TBulkTriVortexML 1 2 3 4
userFcn libFitPofB TBulkTriVortexAGL 1 2 3 4
userFcn libFitPofB TBulkTriVortexNGL 1 2 3 4
MIGRAD it has proven useful to use the log-likelihood maximization instead of the χ2 minimization routines and to choose sufficiently large initial steps for the parameters. Calling MINOS in conjunction with these functions is futile.COMMANDS STRATEGY 0 MAX_LIKELIHOOD MIGRAD HESSE SAVENotes 2 : E.H. Brandt, J. Low Temp. Phys. 73, 355 (1988). 3 : T.M. Riseman et al., Phys. Rev. B 52, 10569 (1995). 4 : A. Yaouanc, P. Dalmas de Réotier and E.H. Brandt, Phys. Rev. B 55, 11107 (1997). 5 : E.H. Brandt, Phys. Rev. B 68, 054506 (2003).
BMW_startup.xml is a configuration file located in the working directory. In this file some settings like the time and field resolution of the calculations as well as the present muon implantation profiles for a LE-μSR analysis have to be defined. The following XML tags are allowed to define settings: TRIM.SP implantation profiles (inside a <LEM> environment)
TRIM.SP implantation profiles are available (inside a <LEM> environment) TRIM.SP RGE file (inside a <energy_list> environment)TRIM.SP RGE file given above (inside a <energy_list> environment)
<?xml version="1.0" encoding="UTF-8"?>
<BMW>
<debug>0</debug>
<wisdom>/home/user/WordsOfWisdom.dat</wisdom>
<delta_t>0.01</delta_t>
<delta_B>0.5</delta_B>
<VortexLattice>
<N_VortexGrid>1024</N_VortexGrid>
</VortexLattice>
<LEM>
<data_path>/home/user/TrimSP/some-sample-</data_path>
<N_theory>5000</N_theory>
<energy_list>
<energy_label>02_0</energy_label>
<energy>2.0</energy>
<energy_label>03_0</energy_label>
<energy>3.0</energy>
<energy_label>03_6</energy_label>
<energy>3.6</energy>
<energy_label>05_0</energy_label>
<energy>5.0</energy>
<energy_label>05_3</energy_label>
<energy>5.3</energy>
</energy_list>
</LEM>
</BMW>
-- BMW & AS