research papers
Alignment facility and software for single-crystal time-of-flight neutron spectroscopy
aSchool of Physics and Astronomy, University of Edinburgh, Edinburgh EH9 3JZ, United Kingdom, bSchool of Chemistry, University of Edinburgh, Edinburgh EH9 3FJ, United Kingdom, and cISIS Pulsed Neutron and Muon Source, STFC Rutherford Appleton Laboratory, Harwell Campus, Didcot, Oxon OX11 0QX, United Kingdom
*Correspondence e-mail: cstock@ed.ac.uk
An instrument and software algorithm are described for the purpose of characterization of large single crystals at the Alignment Facility of the ISIS spallation neutron source. A method for both characterizing the quality of the sample and aligning it in a particular 1/3Nb2/3)O3. Extensions and modifications of characterization instruments for future improved beamlines are suggested. It is hoped that this software will be used by the neutron community for pre-characterizing large single crystals for spectroscopy experiments and that in the future such a facility will be included as part of the spectroscopy suite at other spallation neutron sources.
is introduced. A software package written for this instrument is presented, and its utility is demonstrated by way of an example of the structural characterization of large single crystals of Pb(MgKeywords: pole figures; neutrons; characterization.
1. Introduction
Modern developments of neutron chopper spectrometers have resulted in an unprecedented increase in neutron et al., 2019), MERLIN (Bewley et al., 2006) and LET (Bewley et al., 2011). ISIS also hosts a series of backscattering instruments, OSIRIS and IRIS, providing exceptionally high resolution complementing these chopper spectrometers (Telling & Andersen, 2005; Demmel et al., 2018). All of these instruments have been extremely successful in contributing to solving problems in strongly correlated physics and hence are heavily over-subscribed. Recently developed chopper spectrometers are particularly optimized for use with single-crystal materials, and the prior alignment and characterization of single-crystal samples is crucial to their continued success and for optimal use of facility time.
at the sample position, along with an increase in angle-resolved detector coverage. Examples of such instrumentation exist at the ISIS neutron and muon spallation source and include MARI, MAPS (EwingsA key tool for alignment and characterization of single crystals has been Laue X-ray diffraction, which has been applied for both characterization of large single crystals and mapping of grains (Whitley et al., 2015; Chung & Ice, 1999; Ice & Pang, 2009). However, a significant problem with laboratory-based Laue diffraction is that X-rays penetrate matter on length scales of the order of micrometres, thus probing only the structure close to the surface. This can lead to misleading or even unhelpful results when characterizing samples with sizes of the order of centimetres. These necessitate the use of neutron scattering, because neutrons interact with materials via nuclear forces and hence are strongly penetrating and probe the bulk structure.
The use of neutrons to characterize samples before use on modern chopper spectrometers is desirable as alignment and characterization can be time consuming, eating into valuable beamtime. To facilitate this, the excitations group at ISIS maintains a beamline allowing users to align and characterize single crystals beforehand. This is particularly important in experiments using extreme sample environments where alignment of single crystals in a well defined et al., 2006), equiped with a neutron Laue camera mounted in a backscattering geometry, is used routinely before diffraction and spectroscopy experiments. We note that this emphasis on the importance of pre-characterization has resulted in the development of the larger Cyclops Laue diffractometer (Ouladdiaf et al., 2011).
is a necessity. Setup and commissioning experiments involving such environments are also time consuming, adding to the `dead' overhead time of any experiment. The Institut Laue–Langevin has likewise recognized the importance of a pre-experiment characterization and alignment facility. The OrientExpress beamline (OuladdiafHere we discuss a methodology of understanding the diffraction data from the alignment facility (ALF) at the ISIS spallation source. ALF has been in operation in some form for approximately 15 years but has recently undergone an upgrade with improved goniometers and more detectors providing wider angular coverage. These upgrades have occurred at the same time as improvements to the chopper instruments, making the facility relevant for users given the increased capabilities at ISIS. As a step before any spectroscopy experiment, it is now important for users to have access to equipment and software that can fully characterize samples in an automated way and visualize the results.
Motivated by this need, we develop a rotation matrix formalism to generate pole figure maps of Bragg peaks in terms of two spherical polar angles and further discuss software developed to visualize data from ALF. We provide demonstration results from a test sample, namely a relaxor ferroelectric, PbMg1/3Nb2/3O3, previously used in spectroscopy measurements (Stock et al., 2018). This approach and software suite were motivated by the application of strain instrumentation and software on the E3 and L3 diffractometers at the now decommissioned NRU reactor (Chalk River, Canada). These instruments and software were often used to co-align samples and fully characterize samples before time-consuming experiments on the C5 and N5 triple-axis spectrometers, and indeed the test sample used in this paper has been previously characterized on those diffractometers.
2. ALF instrument
ALF was constructed on port N2 of target station 1 at the ISIS spallation neutron source, viewing a liquid methane moderator. The instrument comprises supermirror guides from the source to 8.5 m of the total flight path, with gaps for `t0' and disc choppers. These choppers produce a pseudo-white beam of neutrons with wavelengths spanning the range from 0.2 to 5.2 Å. Thereafter, the instrument flight path is composed of a B4C collimation tube through to a sample position situated 14.86 m from the source. A bank of 37 position-sensitive detector tubes of length 1 m is situated with its centre point 1.32 m from the sample, covering a horizontal scattering angle range of 20.2 < 2θ < 60.3°. The layout of the current sample position at ALF is illustrated in Fig. 1. The sample position hosts a three-axis goniometer, with adjustable height and position parallel and perpendicular to the incident neutron beam. The lower goniometer rail is aligned along the x axis and the upper is aligned at 90° along the y axis. These tilt rails are mounted on a rotation stage which rotates these axes around the z axis. In front of the sample, a pseudo-white beam of neutrons is incident on the sample, with the resulting diffraction pattern on the detector being similar to an angularly resolved Laue pattern. Data collection on ALF results in a time-of-flight image of the detector for a given goniometer setting.
This instrument has no monochromatic chopper on the incident side and no neutron wavelength analysers (such as Q = kf − kin. The condition implies that Ein ≡ Ef, leading to |kin| ≡ |kf|. The energy of a given detected neutron then gives the magnitude of the scattered and incident wavevectors via , where ℏ is Planck's constant, m the neutron mass, t the time of flight at the detector and l the distance travelled from the target. The magnitude of the momentum transfer is then given via Bragg's law: . The angle σ is defined as half of the angle between kin and kf. Under the assumption of elastic-only scattering, the recorded time of flight of a neutron detected on a pixel of the position-sensitive detector therefore defines the momentum transfer.
crystals) on the scattered side. In this work, we therefore assume that all measured neutrons on the detector are elastically scattered, transfering no energy to the sample with the momentum transfer defined as3. Data visualization and the diffraction equations
Having stated the kinematics and the assumptions of ALF, we now discuss a methodology to visualize the data for a series of detector images taken at different goniometer settings. First, as shown in Fig. 2, we consider an of radius |kin|, centred on the crystal. The definition of x and y axes is the same as in Fig. 1. We denote the intersections of kin and kf with the sphere as the points N and M, respectively. According to Bragg's law, the normal of the plane from which neutrons get diffracted bisects −kin and kf. We can identify the midpoint of as the point G. Since bisects and , we can use the location of G to indicate the orientation of the atomic plane.
Because is always perpendicular to the atomic plane from which the diffraction occurs, its location relative to the crystal is fixed. In other words, it rotates with the crystal. A rotation of the crystal about the three-axis relative to the laboratory frame (Fig. 1) can be described by three rotation matrices, representing the crystal's rotation around its base and along the lower and upper goniometer rails, respectively:
where , and are defined as
and λ, μ and τ indicate the rotational angle of the crystal around the z, x and y axis, respectively. and are column vectors describing the vector , in Cartesian coordinates, of the laboratory and rotated frames, respectively. Note that , and do not commute with each other, and hence their order matters. The order in which we applied those matrices in equation (1) can be justified by Fig. 3. It can be seen that any configuration of the crystal can be achieved by first moving the crystal along the upper rail (rotation around the x axis) and then moving the whole upper rail along the lower rail (rotation around the y axis), and finally the base can be rotated to rotate the crystal, along with both goniometer rails, around the z axis.
From each pixel of the detector, we can infer the location of by geometry (Fig. 2). We can then rotate this vector onto the laboratory frame by systematically inverting the rotation matrices defined in equation (1). For each angular setting illustrated in Fig. 3, data are collected and saved to a NeXus file with the angles and intensity saved using hdf formatting. Application of the above procedure to all files allows those with different gonimeter settings to be mapped onto the same coordinate system.
To begin with, we first need to show how the Cartesian coordinates of can be deduced from each pixel's location. The pixels' coordinates, P, are defined by the three parameters (l, α, β), where l is the distance between the pixel and crystal, and α and β are the rotational angles around the x and z axes, respectively. The pixel location is thus defined as
where
The Cartesian coordinates of can be calculated from the geometric relation between and P. Because and lie in the same plane, G can be mapped onto the xy plane by a rotation by angle α, clockwise about the x axis. Since bisects and , a further anticlockwise rotation of angle β/2 about the z axis aligns with the y axis.
That is to say
where
Finally, combining equations (9) and (1), the locations of can be written as
In defining the rotation matrices on the right-hand side of equation (10), five angles are needed, corresponding to the three goniometer angles and the two angles that define the pixel location. However, is uniquely defined by two spherical coordinates, θ and ϕ, of the laboratory frame. Therefore, by scanning the five angles provided, the resulting data can be visualized as a pole figure in the form of a two-dimensional colourmap. We now illustrate the utility of this method by applying it to an exemplar data set collected on ALF with a sample of single-crystal PMg1/3Nb2/3O3.
4. Graphical user interface description and test results
We have applied the above formalism, based on rotation matrices, to design and construct a user interface for the ALF diffractometer. The aim of the program is not to control the instrument, as has been implemented for triple-axis spectrometers (Lumsden et al., 2006) and elsewhere for time-of-flight instruments (ISIS, 2015), but to visualize the data sets taken with different goniometer settings. The goal of this program is to provide a way for a user to quickly visualize data systematically taken for a number of goniometer angle settings for the purposes of alignment and characterization. To illustrate this software and the methodology, we have performed a test series of scans of a single crystal of PbMg1/3Nb2/3O3 used in an experiment on MERLIN to map out the soft phonon modes with temperature (Stock et al., 2018).
The graphical user interface (GUI), written in MATLAB, has four tabs to perform different tasks needed for characterization and alignment. The level of analysis achieved in each tab gradually increases and is based on the analysis in the previous tabs.
Single-file visualization. The first tab (Fig. 4) is used to visualize the detector bank as the experiment proceeds for a single angular setting of the goniometer illustrated in Fig. 1. The x axis of the figure inside the first tab represents the detector tube index and the y axis represents the pixel index within a given tube. When using this function, the user needs to input the number of the file to be analysed and the d-spacing range for the Bragg peak defining the Miller planes of interest for visualization. The GUI will then plot the normalized count rate on the detector bank as a function of x and y, and write the rotational angles Rrot (λ), Rupper (μ) and Rlower (τ) defining the goniometer angles of the input file.
Plot. The second tab (Fig. 5) enables the user to control how to map all the files to the laboratory frame. In the experiment setup part, a user can determine whether to add an offset angle to Rrot. This step is necessary as in some experiments the two rails in Fig. 1 may not be initially aligned with the x and y axes used to define the rotation matrices in the section above. Also, since the pixels at the extreme edges of the detector tubes are subject to large read-out errors due to reduced efficiency, the user has the option to mask a certain number of pixels at each end of the tube to increase the quality of data and reduce contributing noise and error. The drop-down resolution menu lets the user choose the angular distance between two adjacent points in θ and ϕ to plot. This defines the angular range over which the data are binned and can be tuned to increase the plotted angular resolution or to increase statistics by coarsening the angular resolution in the output plot. The user can therefore either choose a lower resolution to speed up the plotting process by coarsening the plotted angular steps or a higher setting for improved precision and visualization of grains or crystal mosaic.
After all of the pixels have been mapped to the laboratory frame, the corresponding pole figure can also be generated. The pole figure pieces together all of the different detector images collected at different goniometer settings and plots them onto a common coordinate frame. An θ > 90°) then all the points need to be mapped around the x or y axis for an angle determined by the user to avoid any loss of information and clarity in plotting.
of fixed radius can be then be visualized in spherical coordinates based on two angles. The projection of onto the equatorial plane is designed to be the intersection of the line connecting and the south pole. Therefore, if some points are in the southern hemisphere (Analyse. Then, in the third tab (Fig. 6), some basic analysis can be performed. After loading the θ and ϕ plot generated in the second tab, the user can zoom in and click the figure to get the coordinates of a point. Those coordinates can be put into the GUI to calculate the angle between them. This step can be used to examine whether two peaks are of the same grain by comparing the angle with the theoretical prediction, and will be helpful for grain classification later in the fourth tab.
In circumstances where the user thinks there is a spurious point in the pole figure, they can input the range of θ and ϕ of the region of interest and the GUI will return a list of all the files involved, which could be used for further debugging or re-measurement.
Advanced analysis. The fourth tab (Fig. 7) is divided into two parts. The first is designed to estimate the mosaic angle of the crystal, defined to be the width of a Gaussian fit to the peak shape. After loading the plot generated in the second tab, the user can move the sliders to create two lines of constant θ and ϕ, respectively. Then a constant θ or ϕ cut can be plotted. The origin is the intersection of the two lines, and this figure changes in real time when the user moves the sliders, providing a rapid way to characterize the crystal quality and understand the pole figure.
The second part is used to determine how many grains a sample has and an estimate of the percentage of the total that each makes up. To do this, we first let the GUI detect and mark all the peaks with neutron counts higher than the user-defined threshold. Then, the user inputs a mosaic range so that any points deviating from the peak's location within this range are considered to be part of the peak when summing the neutron counts.
The GUI will then print a list of all the peaks detected with their locations in (θ, ϕ) and the corresponding integrated neutron counts. From this information, the user must select two peaks as bases that they know to be of the same grain. This step is necessary because at least two peaks are needed to uniquely define the location of a grain. Then, the user can input the theoretical angular separation of two adjacent peaks from the same grain and let the GUI search the list for peaks of the same grain.
Once the GUI returns its search results the user will know which peaks in the plot are of the same grain and the average neutron counts of those peaks. The user can then take a note of the locations and the grain's average neutron counts before deleting them from the list. In cases where the neutron counts in a peak come from multiple grains, the user must neglect this peak and use the average neutron counts from other peaks of the same grain instead. This process can be done several times until all the peaks in the list have been identified. At the end of this process, the locations of each grain will be known and the ratio of the neutron counts from one type of grain to the total neutron counts detected can be taken as the approximate percentage of the prevalence of this grain in the crystal.
5. Conclusions
The present paper has shown the utility of using ALF for characterization and subsequent alignment of large single crystals. One thing that is evident from the pole figures constructed in this test experiment is that much of the angular range is not accessible in the current configuration of ALF. A means of improving the facility for future and more complete characterization of single crystals is the use of an Eularian cradle. In this case, the extension of the software discussed here would be to replace the two tilt matrices listed above (, ) by a single rotation matrix and include an inner rotation matrix. The series of rotation matrices is described by Busing & Levy (1967). However, in the current instrumental configuration on ALF, through a combined scan of the tilt axes and rotation (Fig. 1) axes, much of the can be measured to characterize the quality of the crystal and to perform alignment for measurement on more advanced instruments. We hope that by providing this methodology and outline we will allow future excitations users to take advantage of this code and GUI, and that other spallation source facilities will support similar instruments to improve use of more complex chopper instruments.
Acknowledgements
We thank J. A. Rodriguez and P. M. Gehring at NIST for helpful discussions. The authors are also grateful to the neutron scattering group at Chalk River, in particular Z. Tun, W. J. L. Buyers and I. P. Swainson, for their help and support in many experiments at the NRU reactor that provided the motivation for this project.
Funding information
We thank the EPSRC and the STFC for funding. HL was co-funded by the ISIS facility development studentship programme.
References
Bewley, R. I., Eccleston, R. S., McEwen, K. A., Hayden, S. M., Dove, M. T., Bennington, S. M., Treadgold, J. R. & Coleman, R. L. S. (2006). Physica B, 385–386, 1029–1031. Web of Science CrossRef CAS Google Scholar
Bewley, R. I., Taylor, J. W. & Bennington, S. M. (2011). Nucl. Instrum. Methods Phys. Res. A, 637, 128–134. Web of Science CrossRef CAS Google Scholar
Busing, W. R. & Levy, H. A. (1967). Acta Cryst. 22, 457–464. CrossRef IUCr Journals Web of Science Google Scholar
Chung, J. S. & Ice, G. E. (1999). J. Appl. Phys. 86, 5249–5255. Web of Science CrossRef CAS Google Scholar
Demmel, F., McPhail, D., French, C., Maxwell, D., Harrison, S., Boxall, J., Rhodes, N., Mukhopadhyay, S., Silverwood, I., Sakai, V. G. & Fernandez-Alonso, F. (2018). J. Phys. Conf. Ser. 1021, 012027. CrossRef Google Scholar
Ewings, R. A., Stewart, J. R., Perring, T. G., Bewley, R. I., Le, M. D., Raspino, D., Pooley, D. E., Škoro, G., Waller, S. P., Zacek, D., Smith, C. A. & Riehl-Shaw, R. C. (2019). Rev. Sci. Instrum. 90, 035110. CrossRef PubMed Google Scholar
Ice, J. E. & Pang, J. W. L. (2009). Mater. Charact. 60, 1191–1201. CrossRef CAS Google Scholar
ISIS (2015). IBEX, https://www.isis.stfc.ac.uk/Pages/IBEX.aspx. Google Scholar
Lumsden, M. D., Robertson, J. L. & Yethiraj, M. (2006). Physica B, 385–386, 1336–1339. Web of Science CrossRef CAS Google Scholar
Ouladdiaf, B., Archer, J., Allibon, J. R., Decarpentrie, P., Lemée-Cailleau, M.-H., Rodríguez-Carvajal, J., Hewat, A. W., York, S., Brau, D. & McIntyre, G. J. (2011). J. Appl. Cryst. 44, 392–397. Web of Science CrossRef CAS IUCr Journals Google Scholar
Ouladdiaf, B., Archer, J., McIntyre, G. J., Hewat, A. W., Brau, D. & York, S. (2006). Physica B, 385–386, 1052–1054. CrossRef CAS Google Scholar
Stock, C., Gehring, P. M., Ewings, R. A., Xu, G., Li, J., Viehland, D. & Luo, H. (2018). Phys. Rev. Mater. 2, 024404. CrossRef Google Scholar
Telling, M. T. F. & Andersen, K. H. (2005). Phys. Chem. Chem. Phys. 7, 1255–1261. Web of Science CrossRef PubMed CAS Google Scholar
Whitley, W., Stock, C. & Huxley, A. D. (2015). J. Appl. Cryst. 48, 1342–1345. Web of Science CrossRef CAS IUCr Journals Google Scholar
This is an open-access article distributed under the terms of the Creative Commons Attribution (CC-BY) Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original authors and source are cited.