Materials Project Documentation
Return to materialsproject.org
  • Introduction
  • Frequently Asked Questions (FAQ)
    • Glossary of Terms
  • Changes and Updates
    • Database Versions
    • Website Changelog
  • Documentation Credit
  • Community
    • Getting Help
    • Getting Involved
      • Contributor Guide
      • Potential Collaborators
      • MP Community Software Ecosystem
    • Community Resources
    • Code of Conduct
  • Services
    • MPContribs
  • Methodology
    • Materials Methodology
      • Overview
      • Calculation Details
        • GGA/GGA+U Calculations
          • Parameters and Convergence
          • Hubbard U Values
          • Pseudo-potentials
        • r2SCAN Calculations
          • Parameters and Convergence
          • Pseudopotentials
      • Thermodynamic Stability
        • Energy Corrections
          • Anion and GGA/GGA+U Mixing
          • GGA/GGA+U/r2SCAN Mixing
        • Phase Diagrams (PDs)
        • Chemical Potential Diagrams (CPDs)
        • Finite Temperature Estimation
      • Electronic Structure
      • Phonon Dispersion
      • Diffraction Patterns
      • Aqueous Stability (Pourbaix)
      • Magnetic Properties
      • Elastic Constants
      • Piezoelectric Constants
      • Dielectric Constants
      • Equations of State (EOS)
      • X-ray Absorption Spectra (XAS)
      • Surface Energies
      • Grain Boundaries
      • Charge Density
      • Suggested Substrates
      • Related Materials
      • Optical absorption spectra
      • Alloys
    • Molecules Methodology
      • Overview
      • Calculation Details
      • Atomic Partial Charges
      • Atomic Partial Spins
      • Bonding
      • Metal Coordination and Binding
      • Natural Atomic and Molecular Orbitals
      • Redox and Electrochemical Properties
      • Molecular Thermodynamics
      • Vibrational Properties
      • Legacy Data
    • MOF Methodology
      • Calculation Parameters
        • DFT Parameters
        • Density Functionals
        • Pseudopotentials
        • DFT Workflow
  • Apps
    • Explore and Search Apps
      • Materials Explorer
        • Tutorial
      • Molecules Explorer
        • Tutorial
        • Legacy Data
      • Battery Explorer
        • Background
        • Tutorial
      • Synthesis Explorer
        • Background
        • Tutorial
      • Catalysis Explorer
        • Tutorial
      • MOF Explorer
        • Downloading the Data
        • Structure Details
          • QMOF IDs
          • Structure Sources
          • Finding MOFs by Common Name
          • Structural Fidelity
        • Property Definitions
          • SMILES, MOFid, and MOFkey
          • Pore Geometry
          • Topology
          • Electronic Structure
          • Population Analyses and Bond Orders
          • Symmetry
        • Version History
        • How to Cite
    • Analysis Apps
      • Phase Diagram
        • Background
        • Tutorials
        • FAQ
      • Pourbaix Diagram
        • Background
        • Tutorial
        • FAQ
      • Crystal Toolkit
        • Background
        • Tutorial
        • FAQ
      • Reaction Calculator
      • Interface Reactions
    • Characterization Apps
      • X-ray Absorption Spectra (XAS)
    • Explore Contributed Data
  • Downloading Data
    • How do I download the Materials Project database?
    • Using the API
      • Getting Started
      • Querying Data
      • Tips for Large Downloads
      • Examples
      • Advanced Usage
    • Differences between new and legacy API
    • Query and Download Contributed Data
    • AWS OpenData
  • Uploading Data
    • Contribute Data
  • Data Production
    • Data Workflows
    • Data Builders
Powered by GitBook
On this page
  • Introduction
  • X-ray Diffraction Formalism
  • Electron Diffraction
  • References

Was this helpful?

Edit on GitHub
Export as PDF
  1. Methodology
  2. Materials Methodology

Diffraction Patterns

How diffraction patterns are calculated on the Materials Project (MP) website.

PreviousPhonon DispersionNextAqueous Stability (Pourbaix)

Last updated 2 years ago

Was this helpful?

Introduction

Diffraction occurs when waves (electrons, x-rays, neutrons) scattering from obstructions act as secondary sources of propagation. In the case of crystal structures, atoms in periodic lattices act as scattering sites from which constructive and destructive interference can occur. Line spectra of scattering intensity as a function incident angle can give powerful information into the planar spacing and symmetries of a crystalline material.

X-ray Diffraction Formalism

The calculation of x-ray diffraction patterns (XRD) in the Materials Project relies on the diffraction condition in reciprocal space:

k=k′+ghkl\bold{k}=\bold{k'}+\bold{g}_{hkl}k=k′+ghkl​

where k\bold{k}k is the wave vector of the incident x-ray, k′\bold{k'}k′ is the wave​vector is the scattered x-ray and ghkl\bold{g_{hkl}}ghkl​is the reciprocal lattice vector of the parallel set of diffracting planes with miller indices hkl. The length of reciprocal lattice plane vector ghkl\bold{g_{hkl}}ghkl​ is given by:

∣ghkl∣=2sin⁡θλ|\bold{g_{hkl}}| =\frac{2\sin \theta}{\lambda}∣ghkl​∣=λ2sinθ​

where λ\lambdaλ is the wavelength of the x-ray. Therefore, the maximum diffraction plane condition which is searched is ∣ghkl∣=2λ|\bold{g_{hkl}}| =\frac{2}{\lambda}∣ghkl​∣=λ2​. Once all of the relevant diffraction planes with reciprocal lattice vectors within this limit are selected, the diffraction condition for each of these planes can be calculated:

sin⁡(θ)=λ2dhkl\sin( \theta) = \frac{ \lambda}{2d_{hkl}}sin(θ)=2dhkl​λ​

Finally the Lorentz-polarization factor is applied to correct for the change in x-ray amplitude due to scattering angle and geometry of the experimental conditions:

Electron Diffraction

The Transmission Electron Microscopy (TEM) pattern for multiple Laue zones is calculated similarly to the XRD diffraction patterns and is available through the diffraction properties tab in the materials explorer.

References

[1]: De Graef, Marc, and Michael E. McHenry. Structure of materials: an introduction to crystallography, diffraction and symmetry. Cambridge University Press, 2012.

where dhkld_{hkl}dhkl​ is the is the spacing of the hkl plane. The structure factor for each of these diffraction conditions is calculated as:

Fhkl=∑j=1Nfjexp⁡(2πi ghkl⋅r)F_{hkl} = \sum \limits_{j=1}^N f_j \exp(2 \pi i \ \mathbf{g_{hkl}} \cdot \mathbf{r})Fhkl​=j=1∑N​fj​exp(2πi ghkl​⋅r)

where jjj is the index for the NNN atoms in the unit cell, r\bold{r}r​ is the basis vector for the atoms in the unit cell. The atomic scattering factor fff​ is given by:

f(s)=Z−41.78214×s2×∑i=1nai exp⁡(−bis2)f(s) = Z - 41.78214 \times s^2 \times \sum \limits_{i=1}^n a_i \ \exp(-b_is^2)f(s)=Z−41.78214×s2×i=1∑n​ai​ exp(−bi​s2)

where s=sin⁡(θ)λs = \frac{\sin(\theta)}{\lambda}s=λsin(θ)​, aia_{i}ai​ and bib_{i}bi​ are parameters fitted to individual elements. ​The intensity of each diffraction condition is given by the squared modulus of the structure factor.

P(θ)=1+cos⁡2(2θ)sin⁡2(θ)cos⁡(θ)P( \theta) = \frac{1 + \cos^2(2 \theta)} { \sin^2( \theta) \cos( \theta)}P(θ)=sin2(θ)cos(θ)1+cos2(2θ)​
[1]