teaching and education\(\def\hfill{\hskip 5em}\def\hfil{\hskip 3em}\def\eqno#1{\hfil {#1}}\)

Journal logoJOURNAL OF
APPLIED
CRYSTALLOGRAPHY
ISSN: 1600-5767

Unifying the concepts of scattering and structure factor in ordered and disordered samples

CROSSMARK_Color_square_no_text.svg

aDivision of Natural and Applied Sciences, Duke Kunshan University, Kunshan, Jiangsu, 215300, People's Republic of China
*Correspondence e-mail: [email protected]

Edited by G. J. McIntyre, Australian Nuclear Science and Technology Organisation, Lucas Heights, Australia (Received 3 July 2020; accepted 19 February 2021; online 31 March 2021)

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 structure factor 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.

1. Introduction

Scattering methods, using a source of photons, electrons, X-rays, neutrons etc., are powerful tools to examine microscopic structural (Powles, 1973[Powles, J. (1973). Adv. Phys. 22, 1-56.]) and dynamical (Goldburg, 1999[Goldburg, W. (1999). Am. J. Phys. 67, 1152-1160.]) properties of matter; they have been successfully applied to study subatomic particles (Xiong et al., 2019[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.]), crystals (Azaroff, 1968[Azaroff, L. V. (1968). Elements of X-ray Crystallography. New York: McGraw-Hill.]), liquids (Head-Gordon & Hura, 2002[Head-Gordon, T. & Hura, G. (2002). Chem. Rev. 102, 2651-2670.]), glasses (Sette et al., 1998[Sette, F. (1998). Science, 280, 1550-1555.]), surfactants (Hayter & Penfold, 1983[Hayter, J. & Penfold, J. (1983). Colloid Polym. Sci. 261, 1022-1030.]), biomolecules (Kendrew, 1961[Kendrew, J. C. (1961). Sci. Am. 205, 96-110.]; Ashkar et al., 2018[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. ]) and polymers (Roe, 2000[Roe, R.-J. (2000). Methods of X-ray and Neutron Scattering in Polymer Science. New York: Oxford University Press.]). 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[Chu, B. & Hsiao, B. S. (2001). Chem. Rev. 101, 1727-1762.]). 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[Fink, J., Schierle, E., Weschke, E. & Geck, J. (2013). Rep. Prog. Phys. 76, 056502.]; Liu et al., 2016[Liu, F., Brady, M. A. & Wang, C. (2016). Eur. Polym. J. 81, 555-568.]). 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[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.]).

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[McIntyre, G. J. (2015). J. Phys. D Appl. Phys. 48, 504002.]). 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[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.]). In both types, the quantitative measurement of the signal is the scattering intensity Mathematical equation, or its normalized version, the structure factor Mathematical equation, which is often expressed as a function of the scattering vector Mathematical equation. There are then two central tasks of structural analysis with scattering methods:

(i) The forward problem Mathematical equation: given the electron-density distribution Mathematical equation or particle positions Mathematical equation, to predict the scattering pattern Mathematical equation.

(ii) The inverse problem Mathematical equation: given the scattering pattern Mathematical equation, to resolve the electron-density distribution Mathematical equation or particle positions Mathematical equation.

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 Mathematical equation iteratively, through a trial-and-error process. That is, one keeps modifying a proposed structure Mathematical equation until the theoretically computed Mathematical equation matches the experimentally observed one. The full solution to the inverse problem is, however, challenged by the notorious `phase problem' (Hauptman, 1991[Hauptman, H. A. (1991). Rep. Prog. Phys. 54, 1427-1454.]).

The concepts of scattering and structure factor are often discussed across different disciplines including condensed-matter physics, materials science, polymer physics, structural biology 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 structure factor, 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.

To fulfill this task, we first elaborate the fundamentals about scattering (Section 2[link]), crystallography (Section 3[link]) and liquid-state theory (Section 4[link]) based on the Fourier transform and reciprocal lattice. Using concrete examples, we then discuss the photography of ordered samples in Sections 5[link] and 6[link] and intensity scanning of isotropic samples in Sections 7[link] and 8[link]. Relevant CPU and GPU source codes are provided online at https://github.com/statisticalmechanics/scatter. Finally, a brief introduction to the 2D structure factor is given in Section 9[link], before the conclusion in Section 10[link].

2. Scattering

2.1. Scattering vector

In a scattering experiment, the incident beam of wavevector Mathematical equation, after hitting the sample, is deflected from its straight path by a scattering angle Mathematical equation and becomes the diffracted beam of wavevector Mathematical equation (Fig. 1[link]). In the case of elastic1 and monochromatic scattering (of a fixed wavelength λ), Mathematical equation. The change of wavevector, called the scattering vector, is

Mathematical equation

with a magnitude

Mathematical equation

Let Mathematical equation and Mathematical equation be the unit vectors of the incident and diffracted beam, respectively; then the scattering vector can also be written as

Mathematical equation

[Figure 1]
Figure 1
Scattering vector Mathematical equation defined as the difference between the diffracted wavevector Mathematical equation and the incident wavevector Mathematical equation, both with magnitude Mathematical equation during elastic scattering.

2.2. Scattering intensity

When a detection screen is placed behind the sample in the path of Mathematical equation, the diffracted beam may be detected. The strength of such signals is quantified by the scattering intensity Mathematical equation of the ray, which changes with Mathematical equation or, equivalently, with Mathematical equation. The scattering pattern, or the distribution of Mathematical equation on the screen, is determined by the structural features of the sample, for instance, the electron-density distribution Mathematical equation 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 Mathematical equation. According to Fermi's golden rule, the scattering intensity Mathematical equation is proportional to the square of the transition probability amplitude from state Mathematical equation to state Mathematical equation, after interacting with the overall scattering potential Mathematical equation. That is,

Mathematical equation

Neglecting the coefficient of proportionality, one can write

Mathematical equation

where

Mathematical equation

is the Fourier transform of the density distribution and Mathematical equation is its complex conjugate (Appendix A[link]).

Unless Mathematical equation has a symmetry center, Mathematical equation is generally a complex number, i.e. Mathematical equation. If Mathematical equation is known exactly, Mathematical equation can in principle be reconstructed through the inverse Fourier transform [equation (48[link])] (Argos, 1977[Argos, P. (1977). Am. J. Phys. 45, 31-37.]). However, in an experiment, only the scattering intensity Mathematical equation × Mathematical equation Mathematical equation is directly measurable. This allows us to compute the magnitude of Mathematical equation by Mathematical equation. Unfortunately, information about the phase angle Mathematical equation is lost during this process, which gives rise to the `phase problem' in crystallography. Special techniques (Hauptman, 1991[Hauptman, H. A. (1991). Rep. Prog. Phys. 54, 1427-1454.]; Harrison, 1993[Harrison, R. W. (1993). J. Opt. Soc. Am. A, 10, 1046-1055.]; Taylor, 2003[Taylor, G. (2003). Acta Cryst. D59, 1881-1890.]) have been developed to determine Mathematical equation, which are beyond the scope of this article.

In a system of N atoms or particles at positions Mathematical equation inside a region of volume V, the density distribution consists of the contributions from each particle i with a scattering potential Mathematical equation (Mathematical equation), i.e.

Mathematical equation

In this case

Mathematical equation

where

Mathematical equation

is the atomic form factor, or scattering factor, of particle i.

If the scattering potential of each particle Mathematical equation is symmetric about Mathematical equation, which should be true for atoms and most particles, Mathematical equation is real and even, i.e. its complex conjugate Mathematical equation (Appendix A[link]). Under this circumstance, the scattering intensity

Mathematical equation

or, equivalently,

Mathematical equation

Equations (9a[link]) and (9b[link]) are mathematically equivalent because Mathematical equation = Mathematical equation = Mathematical equation  + Mathematical equation. However, in numerical computation of Mathematical equation at a given Mathematical equation, equation (9a[link]) has a lower cost with a computational complexity O(N), while equation (9b[link]) is of complexity O(N2). Nevertheless, when there is an appropriate symmetry in the system, the expression Mathematical equation in equation (9b[link]) 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 Mathematical equation changes with the direction and magnitude of the scattering vector Mathematical equation, and thus often drops as the scattering angle θ increases (Fig. 2[link]). If, however, the scattering potential is spherically symmetric, i.e. Mathematical equation, we can write

Mathematical equation

It is useful to consider the three simple spherically symmetric scattering potentials listed below (Fig. 2[link]).

[Figure 2]
Figure 2
Atomic form factor Mathematical equation of a sizeless point [green dotted line, equation (11[link])], a uniform sphere [red solid line, equation (13[link])] and a Gaussian scattering center [blue dashed line, equation (15[link])] as a function of q.

(i) Mathematical equation, 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 atomic scattering factor, because here

Mathematical equation

The electron-density distribution is then Mathematical equation Mathematical equation, which, in the case of ai = 1, becomes the particle density distribution Mathematical equation.

(ii) Mathematical equation is homogeneous and bounded within a sphere of radius Mathematical equation,2

Mathematical equation

and

Mathematical equation

(iii) Mathematical equation is Gaussian-like with standard deviation Mathematical equation,

Mathematical equation

and

Mathematical equation

In all numerical results shown below, we will assume Mathematical equation, 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[McQuarrie, D. A. & Simon, J. D. (1997). Physical Chemistry: a Molecular Approach. New York: University Science Books.]) 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 interplanar spacing dhkl (Appendix B[link]), the scattering angle Mathematical equation needs to obey Bragg's law (Bragg, 1968[Bragg, L. (1968). Sci. Am. 219, 58-70.]) (Fig. 3[link]):

Mathematical equation

This is because the path difference of the two scattering rays `reflected' by two neighboring lattice planes is

Mathematical equation

The rescaled scattering vector Mathematical equation (of length Mathematical equation) is parallel to the normal vector, or reciprocal vector Mathematical equation (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

Mathematical equation

Using equation (3[link]), the necessary condition to receive a strong signal for scattering vector Mathematical equation in crystals is thus

Mathematical equation

[Figure 3]
Figure 3
The scattering paths of two rays diffracted by two layers of ordered particles (black dots) with interplanar distance dhkl and scattering angle Mathematical equation. Mathematical equation and Mathematical equation are unit vectors of the incident and diffracted rays, respectively. When Bragg's law is satisfied, the scattering vector is parallel to the normal vector Mathematical equation of the lattice planes.

3.2. The Ewald construction

Bragg's law needs to be satisfied to have a strong scattering signal in the direction of Mathematical equation. 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[link]), (18[link]) and (19[link]).

An alternative view to check that Bragg's law is satisfied is to use Ewald's sphere in the reciprocal space (Hammond, 2001[Hammond, C. (2001). The Basics of Crystallography and Diffraction. Oxford Science Publications.]; Barbour, 2018[Barbour, L. J. (2018). J. Appl. Cryst. 51, 1734-1738.]). Here, each point at vector Mathematical equation represents a family of parallel planes (hkl) in the direct space. 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 Mathematical equation (in practice Mathematical equation) with the origin O of the reciprocal lattice and then draw a sphere of radius Mathematical equation. The center of the sphere is found by moving from point O by a vector displacement Mathematical equation (Fig. 4[link]). It can be seen that the endpoint of the scattering vector Mathematical equation, normalized by Mathematical equation, falls on the surface of this Ewald sphere. According to the vector form of Bragg's law [equation (19[link])], scattering from certain lattice planes (hkl) is possible only when the corresponding reciprocal-vector point Mathematical equation falls on the surface of the Ewald sphere. 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.

[Figure 4]
Figure 4
The Ewald construction: Ewald's sphere of radius Mathematical equation (solid circle) depicts all possible scattering wavevectors Mathematical equation under the current setup. Lattice planes with Miller indices (hkl) are represented by points on the reciprocal lattice (black dots). For wavelength λ, no reciprocal-lattice point is on Ewald's sphere implying that no scattering signal will be generated at any scattering angle. If the wavelength is appropriately tuned, some reciprocal-lattice points can fall on the new Ewald sphere (dashed circle) to satisfy Bragg's law, for instance, Mathematical equation.

3.3. Crystal structure 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[link], 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 Mathematical equation is periodic in crystals, one only needs to consider the particle distribution within one unit cell. If each unit cell has a volume Mathematical equation and m atoms, then

Mathematical equation

where N/m is the number of unit cells in the N-particle system. In crystallography, it is customary to define Mathematical equation per unit cell as the structure factor,

Mathematical equation

For crystals, only Mathematical equations satisfying Bragg's law [equation (19[link])] can possibly generate a large Mathematical equation or Mathematical equation. Therefore, we only need to consider Mathematical equations of the form Mathematical equation, where Mathematical equation represents a family of lattice planes (hkl) of spacing Mathematical equation (Appendix B[link]). The associated structure factor can thus be denoted as Fhkl:

Mathematical equation

Inversely, the density distribution within each unit cell is

Mathematical equation

For point-like scattering centers, Mathematical equation and equation (22[link]) reduces to

Mathematical equation

after substituting equation (11[link]) and following the steps in equation (7[link]), where (xi,yi,zi) are the coordinates of the m atoms inside one unit cell and are expressed as fractions of lattice vectors. The strength of Fhkl by planes (hkl) is the vector sum of each term Mathematical equation in equation (24[link]), 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):

Mathematical equation

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):

Mathematical equation

(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):

Mathematical equation

The Fhkl of b.c.c. and f.c.c. lattices completely vanishes for certain h,k,l. The resulting reflection Miller indices 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 Mathematical equation 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 Mathematical equation accumulates and, at large enough spacing, becomes Mathematical equation 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 Mathematical equation. 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 Mathematical equation is much less than Mathematical equation such that Bragg's law is still approximately satisfied at Mathematical equation and the diffraction signal is broadened by an amount ∼δθ. The quantitative relationship between the broadening Mathematical equation 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 Mathematical equation, the path difference for such a pair of planes increases by Mathematical equation (Fig. 5[link]). The diffraction signal broadens until destructive interference occurs at Mathematical equation, which gives the Scherrer equation:

Mathematical equation

Thus diffraction signals tend to be larger in smaller systems.

[Figure 5]
Figure 5
Illustration of the Scherrer equation. In a finite-size crystal of thickness L, the path difference between two rays reflected by a pair of planes that are L/2 apart sets the limit of the signal broadening Mathematical equation.

4. Liquid-state theory

According to liquid-state theory, a static structure factor Mathematical equation can be used to address short-range order (Thomas & Gingrich, 1941[Thomas, C. & Gingrich, N. (1941). Am. J. Phys. 9, 10-13.]; Rahman et al., 1962[Rahman, A., Singwi, K. & Sjölander, A. (1962). Phys. Rev. 126, 986-996.]) and the glass transition (Janssen, 2018[Janssen, L. (2018). Front. Phys. 6, 97.]) in amorphous/liquid samples (Fischer et al., 2006[Fischer, H. E., Barnes, A. C. & Salmon, P. S. (2006). Rep. Prog. Phys. 69, 233-299.]) and more generally in nano-structured or other structurally disordered systems (Billinge, 2019[Billinge, S. J. L. (2019). IUCr Newslett. 27, https://www.iucr.org/news/newsletter/etc/articles?issue=145052&result_138339_result_page=7.]). In an N-particle system, it is defined as

Mathematical equation

where the ensemble average Mathematical equation is usually taken over configurations at thermal equilibrium (Hansen & McDonald, 2013[Hansen, J. & McDonald, I. R. (2013). Theory of Simple Liquids with Applications to Soft Matter. New York: Academic Press.]). 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. Mathematical equation Mathematical equation, then Mathematical equation and

Mathematical equation

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 Mathematical equation or the pair correlation function Mathematical equation by

Mathematical equation

where the global number density Mathematical equation and the Fourier transform Mathematical equation. Note that Mathematical equation is singular or discontinuous at Mathematical equation, i.e. Mathematical equation. Correspondingly, Mathematical equation.

The radial distribution function can be obtained from the structure factor by the inverse Fourier transform:

Mathematical equation

where the value Mathematical equation should be used at Mathematical equation in the integration. When the system's structure is isotropic over the sample volume, i.e. Mathematical equation, more convenient relationships can be derived (Keen, 2001[Keen, D. A. (2001). J. Appl. Cryst. 34, 172-177.]):

Mathematical equation

Mathematical equation

where Mathematical equation 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[Barrat, J. & Hansen, J. (2003). Basic Concepts for Simple and Complex Liquids. New York: Cambridge University Press.])

Mathematical equation

5. Experimental setups in photography

In this section, we discuss some technical details about photography methods, which collect signals of Mathematical equation on a 2D film with coordinates (X,Y). Three popular experimental setups are often used as described below, which map Mathematical equation 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[link]. In both methods, it can be seen that the ratio qx/qy equals X/Y. If the incident wavenumber is Mathematical equation, then

Mathematical equation

where L2 = R2 + D2 and R2 = X2 + Y2. The difference lies in the z component  qz.

[Figure 6]
Figure 6
Illustration of (a) back-reflection and (b) transmission methods. The scattering vector Mathematical equation resulting from crystallographic planes (hkl) maps onto 2D coordinates (X,Y) on the film, which is placed at a distance D from the sample. The incident beam is along the z axis.

In the back-reflection method, because Mathematical equation satisfies Mathematical equation, it follows that

Mathematical equation

Therefore,

Mathematical equation

In contrast, in the transmission method,

Mathematical equation

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[link]). 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.

[Figure 7]
Figure 7
Illustration of the cylindrical method from (a) the side view and (b) the top view. A cylindrical film is placed at a radius D around the sample.

To map Mathematical equation onto the film, one can unfold the cylinder into a plane with coordinates Mathematical equation with the azimuthal angle Mathematical equation. The relationship is

Mathematical equation

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 Mathematical equation, 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 Mathematical equation, which can be formally written as

Mathematical equation

This type of general equation, which computes scattering intensity from all atoms in the sample, reduces to a simple summation over atoms in the unit cell for ideal crystals, as explained in Section 3.3[link].

We demonstrate the photography results using perfect SC, b.c.c. and f.c.c. samples (Fig. 8[link]). The incident beam is along the [001] direction and the nearest-neighbor distance σ is set as the unit of length. The code to compute Mathematical equation numerically implementing equation (40[link]) 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 Mathematical equation for numerical convenience. If the total number of pixels on the film is NXY and the number of wavelengths scanned is Mathematical equation, then the computational complexity using equation (40[link]) is Mathematical equation.

[Figure 8]
Figure 8
Back-reflection (left column) and transmission (right column) photography of SC (a), (b) ( N = 3375), b.c.c. (c), (d) ( N = 4394) and f.c.c. (e), (f) ( N = 5324) crystals. The range of wavelength λ is 0.35–1.0σ for SC back-reflection, 0.199–0.35σ for SC transmission, 0.4–1.2σ for b.c.c. back-reflection, 0.23–0.4σ for b.c.c. transmission, 0.5–1.42σ for f.c.c. back-reflection and 0.23–0.49σ for f.c.c. transmission. The (X,Y) coordinate range Mathematical equation is now set by the grid resolution of the computer code, which can be mapped onto the real length unit on a physical film.

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[link]). 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 Mathematical equation for given crystallographic planes. A full circle of Mathematical equation rotation is only necessary for noncentrosymmetric crystals containing elements that exhibit anomalous dispersion; a rotation of Mathematical equation is sufficient for centrosymmetric crystals.

[Figure 9]
Figure 9
Rotation photography of SC (a) ( N = 3375 and Mathematical equation), b.c.c. (b) ( N = 4394 and Mathematical equation) and f.c.c. (c) ( N = 5324 and Mathematical equation) crystals.

The scattering intensity at coordinates (X,Y) is then

Mathematical equation

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 Mathematical equation on the cylinder is then unfolded onto a rectangle. If a total number Mathematical equation of rotation angles within Mathematical equation are scanned, the computational complexity to implement equation (41[link]) to produce results on NXY pixels is then Mathematical equation.

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 Mathematical equation 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 Mathematical equation, which correspond to the (113) planes and equivalents (Fig. 10[link]). 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 Mathematical equation roughly satisfies the Scherrer equation Mathematical 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 Mathematical equation.

[Figure 10]
Figure 10
System size effect on scattering size in back-reflection of SC samples with fixed wavelength Mathematical equation. The scattering angle Mathematical equation for these four spots can be computed from Mathematical equation. After L is scaled by a factor of 2 1/2, the data (red squares) agree with the theoretical slope (dashed line) from the Scherrer equation Mathematical equation.

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[Franklin, R. E. & Gosling, R. G. (1953). Nature, 171, 740-741.]). 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[Kittel, C. (1968). Am. J. Phys. 36, 610-616.]; Thompson et al., 2018[Thompson, J., Braun, G., Tierney, D., Wessels, L., Schmitzer, H., Rossa, B., Wagner, H. & Dultz, W. (2018). Am. J. Phys. 86, 95-104.]). 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, Mathematical equation for pitch and Mathematical equation for helix diameter, are used (Fig. 11[link]). The unit of length σ can be mapped onto the real length unit Å.

[Figure 11]
Figure 11
Transmission photography of single-strand (a), (c) and double-strand (b), (d) 2D sinusoidal waves (a), (b) and 3D DNA helices (c), (d) using Mathematical equation. Each helix is made of a backbone of N = 70 particles with a pitch of Mathematical equation and a diameter of Mathematical equation. There are 10 particles per pitch. The two helices in the double-strand structure are offset by 3/8 pitch. The particle size in the insets is set as Mathematical equation to enhance visibility.

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[link]). 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[link](a)]. Because each pitch of the helix has ten particles, the pattern has a vertical period of ten stripes (Kittel, 1968[Kittel, C. (1968). Am. J. Phys. 36, 610-616.]). The brightness and darkness along each horizontal stripe depend sensitively on the relative position between different particles (Lucas & Lambin, 2005[Lucas, A. A. & Lambin, P. (2005). Rep. Prog. Phys. 68, 1181-1249.]). 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 Mathematical equation in the case of disordered or partially ordered samples that are spatially isotropic or approximately isotropic. When samples are isotropic, the scattering intensity Mathematical equation or its normalized version, the structure factor Mathematical equation, only depends on the magnitude 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.

7.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 Mathematical equation 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 Mathematical equation, 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 Mathematical equation computed from equation (9a[link]), assuming Mathematical equation, is

Mathematical equation

where Mathematical equation is the position vector of particle i in grain n. If M is large and the crystalline grains are uniformly oriented in all directions, Mathematical equation at the particular vector Mathematical equation can be accurate enough to represent I(q) at the magnitude q, without averaging over all directions of Mathematical equation. A similar argument applies to bulk liquids or glasses, in which Mathematical equation is also well self-averaged.

7.2. Random rotation of a small anisotropic sample

The above method of using a scattering vector Mathematical equation 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 Mathematical equation, whose rotation axis is uniformally distributed on a sphere and rotation angle is uniformally chosen from Mathematical equation. Then the signal Mathematical equation in equation (42[link]) can be approximated by accumulating intensities from all those orientations Ω:

Mathematical equation

Here, Mathematical equation represents the new coordinates of particle i after rotation to orientation Ω.

Note that the sum Mathematical equation is applied to the intensity rather than within the square like Mathematical equation. 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[link]) and (9b[link]), equation (43[link]) is an approximation to equation (42[link]) by only considering relative positions of particles within each grain Mathematical equation. Therefore, the difference between the coordinates of particles i and j at two different orientations, Mathematical equation, does not affect the result of equation (43[link]), but will lead to different and wrong results if the sum is taken as Mathematical equation.

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 Mathematical equation of a given q from all directions. It is often suggested to select Mathematical equation from a 3D orthorhombic lattice, Mathematical equation, with integers nx,ny,nz and increment Mathematical equation, where L is the linear dimension of the cubic simulation box (Allen & Tildesley, 1987[Allen, M. P. & Tildesley, D. J. (1987). Computer Simulation of Liquids. New York: Oxford University Press.]). 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 Mathematical equations, or to start from zero to sample only Mathematical equations 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 Mathematical equations on this lattice that correspond to the same magnitude q, from which we can compute an average S(q). The number of Mathematical equations for a given magnitude q tends to, but does not necessarily, increase with q. For example, in a 2D system with Mathematical equations on a square lattice, there are 1, 2, 1, 2, 2, 1, 2,… Mathematical equation points on the lattice at magnitude Mathematical equation Mathematical equation, respectively (Fig. 12[link]). 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 Mathematical equations at that q.

[Figure 12]
Figure 12
Scattering vector Mathematical equation on a square lattice used for a 2D system of box size L. Mathematical equation points at the same magnitude q are connected by concentric quarter circles up to Mathematical equation. If the system is a crystal of lattice constant a = L/5, then four points shown in red correspond to reciprocal-lattice points.

If the sample is crystalline and L is an integer multiple of the crystallographic lattice constant a, then the Mathematical equation lattice contains the reciprocal-lattice points of the crystal (subject to a Mathematical equation factor difference) (Allen & Tildesley, 1987[Allen, M. P. & Tildesley, D. J. (1987). Computer Simulation of Liquids. New York: Oxford University Press.]). If L = 5a in the above 2D example, then Mathematical equation points Mathematical equation, Mathematical equation, Mathematical equation, Mathematical equation correspond to reciprocal-lattice points (0,0), (1/a,0), (0,1/a), (1/a,1/a), respectively (Fig. 12[link]). These lattice points are where Bragg's law [equation (19[link])] is obeyed. Therefore, according to the discussion in Section 3.3[link], if all atomic form factors are unity, Mathematical equation and S(q) = N at each of these reciprocal-lattice points. The intensity scanning result S(q) needs to be an average over all Mathematical equation points at that q, some of which are not reciprocal-lattice points and thus have S(q) = 0. For example, at Mathematical equation of the 2D system, two points have S(q) = N and two have S(q) = 0. The average Mathematical equation is thus (N + N + 0 + 0)/4 = N/2 (Fig. 12[link]).

Using lattice points to approximate Mathematical equations from all directions is problematic when L is small and thus the increment Mathematical equation is large, such that only a few Mathematical equations 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 Mathematical equation 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 Mathematical equations. To guarantee a uniform distribution of points on a sphere, we apply the Fibonacci grid approach to randomly choose Nq scattering vectors Mathematical equation from a sphere of radius q (Saff & Kuijlaars, 1997[Saff, E. B. & Kuijlaars, A. B. (1997). Math. Intelligencer, 19, 5-11.]). 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 Mathematical equation, using equation (9b[link]), we can integrate over all Mathematical equation directions and then normalize by the full solid angle of Mathematical equation to compute the average I(q):

Mathematical equation

This is known as Debye's scattering equation (Thomas, 2010[Thomas, N. W. (2010). Acta Cryst. A66, 64-77.]; Gelisio & Scardi, 2016[Gelisio, L. & Scardi, P. (2016). Acta Cryst. A72, 608-620.]), which can also be viewed as the discrete version of the Fourier transform of the radial distribution function g(r) in equation (33a[link]). The computational complexity of Debye's method is O(N2) and it becomes more efficient than numerically sampling Nq Mathematical equation vectors on a sphere when Mathematical equation.

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[Cohen, M. (1935). Rev. Sci. Instrum. 6, 68-74.]).

To generate scattering photography of isotropic samples, we use the rotation or thermal averaging method of Section 7.2[link]. Intensity scanning profiles are calculated using the three methods mentioned in Sections 7.3[link] and 7.4[link].

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 Mathematical equation 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 Mathematical equation. 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[link](a)]. To enhance the sharpness of the ring, one can either increase the size N of the sample or take the ensemble average of Mathematical equation over many configurations [Fig. 13[link](c)].

[Figure 13]
Figure 13
Simulated transmission photography using fixed wavelength Mathematical equation (a), (c) and structure factor S(q) (b), (d) of a static glass sample (a), (b) and a thermally averaged liquid sample (c), (d). Red solid rings in the photographs correspond to the first and second peaks in S(q). The cross pattern at the center of each photograph is due to Fraunhofer diffraction from the small simulation box, effectively a cubic obstacle. Three methods are used to compute S(q): with Mathematical equations on a cubic lattice (green circles), with Mathematical equations on spheres (blue dotted line) and Debye's scattering equation (red solid line). Insets show the radial distribution function g(r). Both samples are N = 1000 hard spheres of diameter σ. The glass sample has one configuration at packing fraction 0.64. The liquid sample has 1000 thermally equilibrated configurations at packing fraction Mathematical equation.

For homogeneous liquids and glasses, the static structure factor Mathematical equation varies only with the magnitude q of the scattering vector and exhibits a major peak at Mathematical equation. Using Mathematical equations on a sphere numerically or Debye's equation can generate well averaged smooth S(q) curves for liquids or glasses [Figs. 13[link](b) and 13[link](d)]. If only one disordered configuration is analyzed, the S(q) curve is much noisier using Mathematical equations on a cubic lattice [Fig. 13[link](b)].

8.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 Mathematical equation 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[link]).

[Figure 14]
Figure 14
Simulated powder method. Transmission photography using fixed wavelength Mathematical equation (a), (c), (d) and structure factor S(q) (b), (d), (f) of polycrystalline SC (a), (b), b.c.c. (c), (d) and f.c.c. (e), (f) samples. Miller indices (hkl) are labeled next to each signal peak. The photograph is produced by randomly rotating a single-crystalline sample in three dimensions and taking the average of Mathematical equation over 5000 orientations. The small concentric circular pattern at the center of each photograph is due to Fraunhofer diffraction from the small simulation box, effectively a circular obstacle, after random rotatation. Three methods are used to compute S(q): with Mathematical equations on a cubic lattice (green vertical lines), with Mathematical equations on spheres (blue dotted line) and Debye's scattering equation (red solid line).

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 Mathematical equations are lower and broader than those from cubic lattice Mathematical equations. The peak height using cubic lattice Mathematical equations often scales with system size N. For example, the SC crystal has Mathematical equation and N = L3 = 3375 particles. Given Mathematical equation, the S(q) peak from (100) planes is expected to occur at six Mathematical equation points, Mathematical equation, Mathematical equation, Mathematical equation, Mathematical equation, Mathematical equation and Mathematical equation, each having a value S(q) = 3375. However, there are other Mathematical equation points with magnitude Mathematical equation, 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 Mathematical equation), 24 (12,9,0)-like, 24 (10,10,5)-like, 48 (11,10,2)-like and 48 (14,5,2)-like Mathematical equation points. Out of these 150 points, only six have S(q) = N while the others have S(q) = 0. So the peak height Mathematical equation 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[Sakurai, S., Okamoto, S., Kawamura, T. & Hashimoto, T. (1991). J. Appl. Cryst. 24, 679-684.]), liquid crystals (Mitchell et al., 1983[Mitchell, D. J., Tiddy, G. J., Waring, L., Bostock, T. & McDonald, M. P. (1983). J. Chem. Soc. Faraday Trans. 1, 79, 975-1000. ]), structural DNAs (Tian et al., 2020[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. ]) 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[Chu, B. & Hsiao, B. S. (2001). Chem. Rev. 101, 1727-1762.]) or small-angle neutron scattering (Richards & Thomason, 1983[Richards, R. W. & Thomason, J. (1983). Macromolecules, 16, 982-992.]) methods are needed because scattering signals are expected at small q (before the first major diffraction peak ∼Mathematical equation) and thus small θ as seen from equation (2[link]). A logarithmic scale axis is often set for S(q) in the structure-factor plot because at Mathematical equation the signal scales with system size N (Schneidman-Duhovny et al., 2010[Schneidman-Duhovny, D., Hammel, M. & Sali, A. (2010). Nucleic Acids Res. 38, W540-W544. ]).

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 mesophase structure factor 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 superlattice for the lamellar, cylindrical or spherical configuration, respectively.

In the lamellar phase, each period is of length Mathematical equation, consisting of a layer with thickness Mathematical equation and a gap with thickness Mathematical equation. We find three peaks of S(q) at one, two and three times Mathematical equation, corresponding to the first, second and third order of Bragg diffraction of the superlattice [Fig. 15[link](a)]. The peak height drops as q increases, and when the layer thickness equals the gap thickness, peaks at even multiples of Mathematical equation disappear.

[Figure 15]
Figure 15
Simulated small-angle structure factor S(q) for (a) lamellar, (b) cylindrical and (c) b.c.c. spherical mesophases. Three methods are used to compute S(q): with Mathematical equations on a cubic lattice (green vertical lines), with Mathematical equations on spheres (blue dotted line) and Debye's scattering equation (red solid line). The Debye result for S(q) of a homogeneous glass, after being vertically rescaled to align at Mathematical equation, is shown for comparison (black dashed line). Black downward-pointing arrows mark signature peaks for each structure. The broad peak at Mathematical equation corresponds to particle size σ. Insets show top/side views of the configurations under consideration. The blue solid line in (c) is the Debye result for S(q) of a b.c.c. sphere mesophase with one particle per domain, obtained by rescaling the curve of a b.c.c. crystal.

The cylindrical phase with a disc radius Mathematical equation resides on a 2D triangular superlattice with lattice constant Mathematical equation. By assigning unit cells in two different ways with interplanar spacing Mathematical equation and Mathematical equation, we can identify two peaks at Mathematical equation and Mathematical equation [Fig. 15[link](b)]. The second-order peak around Mathematical equation is also visible (not marked).

The spherical phase has spheres of radius Mathematical equation that pack on a b.c.c. superlattice with a lattice constant Mathematical equation. If each sphere domain had only one particle, the structure factor would be the same as for a normal b.c.c. crystal apart from a change of unit for 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 Mathematical equation, by a factor of Mathematical equation. This moves the (110) peak from Mathematical equation to Mathematical equation [Fig. 15[link](c)]. This helps us to identify that only the peak from the (110) planes of the b.c.c. superlattice is sharply distinguishable from the background signals.

9. 2D structure factor

For 2D samples or a 2D projection of 3D samples, it is sometimes useful to express Mathematical equation as a 2D function of (qx,qy) (Tutsch et al., 2014[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.]) or scattering angles Mathematical equation (Lee et al., 2005[Lee, B., Park, I., Yoon, J., Park, S., Kim, J., Kim, K.-W., Chang, T. & Ree, M. (2005). Macromolecules, 38, 4311-4323.]). The 2D structure factor 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[link]). 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[link])],

Mathematical equation

Note that knowing (qx,qy) does not uniquely determine qz. The constant Mathematical equation still needs to be specified. For small-angle scattering with Mathematical equation, 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 mesophase in Fig. 15[link](b). The cylinder axis is aligned with the incident ray in the z direction. We first use qz calculated from equation (45[link]) with Mathematical equation. 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 unit cell with spacing d1 and the other corresponds to the unit cell with spacing d2 [Fig. 16[link](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.

[Figure 16]
Figure 16
2D structure factor S(qx,qy) of the cylindrical mesophase using Mathematical equation with (a) Mathematical equation and (b) qz = 0. The red solid ring marks the broad peak corresponding to particle diameter σ at ∼Mathematical equation. The red arrow points to the second-order peak from the unit cell with spacing d1. The green arrow points to the first-order peak from the unit cell with spacing d2.

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[link](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 Mathematical equation of a function Mathematical equation defined continuously in 3D real space of infinite volume is

Mathematical equation

where Mathematical equation is a wavevector used to extract the spatial periodicity of Mathematical equation (Lighthill, 1958[Lighthill, M. (1958). An Introduction to Fourier Analysis and Generalized Functions. Cambridge University Press.]). For instance, if Mathematical equation has a periodic pattern of wavelength λ along the x axis, i.e. Mathematical equation, then the value of Mathematical equation is large for a Mathematical equation of magnitude Mathematical equation pointing in the x direction, i.e. Mathematical equation. Physically, if Mathematical equation is viewed as a plane wave traveling in the Mathematical equation direction, then Mathematical equation would exhibit a peak value when Mathematical equation has wavelike properties coherent with Mathematical equation such that they add constructively in the integral. In this sense, the Fourier transform [equation (46[link])] quantifies the existence and the extent of periodicity corresponding to Mathematical equation in Mathematical equation.

In general, even if Mathematical equation is a real function, Mathematical equation can be complex. However, if Mathematical equation is real [Mathematical equation] and even [Mathematical equation, i.e. with a symmetry center], its Fourier transform Mathematical equation is also real and even, because the conjugate of Mathematical equation is

Mathematical equation

Here the integration limits for the vector variable Mathematical equation, formally denoted as Mathematical equation, are to be understood as for each of its components.

The inverse Fourier transform of Mathematical equation is an integral in the wavevector space which gives the original real-space function:

Mathematical equation

This expands Mathematical equation in terms of an infinite number of periodic basis functions Mathematical equation characterized by different Mathematical equations. The coefficient or contribution of each Mathematical equation is just the Fourier transform Mathematical equation. In principle, the collection of all Mathematical equations contains the entire information about the original function Mathematical equation such that knowing Mathematical equations allows us to reconstruct Mathematical equation.

In physical systems, Mathematical equation is often defined within a finite volume V and the Fourier transform should be integrated over the region V:

Mathematical equation

If such a finite system is of a cubic shape with a linear dimension L, i.e. V = L3, then any periodicity or wavelength Mathematical equation is unphysical. This imposes a lower bound, Mathematical equation, on the smallest wavevector to be considered. The inverse Fourier transform [equation (48[link])] thus should not vary Mathematical equation continuously as in an integral, but only take discrete values of Mathematical equation with increments Mathematical equation. The integral then becomes (Chaikin et al., 1995[Chaikin, P. M., Lubensky, T. C. & Witten, T. A. (1995). Principles of Condensed Matter Physics. Cambridge University Press.])

Mathematical equation

Mathematically, for the Fourier transform [equation (46[link])] to exist, the function Mathematical equation needs to be absolutely integrable. If Mathematical equation equals some nonzero constants, or without loss of generality, Mathematical equation, in order to reconcile the singularity, the result of the Fourier transform is formally written as Mathematical equation, or equivalently,

Mathematical equation

where Mathematical equation is the (3D) singular Dirac delta function [Mathematical equation]. Usually, the Dirac delta function with the property that Mathematical equation 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 Mathematical equation Mathematical equation Mathematical equation = 1. For a system of a finite volume V, it is also customary to write

Mathematical equation

where Mathematical equation and Mathematical equation is the Kronecker delta function.

APPENDIX B

Direct and reciprocal lattices

The position vector Mathematical equation of particles or atoms residing on a crystal lattice, the direct lattice, can be expressed as a linear combination,

Mathematical equation

of the (direct) lattice vectors Mathematical equation, which are basis vectors of the unit cell with volume Mathematical equation. Generally, Mathematical equation may not be orthogonal to each other and thus 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 unit cell, their coordinates x,y,z can be fractions (Sands, 1993[Sands, D. E. (1993). Introduction to Crystallography. New York: Dover Publications.]).

Particles 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 Miller indices, whose reciprocals are proportional to the intercepts of the planes with the three axes of the direct lattice. The spacing or distance, dhkl, between neighboring lattice planes in the family (hkl) is a function of the Miller indices and lattice parameters [Fig. 17[link](a)]. In the special case of an orthorhombic lattice,

Mathematical equation

The reciprocal lattice is defined mathematically in a space spanned by the reciprocal-lattice vectors Mathematical equation, which are related to the direct lattice vectors by

Mathematical equation

Mathematical equation

Mathematical equation

Since Mathematical equation is orthogonal to Mathematical equation, Mathematical equation is orthogonal to Mathematical equation and Mathematical equation is orthogonal to Mathematical equation,

Mathematical equation

Note that, in general, Mathematical equation are not orthogonal to each other. Positions of reciprocal-lattice points can be represented by vectors of the form

Mathematical equation

where h,k,l are integers [Fig. 17[link](b)].

[Figure 17]
Figure 17
(a) Direct and (b) reciprocal lattices. The (120) planes (dashed lines) with interplanar distance d120 in direct space correspond to the point denoted by the vector Mathematical equation in reciprocal space. Mathematical equation is normal to the (120) planes and Mathematical equation.

In crystallography, as the notation here implies, the physical meaning of the reciprocal lattice is related to lattice planes in the direct space as follows (Chen, 1986[Chen, N.-X. (1986). Am. J. Phys. 54, 1000-1002.]):

(i) Each point with a vector Mathematical equation on the reciprocal lattice represents a family of lattice planes with Miller indices (hkl).

(ii) The direction of Mathematical equation is perpendicular to (or normal to) the lattice planes (hkl).

(iii) The magnitude of Mathematical equation is equal to the reciprocal of the interplanar spacing dhkl, i.e. Mathematical equation.

Footnotes

1The diffraction experiment generally detects both elastic and inelastic scattering, where the latter results from dynamic processes in the sample. To measure just elastic scattering, an energy analyzer should be placed between the sample and detector.

2Throughout the paper, we use σ as the unit of length and Mathematical equation 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

First citationAllen, M. P. & Tildesley, D. J. (1987). Computer Simulation of Liquids. New York: Oxford University Press.  Google Scholar
First citationArgos, P. (1977). Am. J. Phys. 45, 31–37.  CrossRef Google Scholar
First citationAshkar, 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
First citationAzaroff, L. V. (1968). Elements of X-ray Crystallography. New York: McGraw-Hill.  Google Scholar
First citationBarbour, L. J. (2018). J. Appl. Cryst. 51, 1734–1738.  CrossRef CAS IUCr Journals Google Scholar
First citationBarrat, J. & Hansen, J. (2003). Basic Concepts for Simple and Complex Liquids. New York: Cambridge University Press.  Google Scholar
First citationBillinge, S. J. L. (2019). IUCr Newslett. 27, https://www.iucr.org/news/newsletter/etc/articles?issue=145052&result_138339_result_page=7Google Scholar
First citationBragg, L. (1968). Sci. Am. 219, 58–70.  CrossRef CAS PubMed Google Scholar
First citationChaikin, P. M., Lubensky, T. C. & Witten, T. A. (1995). Principles of Condensed Matter Physics. Cambridge University Press.  Google Scholar
First citationChen, N.-X. (1986). Am. J. Phys. 54, 1000–1002.  CrossRef Google Scholar
First citationChu, B. & Hsiao, B. S. (2001). Chem. Rev. 101, 1727–1762.  Web of Science CrossRef PubMed CAS Google Scholar
First citationCohen, M. (1935). Rev. Sci. Instrum. 6, 68–74.  CrossRef Google Scholar
First citationFink, J., Schierle, E., Weschke, E. & Geck, J. (2013). Rep. Prog. Phys. 76, 056502.  Web of Science CrossRef PubMed Google Scholar
First citationFischer, H. E., Barnes, A. C. & Salmon, P. S. (2006). Rep. Prog. Phys. 69, 233–299.  Web of Science CrossRef CAS Google Scholar
First citationFranklin, R. E. & Gosling, R. G. (1953). Nature, 171, 740–741.  CrossRef PubMed CAS Web of Science Google Scholar
First citationGelisio, L. & Scardi, P. (2016). Acta Cryst. A72, 608–620.  Web of Science CrossRef IUCr Journals Google Scholar
First citationGoldburg, W. (1999). Am. J. Phys. 67, 1152–1160.  CrossRef Google Scholar
First citationHammond, C. (2001). The Basics of Crystallography and Diffraction. Oxford Science Publications.  Google Scholar
First citationHansen, J. & McDonald, I. R. (2013). Theory of Simple Liquids with Applications to Soft Matter. New York: Academic Press.  Google Scholar
First citationHarrison, R. W. (1993). J. Opt. Soc. Am. A, 10, 1046–1055.  CrossRef CAS Google Scholar
First citationHauptman, H. A. (1991). Rep. Prog. Phys. 54, 1427–1454.  CrossRef CAS Web of Science Google Scholar
First citationHayter, J. & Penfold, J. (1983). Colloid Polym. Sci. 261, 1022–1030.  CrossRef CAS Google Scholar
First citationHead-Gordon, T. & Hura, G. (2002). Chem. Rev. 102, 2651–2670.  Web of Science CrossRef PubMed CAS Google Scholar
First citationHura, 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
First citationJanssen, L. (2018). Front. Phys. 6, 97.  CrossRef Google Scholar
First citationKeen, D. A. (2001). J. Appl. Cryst. 34, 172–177.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationKendrew, J. C. (1961). Sci. Am. 205, 96–110.  CrossRef PubMed CAS Google Scholar
First citationKittel, C. (1968). Am. J. Phys. 36, 610–616.  CrossRef CAS Google Scholar
First citationLee, 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
First citationLighthill, M. (1958). An Introduction to Fourier Analysis and Generalized Functions. Cambridge University Press.  Google Scholar
First citationLiu, F., Brady, M. A. & Wang, C. (2016). Eur. Polym. J. 81, 555–568.  CrossRef CAS Google Scholar
First citationLucas, A. A. & Lambin, P. (2005). Rep. Prog. Phys. 68, 1181–1249.  Web of Science CrossRef CAS Google Scholar
First citationMcIntyre, G. J. (2015). J. Phys. D Appl. Phys. 48, 504002.  CrossRef Google Scholar
First citationMcQuarrie, D. A. & Simon, J. D. (1997). Physical Chemistry: a Molecular Approach. New York: University Science Books.  Google Scholar
First citationMitchell, D. J., Tiddy, G. J., Waring, L., Bostock, T. & McDonald, M. P. (1983). J. Chem. Soc. Faraday Trans. 1, 79, 975–1000.   Google Scholar
First citationMukherjee, 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
First citationPowles, J. (1973). Adv. Phys. 22, 1–56.  CrossRef CAS Google Scholar
First citationRahman, A., Singwi, K. & Sjölander, A. (1962). Phys. Rev. 126, 986–996.  CrossRef CAS Google Scholar
First citationRichards, R. W. & Thomason, J. (1983). Macromolecules, 16, 982–992.  CrossRef CAS Google Scholar
First citationRoe, R.-J. (2000). Methods of X-ray and Neutron Scattering in Polymer Science. New York: Oxford University Press.  Google Scholar
First citationSaff, E. B. & Kuijlaars, A. B. (1997). Math. Intelligencer, 19, 5–11.  Web of Science CrossRef Google Scholar
First citationSakurai, S., Okamoto, S., Kawamura, T. & Hashimoto, T. (1991). J. Appl. Cryst. 24, 679–684.  CrossRef CAS Web of Science IUCr Journals Google Scholar
First citationSands, D. E. (1993). Introduction to Crystallography. New York: Dover Publications.  Google Scholar
First citationSchneidman-Duhovny, D., Hammel, M. & Sali, A. (2010). Nucleic Acids Res. 38, W540–W544.   CAS PubMed Google Scholar
First citationSette, F. (1998). Science, 280, 1550–1555.  Web of Science CrossRef CAS Google Scholar
First citationTaylor, G. (2003). Acta Cryst. D59, 1881–1890.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationThomas, C. & Gingrich, N. (1941). Am. J. Phys. 9, 10–13.  CrossRef Google Scholar
First citationThomas, N. W. (2010). Acta Cryst. A66, 64–77.  Web of Science CrossRef CAS IUCr Journals Google Scholar
First citationThompson, 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
First citationTian, 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
First citationTutsch, 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
First citationXiong, 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.

Journal logoJOURNAL OF
APPLIED
CRYSTALLOGRAPHY
ISSN: 1600-5767
Follow J. Appl. Cryst.
Sign up for e-alerts
Follow J. Appl. Cryst. on Twitter
Follow us on facebook
Sign up for RSS feeds