Converter tool

Crystal Structure and XRD Pattern Simulator

Read a CIF, expand it through its symmetry operators, view the unit cell and bonds, and simulate the powder X-ray diffraction pattern with structure factors, multiplicity, Lorentz-polarisation and peak profiles.

Explicit symmetry operators are required

1. Load a CIF

Crystal Structure Viewer and Powder XRD Simulator

Operator: Abdulla Al Fahad. How tools are built and checked

Where a crystalline phase should show up in a diffractometer scan follows from its structure alone: the cell sets the peak positions through Bragg's law, and the atoms and their positions set how strong each peak is. This page takes a CIF, builds the whole unit cell from its symmetry operators, and sums the structure factor over every reflection to give a peak list and a simulated profile.

Key features

  • CIF reader for cell parameters, symmetry operators in either tag, atom sites with occupancy and Uiso or Biso, and uncertainties such as 1.234(5)
  • Expansion of the asymmetric unit through all operators, merging positions that a site reaches twice
  • Cromer-Mann scattering factors for neutral atoms and 100-odd common ions: the International Tables Volume C coefficients as tabulated in the open-source gemmi library (MPL-2.0)
  • Debye-Waller damping from each site's U or B, and site occupancy in the structure factor
  • Lorentz-polarisation for a plain laboratory beam or a graphite monochromator, pseudo-Voigt profiles, and Cu, Mo, Co, Fe, Cr, Ag or custom radiation, with an optional K-alpha2 component
  • Ball-and-stick view with a unit cell box and a supercell up to 3 x 3 x 3, and bond lengths from covalent radii
  • Overlay of a measured two-column pattern, and CSV of the peak list and of the profile

Which CIF items are read, how reflections are summed, and what the simulation leaves out

A CIF must list its symmetry operators, as _symmetry_equiv_pos_as_xyz or _space_group_symop_operation_xyz. Space groups are not looked up from their names, so a file that names the group but lists no operators is refused with that explanation. Operators such as x-y, x, z+1/6 and -x+1/2, y+1/2, -z are parsed. Species like Na1+ and O2- select the ion's scattering factor; where no ion is tabulated the neutral atom is used and a warning says so.

A site without a displacement parameter is given zero damping, and the page warns that high-angle intensities will then be too strong. Anisotropic parameters are not used; an isotropic U or B is needed.

How it works

For each hkl in the half space the page evaluates F = sum of occupancy x f(s) x exp(-B s^2) x exp(2 pi i (hx + ky + lz)) over every atom in the cell, with s = sin(theta)/lambda = 1/(2d). Friedel mates share |F|, so each reflection counts twice. Reflections with the same d-spacing are added into one peak, which gives the multiplicity (8 for 111 in a cubic cell) and also merges accidental coincidences such as 511 and 333. Intensity is the multiplicity times |F|^2 times the Lorentz-polarisation factor, scaled so the strongest peak is 100.

Positions come from the cell metric tensor, so triclinic and monoclinic cells work as well as cubic ones. Anomalous dispersion, absorption, preferred orientation and anisotropic displacement are not modelled.

Reflections up to 6 million index triples and 4 x 10^8 reflection-atom products are accepted; larger requests are refused with the reason.

When to use it

  • A student checking an unknown scan lists where the strongest lines of rock salt (200 at 31.70 degrees with Cu) and silicon (111 at 28.44) fall.
  • A researcher with a CIF from a database wants to know whether the two lowest-angle reflections of a layered compound are resolved at 0.05 degrees FWHM.

Inputs

  1. Load a CIF, paste its text, or choose one of the built-in structures.
  2. Pick the radiation and the 2-theta range, then set the peak width and polarisation.
  3. Read the peak table and the chart; paste a measured pattern to overlay it.
  4. Open the structure view, choose a supercell and a bond tolerance, and drag to rotate.

Worked example

Silicon from the built-in example (Fd-3m, a = 5.43088 angstrom, Si at 1/8 1/8 1/8 with B about 0.46), Cu K-alpha1, no monochromator

Radiation: Cu K-alpha1
2-theta: 10 to 90 degrees
FWHM 0.1 degrees

First four peaks

111  m 8   d 3.1355   2-theta 28.443   I 100.0
220  m 12  d 1.9201   2-theta 47.303   I 64.5
311  m 24  d 1.6375   2-theta 56.123   I 37.5
400  m 6   d 1.3577   2-theta 69.131   I 9.7

Limits

Intensities here are for an ideal powder. Measured silicon patterns usually show the 220 line weaker than the 64.5 % calculated here, because texture, absorption and the optics change relative heights; positions are the dependable part of the comparison.

A CIF with disordered or partially occupied sites works, but each label keeps its own occupancy and no site is merged with another, so check the formula in the summary against the one you expect.

Atoms near an absorption edge of the chosen radiation, such as iron or cobalt with Cu radiation, carry large anomalous corrections that this calculation omits.

Bonds are drawn from covalent radii plus a tolerance and say nothing about bond order.

The simulated profile uses a constant width. Real peaks broaden with angle and with crystallite size.

  • Check the atom count shown under the file: it should equal Z times the number of atoms in the formula, and a different count usually means a symmetry operator was misread.

Common errors and how to fix them

This CIF lists no symmetry operators.
Export the file again with the symmetry operators included, or from a program that writes _symmetry_equiv_pos_as_xyz; a P1 cell needs only 'x, y, z'.
The unit cell holds more than 4000 atoms after symmetry expansion.
Check that the CIF is a small-molecule or inorganic structure; very large cells need a different tool.
Cell lengths must be between 0.5 and 500 angstrom.
Read the cell values in the CIF; a missing decimal point or a unit mistake is the usual cause.
Every reflection in this range has zero intensity.
All occupancies are zero, or the positions cancel by symmetry. Check the atom coordinates.

Why some expected reflections are missing

In face-centred cubic silicon or rock salt only reflections with all-even or all-odd indices appear, because the structure factors of the others cancel exactly: 100 and 110 are absent from both. In diamond-type silicon a further rule removes 200 and 222-type lines whose indices sum to 4n + 2. The simulation finds these zeros on its own from the atom positions; if a line you expect is missing, the symmetry listing in the CIF is the first thing to check.

Reading the supercell view

The supercell is built by repeating the expanded unit cell, and a bond is drawn only when both of its atoms lie inside the box, so atoms at the edge can look under-bonded. Use it to see how the cell tiles, not to count coordination; the bond table lists the lengths found in one cell, including bonds that cross the cell faces.

Frequently asked questions

Which silicon peak positions should I expect?

For silicon with a = 5.43088 angstrom and Cu K-alpha1 the nine lowest-angle lines come out at 28.443, 47.303, 56.123, 69.131, 76.377, 88.031, 94.954, 106.710 and 114.094 degrees, These follow from Bragg's law for a = 5.43088 angstrom, the cell of the standard silicon reference pattern, and Cu K-alpha1 = 1.540593 angstrom; compare them with your own reference card. Anomalous dispersion is left out, so treat relative intensities as good to a few percent for light atoms.

Why does the pattern show two peaks per reflection with Cu K-alpha1 and K-alpha2?

The second line is the K-alpha2 component at 1.544427 angstrom with half the weight. It sits slightly above the main peak and splits further at high angle; choose K-alpha1 alone to remove it.

Can I load a protein structure?

No. The simulator is meant for small-molecule and inorganic structures with a few hundred atoms per asymmetric unit; protein crystals have a huge number of reflections and need the PDB or mmCIF viewer.