INSTRUMENT DESK / 07 CALCULATORS

X-ray workbench.

Set the beam energy once and every calculator below follows it. Results update as you type; tap a result to copy it. The full offline set, with beamtime logbook templates, is at xray.ooguy.com.

Quick calculationsDiffractionSample & beam

Shared beam

02 / DIFFRACTION

Geometry & diffraction

Angles, reciprocal space and lattice reflections.

Bragg angle, q and d-spacing

Type any one of the three; the others follow. Change the energy and d stays put while 2θ moves.

λ = 2d sin θ and q = 4π sin θ / λ = 2π / d. For reflectivity, θ is the grazing angle and q = qz.

Bravais lattice and d-spacing

Pick the crystal system and centring, then the cell and hkl. Reflections the centring forbids are flagged.

First allowed reflections (tap to use)

1/d² = h·G*·h, the general triclinic form, used for every lattice. Extinctions here come from the lattice centring only (I: h+k+l odd; F: mixed parity; C: h+k odd; R: −h+k+l ≠ 3n, hexagonal axes). Screw axes, glide planes and zero structure factors are not checked: diamond Si (200) is allowed by F but is zero in practice.

03 / SAMPLE & BEAM

Sample & beam

Footprint, attenuation and peak broadening.

Beam footprint

Check whether the beam spills past the sample at low angle.

L = h / sin α. Below the angle where sin α = h / sample length, part of the beam misses the sample and the measured intensity drops. The sketch keeps the lengths to scale, not the angle.

Transmission

How much beam gets through a filter, a window or the sample.

T = exp(−t / ℓ). Look the attenuation length up for your material and energy in the CXRO tables.

Crystallite size (Scherrer)

Estimate crystallite size from the width of a diffraction peak.

τ = K λ / (β cos θ), with β in radians. Subtract the instrument width first; strain broadening makes the size come out too small.