- 1. Introduction
- 2. Scattering
- 3. Crystallography
- 4. Liquid-state theory
- 5. Experimental setups in photography
- 6. Photography of single-crystalline samples
- 7. Scattering vector q in intensity scanning
- 8. Photography and intensity scanning of disordered or partially ordered samples
- 9. 2D structure factor
- 10. Conclusion
- References
- 1. Introduction
- 2. Scattering
- 3. Crystallography
- 4. Liquid-state theory
- 5. Experimental setups in photography
- 6. Photography of single-crystalline samples
- 7. Scattering vector q in intensity scanning
- 8. Photography and intensity scanning of disordered or partially ordered samples
- 9. 2D structure factor
- 10. Conclusion
- References
teaching and education
Unifying the concepts of scattering and
in ordered and disordered samplesaDivision of Natural and Applied Sciences, Duke Kunshan University, Kunshan, Jiangsu, 215300, People's Republic of China
*Correspondence e-mail: kai.zhang@dukekunshan.edu.cn
Scattering methods are widely used in many research areas to analyze and resolve material structures. Given its importance, a large number of textbooks are devoted to this topic. However, technical details in experiments and disconnection between explanations from different perspectives often confuse and frustrate beginner students and researchers. To create an effective learning path, the core concepts of scattering and
are reviewed in this article in a self-contained way. Classical examples of scattering photography and intensity scanning are calculated. Sample CPU and GPU codes are provided to facilitate the understanding and application of these methods.Keywords: scattering; structure factors; computation; GPU code.
1. Introduction
Scattering methods, using a source of photons, electrons, X-rays, neutrons etc., are powerful tools to examine microscopic structural (Powles, 1973) and dynamical (Goldburg, 1999) properties of matter; they have been successfully applied to study subatomic particles (Xiong et al., 2019), crystals (Azaroff, 1968), liquids (Head-Gordon & Hura, 2002), glasses (Sette et al., 1998), surfactants (Hayter & Penfold, 1983), biomolecules (Kendrew, 1961; Ashkar et al., 2018) and polymers (Roe, 2000). The rule of thumb here is that the wavelength λ of the radiation should be comparable to the length scale of the structure to be observed. To detect ordering over a range much longer than λ, methods like small-angle scattering are needed (Chu & Hsiao, 2001). Another important consideration is the contrast between scattering signals from different elements due to underlying physical mechanisms. Therefore, neutron scattering is often preferred for soft-matter systems, despite having lower accessibility than X-rays. In addition, techniques like resonant soft-X-ray scattering can be used to provide enhanced resolution (Fink et al., 2013; Liu et al., 2016). Compared with real-space microscopy techniques, reciprocal-space probes like scattering methods are good at picking up periodic patterns and revealing three-dimensional (3D) structures as a whole by penetrating deeply into the sample (Mukherjee et al., 2017).
Given the richness of material structures, a variety of experimental methods have been developed during the past century, with the scattering being hard (high energy) or soft (low energy), monochromatic or polychromatic, and elastic or inelastic. Despite the diversity of experimental setups, they can largely be grouped into two categories based on how signals are collected and interpreted. The first category is photography of ordered samples, where they are recorded as spotted scattering signals on a two-dimensional (2D) film (McIntyre, 2015). The second category is intensity scanning of scattering signals from disordered or partially ordered samples, whose one-dimensional (1D) profile is plotted against one variable (a scalar) that characterizes the existence of periodicities in the system (Hura et al., 2009). In both types, the quantitative measurement of the signal is the scattering intensity , or its normalized version, the , which is often expressed as a function of the scattering vector . There are then two central tasks of structural analysis with scattering methods:
(i) The forward problem : given the electron-density distribution or particle positions , to predict the scattering pattern .
(ii) The inverse problem : given the scattering pattern , to resolve the electron-density distribution or particle positions .
In this article, we only focus on the forward problem, which could still shed light on some basic structural information. Sometimes, the forward method may also be used to solve iteratively, through a trial-and-error process. That is, one keeps modifying a proposed structure until the theoretically computed matches the experimentally observed one. The full solution to the inverse problem is, however, challenged by the notorious `phase problem' (Hauptman, 1991).
The concepts of scattering and etc. The same idea can take different forms in different areas, causing confusion and misconceptions. Graduate or advanced undergraduate students in need of applying these concepts to their research problems can be frustrated by the convoluted experimental details covered in traditional textbooks. It is thus the purpose of this article to unify the concepts of scattering and giving junior researchers an effective pathway to quickly grasp the key ideas in this field without taking a whole course or reading an entire textbook.
are often discussed across different disciplines including condensed-matter physics, materials science, polymer physics, structural biologyTo fulfill this task, we first elaborate the fundamentals about scattering (Section 2), crystallography (Section 3) and liquid-state theory (Section 4) based on the Fourier transform and Using concrete examples, we then discuss the photography of ordered samples in Sections 5 and 6 and intensity scanning of isotropic samples in Sections 7 and 8. Relevant CPU and GPU source codes are provided online at https://github.com/statisticalmechanics/scatter. Finally, a brief introduction to the 2D is given in Section 9, before the conclusion in Section 10.
2. Scattering
2.1. Scattering vector
In a scattering experiment, the incident beam of wavevector , after hitting the sample, is deflected from its straight path by a scattering angle and becomes the diffracted beam of wavevector (Fig. 1). In the case of elastic1 and monochromatic scattering (of a fixed wavelength λ), . The change of wavevector, called the scattering vector, is
with a magnitude
Let and be the unit vectors of the incident and diffracted beam, respectively; then the scattering vector can also be written as
2.2. Scattering intensity
When a detection screen is placed behind the sample in the path of , the diffracted beam may be detected. The strength of such signals is quantified by the scattering intensity of the ray, which changes with or, equivalently, with . The scattering pattern, or the distribution of on the screen, is determined by the structural features of the sample, for instance, the electron-density distribution in the case of X-ray scattering by atoms.
Both the incident and the diffracted rays can be viewed as plane waves of the form . According to Fermi's golden rule, the scattering intensity is proportional to the square of the transition probability amplitude from state to state , after interacting with the overall scattering potential . That is,
Neglecting the coefficient of proportionality, one can write
where
is the Fourier transform of the density distribution and is its complex conjugate (Appendix A).
Unless has a symmetry center, is generally a complex number, i.e. . If is known exactly, can in principle be reconstructed through the inverse Fourier transform [equation (48)] (Argos, 1977). However, in an experiment, only the scattering intensity × is directly measurable. This allows us to compute the magnitude of by . Unfortunately, information about the phase angle is lost during this process, which gives rise to the `phase problem' in crystallography. Special techniques (Hauptman, 1991; Harrison, 1993; Taylor, 2003) have been developed to determine , which are beyond the scope of this article.
In a system of N atoms or particles at positions inside a region of volume V, the density distribution consists of the contributions from each particle i with a scattering potential (), i.e.
In this case
where
is the atomic form factor, or scattering factor, of particle i.
If the scattering potential of each particle is symmetric about , which should be true for atoms and most particles, is real and even, i.e. its complex conjugate (Appendix A). Under this circumstance, the scattering intensity
or, equivalently,
Equations (9a) and (9b) are mathematically equivalent because = = + . However, in numerical computation of at a given , equation (9a) has a lower cost with a computational complexity O(N), while equation (9b) is of complexity O(N2). Nevertheless, when there is an appropriate symmetry in the system, the expression in equation (9b) allows it to be further simplified and thus to become more computationally efficient, as will be discussed in later sections.
2.3. Atomic form factor
For realistic scattering potentials, the atomic form factor changes with the direction and magnitude of the scattering vector , and thus often drops as the scattering angle θ increases (Fig. 2). If, however, the scattering potential is spherically symmetric, i.e. , we can write
It is useful to consider the three simple spherically symmetric scattering potentials listed below (Fig. 2).
(i) , the scattering by each atom is idealized as from a sizeless point at the atomic center. This model can be mapped onto the physical scenario of nuclear scattering or the abstract scenario of point-mass scattering. The scattering strength ai of atom i generally has different values for different elements, and has also been called the because here
The electron-density distribution is then , which, in the case of ai = 1, becomes the distribution .
(ii) is homogeneous and bounded within a sphere of radius ,2
and
(iii) is Gaussian-like with standard deviation ,
and
In all numerical results shown below, we will assume , i.e. point scattering, for all particles.
3. Crystallography
We now review concepts and theories about scattering methods used for crystal samples. The earlier theory of von Laue (McQuarrie & Simon, 1997) that considers diffraction of parallel beams by arrays of atoms is skipped here. Instead, we apply the more intuitive Bragg's law which envisages crystallographic planes as reflective mirrors to understand the principle, although there is no such reflection in the physical sense.
3.1. Bragg's law
For an incident ray of wavelength λ to generate a strong constructive scattering signal by a family of crystallographic planes (hkl) of dhkl (Appendix B), the scattering angle needs to obey Bragg's law (Bragg, 1968) (Fig. 3):
This is because the path difference of the two scattering rays `reflected' by two neighboring lattice planes is
The rescaled scattering vector (of length ) is parallel to the normal vector, or reciprocal vector (of length 1/dhkl), of the lattice planes (hkl). Thus, it is sometimes convenient to express Bragg's law in a vector form, for instance, for the primary n = 1 scattering, as
Using equation (3), the necessary condition to receive a strong signal for scattering vector in crystals is thus
3.2. The Ewald construction
Bragg's law needs to be satisfied to have a strong scattering signal in the direction of . However, this does not mean that, given an arbitrary experimental setup, Bragg's law is guaranteed to be satisfied somewhere. In particular, if a monochromatic incident beam (fixed λ) is directed onto a single crystal at an arbitrarily fixed position (fixed θ and dhkl), it is possible that none of the lattice planes will be able to produce a strong scattering signal. If this happens, either λ (polychromatic) or θ (rotate the sample or use polycrystals) has to be tuned to satisfy equations (16), (18) and (19).
An alternative view to check that Bragg's law is satisfied is to use Ewald's sphere in the ; Barbour, 2018). Here, each point at vector represents a family of parallel planes (hkl) in the When the orientation of the crystal sample is fixed, the relative positions of the incident beam and reciprocal-lattice points are also fixed. One can align the endpoint of the incident wavevector (in practice ) with the origin O of the and then draw a sphere of radius . The center of the sphere is found by moving from point O by a vector displacement (Fig. 4). It can be seen that the endpoint of the scattering vector , normalized by , falls on the surface of this According to the vector form of Bragg's law [equation (19)], scattering from certain lattice planes (hkl) is possible only when the corresponding reciprocal-vector point falls on the surface of the If the wavelength and crystal orientation are not appropriately chosen, this condition may not be met at all and no scattering signal is generated by the sample.
(Hammond, 20013.3. factor Fhkl
Bragg's law is actually the necessary (but not sufficient) condition to have a strong scattering signal. Even if Bragg's law is obeyed by lattice planes (hkl), it is still possible that the scattering signal cancels due to special lattice symmetries. In fact, when Bragg's law is presented as in Fig. 3, a simple square or oblique lattice structure is often used, which misses the complexity in other 3D lattices. Generally, not every family of lattice planes (hkl) can produce a constructive scattering.
Because the density distribution is periodic in crystals, one only needs to consider the particle distribution within one m atoms, then
If each has a volume andwhere N/m is the number of unit cells in the N-particle system. In crystallography, it is customary to define per as the
For crystals, only s satisfying Bragg's law [equation (19)] can possibly generate a large or . Therefore, we only need to consider s of the form , where represents a family of lattice planes (hkl) of spacing (Appendix B). The associated can thus be denoted as Fhkl:
Inversely, the density distribution within each
isFor point-like scattering centers, and equation (22) reduces to
after substituting equation (11) and following the steps in equation (7), where (xi,yi,zi) are the coordinates of the m atoms inside one and are expressed as fractions of lattice vectors. The strength of Fhkl by planes (hkl) is the vector sum of each term in equation (24), where the phase angle hxi+kyi+lzi defines the direction of each vector. For typical crystal lattices of point-like atoms of the same type ( ai = a), Fhkl can be easily computed.
(i) Simple cubic (SC)
m = 1 and (x1,y1,z1) = (0,0,0):
for any h,k,l.
(ii) Body-centered cubic (b.c.c.)
m = 2, (x1,y1,z1) = (0, 0, 0) and (x2,y2,z2) = (1/2, 1/2, 1/2):
(iii) Face-centered cubic (f.c.c.)
m = 4, (x1,y1,z1) = (0,0,0), (x2,y2,z2) = (1/2,1/2,0), (x3,y3,z3) = (0,1/2,1/2) and (x4,y4,z4) = (1/2,0,1/2):
The Fhkl of b.c.c. and f.c.c. lattices completely vanishes for certain h,k,l. The resulting reflection should successively be (110), (200), (211), (220), (310), (222)… for b.c.c. and (111), (200), (220), (311), (222), (400)… for f.c.c. crystals.
3.4. Finite-size crystals and Bragg peak broadening
When Bragg's law is satisfied by wavelength λ at an incident angle θ, a small deviation from θ only slightly changes the path difference between two rays reflected by a pair of neighboring planes (of spacing dhkl), which still add constructively. If we consider two reflection planes that are 2dhkl, 3dhkl,… apart, the change in path difference due to accumulates and, at large enough spacing, becomes such that the two rays completely cancel. For a beam reflected by a crystallographic plane in a large crystal sample, it is always possible to find another remote plane whose reflected beam interferes destructively, even for very small . Therefore, when other broadening effects are excluded, diffraction signals in large samples at fixed λ, if there are any, should in principle be of infinitely small size (in terms of the range of θ).
For small crystal samples, it is possible that the change in path difference due to is much less than such that Bragg's law is still approximately satisfied at and the diffraction signal is broadened by an amount ∼δθ. The quantitative relationship between the broadening of the signal and the linear dimension L of a finite-size crystal can be found by considering all pairs of planes that are L/2 apart. When θ changes to , the path difference for such a pair of planes increases by (Fig. 5). The diffraction signal broadens until destructive interference occurs at , which gives the Scherrer equation:
Thus diffraction signals tend to be larger in smaller systems.
4. Liquid-state theory
According to liquid-state theory, a static ; Rahman et al., 1962) and the (Janssen, 2018) in amorphous/liquid samples (Fischer et al., 2006) and more generally in nano-structured or other structurally disordered systems (Billinge, 2019). In an N-particle system, it is defined as
can be used to address short-range order (Thomas & Gingrich, 1941where the ensemble average is usually taken over configurations at thermal equilibrium (Hansen & McDonald, 2013). Practically, this ensemble average results from a sum over all the different coherence volumes in the sample, after being Fourier transformed, giving a real-space representation of the sample's ensemble-averaged instantaneous local structure.
If scattering centers are point like, i.e. , then and
For monodisperse systems ( ai is the same for all particles), S(0) = N.
In the case of ai = 1, S(q) is related to the radial distribution function or the pair correlation function by
where the global i.e. . Correspondingly, .
and the Fourier transform . Note that is singular or discontinuous at ,The radial distribution function can be obtained from the
by the inverse Fourier transform:where the value should be used at in the integration. When the system's structure is isotropic over the sample volume, i.e. , more convenient relationships can be derived (Keen, 2001):
where should be used in the integration. The limit value of S(q) as q approaches zero is related to the isothermal compressibility κ by (Barrat & Hansen, 2003)
5. Experimental setups in photography
In this section, we discuss some technical details about photography methods, which collect signals of on a 2D film with coordinates (X,Y). Three popular experimental setups are often used as described below, which map onto (X,Y) differently.
5.1. Back-reflection and transmission methods
In back-reflection and transmission methods, the recording film is a rectangular plane, which is placed either before (back-reflection) or after (transmission) the sample as shown in Fig. 6. In both methods, it can be seen that the ratio qx/qy equals X/Y. If the incident wavenumber is , then
where L2 = R2 + D2 and R2 = X2 + Y2. The difference lies in the z component qz.
In the back-reflection method, because satisfies , it follows that
Therefore,
In contrast, in the transmission method,
5.2. Cylindrical method
Compared with the above two setups, the cylindrical method is more informative as it collects signals from all azimuthal angles ϕ (Fig. 7). In fact, a cylindrical film, which better preserves the natural shape of scattering spots, can be considered as the sum of an infinitely wide back-reflection film and an infinitely wide transmission film, on which scattering patterns farther away from the film center are more distorted.
To map onto the film, one can unfold the cylinder into a plane with coordinates with the azimuthal angle . The relationship is
6. Photography of single-crystalline samples
The illustration of Bragg's law using Ewald's sphere suggests two ways to make reciprocal-lattice points fall on the sphere to generate constructive scattering signals from specific crystallographic planes. One is to tune the wavelength and the other is to change the orientation of the sample. These correspond to two experimental strategies in designing photography methods for single crystals – the Laue method and the (monochromatic) rotation method.
6.1. Varying wavelength at fixed angle: Laue method
In the Laue method, one fixes the orientation of the sample (thus the angle θ in Bragg's law) and changes the wavelength of the incident beam over a certain range , which is thus called `white color'.
For each pixel (X,Y) on the film, the scattering intensity is then the sum of contributions from all wavelengths, or equivalently all parallel scattering vectors , which can be formally written as
This type of general equation, which computes scattering intensity from all atoms in the sample, reduces to a simple summation over atoms in the .
for ideal crystals, as explained in Section 3.3We demonstrate the photography results using perfect SC, b.c.c. and f.c.c. samples (Fig. 8). The incident beam is along the [001] direction and the nearest-neighbor distance σ is set as the unit of length. The code to compute numerically implementing equation (40) is provided online. The value of D can be chosen arbitrarily, with all other lengths calculated accordingly, because it only leads to a scaling of the photograph. Here, we set for numerical convenience. If the total number of pixels on the film is NXY and the number of wavelengths scanned is , then the computational complexity using equation (40) is .
6.2. Varying angle using fixed wavelength: rotation method
We use the conventional setup – cylindrical film – to explain the rotation method for the same SC, b.c.c. and f.c.c. crystalline samples as above (Fig. 9). The wavelength λ of the incident beam is fixed in this method, and the sample placed at the central axis of the cylinder is rotated by a certain angle to probe possible orientations and scattering angles for given crystallographic planes. A full circle of rotation is only necessary for noncentrosymmetric crystals containing elements that exhibit a rotation of is sufficient for centrosymmetric crystals.
The scattering intensity at coordinates (X,Y) is then
where Ω represents the orientation of the sample due to rotation. For a given sample, we apply a rotation matrix about its y axis to transform particle coordinates into new values. The accumulated signal on the cylinder is then unfolded onto a rectangle. If a total number of rotation angles within are scanned, the computational complexity to implement equation (41) to produce results on NXY pixels is then .
6.3. Broadening due to the finite-size effect
So far we have assumed that either varying wavelength or varying sample orientation is needed to satisfy Bragg's law and produce nonvanishing scattering signals on the photograph. However, this is only true for infinitely large systems. In our small samples with particles, signal broadening allows us to observe certain scattering patterns, even when the wavelength λ is fixed at one appropriate value.
For example, in the previously mentioned SC crystals, we can see four scattering spots in the back-reflection method at fixed wavelength , which correspond to the (113) planes and equivalents (Fig. 10). When the system size is varied from N = 73 to 303, the size of each spot decreases. It can be confirmed that the relationship between box size L = N1/3 and spot size roughly satisfies the Scherrer equation . An empirical scaling factor 21/2 is needed on L to estimate the actual dimension of the sample perpendicular to the (113) planes and to agree with the theoretical slope .
6.4. DNA double helix
One of the most successful and famous applications of scattering methods is the determination of the DNA structure, whose X-ray photography shows a characteristic `X'-shape pattern with horizontal stripes (Franklin, 1953). The form of the pattern can be understood analytically by diffraction from the 2D projected sinusoidal waves of the single or double helix (Kittel, 1968; Thompson et al., 2018). Here we produce the transmission photography of a single model DNA fiber with only backbone particles. Each helix has N = 70 particles with 10 particles per turn (pitch). The parameters of the right-handed B-DNA, for pitch and for helix diameter, are used (Fig. 11). The unit of length σ can be mapped onto the real length unit Å.
All four photographs, with the fiber being single- or double-stranded, 2D projected, or 3D stereoscopic, have an `X'-shape pattern at the center and are made of horizontal broken stripes (Fig. 11). The two branches of the `X' pattern can be viewed as scattering signals from the two series of parallel particles on the sinusoidal wave [Fig. 11(a)]. Because each pitch of the helix has ten particles, the pattern has a vertical period of ten stripes (Kittel, 1968). The and darkness along each horizontal stripe depend sensitively on the relative position between different particles (Lucas & Lambin, 2005). For example, the level 4 stripe disappears when two double strands with a phase difference of 3/8 pitch are present. The bright level 8 signal of 3D samples at X = 0 is missing for 2D structures.
7. Scattering vector q in intensity scanning
In this section, we discuss the choice of scattering vector in the case of disordered or partially ordered samples that are spatially isotropic or approximately isotropic. When samples are isotropic, the scattering intensity or its normalized version, the q of the scattering vector, and thus does not generate isolated spotty signals as in photography of ordered samples. The photography I(X,Y), often of less interest in this context, should ideally exhibit concentric circular patterns. The intensity scanning I(q) or S(q) as a function of q is the primary method used for isotropic samples.
, only depends on the magnitude7.1. Vector q along a single direction to represent magnitude q in isotropic systems
In an experiment, one can vary q by observing signals at continuously changing scattering angle using a fixed incident wavelength λ. Because experimental samples are generally large enough, a well averaged scattering signal can be detected along one particular direction at , as in the powder method with a diffractometer.
For example, consider a polycrystal with M randomly oriented crystalline grains (domains), each of N particles. The scattering intensity at computed from equation (9a), assuming , is
where is the position vector of particle i in grain n. If M is large and the crystalline grains are uniformly oriented in all directions, at the particular vector can be accurate enough to represent I(q) at the magnitude q, without averaging over all directions of . A similar argument applies to bulk liquids or glasses, in which is also well self-averaged.
7.2. Random rotation of a small anisotropic sample
The above method of using a scattering vector in one direction to represent the magnitude q does not work well for simulation samples, which are usually small and anisotropic (single crystal instead of polycrystal). To simulate experimental results, we can fix the direction of the incident ray but randomly rotate the small sample to many orientations. This is done by applying a 3D rotation matrix to the original particle coordinates , whose rotation axis is uniformally distributed on a sphere and rotation angle is uniformally chosen from . Then the signal in equation (42) can be approximated by accumulating intensities from all those orientations Ω:
Here, represents the new coordinates of particle i after rotation to orientation Ω.
Note that the sum is applied to the intensity rather than within the square like . The latter choice would imply a virtual system of many randomly orientated overlapping grains, each of size N. The positions of these virtual grains generated by rotation do not reflect the absolute positions of grains in the real polycrystal. According to the equivalency of equations (9a) and (9b), equation (43) is an approximation to equation (42) by only considering relative positions of particles within each grain . Therefore, the difference between the coordinates of particles i and j at two different orientations, , does not affect the result of equation (43), but will lead to different and wrong results if the sum is taken as .
For small and nearly isotropic liquids or glasses, one can replace random rotations of the sample by averaging over many thermally equilibrated configurations. For anisotropic systems, however, rotations are needed to sample different directions.
7.3. Scattering vector q on a lattice
An alternative and more convenient way to simulate experiments is to fix the sample coordinates and choose of a given q from all directions. It is often suggested to select from a 3D orthorhombic lattice, , with integers nx,ny,nz and increment , where L is the linear dimension of the cubic simulation box (Allen & Tildesley, 1987). The motivation here is that L sets the maximum periodicity of the simulation sample that is still physically meaningful, and thus the resolution of q. The integers nx,ny,nz may be chosen to run from negative to positive values to sample spherically symmetric s, or to start from zero to sample only s on 1/8 of the sphere. At the expense of symmetry and averaging, the latter choice can reach a higher-magnitude q with the same number of lattice points.
There are multiple s on this lattice that correspond to the same magnitude q, from which we can compute an average S(q). The number of s for a given magnitude q tends to, but does not necessarily, increase with q. For example, in a 2D system with s on a square lattice, there are 1, 2, 1, 2, 2, 1, 2,… points on the lattice at magnitude , respectively (Fig. 12). When reporting the result of S(q), one can assign q values into bins of equal size or just use the original q values visited by the lattice points. In both cases, S(q) should be the mean value averaged over all the s at that q.
If the sample is crystalline and L is an integer multiple of the crystallographic lattice constant a, then the lattice contains the reciprocal-lattice points of the crystal (subject to a factor difference) (Allen & Tildesley, 1987). If L = 5a in the above 2D example, then points , , , correspond to reciprocal-lattice points (0,0), (1/a,0), (0,1/a), (1/a,1/a), respectively (Fig. 12). These lattice points are where Bragg's law [equation (19)] is obeyed. Therefore, according to the discussion in Section 3.3, if all atomic form factors are unity, and S(q) = N at each of these reciprocal-lattice points. The intensity scanning result S(q) needs to be an average over all points at that q, some of which are not reciprocal-lattice points and thus have S(q) = 0. For example, at of the 2D system, two points have S(q) = N and two have S(q) = 0. The average is thus (N + N + 0 + 0)/4 = N/2 (Fig. 12).
Using lattice points to approximate s from all directions is problematic when L is small and thus the increment is large, such that only a few s are available at each q. The issue is more severe at small q or towards corners of the cubic lattice at high q. The calculated signal S(q) can then be quite noisy because is not averaged enough over all directions.
7.4. Scattering vector q on a sphere and Debye's scattering equation
In order to obtain a smooth curve of S(q) that better matches experimental results, we need to use enough spherically distributed s. To guarantee a uniform distribution of points on a sphere, we apply the Fibonacci grid approach to randomly choose Nq scattering vectors from a sphere of radius q (Saff & Kuijlaars, 1997). Increasing Nq improves the effect of averaging. The complexity to compute I(q) or S(q) at each q is then O(NqN).
In the limit of , using equation (9b), we can integrate over all directions and then normalize by the full solid angle of to compute the average I(q):
This is known as Debye's scattering equation (Thomas, 2010; Gelisio & Scardi, 2016), which can also be viewed as the discrete version of the Fourier transform of the radial distribution function g(r) in equation (33a). The computational complexity of Debye's method is O(N2) and it becomes more efficient than numerically sampling Nq vectors on a sphere when .
8. Photography and intensity scanning of disordered or partially ordered samples
Although intensity scanning I(q) or S(q) as a function of q generally gives more useful structural information about isotropic samples, it is sometimes interesting to show the corresponding photography I(X,Y). In fact, intensity scanning can be obtained from photography by moving along a specific radial direction on the (X,Y) film, as in the early days of the powder method (Cohen, 1935).
To generate scattering photography of isotropic samples, we use the rotation or thermal averaging method of Section 7.2. Intensity scanning profiles are calculated using the three methods mentioned in Sections 7.3 and 7.4.
8.1. Liquids and glasses
If a scattering photograph is taken for disordered samples like liquids or glasses using a fixed wavelength, a characteristic ring signal is expected at peak value which corresponds to the molecular size σ. This ring is regular and clear, when the sample, like most experimental bulk samples, is large enough such that a good average is taken within the system in the calculation of . However, in a small simulation system ( N = 103– 104), photography of one static disordered sample gives spotty and noisy signals with certain traces of ring features [Fig. 13(a)]. To enhance the sharpness of the ring, one can either increase the size N of the sample or take the ensemble average of over many configurations [Fig. 13(c)].
For homogeneous liquids and glasses, the static q of the scattering vector and exhibits a major peak at . Using s on a sphere numerically or Debye's equation can generate well averaged smooth S(q) curves for liquids or glasses [Figs. 13(b) and 13(d)]. If only one disordered configuration is analyzed, the S(q) curve is much noisier using s on a cubic lattice [Fig. 13(b)].
varies only with the magnitude8.2. Polycrystalline samples – powder method
The powder method is often used to analyze polycrystals, in which a crystalline sample is ground into powder to produce many small randomly oriented crystalline grains. Then, at any scattering angle where a strong signal is expected, at least one of the grains has the correct orientation by chance to satisfy Bragg's law. The measured intensity scanning S(q) can be used to calculate interplanar spacings in the crystal and, with some limitations, even to determine the crystal structure.
It is difficult to produce a well randomized polycrystalline sample in simulation, given the limit of system size. Nevertheless, we can start from a small single-crystal sample and use random rotation or qs from different directions to simulate scattering signals of a polycrystal. In particular, we use the same SC, b.c.c. and f.c.c. crystals used above to generate photographs and intensity scanning results of corresponding polycrystals (Fig. 14).
The sharp concentric rings in the photograph I(X,Y) and the narrow peaks in S(q) correspond to scattering from different crystallographic planes (hkl) of the three crystals (SC, b.c.c. and f.c.c.). S(q) peaks computed from spherically distributed s are lower and broader than those from cubic lattice s. The peak height using cubic lattice s often scales with system size N. For example, the SC crystal has and N = L3 = 3375 particles. Given , the S(q) peak from (100) planes is expected to occur at six points, , , , , and , each having a value S(q) = 3375. However, there are other points with magnitude , which correspond to integer solutions to nx2+ny2+nz2 = 152. In total, at q = 15, there are six (15,0,0)-like (considering its permutation and ), 24 (12,9,0)-like, 24 (10,10,5)-like, 48 (11,10,2)-like and 48 (14,5,2)-like points. Out of these 150 points, only six have S(q) = N while the others have S(q) = 0. So the peak height 3375×6/150 = 135.
8.3. Mesophases: small-angle method
Mesophases are states of matter intermediate between liquids and solids found in block copolymers (Sakurai et al., 1991), liquid crystals (Mitchell et al., 1983), structural DNAs (Tian et al., 2020) etc., which present mesoscopic ordering of length scales larger than molecular size σ. To detect these long-wavelength structures, small-angle X-ray scattering (Chu & Hsiao, 2001) or small-angle neutron scattering (Richards & Thomason, 1983) methods are needed because scattering signals are expected at small q (before the first major diffraction peak ∼) and thus small θ as seen from equation (2). A logarithmic scale axis is often set for S(q) in the structure-factor plot because at the signal scales with system size N (Schneidman-Duhovny et al., 2010).
Experimental mesophases are often synthesized as polycrystals or many small crystalline domains randomly embedded in an amorphous matrix, for which intensity scanning S(q) at small q is used to reveal the ordering. We illustrate the concepts of the using a lamellar, a cylindrical and a b.c.c. spherical configuration of domains, cut from a disordered glass sample of hard spheres of diameter σ. These structures are thus amorphous within each domain, but the domains form a 1D, 2D or 3D for the lamellar, cylindrical or spherical configuration, respectively.
In the lamellar phase, each period is of length , consisting of a layer with thickness and a gap with thickness . We find three peaks of S(q) at one, two and three times , corresponding to the first, second and third order of Bragg diffraction of the [Fig. 15(a)]. The peak height drops as q increases, and when the layer thickness equals the gap thickness, peaks at even multiples of disappear.
The cylindrical phase with a disc radius resides on a 2D triangular (b)]. The second-order peak around is also visible (not marked).
with lattice constant . By assigning unit cells in two different ways with and , we can identify two peaks at and [Fig. 15The spherical phase has spheres of radius that pack on a b.c.c. q. We can obtain S(q) of this one-particle spherical phase by rescaling the q axis of S(q) of the b.c.c. crystal, which has a lattice constant , by a factor of . This moves the (110) peak from to [Fig. 15(c)]. This helps us to identify that only the peak from the (110) planes of the b.c.c. is sharply distinguishable from the background signals.
with a lattice constant . If each sphere domain had only one particle, the would be the same as for a normal b.c.c. crystal apart from a change of unit for9. 2D structure factor
For 2D samples or a 2D projection of 3D samples, it is sometimes useful to express as a 2D function of (qx,qy) (Tutsch et al., 2014) or scattering angles (Lee et al., 2005). The 2D S(qx,qy) is related to the photography I(X,Y) by converting coordinates (X,Y) on the film into components (qx,qy) of the scattering vector using equation (35). For 3D structures, the component qz can be expressed as a function of qx and qy, for example, in the case of the transmission method [equation (38)],
Note that knowing (qx,qy) does not uniquely determine qz. The constant still needs to be specified. For small-angle scattering with , an approximation to set qz = 0 is valid if there is no long-range periodicity along the z direction.
We compute S(qx,qy) for the cylindrical in Fig. 15(b). The cylinder axis is aligned with the incident ray in the z direction. We first use qz calculated from equation (45) with . Besides the isotropic circular signal corresponding to particle size σ, a characteristic hexagonal pattern with sixfold symmetry is observed at small q, which results from the cylinders packed on a 2D triangular lattice. We can identify two sets of spots on the vertices of hexagons – one corresponds to the with spacing d1 and the other corresponds to the with spacing d2 [Fig. 16(a)]. The second-order peak related to d1 and first-order peak related to d2 form a hexagon together, while the first-order peak related to d1 is mixed with the Fraunhofer diffraction pattern at smaller q.
If we set qz = 0, the S(qx,qy) pattern is approximately the same at small q, with a certain degree of enhancement [Fig. 16(b)]. Some higher-order peaks become visible at larger q.
10. Conclusion
In this article, we give a comprehensive and coherent review of the core concepts of scattering methods used to determine the structures of ordered and disordered samples. Typical examples of scattering photography and intensity scanning are calculated, which can be used as benchmarks. Sample CPU codes are provided on GitHub at https://github.com/statisticalmechanics/scatter to illustrate the mathematics and algorithms. Accelerating GPU codes that can reduce hours of computation to seconds are also provided for efficient simulation of scattering signals.
Note that, for simplicity, the intensity calculation discussed in this paper has omitted serveral important wavelength and/or angle-dependent factors due to, for example, absorption, extinction, multiple scattering, polarization and the Lorentz factor, as well as the issue of normalization of the measured intensity to an absolute scale. We have also omitted the effect of temperature, which generally adds a Gaussian co-factor to each atomic scattering factor.
APPENDIX A
Fourier transform: continuous and discrete
The Fourier transform of a function defined continuously in 3D real space of infinite volume is
where is a wavevector used to extract the spatial periodicity of (Lighthill, 1958). For instance, if has a periodic pattern of wavelength λ along the x axis, i.e. , then the value of is large for a of magnitude pointing in the x direction, i.e. . Physically, if is viewed as a plane wave traveling in the direction, then would exhibit a peak value when has wavelike properties coherent with such that they add constructively in the integral. In this sense, the Fourier transform [equation (46)] quantifies the existence and the extent of periodicity corresponding to in .
In general, even if is a real function, can be complex. However, if is real [] and even [, i.e. with a symmetry center], its Fourier transform is also real and even, because the conjugate of is
Here the integration limits for the vector variable , formally denoted as , are to be understood as for each of its components.
The inverse Fourier transform of is an integral in the wavevector space which gives the original real-space function:
This expands in terms of an infinite number of periodic basis functions characterized by different s. The coefficient or contribution of each is just the Fourier transform . In principle, the collection of all s contains the entire information about the original function such that knowing s allows us to reconstruct .
In physical systems, is often defined within a finite volume V and the Fourier transform should be integrated over the region V:
If such a finite system is of a cubic shape with a linear dimension L, i.e. V = L3, then any periodicity or wavelength is unphysical. This imposes a lower bound, , on the smallest wavevector to be considered. The inverse Fourier transform [equation (48)] thus should not vary continuously as in an integral, but only take discrete values of with increments . The integral then becomes (Chaikin et al., 1995)
Mathematically, for the Fourier transform [equation (46)] to exist, the function needs to be absolutely integrable. If equals some nonzero constants, or without loss of generality, , in order to reconcile the singularity, the result of the Fourier transform is formally written as , or equivalently,
where is the (3D) singular Dirac delta function []. Usually, the Dirac delta function with the property that is introduced as the limiting case of a normalized Gaussian function with its standard deviation approaching zero. According to the above notation, the inverse Fourier transform of the Dirac delta function readily reduces to = 1. For a system of a finite volume V, it is also customary to write
where and is the Kronecker delta function.
APPENDIX B
Direct and reciprocal lattices
The position vector of particles or atoms residing on a
the can be expressed as a linear combination,of the (direct) lattice vectors , which are basis vectors of the x,y,z are not necessarily the projections of r in a Cartesian coordinate system. If particles coincide with lattice points, then x,y,z are integers; if particles are contained inside the their coordinates x,y,z can be fractions (Sands, 1993).
with volume . Generally, may not be orthogonal to each other and thusParticles on regular crystal lattices are situated on different families of parallel crystallographic planes when viewed from different angles. Such parallel planes are denoted by three integers (hkl), the whose reciprocals are proportional to the intercepts of the planes with the three axes of the The spacing or distance, dhkl, between neighboring lattice planes in the family (hkl) is a function of the and lattice parameters [Fig. 17(a)]. In the special case of an orthorhombic lattice,
The
is defined mathematically in a space spanned by the reciprocal-lattice vectors , which are related to the vectors bySince is orthogonal to , is orthogonal to and is orthogonal to ,
Note that, in general, are not orthogonal to each other. Positions of reciprocal-lattice points can be represented by vectors of the form
where h,k,l are integers [Fig. 17(b)].
In crystallography, as the notation here implies, the physical meaning of the ):
is related to lattice planes in the as follows (Chen, 1986(i) Each point with a vector on the (hkl).
represents a family of lattice planes with(ii) The direction of is perpendicular to (or normal to) the lattice planes (hkl).
(iii) The magnitude of is equal to the reciprocal of the dhkl, i.e. .
Footnotes
1The diffraction experiment generally detects both elastic and where the latter results from dynamic processes in the sample. To measure just an energy analyzer should be placed between the sample and detector.
2Throughout the paper, we use σ as the unit of length and as the unit of wavevector. We choose σ to be the particle diameter, which can be mapped onto the length scale of Å for atomic systems, nm for nano-systems and µm for colloidal systems.
Acknowledgements
We thank Corey O'Hern, Alex Grigas, Robert Hoy and Joseph Dietz for testing some of our codes. We also thank Patrick Charbonneau for helpful discussions.
Funding information
This work benefits from Duke Kunshan startup funding and resources made available at the Duke Compute Cluster (DCC).
References
Allen, M. P. & Tildesley, D. J. (1987). Computer Simulation of Liquids. New York: Oxford University Press. Google Scholar
Argos, P. (1977). Am. J. Phys. 45, 31–37. CrossRef Google Scholar
Ashkar, R., Bilheux, H. Z., Bordallo, H., Briber, R., Callaway, D. J. E., Cheng, X., Chu, X.-Q., Curtis, J. E., Dadmun, M., Fenimore, P., Fushman, D., Gabel, F., Gupta, K., Herberle, F., Heinrich, F., Hong, L., Katsaras, J., Kelman, Z., Kharlampieva, E., Kneller, G. R., Kovalevsky, A., Krueger, S., Langan, P., Lieberman, R., Liu, Y., Losche, M., Lyman, E., Mao, Y., Marino, J., Mattos, C., Meilleur, F., Moody, P., Nickels, J. D., O'Dell, W. B., O'Neill, H., Perez-Salas, U., Peters, J., Petridis, L., Sokolov, A. P., Stanley, C., Wagner, N., Weinrich, M., Weiss, K., Wymore, T., Zhang, Y. & Smith, J. C. (2018). Acta Cryst. D74, 1129–1168. CrossRef IUCr Journals Google Scholar
Azaroff, L. V. (1968). Elements of X-ray Crystallography. New York: McGraw-Hill. Google Scholar
Barbour, L. J. (2018). J. Appl. Cryst. 51, 1734–1738. CrossRef CAS IUCr Journals Google Scholar
Barrat, J. & Hansen, J. (2003). Basic Concepts for Simple and Complex Liquids. New York: Cambridge University Press. Google Scholar
Billinge, S. J. L. (2019). IUCr Newslett. 27, https://www.iucr.org/news/newsletter/etc/articles?issue=145052&result_138339_result_page=7. Google Scholar
Bragg, L. (1968). Sci. Am. 219, 58–70. CrossRef CAS PubMed Google Scholar
Chaikin, P. M., Lubensky, T. C. & Witten, T. A. (1995). Principles of Condensed Matter Physics. Cambridge University Press. Google Scholar
Chen, N.-X. (1986). Am. J. Phys. 54, 1000–1002. CrossRef Google Scholar
Chu, B. & Hsiao, B. S. (2001). Chem. Rev. 101, 1727–1762. Web of Science CrossRef PubMed CAS Google Scholar
Cohen, M. (1935). Rev. Sci. Instrum. 6, 68–74. CrossRef Google Scholar
Fink, J., Schierle, E., Weschke, E. & Geck, J. (2013). Rep. Prog. Phys. 76, 056502. Web of Science CrossRef PubMed Google Scholar
Fischer, H. E., Barnes, A. C. & Salmon, P. S. (2006). Rep. Prog. Phys. 69, 233–299. Web of Science CrossRef CAS Google Scholar
Franklin, R. E. & Gosling, R. G. (1953). Nature, 171, 740–741. CrossRef PubMed CAS Web of Science Google Scholar
Gelisio, L. & Scardi, P. (2016). Acta Cryst. A72, 608–620. Web of Science CrossRef IUCr Journals Google Scholar
Goldburg, W. (1999). Am. J. Phys. 67, 1152–1160. CrossRef Google Scholar
Hammond, C. (2001). The Basics of Crystallography and Diffraction. Oxford Science Publications. Google Scholar
Hansen, J. & McDonald, I. R. (2013). Theory of Simple Liquids with Applications to Soft Matter. New York: Academic Press. Google Scholar
Harrison, R. W. (1993). J. Opt. Soc. Am. A, 10, 1046–1055. CrossRef CAS Google Scholar
Hauptman, H. A. (1991). Rep. Prog. Phys. 54, 1427–1454. CrossRef CAS Web of Science Google Scholar
Hayter, J. & Penfold, J. (1983). Colloid Polym. Sci. 261, 1022–1030. CrossRef CAS Google Scholar
Head-Gordon, T. & Hura, G. (2002). Chem. Rev. 102, 2651–2670. Web of Science CrossRef PubMed CAS Google Scholar
Hura, G. L., Menon, A. L., Hammel, M., Rambo, R. P., Poole, F. L. II, Tsutakawa, S. E., Jenney, F. E. Jr, Classen, S., Frankel, K. A., Hopkins, R. C., Yang, S., Scott, J. W., Dillard, B. D., Adams, M. W. W. & Tainer, J. A. (2009). Nat. Methods, 6, 606–612. Web of Science CrossRef PubMed CAS Google Scholar
Janssen, L. (2018). Front. Phys. 6, 97. CrossRef Google Scholar
Keen, D. A. (2001). J. Appl. Cryst. 34, 172–177. Web of Science CrossRef CAS IUCr Journals Google Scholar
Kendrew, J. C. (1961). Sci. Am. 205, 96–110. CrossRef PubMed CAS Google Scholar
Kittel, C. (1968). Am. J. Phys. 36, 610–616. CrossRef CAS Google Scholar
Lee, B., Park, I., Yoon, J., Park, S., Kim, J., Kim, K.-W., Chang, T. & Ree, M. (2005). Macromolecules, 38, 4311–4323. Web of Science CrossRef CAS Google Scholar
Lighthill, M. (1958). An Introduction to Fourier Analysis and Generalized Functions. Cambridge University Press. Google Scholar
Liu, F., Brady, M. A. & Wang, C. (2016). Eur. Polym. J. 81, 555–568. CrossRef CAS Google Scholar
Lucas, A. A. & Lambin, P. (2005). Rep. Prog. Phys. 68, 1181–1249. Web of Science CrossRef CAS Google Scholar
McIntyre, G. J. (2015). J. Phys. D Appl. Phys. 48, 504002. CrossRef Google Scholar
McQuarrie, D. A. & Simon, J. D. (1997). Physical Chemistry: a Molecular Approach. New York: University Science Books. Google Scholar
Mitchell, D. J., Tiddy, G. J., Waring, L., Bostock, T. & McDonald, M. P. (1983). J. Chem. Soc. Faraday Trans. 1, 79, 975–1000. Google Scholar
Mukherjee, S., Herzing, A. A., Zhao, D., Wu, Q., Yu, L., Ade, H., DeLongchamp, D. M. & Richter, L. J. (2017). J. Mater. Res. 32, 1921–1934. Web of Science CrossRef CAS Google Scholar
Powles, J. (1973). Adv. Phys. 22, 1–56. CrossRef CAS Google Scholar
Rahman, A., Singwi, K. & Sjölander, A. (1962). Phys. Rev. 126, 986–996. CrossRef CAS Google Scholar
Richards, R. W. & Thomason, J. (1983). Macromolecules, 16, 982–992. CrossRef CAS Google Scholar
Roe, R.-J. (2000). Methods of X-ray and Neutron Scattering in Polymer Science. New York: Oxford University Press. Google Scholar
Saff, E. B. & Kuijlaars, A. B. (1997). Math. Intelligencer, 19, 5–11. Web of Science CrossRef Google Scholar
Sakurai, S., Okamoto, S., Kawamura, T. & Hashimoto, T. (1991). J. Appl. Cryst. 24, 679–684. CrossRef CAS Web of Science IUCr Journals Google Scholar
Sands, D. E. (1993). Introduction to Crystallography. New York: Dover Publications. Google Scholar
Schneidman-Duhovny, D., Hammel, M. & Sali, A. (2010). Nucleic Acids Res. 38, W540–W544. CAS PubMed Google Scholar
Sette, F. (1998). Science, 280, 1550–1555. Web of Science CrossRef CAS Google Scholar
Taylor, G. (2003). Acta Cryst. D59, 1881–1890. Web of Science CrossRef CAS IUCr Journals Google Scholar
Thomas, C. & Gingrich, N. (1941). Am. J. Phys. 9, 10–13. CrossRef Google Scholar
Thomas, N. W. (2010). Acta Cryst. A66, 64–77. Web of Science CrossRef CAS IUCr Journals Google Scholar
Thompson, J., Braun, G., Tierney, D., Wessels, L., Schmitzer, H., Rossa, B., Wagner, H. & Dultz, W. (2018). Am. J. Phys. 86, 95–104. CrossRef CAS Google Scholar
Tian, Y., Lhermitte, J. R., Bai, L., Vo, T., Xin, H. L., Li, H., Li, R., Fukuto, M., Yager, K. G., Kahn, J. S., Xiong, Y., Minevich, B., Kumar, S. K. & Gang, O. (2020). Nat. Mater. 19, 789–796. CrossRef CAS PubMed Google Scholar
Tutsch, U., Wolf, B., Wessel, S., Postulka, L., Tsui, Y., Jeschke, H., Opahle, I., Saha-Dasgupta, T., Valentí, R., Brühl, A., Remović-Langer, K., Kretz, T., Lerner, H. W., Wagner, M. & Lang, M. (2014). Nat. Commun. 5, 5169. CrossRef PubMed Google Scholar
Xiong, W., Gasparian, A., Gao, H., Dutta, D., Khandaker, M., Liyanage, N., Pasyuk, E., Peng, C., Bai, X., Ye, L., Gnanvo, K., Gu, C., Levillain, M., Yan, X., Higinbotham, D. W., Meziane, M., Ye, Z., Adhikari, K., Aljawrneh, B., Bhatt, H., Bhetuwal, D., Brock, J., Burkert, V., Carlin, C., Deur, A., Di, D., Dunne, J., Ekanayaka, P., El-Fassi, L., Emmich, B., Gan, L., Glamazdin, O., Kabir, M. L., Karki, A., Keith, C., Kowalski, S., Lagerquist, V., Larin, I., Liu, T., Liyanage, A., Maxwell, J., Meekins, D., Nazeer, S. J., Nelyubin, V., Nguyen, H., Pedroni, R., Perdrisat, C., Pierce, J., Punjabi, V., Shabestari, M., Shahinyan, A., Silwal, R., Stepanyan, S., Subedi, A., Tarasov, V. V., Ton, N., Zhang, Y. & Zhao, Z. W. (2019). Nature, 575, 147–150. CrossRef CAS PubMed Google Scholar
© International Union of Crystallography. Prior permission is not required to reproduce short quotations, tables and figures from this article, provided the original authors and source are cited. For more information, click here.