2. Instrumental Parameters - dQ, alpha & lor
Overview
In this tutorial you will learn how to extract instrumental parameters from reciprocal- and real-space data. As with all refinements, the correct modelling of instrumental parameters is essential if you are going to extract fully quantitative and accurate values. For PDF data we need to not only know the affect of instrumental parameters from the reciprocal space data, but also the parameters used to generate your PDF data.
Required files
XPDF_Si_Bragg.xy
Si_NIST_640c.cif
XPDF_Capillary_Bragg.xy
XPDF_Si_Qmax20_dofr.xy
XPDF_Si_Qmax25_dofr.xy
XPDF_Si_Qmax38_dofr.xy
XPDF_Si_Qmax38_withSoperLorch_dofr.xy
Tutorial instructions
First we will perform a Rietveld refinement of a Si standard to determine some instrumental parameters.
Start a new refinement with the file "XPDF_Si_Bragg.xy" (TOPASforBragg > 1. Select Diffraction File > 1. Select Diffraction File) and save the input file as "Si_Bragg.inp".
Terminate the refinement at 25° 2θ (TOPASforBragg > 1. Select Diffraction File > 1b. file preparation > end x-value).
Add a Chebyshev background (TOPASforBragg > 2. Background > i. Chebyshev Background).
Add a background from file, and enter the filename "XPDF_Capillary_Bragg.xy" (TOPASforBragg > 2. Background > vi. background from file).
Add the X-ray source as 'synchrotron energy (area detector)' with an energy of 76.69 keV and sample-to-detector distance of 200 mm (TOPASforBragg > 3. Radiation Source > 3a. X-ray Sources > Synchrotron Energy (Area detector) ).
Add a Rietveld refinement phase using Si_NIST_640c.cif (TOPASforBragg > 5. Rietveld Refinement > 5c. new phase from .CIF file > ii. Read a .CIF File) and allow the thermal parameter to refine (
beq @ 1
).Enter a phase name of "Si" (TOPASforBragg > 5. Rietveld Refinement > 5c. new phase from .CIF file > ii. Phase Name).
Add a 'Bragg dQ + alpha.Q' peak shape (TOPASforBragg > 5. Rietveld Refinement > 5c. new phase from .CIF file > iii. Peak Type > Bragg dQ + alpha.Q peak shape).
This is a standard, so there is no need to refine the lattice parameters.
Turn on
do_errors
, run the refinement and look at the results. The refined values fordQ
,alpha
andlor
are instrumental parameters for our PDF data. The refinedbkg_file
scale factor gives us an indication of the scaling of the background to our data (this may be useful when processing data to PDFs).
Next we will try to extract the same numbers from our PDF data.
Start a new refinement with the file "XPDF_Si_Qmax38_dofr.xy" (TOPASforPDF > 1. PDF Data > Select PDF Data File) and save the input file as "Si_PDF.inp".
Start the refinement froman r of 1 Ã… (TOPASforPDF > 1. PDF Data > file preparation > start r value).
Add a 'dQ damping with Lorentzian contribution' with approximate starting values of 0.05 and 0.5Â (TOPASforPDF > 2. Instrumental parameters > dQ damping with Lorentzian contribution).
Add a 'Q-dependent broadening convolution' with an approximate starting value of 0.001 (TOPASforPDF > 2. Instrumental parameters > Q-dependent broadening convolution).
Add a new phase from 'Si_NIST_640c.cif' (TOPASforPDF > 3. Phase information > 3b. add new phase from CIF).
Replace 'beq 1' with a 'beq spherical with min r cutoff' peak shape, with an rcut value of 2.7 (TOPASforPDF > 3. Phase information > beq peak shape functions > beq spherical with min r cutoff).
Turn on
do_errors
, run the refinement and look at the results.How do the refined results compare with those from the Bragg data?
How do the errors compare?
Is it best to refine these values from PDF or Bragg data?
Now we will perform a joint refinement on both datasets at the same time. This will use a range of shortcuts to make this type of refinement easier.
Save your previous input file "Si_PDF.inp" as "Si_Joint.inp".
Declare the parameters
dQ
,lor
andalpha
as global parameters towards the top of the file (before where thexdd
filename is declared) and fix them at the values determined in your Bragg refinement.prm !dQ 0.05275 prm !alpha 0.00449 prm !lor 0.37618
Change the
dQ_lor_damping
andconvolute_alpha
instrumental functions so they use these declared parameters.dQ_lor_damping( ,dQ, ,lor) convolute_alpha( ,alpha)
At the bottom of the file, add the following block of code (note thew code is likely wider than is displayed on this page!). The
for xdds
andfor strs
can be used to declare the same information across multiple datasets and structures respectively.for xdds { for strs { a 5.43119 b 5.43119 c 5.43119 al 90 be 90 ga 90 space_group "Fd-3m" site Si1 x 0.000000 y 0.000000 z 0.000000 occ Si 1.0 beq_rcut_spherical(!rcut,2.7,beqcut,0.1,beqlo,0.1,beqhi,2.0,beqradius,20) } }
This replaces the need to declare the same information below where you delare
str
for the PDF data, so now all this needs to include is thestr
keyword and nothing else.Copy everything from the xdd line down to the end of the file section from your Bragg refinement into this input file, placing it below the PDF data.
The details of the structure from the Bragg data are not needed as they are already declared within
for strs
. Delete everything apart from the lines forstr
,scale
and thepkshape_dQ_alpha
. Edit theÂpkshape_dQ_alpha
so it is using the global parameters declared at the top of the file (pkshape_dQ_alpha( ,dQ, ,alpha, ,lor)
).Run the refinement and look at the results.
Make it easier to turn on/off the different datasets by declaring the following parameters at the top of the file, and adding e.g. '
#ifdef Bragg
' or '#ifdef PDF_Qmax38
' before and '#endif
' after each of thexdd
blocks (everything fromxdd
to below the line within thestr
) within the .inp.Experiment with turning on/off these data and running the refinements.
You have also been supplied with the datasets XPDF_Si_pdfgetX3_Qmax20.xy and XPDF_Si_pdfgetX3_Qmax25.xy, which are the same data but terminated to different Qmax. Use what you have learnt to add these data to the refinement in a way that allows you to easily turn them on/off using #define. For these data, you will also need to define a Qmax Sinc function convolution with a fixed Qmax (e.g.
convolute_Qmax_Sinc( ,20)Â
), or the resolution will not match. You may also need to refine a scale factor.Run the refinement and see how it converges.
Can you get all of the data to fit at the same time?
A final file, XPDF_Si_Qmax38_withSoperLorch_dofr.xy, is also supplied. This was processed with GudrunX and has had a Soper-Lorch function applied with a width (
d_zero
) of 0.1. Make another copy of the PDF block of information for this file. You will need to add a Soper-Lorch function convolution to get this data to fit along with the rest of your data.Can you get all of the data to fit still?
Final comments
The proper handling of instrumental parameters is essential when refining information accross multiple files and for extracting meaningful data from both Bragg and PDF data. The use of a good standard (e.g. Si) is necessary for this to work. For PDF data, not only the traditional instrumental resolution needs to be considered, but also PDF processing parameters such as Qmax and whether a Soper-Lorch function has been applied.