\(\renewcommand\AA{\unicode{x212B}}\)
RefinePowderInstrumentParameters v3¶
Summary¶
Parameters include Dtt1, Dtt1t, Dtt2t, Zero, Zerot.
See Also¶
Properties¶
Name |
Direction |
Type |
Default |
Description |
---|---|---|---|---|
InputPeakPositionWorkspace |
Input |
Mandatory |
Data workspace containing workspace positions in TOF agains dSpacing. |
|
WorkspaceIndex |
Input |
number |
0 |
Workspace Index of the peak positions in PeakPositionWorkspace. |
OutputPeakPositionWorkspace |
Output |
Output data workspace containing refined workspace positions in TOF agains dSpacing. |
||
InputInstrumentParameterWorkspace |
Input |
Mandatory |
INput tableWorkspace containg instrument’s parameters. |
|
OutputInstrumentParameterWorkspace |
Output |
Output tableworkspace containing instrument’s fitted parameters. |
||
RefinementAlgorithm |
Input |
string |
MonteCarlo |
Algorithm to refine the instrument parameters. Allowed values: [‘OneStepFit’, ‘MonteCarlo’] |
RandomWalkSteps |
Input |
number |
10000 |
Number of Monte Carlo random walk steps. |
MonteCarloRandomSeed |
Input |
number |
0 |
Random seed for Monte Carlo simulation. |
StandardError |
Input |
string |
ConstantValue |
Algorithm to calculate the standard error of peak positions. Allowed values: [‘ConstantValue’, ‘UseInputValue’] |
Damping |
Input |
number |
1 |
Damping factor for (1) minimizer ‘Damped Gauss-Newton’. (2) Monte Carlo. |
AnnealingTemperature |
Input |
number |
1 |
Starting annealing temperature. |
MonteCarloIterations |
Input |
number |
100 |
Number of iterations in Monte Carlo random walk. |
ChiSquare |
Output |
number |
Description¶
This algorithm refines the instrumental geometry parameters for powder diffractomers. The parameters that can be refined are Dtt1, Zero, Dtt1t, Dtt2t, Zerot, Width and Tcross.
It serves as the second step to fit/refine instrumental parameters that will be introduced in Le Bail Fit. It uses the outcome from FitPowderDiffPeaks algorithm.
Introduction¶
In order to do Rietveld refinement to experimental data, the diffractometer’s profile should be calibrated by the standards, such as LaB6 or Ni, with known crystal structure and lattice parameters.
For POWGEN and NOMAD, the type of the instrument profile is back-to-back exponential function convoluted with pseudo voigt of thermal neutron and epithermal neutron. It means that each diffraction peak is a back-to-back exponential,
with peak parameter \(A\), \(B\), \(X_0\) and \(S\)
And their corresponding peak parameters are functions described as:
Final Time-of-flight is calculated as:
Formula for calculating \(A(d)\), \(B(d)\), \(\sigma(d)\) and \(\gamma(d)\)¶
\(\alpha(d)\):
\(\beta(d)\):
For \(\sigma_G\) and \(\gamma_L\), which represent the standard deviation for pseudo-voigt
The analysis formula for the convoluted peak at \(d_h\)
where
\(\text{erfc}(x)\) and \(E_1(z)\) will be calculated numerically.
Break down the problem¶
If we can do the single peak fitting on each single diffraction peak in a certain range, then we can divide the optimization problem into 4 sub problems for \(X_0\), \(A\), \(B\) and \(S\), with the constraint on \(n\), the ratio between thermal and epi thermal neutrons.
The function to fit is
\(X_0\):
\(A\):
\(B\):
\(S\):
with constraint:
The coefficients in this function are strongly correlated to each other.
Current Implementation¶
Only the parameters of the function for \(X_0\) are fitted in present implementation.
Refinement Algorithm¶
Two refinement algorithms, DirectFit and MonteCarlo, are provided.
DirectFit¶
This is a simple one step fitting. If there is one parameter to fit, Levenberg Marquart minimizer is chosen. As its coefficients are strongly correlated to each other, Simplex minimizer is used if there are more than 1 parameter to fit.
MonteCarlo¶
This adopts the concept of Monte Carlo random walk in the parameter space. In each MC step, one parameter will be chosen, and a new value is proposed for it. A constraint fitting by Simplex minimizer is used to fit the coefficients in new configuration.
Simulated annealing will be tried as soon as it is implemented in Mantid.
Constraint¶
In future, constaint will be considered.
How to use algorithm with other algorithms¶
This algorithm is designed to work with other algorithms to do Le Bail fit. The introduction can be found in the wiki page of LeBailFit v1.
Usage¶
Categories: AlgorithmIndex | Diffraction\Fitting
Source¶
C++ header: RefinePowderInstrumentParameters3.h
C++ source: RefinePowderInstrumentParameters3.cpp