Professional Documents
Culture Documents
FullProf
Comments on the Examples Kit:
=pub=divers=fullp=examples=prc dat:zip
of the anonymous ftp-area in the server
bali:saclay:cea:fr
Juan Rodrguez-Carvajal
Laboratoire Leon Brillouin (CEA-CNRS)
Tel: (33) 1 6908 3343, Fax: (33) 1 6908 8261
E-mail: juan@bali.saclay.cea.fr
Juan Rodrguez-Carvajal
Saclay, 7 April 1997
1
Availability of FullProf
The most recent version of FullProf is always in pub/divers/fullp of the
anonymous ftp-area of the LLB unix-cluster. Users interested in creating their
own subroutines to link with FULLP-library are asked to read the le fpreadme
in the above mentioned ftp-area. To access this area from the Internet, one has
to type in the local host the following commands:
Answer with the word: anonymous , to the Login request and password. To
get, for instance, the le fpreadme the user should, after the ftp prompt, do:
This should also work in modern Open-VMS systems but, from some VMS-
VAX hosts:
ftp>set def "pub/divers/fullp" <cr> -> Go to FullProf area
ftp>get "fpreadme" <cr> -> Obtain the document
ftp>ex <cr> -> Return to host
Experienced users of ftp can go directly to the subdirectories and get the
les they want. The structure of subdirectories match the dierent platforms in
which FullProf can be run. Details are given in the le fpreadme. Recently
the anonymous ftp-area can be accessed via the WEB through the URL of the
LLB:
http://www-llb.cea.fr
It is of capital importance to have a plot program in order to visualize the
observed versus calculated powder pattern and their dierence. Such a program
is not included at present in the FullProf executable code. Dierent free-ware,
share-ware, or commercial programs can be user for this task. On the PC
(under DOS) a very useful program is PLOTR (written by Thierry Roisnel at
the LLB). PLOTR can be obtained in the same ftp-area as FullProf in the
directory pub/divers/plotr.
2
Chapter 1
GENERAL INFORMATION
ON FullProf
1.1 Purpose, references and documentation
The program is mainly developed for Rietveld analysis [1, 2] (structure pro-
le renement) of neutron (nuclear and magnetic scattering) or X-ray powder
diraction data collected at constant step in scattering angle 2 [4, 5]. The
program can be also used as a Prole Matching tool, without the knowlegde
of the structure. Single Crystal renements can also be performed alone or
in combination with powder data. Time-of-
ight (TOF) neutron data analysis
will be available in future versions.
The program FullProf is based on the code of the DBW program, which, in
turn, is also a major modication of the original Rietveld-Hewat program. An
early version is discussed in the Young and Wiles article published in [6] and
described in the user's guide distributed by R.A. Young. The program FullProf
was developed starting with the code DBW3.2S (Versions 8711 and 8804), but it
has been so much modied that only the name and some basic subroutines keep
their original form. However, the main control input le created for use with
DBW (and DBWS) program can be used by FullProf with minor modications.
This le is accepted by FullProf which read it in interpreted free format. The
le generated, at the end of a run, by FullProf cannot be read by DBWS. The
le can content comments starting with the symbol ! in the rst position of
a line. These comments are useful for remembering the name of variables and
ags and greatly simplify the use of the program.
The source is written in standard FORTRAN 77 language, and is organized
as to be easily adapted to dierent computers. The present version can be run
under VMS, Open-VMS, Unix, MacOS and DOS-Windows (Lahey Computer
Systems Inc. FORTRAN-compiler, minimum 386/4Mb with co-processor re-
quired). The transformation of the source code to Fortran 90 is projected for
the future. The future version 4.0 will work with allocatable arrays, so that the
dimensions of arrays can be directly controlled by the user at run time.
3
1.2 Features of FullProf
Some of the most important features of FullProf are summarized below:
Choice of peak shape (Gaussian, Lorentzian, modied Lorentzians, pseudo-
Voigt, Pearson-VII, Thompson-Cox-Hastings, numerical) for each phase
Neutron and X-ray (laboratory and synchrotron sources)
One or two wavelengths (eventually with dierent prole parameters)
Background: xed, renable, adaptable, or with Fourier ltering
Multi-phase (up to 8 phases)
Preferred orientation : two functions available
Absorption correction for cylinder and
at plate sample shape.
Choice between three weighting schemes: standard least squares, maxi-
mum likelihood and unit weights.
Choice between automatic generation of hkl and/or symmetry operators
and le given by user.
Magnetic structure renement (crystallographic and spherical representa-
tion of the magnetic moments). Two methods: describing the magnetic
structure in the magnetic unit cell of making use of the propagation vec-
tors using the crystallographic cell. This second method is necessary for
incommesurate magnetic structures.
Automatic generation of re
ections for an incommensurate structure with
up to 24 propagation vectors. Renement of propagation vectors in re-
ciprocal lattice units
hkl-dependence FWHM for strain and size eects
hkl-dependence of shift and asymmetry for special kind of defects
Prole Matching. The full prole can be tted without prior knowledge
of the structure (needs only good starting cell and prole parameters)
Quantitative analysis without need of structure factor calculations.
Chemical(distances) and magnetic(magnetic moments) slack constraints
Resolution function (Voigt function) may be supplied in a le
Structural or magnetic model could be supplied by an external subroutine
for special purposes (rigid body, TLS, polymers, form factor renements,
small angle scattering of amphilic crystals, description of incommensu-
rate structures in real direct space, etc.)
4
Single crystal data or integrated intensities can be used as observations
(alone or in combination with a powder prole)
Neutron (or X-rays) powder patterns can be mixed with integrated inten-
sities of X-rays (or neutron) from single crystal or powder data
Montecarlo search of starting parameters in a user-dened box for inte-
grated intensity data
*******************************************************
*** PROGRAM FULLPROF (Version 3.2 - Jan97-LLB JRC) ***
*******************************************************
Rietveld, Profile Matching & Integrated Intensity
Refinement of X-ray and/or Neutron Data
(PC-version)
After entering a value for xx, hereafter assumed to be CODFIL, the pro-
gram prompts the following question 1 :
If the user answer with <cr> the name of the data le is CODFIL.dat (or
CODFIL.uxd). We assume, in the following, the user has attributed the value
FILE to the item yy. The le CODFIL.pcr must be created (from the scratch
1
If xx=starting, the program enter in a new dialog to create an example of CODFIL.pcr
le (called starting:pcr) for making a pattern calculation. The user can modify this generated
le to adapt it to his(her) own problem
5
or by modifying an existing one) with the help of an ASCII editor. This le
contents the diraction conditions and crystallographic information needed by
the program. The optional le FILE.dat (or FILE.uxd, FILE.acq) contents the
prole intensity of the powder diraction pattern.
For doing sequential renements the user can run the program using a com-
mand le, or answer CYC to the prompt asking for the code of the les. In the
last case another dialog opens:
==> Code of the starting *.pcr file (xx for xx.pcr):
Here the user should answer with the xx explicit name (let us assume that
the code is CODFIL).
As suggested by the question the name of the data les should have a part
that constitutes the code followed by a ordinal number. The user should give
here the code. Let us assume that the code is FILEDAT.
==> Number of the starting *.dat file: 46
==> Number of the last *.dat file: 133
The user should give the ordinal numbers of the rst and last les to be
processed. The numbers 46 and 133 are examples. The program works by
using the le CODFIL.pcr to process the le FILEDAT46.dat. The updated
CODFIL.pcr are, then, used to process the le FILEDAT47.dat, etc... At the
end, when the le FILEDAT133.dat has been processed, the control le contents
the parameters adequate to the last treated le. The results of the whole set of
treatments are stored in le CODFIL.RPA.
1.3.1 Input les
There are some references to names of control variables in this and the fol-
lowing sections. The precise meaning of these variables is described in FULL-
PROF.INS.
CODFIL.pcr (unit i Pcr)
Input control le. It must be in the current directory to run the
program. This le contains the title and crystallographic data of
the problem to be treated and must be prepared by user with a le
editor. There are two dierent formats for this le: the rst one is
free format and closely related to that of the DBWS program. The
second is based on keywords and commands 2 .
2
This last format is not available at present
6
Warning! this le is normally up-dated every time you run the program
(see parameter NXT on LINE 3). In the rst stages of a renement, it is wise
to save a copy of this le with a dierent name.
The complete description of the le CODFIL.pcr is given in the manual of
the program. This is, at present, in the text-le FULLPROF.INS of the anony-
mous ftp-area: =pub=divers=fullp=doc= of the server bali:saclay:cea:fr.
The following les are optional:
FILE.dat (unit i Dat)
Intensity data le, its format depends on instrument. If you do not
specify the name FILE, the program takes FILE=CODFIL. Not
necessary for pattern calculation modes.
FILE.bac (unit i Bac)
Background le. This le can also be generated by the program.
The format of this le is the same as that of FILE.DAT for IN-
STRM=0:
rst line : 2(initial) step 2(nal), any comment
following lines: list of intensities in free format.
CODFILn.hkl or hkln.hkl
Set of les with the re
ections corresponding to phase n (n is the
ordinal number of a phase). These les are optional and depend on
the value of the parameter IRF(n). This le can also be generated
by the program.
MYRESOL.inst
File describing the instrumental resolution function. Any legal le-
name can be used and its content depend on the value of the pa-
rameter IRESO.
global.shp or CODFIL.shp
File providing a numerical table for calculating the peak shape and
its derivative. The peak shape should be given in a normalized form
R x 2 [x1; x2] is chosen to give a FWHM=1
P (x) where the variable
and the area is 1, so xx12 P (x)dx = 1. That allows the use of the con-
ventional U,V,W parameters for dening the FWHM as a function
of angle.
The format of this le is the following:
Line1: Any comment
Line2: Np8; nupr; 21; 22; :::2nupr
7
{ Np8 : Number of points
{ nupr : Number of dierent proles
{ 2j : Angle to which prole j is best adapted
The rest of the lines are columns with x; P1(x); P10 (x); P2(x); P20 (x);
0 (x) in free format. P 0 (x) is the derivative of Pj (x) with respect
:::Pnupr (x); Pnupr j
to x. The prole of a re
ection situated between 2j and 2j +1 is linearly
interpolated between the proles Pj (x) and Pj +1 (x).
CODFIL.cor
User-dened intensity corrections. The corrections are applied to
the integrated intensities as a multiplicative constant. The le COD-
FIL.cor starts with a comment and a list of pairs: Scattering Vari-
able - Correction
1.3.2 Output les
Except for CODFIL.out and CODFIL.sum, their creation depends on the value
of a
ag which is quoted in parenthesis. The short name of the
ag (controlling
the output) used in the commented pcr-le is given in brackets.
CODFIL.out (unit i Out) 3
This is the main output le which contains all control variables and
rened parameters.
CODFIL.prf (unit i Prf)
Observed and calculated prole : to be fed into PLOTPOW, PLOTR,
...(if IPL2 [Prf] dierent from zero)
CODFIL.rpa (unit i Rpa)
Summary of rened parameters. Short version of CODFIL.SUM (if
JCIL=1)
CODFIL.sym (unit i Sym)
List of symmetry operators (if IPL1=JSY=1)
The last two les are necessary to run DISTAN or BONDSTR
CODFIL.sum (unit i Sum)
Parameter list after last cycle: summary of the last parameters,
their standard deviations and reliability factors. An analysis of the
goodness of the renement is included at the end if IANALY=1.
CODFIL.fou (unit i Fou)
(If JFOU=1)
3
The actual numbers of the logical units for input-output les are given in le FUL0.inc
8
h; k; l, Structure Factors in Cambridge format to be fed
into FOURTK (FOURPL) to produce Fourier maps. It
corresponds to the le usually called HKLFF.DAT but
you must prepare the second le CRYST.cry.
(If JFOU=2)
List of 'observed' structure factors in SHELXS format
h; k; l; Fobs; (Fobs) (3I4,2F8.2)
CODFILn.shx
If JFOU=2, template of SHELXS *.IN le.
CODFILn.hkl
Files that can be input or output les. Depending on the value of
IRF(n)
CODFIL.hkl (unit i hkl)
Complete list of re
ections of each phase.
JLKH=1
) If JOBTYP<2
Code, h; k; l; mul; dhkl; 2; FWHM; Iobs ; Icalc; Iobs
Icalc .
) If JOBTYP >1
h; k; l; mult; Icalc; 2; dhkl
JLKH=2
) Output for SIRPOW92
h; k; l; mul; sin=; 2; Fwhm; F 2; (F 2)
JLKH=3
{ ) Output of real and imaginary part of structure
factors (only for crystal structures)
h; k; l; mult; Freal; Fimag; 2; Intensity
(the obtained le can be used as a CODFILn.HKL le for new runs)
CODFIL.sav (if JCIL=2)
List of re
ections between two selected angles
h; k; l; mult; Iobs; 2; dhkl
9
Chapter 2
10
and resolution function of the instrument, for instance. Then a sensible
sequence of renement of a crystal structure, using X-ray diraction, is
the following:
1. scale factor
2. scale factor, zero point of detector , 1rst background parameter and
lattice constants (in case of very sloppy background, it may be wise
to actually rene at least two background parameters)
3. same + atomic positions + overall Debye-Waller factor (especially
for low or high temperature data)
4. same + peak shape function (PSF) and asymmetry parameters
5. same + atom occupancies (if required)
6. same + individual isotropic thermal parameters (Debye-Waller)
7. same + individual anisotropic thermal parameters (if justied)
To nish up, you may wish to rene also:
8. additional background parameters
9. the parameters SYCOS and SYSIN (line 10-1) to correct for instru-
mental or physical 2 aberrations with a COS or SIN angular depen-
dence.
In all cases, it is essential to plot frequently the observed and experimental
patterns: examination of the dierence pattern is a quick and ecient method
to detect blunders in the model or in the input le which controls the rene-
ment process and may also provide useful hints on the best sequence, to follow
to rene the whole set of model parameters.
When large and unrealistic
uctuations of certain parameters occur from one
cycle to the next, examine the correlation matrix: if large values (say larger than
50%) are observed, rene separately the corresponding parameters, at least in
the early stages of the renement.
Finally it must be remembered that there is a limit to the amount of informa-
tion that can be retrieved from a powder diraction pattern. Indeed structures
with up to a hundred or more structural parameters can be rened from neu-
tron powder data but such renements must be performed with great care; for
renements involving a large number of variables the physical signicance of
certain parameters must be carefully examined. For instance thermal and PSF
parameters can become poorly dened and act as a dumping ground for sys-
tematic errors. In such cases it is preferable to x their values to a physically
reasonable number and exclude them from the renement.
When the uncertainty concerns the atomic parameters, it may help to provide
some external information to the program. This can be achieved for instance by
using strict constraints: for instance the displacement (thermal) parameters of
chemically similar but crystallographically distinct atoms may be constrained
to be identical, or the occupancy of two distinct and partly occupied sites of a
structure may be compelled by the chemical analysis of the material.
11
2.2 Total-pattern tting (Prole Matching)
This procedure does not require any structural information except approximate
cell parameters. This makes the data input much simpler and enlarges consid-
erably the eld of application of powder pattern prole renement. However
the constraints applied to the renement are far less severe than for Rietveld
renement and total-pattern tting is thereby more prone to instabilities. This
renement mode can be used in two ways:
1. Prole Matching with constant scale factor (JBT=2). In this mode the
scale factor is not allowed to vary and intensities are rened individually
using, iteratively, the Rietveld formula for getting the observed integrated
intensities. The recommended procedure is as follows:
For the rst renement, set IRF(n) of the phase n undergoing prole
matching to 0 and the number of rened parameters (maxs on line
9) to zero. Run FullProf for a few (say 10) cycles. This will set up
the hkl's and intensity le CODFILn.hkl.
If the result of the above step is satisfactory (see plot!), rename the
le CODFIL.new to CODFIL.pcr, or use directly CODFIL.pcr if it
was automatically updated. Edit the new CODFIL.pcr le to select
the parameters to rene. The progression of the renement is very
similar to that used for Rietveld renement: zero point of detector,
1rst background parameter and lattice constants.
In this mode of renenent FullProf cannot calculate theoretical line inten-
sities and all hkl values permitted by the space group are considered and
included in the renement... which sometimes means a lot of re
ections!.
Using this type of renement one has to bear in mind that the starting
cell parameters and resolution function determines to a large extend the
obtained intensity parameters. One cannot expect to rene properly the
cell parameters of a compound with a severe overlap of re
ections if the
starting parameters are of poor reliability. It is wise to start with low an-
gle re
ections (without rening the FWHM parameters) and progressively
increase the angular domain.
2. Prole Matching with constant relative intensities (JBT=3). In this mode
the intensities are held xed and only the scale factor is varied. Since WPF
does not require the calculation of the structure factors it runs faster than
Rietveld renement.
12
If the number of measured re
ections is limited, select carefully the rened
parameters and keep the others xed to physically reasonable values (for
instance rene the overall displacement (temperature) parameters, not
the individual ones).
Exclude regions where the background is strongly distorted if any (e.g.
background from sample environment may show odd variations) for the
background function used in the code may not be able to cope with it.
Look carefully for the values of the standard prole parameters of the
instrument used for getting the data. If, for any reason, you do not know
the shape of the diraction proles, start with pure gaussian, i.e. use
rst NPROF=0 on line 2. In the nal stages of renement examine the
dierence prole to look for departure from a gaussian shape and change
to pseudo-Voigt (rst with a small value) if required. If the value of is
much larger than zero, remember to increase the range of the calculated
prole (WDT on line 4); failure to increase properly this parameter will
lead to discontinuities in the edges of the calculated prole.
The prole parameters are sometimes dicult to rene especially for data
spanning only a limited angular range or samples giving broad diraction
lines. In such case, it is normally advisable to x one or more FWHM
parameter or to constraint their variation with a proper use of the code-
words. As prole parameters may vary from sample to sample (strain
and/or size broadening) and depend from instrumental set-ups, you must,
at some stage, rene U, V and W from your own data.
The best method is of course to rene rst a standard pattern with no
sample broadening in order to determine the U, V, W parameters of your
instrument.
13
2.5 Examples. Content of pcr dat:zip
To test the installation of the program, or for training purposes, a list of com-
plete examples are provided together with FullProf. The le pcr dat:zip can
be obtained by anonymous ftp to the server bali:saclay:cea:fr in the area
=pub=divers=fullp=examples. Set the mode to binary in order to get prop-
erly the le. This le must be unzipped with PKUNZIP under Windows or
DOS. The format of the les is for DOS, so they have to be converted to other
platforms using the appropriate utility. Among the les obtained after a suc-
cessful unzip that called PCR READ.ME gives an explanation of the whole set
of les inside pcr dat:zip from the point of view of an installation test. This
le is displayed below:
CONTENT of PCR_DAT.ZIP (February 1997)
2:For a quit test under DOS or under UNIX the user can type at the
command line:
fullprof_alias < tempo.inp
4:The number and nature of files can change with different releases.
14
hobk2 : and magnetic structure of Ho2BaNiO5 : "
hobk3 : : "
la : Two ways for strain refinement in La2NiO4 : la.dat
lab : with low resolution neutron powder data. : "
monte : Montecarlo test with single crystal data : monte.int
pb : Profile matching test of PbSO4 neutron data : pbso4.dat
pbso4 : Crystal structure refinement of PbSO4 : "
pbso4a: " (anisotropic b's) : "
hmt : Rigid body refinement of simulated data : hmt.dat
urea : Test Rigid body with satellites (simulated data): urea.dat
ycbacu: YBaCuO with Ca. Data from D1A : ycbacu.dat
In general, the user must rst run the program to verify that the provided
pcr-les behave correctly. After that, the user should make a copy of the con-
trol les for saving them before running his(her) own options. The best way
is to modify the given values for dierent sets of parameters and run the pro-
gram. The beginner must make extensive use of editor-plot cycles. The plot of
the le CODFIL.prf is of absolutely necessity for knowing the behaviour of the
program under bad (or inaccurate) input parameters.
To use the above les for training, the unexperienced user must start with
the most simple cases, that is ce1.pcr and ce2.pcr used to process the le
ceo2.dat. This le corresponds to a data collection on cerium oxide with a
good laboratory X-ray powder diractometer, using CuK doublets.
The next les to be processed are those of PbSO4 . The data le correspond
to neutron powder diraction on D1A (ILL) that was used in a Round Robin
on Rieveld renement (R.J. Hill (1992), J.Appl.Cryst 25, 589 ). For people
working mainly with crystal structures the next les to be studied are: ycbacu,
hmt, urea for powder diraction.
Some les for single crystal data are also given: c60, monte. The rst one use
a too simplistic model (just a spherical shell) for describing the C60 molecule
that give poor results. The user can try this le as an example of special form
factor renement. The free parameters are the radius of the C60 molecule and
its isotropic temperature factor. The le monte correspond to an articial use
of the Montecarlo technique for searching a starting set of initial parameters.
Data are from neutron diraction on a single crystal of oxidized Pr2 NiO4+ .
People interested in magnetic structures can use the rest of the les in the
following order.
la, lab: renement of the low temperature phase crystal and magnetic
structure of La2 NiO4 . The data are from a medium-low resolution neutron
powder diractometer (D1B at ILL). This phase present a microstrain
that is rened using two equivalent methods in the two les. The magnetic
15
structure is very simple. A peak from an impurity phase is near the rst
magnetic peak.
The les hobb, hob, hobk1, hobk2, hobk3 concern the renement of
the crystal and magnetic structures of Ho2 BaNiO5 at 1.5K, using dierent
methods and conditions. The user can verify that hob.pcr can solve
the magnetic structure of Ho2 BaNiO5 just testing random congurations.
This is a very favourable case and this method cannot be applied for
general magnetic structure determination. The data are from D1B.
The les dy, dya, dyb, dyc use dierent methods to rene the incon-
mensurate magnetic structure of DyMn6 Ge6. This is a conical structure
that can be rened using a real space approach as in dy and dya or using
Fourier components of the magnetic moments, which is the general for-
malism of FullProf for handling magnetic structures. This is the case of
les dyb and dyc
The only right way to learn about crystal and magnetic structure rene-
ments is practicing with real data as these are. However, it is better when the
user try with its own data on a problem of interest to him(her).
16
Chapter 3
MATHEMATICAL
INFORMATION
In this chapter the basic equations concerned with the calculations performed
in FullProf are discussed. It is supposed that the reader has a good knowl-
edge of powder diraction, so the explanations given below concern mainly the
description of the terms involved in the formulae. The references to numbered
lines (eg. LINE 3, Line 11-4-1) correspond to lines of the main input control
le CODFIL.pcr described in FULLPROF.INS.
17
For simplicity we will drop the -index. Sometimes we will refer to the whole
arrays fyi g and fyci g as yobs and ycal respectively. The meaning of the dierent
terms appearing in 3.1 and 3.2 is the following:
S is the scale factor of the phase
Lh contains the Lorentz, polarization and multiplicity factors.
Fh is the structure factor.2
Ah is the asymmetry function
Th is the transmission factor
Ph is the preferred orientation function
is the re
ection prole function that models both instrumental and
sample eects.
C is a user-dened correction
ybi is the background intensity
In the following sections we discussed the dierent terms in more detail.
3.2 Background
The background intensity ybi at the ith step is obtained (see LINE 2 and LINE
6* or Line 10-2*) either from an user-supplied table of background intensities,
or from a renable background function:
X5 Ti X 6
ybi = Bm ( BKPOS 1)m + BCj sin(QQdi dj ) (3.3)
m=0 j =1 i j
The origin of the background polynomial is given by a selectable input
parameter BKPOS (LINE 4) and should be supplied by the user. The sec-
ond sum is used only if NBCKGR=-1. The parameters to be rened are:
B0 ; B1 ; :::B5; BC 1 ; :::BC 6; d1; :::d6. Qi is the modulus of the scattering vector
(Q=2 h) at the ith step, and is given by:
i Q = 4 sin i
(3.4)
where = 1 (rst wavelength) in FullProf. The parameters dj are distances
in
A.
The background can be also read from a supplied le FILE.bac. The ac-
tual background is calculated from the read background applying the following
formula:
Background(2) = b1BackgRead[(1 + b3 )2 + b4] + b2 (3.5)
2
The ratio of the intensities for the two wavelengths handled by the program is absorbed
in the calculation of Fh2 , so that only a single scale factor is required.
18
The background parameters and codes, given in Line 10-2*, correspond to the
coecients of the above formula in the order: b1; b2; b3; b4. If b1 is given as
zero, the program puts b1 =1. Limits against divergence are xed by program.
The parameter b3 is allowed to vary up to a maximum value ABS(b3)=0.1 and
ABS(b4) is kept below 3 degrees (2). The user can chek the excursion of
those parameters out of the allowed range when they are strictly zero and their
standard deviation is (xed arbitrarily to) 0.99999. This option is useful when
complicated background shapes are present due to sample environment.
Another procedure for treating the background has been introduced. The
background is ajusted iteratively at each cycle by using a Fourier ltering tech-
nique. The starting background is read from the le FILE.bac. At cycle n the
new background is calculated from the old one, cycle n 1, with the formula:
Background(n) = Background(n 1) + Filtered[yobs ycal](n 1) (3.6)
where Filtered[yobs ycal ] is a strongly smoothed version of yobs ycal . The
parameter controlling the smoothing is FWINDOW which is equivalent to PST
described in subroutine SMOOFT described in Numerical Recipes (see [23]).
The implementation of SMOOFT in FullProf is not the same as in [23]. When
using this method it is wise to draw the nal background to see if it is really a
smooth curve. This option is only justiable in cases of a very wavy background.
The starting background should be close to the real one.
19
INTERMEDIATE LORENTZIAN:
3(x) = IL(x) = aIL (3.10)
(1 + bIL x2 )3=2
where: p 2=3
aIL = 2 1 b = 4(22=3 1)
H IL H2
PEARSON VII:
6(x) = PV II (x) = (1 + ab V II x2 )m (3.11)
V II
where: p 1=m
(m )
aV II = (m) 1=2 p2 2 1 b = 4(21=m 1)
H V II H2
PSEUDO-VOIGT:
5 (x) =
7(x) = pV (x) = L0(x)+(1 )G0(x) 01
(3.12)
0
The pV (x) function is a linear combination of a lorentzian (L ) and a gaussian
(G0) of the same FWHM (H ) 3 . The prole function NPROF=4,
4 (x), is
a superposition of three pV (x) functions (see below 3.21). The dierence be-
tween NPROF=5 and NPROF=7 is that in the later the parameter is not
directly renable but calculated from HL and HG Let us precise this point. The
pseudo-Voigt function is an approximation to the Voigt function dened as the
convolution of a lorentzian and a gaussian:
Z +1
VOIGT: V (x) = L(x)
G(x) = L(x u)G(u)du (3.13)
1
where L(x) and G(x) have dierent FWHM (HL and HG , respectively). The
pV (x) function is an approximation that substitutes the two shape parameters
HL and HG by the pair (; H ). The Voigt function can be written in a closed
form in terms of the complex error function and the integral breaths of the
Lorentzian (L) and Gaussian components (G ):
" p !#
1
V (x) = G Re erf j x j +i p L (3.14)
G G
where: Zx
erf (x) = p2 e t2 dt
0
Numerically is more easy to calculate the pseudo-Voigt approximation 3.12
using a numerical approximation relating the pairs (HL; HG ) and (; H ) (see
[]):
H 5 = (HG5 +2:69269HG4 HL+2:42843HG3 HL2 +4:47163HG2 HL3 +0:07842HGHL4 +HL5 )
2 3 (3.15)
= 1:36603 HHL 0:47719 HHL + 0:11116 HHL (3.16)
3
The reader can verify that the FWHM of pV (x) is also H
20
The inversion of the above two expressions leads to the relations:
HL = 0:72928 + 0:19289 2 + 0:07783 3 (3.17)
H
HG = (1 0:74417 0:24781 2 0:00810 3)1=2 (3.18)
H
The dierence between the pV -functions calculated with NPROF=5 or NPROF=7
concerns only the parametrization of and H which can be simply related to
signicant physical parameters unsing NPROF=7.
The dependence of the peak-shape parameters (including FWHM) on the
scattering variable (2 for constant wavelength diractometers) is parametrized
mainly through the variables dened in Line 11-6-1: U; V; W; X; Y; IG; SZ .
For proles NPROF=0 to NPROF=6 :
2 ) tan2 + V tan + W + IG
H 2 = (U + DST (3.19)
cos2
For NPROF=5 (pseudo-Voigt) the parameter can be dependent on X
through the formula:
= 0 + X 2 (3.20)
For NPROF=4 (tripled pseudo-Voigt), the three components are assumed to
have the same 0 and FWHM, so the eective total width depends on the
additional shape parameter Sh1 (see Line 11-8-3). The prole function is given
by the formula:
4(x) = p4 (x) = XpV (x D) + (1 X Y )pV (x) + Y pV (x + D) (3.21)
where:
D = d Scos
h1
So, apart from the FWHM that is calculated from U; V; W; DST and IG
parameters for a single component, the prole function has FOUR shape pa-
rameters 0; X; Y and Sh1 . This function is adapted for medium resolution
neutron powder diractomers having defects on the monochromator and/or
the guide spacial spectral distribution giving rise to a non-gaussian distribution
of wavelengths.
For NPROF = 6 (Pearson-VII) the m parameter can be dependent on X
and Y through the formula:
m = m0 + 100 2X + 10000 (2Y)2 (3.22)
For NPROF=7, the FWHM of the Gaussian (HG ) and Lorentzian (HL)
components is calculated as:
HG2 = (U + DST 2 ) tan2 + V tan + W + IG (3.23)
cos2
HL = X tan + (Y +cosF (SZ )) (3.24)
The units of parameters U; V; W; IG are (degrees2)2. The physical meaning of
2 and F (SZ ) is brie
y discussed in FULLPROF.INS.
IG ; DST
21
3.4 Monochromator, Lorentz and geometrical cor-
rections
Bragg-Brentano or Debye-Scherrer geometry
Monochromator polarization correction (CTHM and K in LINE 4); the
Lorentz polarization factor Lp is calculated as :
cos2 2Monok cos2 2
Lp = 1 K + K2 sin (3.25)
2 cos
with CTHM =cos2 2Monok . For instance with a Graphite monochromator,
CTHM = 0.8351 and 0.7998 for CuK and CuK respectively.
Note that K is used only for synchrotron data (INSTRM=4) and does not
have to be input for other kind of data taken with the specied geometry.
For neutrons, K =0.0.
For characteristic X-Ray radiation (unpolarized beam), K =0.5.
For synchrotron radiation, K must be given (K 0:1)
Transmission
at-plate geometry
In the transmission geometry,
at plate with the scattering vector within
the plate (Stoe geometry for X-rays, ILOR=2) the Lorentz factor is:
L = sin12 (3.26)
and the polarization correction is given by:
2 2 1 + c2 cos2 2
p = K 1 + 1c1+cos
c1 + (1 K ) 1 + c2 (3.27)
where p
c1 =j cos 2Monok j= CTHM
c2 = cos2 2Monok = CTHM
K = fraction of perfect crystal contribution
This geometry (ILOR=2) requires the use of a non-zero absorption coecient.
3.5 Asymmetry
The default asymmetry correction (see RLIM in LINE 4) follows the expression
given in [12]. The asymmetry correction adopts the form:
z) + P2 Fb (z) + P3 Fa (z) + P4 Fb (z)
Ah = 1 + P1 Fa(tan h tan 2h (3.28)
Where
z = 2i FWHM
2h Sshf
22
Sshf includes the zero-point and other shifting terms,
Fa (z) = 2z exp( z 2 ); Fb (z) = 2(2z2 3)Fa(z)
The asymmetry correction 3.28 has four independent parameters, (P1 ; P2; P3; P4)
which are read in Line 11-8-1.
If NPHASE<0 the method proposed by C.J.Howard (see [11]), is used. The
approximation of the convolution integral is performed using the Bode's rule
(Simpson's formula for ve points). The prole is calculated as a superposition
of ve prole functions g (x) (only pseudo-Voigt NPROF=5 and NPROF=7 are
implemented for this correction) calculated at displaced points:
23
{ G1 < 1: Platey habit ( is the acute angle between the scattering
vector and the normal to the crystallites)
{ G1= 1: No preferred orientation
{ G1 > 1: Needle-like habit ( is the acute angle between the scatter-
ing vector and the ber axis direction)
Note that these values of G1 correspond to the Bragg-Brentano geometry of
usual X-ray powder diractometers; for the Debye-Scherrer geometry of most
neutron powder diractometers the opposite holds.
The parameter G2 represents the fraction of the sample that is not textured.
The program put its value between 0 and 1 in case of divergence.
24
(Line 10-1). These parameters relate to errors having a cos and sin 2 depen-
dency, respectively. The corresponding errors originate from a dierent physical
or/and geometrical problem depending on the diraction geometry. They are
summarized below:
3.8.1 Bragg-Brentano parafocusing arrangement
The two largest systematic aberrations of 2 powder diractometers oper-
ating in this geometry arise from specimen displacement and transparency; the
sample displacement error is one of the largest systematic error aecting line
positions in this geometry. It is given by:
2 = 2s cos [in radians]
R (3.36)
where s is the displacement of the sample surface with respect to the axis of
the goniometer and R the radius of the goniometer circle. The negative sign
means that a displacement away from the center of the focusing circle moves
the diraction lines to lower 2 angle. The renable parameter is SYCOS =
2s=R. This is by far the largest systematic aberration in this geometry. As the
angles are expressed in degrees in FullProf, the sample oset can be calculated
as: R SYCOS
s = 180
The transparency correction is given by the relation:
2 = 2R1 sin 2 [in radians] (3.37)
where is the linear absorption coecient of the sample. This relation holds
in the case of thick absorbing samples and the renable parameter is SYSIN =
1=(2R). For thin transparent samples, the correction would write:
2 = Rt cos [in radians] (3.38)
where t is the sample thickness; this (less usual) correction is not explicitly
included in the code but can be accounted for by the displacement correction
which turns out to show the same 2 dependency. Note however that samples
requiring that kind of correction would also give biased integrated intensities;
correction for this eect is not implemented in FullProf. For further details
on systematic aberrations in Bragg-Brentano geometry, see [16].
3.8.2 Debye-Scherrer
The largest shifts of Debye-Scherrer rings result from sample o-centering and
absorption. Eccentricity perpendicular to the incident beam direction is nor-
mally a second order eect if both sides of the Debye-Scherrer ring are measured.
If only one side of the cone is measured, the line shift takes the form:
2 = Re cos [in radians] (3.39)
25
where e denotes the eccentricity, that is the rened parameter is SYCOS =
e=R.
Eccentricity in the incident beam direction is observed in both cases and
takes the form:
2 = Re sin 2 [in radians] (3.40)
i.e., the rened parameter is SYSIN = e=R. The correction is negative for a shift
along the beam direction towards the detector. For highly absorbing specimen
with radius r, diraction is limited to a cylindrical surface layer resulting in a
maximum peak shift:
2 = Rr cos [in radians] (3.41)
i.e., in this case, SYCOS = r=R. The latter eect also leads to disymmetrical
line proles.
3.8.3 Curved position sensitive detector with
at plate sample
For the asymmetric geometry of diractometers using a curved position sensitive
detector (CPSD) with a
at-plate sample, the displacement correction takes the
form:
2 = R sine sin 2 [in radians] (3.42)
where R is the radius of the CPS and the incident beam angle (in de-
grees) at sample surface. Thus, the parameter rened by FullProf is SYSIN
= s=(R sin ). The negative sign means, as in the case of Bragg-Brentano ge-
ometry, that a displacement away from the center of the focusing circle moves
the diraction lines to lower 2 angle; the value of the sample oset is given by:
R sin SYSIN
s = 180
26
position vector. h T is a row matrix with elements (hkl). The temperature
factor Tjs (h ) is given by:
Tjs (h ) = expf h T Ss j SsT h g (3.44)
where j is the symmetrical matrix representing the anisotropic temperature
parameters of the atom j . For the rst atom position (Ss=1 = I ) the expression
of the anisotropic temperature factor is the well-known expression:
T (hkl) = expf (11h2 + 22k2 + 33l2 + 212hk + 213hl + 223kl)g (3.45)
where the subscript j has been droped for simplicity. Of course, if the isotropic
temperature factor Tj (iso) = exp( Bj sin2 =2 ) is used the parameters j
should be set to zero. The 's have no direct physical meaning. They have to
be converted to a cartesian U-matrix that provides, after diagonalization, the
r.m.s (root mean squares) atom displacements (see [17]). FullProf does this
work at the end of the renement, the results are given in the le CODFIL.out.
Apart from the standard scattering factor for indivual atoms existing in
an internal library of FullProf. The version 3.2 and higher can handle com-
plex form-factors as a standard option. In the general expression of the nu-
clear structure factor (see 3.43) the form factor fj (h ) is normally dependent
on the module of h . For molecular plastic crystals the treatment of rotat-
ing molecules cannot be done using an atomic description. The approach of a
molecular form-factor that takes into account the particular dynamics of the
object is more reliable. fj (h ) depends on a series of parameters for dierent
types of objects. Coecients of Symmetry Adapted Spherical Harmonics, geo-
metrical parameters (radius of a sphere, length and radius of a cylinder or disk,
etc), scattering density, for instance, could serve for describing the scattering
factor of a complex object. In the FullProf version 3.2 or higher the available
(or projected) objects are the following: spherical shell (SPHS), dense sphere
(SPHE), elipsoid (ELLI), cylinder/disk of eliptical section (DISK), etc.
For the calculation of the integrated intensities (3.2) two types of factors
are applied to Fh2 . One is an overall temperature factor (expf Bov j h j =2g)
and the other is the constant: NLAT = (LAT ICEN )2, where LAT is the
number of centering translations (1 for P, 2 for A,B,C and I, 3 for R and 4 for
F) and ICEN =2 for centrosymmetric and ICEN =1 for non-centrosymmetric
space groups.
X
lj = fR k j cos 2[k R l + k j ] + I k j sin 2 [k R l+ k j ]g
[k ]
where the last sum is extended for half the number of propagation vectors, i.e.
over the number of pairs (k,-k).
29
If the propagation vector k is commensurate (rational components) one
can use the magnetic unit cell and S k j can be identied with the magnetic
moment at site j . In this case one can describe the magnetic structure with
k j = 0 and Q=H, being H an integer vector of the reciprocal lattice of the
magnetic cell. If k= 21 H, one can use the chemical unit cell and real magnetic
moments. In such a case only one propagation vector is needed: if NVK is
given as negative the generation of magnetic re
ections could be in error. For
centered crystallographic unit cells one can use only the content of a primitive
cell and generate the satellites from the symbol of the centering followed by -1
(e.g. I -1 for a I-centered cell). In order to take the advantage of the crystal-
lographic conventions (propagation vector given with respect to the reciprocal
basis of the conventional cell) one can use the dimensions and the metrics of
the convencional cell provided that, putting the content of a primitive cell in
the conventional cell frame, the ocupation factors are multiplied by the num-
ber of centering vectors. See the les hob*.pcr in the example directory of the
anonymous FTP-area.
30
Bibliography
[1] H.M. Rietveld, Acta Cryst. 22, 151-152 (1967)
[2] H.M. Rietveld, J. Applied Cryst. 22, 65 (1969)
[3] A.W. Hewat, Harwell Report No. 73/239, ILL Report No. 74/H62S
[4] G. Malmros, J.O. Thomas, J. Applied Cryst.10, 7 (1977)
[5] C.P.Khattak, D.E.Cox, J. Applied Cryst. 10, 405 (1977)
[6] R.A. Young,D.B.Wiles, J. Applied Cryst. 14, 149 (1981)
[7] D.B.Wiles,R.A. Young, J. Applied Cryst. 15, 430 (1982)
[8] G.S.Pawley, J. Applied Cryst. 14, 357 (1981)
[9] G.S.Halpern, G.S.Johnson Physical Rewiew ?, (193?)
[10] E. Prince, J. Applied Cryst. 16, 508 (1983)
[11] C.J.Howard, J. Applied Cryst. 15, 615 (1982)
[12] J.F. Berar and * Baldinozzi, J. Applied Cryst. 26, 128 (1993)
[13] W.A. Dollase, J. Applied Cryst. 19, 267 (1986)
[14] K.D. Rouse, M.J. Cooper, E.J. York and A. Chakera, Acta Cryst.
A26, 682 (1970)
[15] A.W. Hewat, Acta Cryst. A35, 248 (1979)
[16] A.J.C. Wilson, Mathematical theory of X-ray powder diraction, Philips
Technical Library, Eindhoven (1963)
[17] B.T.M. Willis and A.W. Prior, Thermal Vibrations in Crystallography,
Cambridge University Press (1975)
[18] J.F.Berar and * Lelann, J. Applied Cryst. 24, 1 (1991)
[19] A.Antoniadis, J.Berruyer and A.Filhol, Acta Cryst. A46, 692 (1990)
[20] R.J.Hill and H.D.Flack, J. Applied Cryst. 20, 356 (1987)
31
[21] J.Rodriguez-Carvajal, M.T.Fernandez-Diaz and J.L.Martinez, J.
Physics:Cond.Matt. 3, 3215 (1991)
[22] J.Rodriguez-Carvajal, Physica B 192, 55 (1993)
[23] W.H.Press, B.P. Flanery, S.A. Teukolsky and W.T. Vetterling,
Numerical Recipes (Fortran version), Cambridge University Press, 1990.
[24] W.Pitschke, N.Mattern and H.Hermann Powder Diraction 8(4), 223
(1993)
In this paper the authors rene simultaneously all occupation numbers.
This practice should be avoided. If the calculation were exact that gives
rise to a singular matrix when the scale factor is also rened.
[25] W.Pitschke, H.Hermann and N.Mattern Powder Diraction 8(2), 74
(1993)
32
Contents
1 GENERAL INFORMATION ON FullProf 3
1.1 Purpose, references and documentation : : : : : : : : : : : : : : 3
1.2 Features of FullProf : : : : : : : : : : : : : : : : : : : : : : : : : 4
1.3 Running the program, input and output les : : : : : : : : : : : 5
1.3.1 Input les : : : : : : : : : : : : : : : : : : : : : : : : : : : 6
1.3.2 Output les : : : : : : : : : : : : : : : : : : : : : : : : : : 8
2 THE RIETVELD METHOD IN PRACTICE 10
2.1 Rietveld renement : : : : : : : : : : : : : : : : : : : : : : : : : : 10
2.2 Total-pattern tting (Prole Matching) : : : : : : : : : : : : : : 12
2.3 Hints'n tricks : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 12
2.4 Trouble shooting : : : : : : : : : : : : : : : : : : : : : : : : : : : 13
2.5 Examples. Content of pcr dat:zip : : : : : : : : : : : : : : : : : : 14
3 MATHEMATICAL INFORMATION 17
3.1 Calculated prole : : : : : : : : : : : : : : : : : : : : : : : : : : : 17
3.2 Background : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 18
3.3 Peak-shape functions : : : : : : : : : : : : : : : : : : : : : : : : : 19
3.4 Monochromator, Lorentz and geometrical corrections : : : : : : : 22
3.5 Asymmetry : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 22
3.6 Preferred orientation : : : : : : : : : : : : : : : : : : : : : : : : : 23
3.7 Absorption and micro-absorption : : : : : : : : : : : : : : : : : : 24
3.8 Systematic line-shifts : : : : : : : : : : : : : : : : : : : : : : : : : 24
3.8.1 Bragg-Brentano parafocusing arrangement : : : : : : : : : 25
3.8.2 Debye-Scherrer : : : : : : : : : : : : : : : : : : : : : : : : 25
3.8.3 Curved position sensitive detector with
at plate sample : 26
3.9 Crystal structure factors : : : : : : : : : : : : : : : : : : : : : : : 26
3.10 Magnetic scattering calculations : : : : : : : : : : : : : : : : : : 27
References 31
33