01 · From atomic order to diffraction
X-ray diffraction is one of the most powerful ways to infer the arrangement of atoms inside crystalline matter. X-ray wavelengths are comparable to interatomic distances, typically around one ångström (10⁻¹⁰ m). When a coherent beam interacts with a periodic crystal, waves scattered by successive lattice planes acquire phase differences. At particular angles those waves add constructively, producing sharp diffraction peaks. The laboratory uses a kinematic, single-scattering model: it is an excellent framework for learning reflection conditions and peak geometry, although strongly absorbing or nearly perfect crystals can require dynamical diffraction theory.
For plane spacing d, wavelength λ and Bragg angle θ, the first-order condition is 2d sin θ = λ. The detector records the angle between incident and diffracted beams, 2θ. For a cubic lattice with parameter a, a plane indexed by Miller indices (hkl) has spacing d = a / √(h²+k²+l²). If λ exceeds 2d, that reflection cannot occur in first order.
02 · The unit cell and structure factor
Bragg's law predicts where a reflection can appear, but not whether it is strong or systematically absent. That information comes from the structure factor, the complex sum of scattering amplitudes from atoms in a unit cell: F(hkl) = Σⱼ fⱼ exp[2πi(hxⱼ + kyⱼ + lzⱼ)]. The fractional coordinates (xⱼ,yⱼ,zⱼ) describe each atom's position, and fⱼ is its atomic scattering factor. In this model, f is approximated by Z exp[−B(sin θ/λ)²], where Z is atomic number and B is a Debye–Waller-like attenuation parameter. The intensity is proportional to |F|².
Centred lattices produce characteristic selection rules. For body-centred cubic (BCC), h+k+l must be even. For face-centred cubic (FCC), h, k and l must be all even or all odd. Diamond cubic adds a two-point basis to FCC: some otherwise allowed FCC reflections cancel, including (200). These absences are interference effects, not missing atoms.
03 · Operating the six experimental modes
Bragg Goniometer: select a reflection, wavelength and lattice parameter. Rotate the sample until its plane normal approaches the Bragg condition. The rocking curve shows the finite angular acceptance. Drag the specimen in the 3D bay or use the ω and χ sliders.
Ewald Observatory: inspect reciprocal-lattice points and the Ewald sphere. The incident wavevector has magnitude 2π/λ. A reciprocal vector G satisfies elastic scattering when |kᵢ+G| = |kᵢ|. Rotate the specimen and watch reciprocal points approach the sphere. The displayed spot intensity uses a finite-domain-width envelope rather than an ideal mathematical point.
Structure Factor: change the lattice type, atom and Miller indices. The basis atoms are drawn in real space; the complex phase contributions determine whether the net amplitude reinforces or cancels. Compare (100), (110), (111), (200) and (220) across SC, BCC, FCC and diamond structures.
Powder Diffractometer: the profile sums allowed cubic reflections over a range of 2θ. Peak positions follow Bragg's law; peak weights use |F|², family multiplicity and a simplified Lorentz-polarisation factor. Gaussian broadening combines an instrument width with a Scherrer-like finite-domain contribution. It is a teaching profile, not a refinement-grade Rietveld model.
Strain Mapping: apply normal strains εx, εy and εz. For a plane normal n, the first-order spacing change is εₙ = εx nₓ² + εy nᵧ² + εz n_z². Tensile strain increases d and moves a Bragg peak to lower 2θ; compression does the opposite. The mode reports the calculated directional strain and peak shift.
Detector Imaging: change detector distance and sample orientation. The outgoing wavevector is kf = ki + G. A flat detector perpendicular to the incident beam records the ray intersection at x = L kfx/kfz and y = L kfy/kfz. Spot intensity is weighted by the reciprocal-space mismatch and finite coherent-domain size.
04 · Suggested investigations
First, hold the reflection fixed and increase the lattice parameter. Predict the peak movement before observing it. Next, compare BCC and FCC (100) reflections and explain the difference using phase cancellation. Switch from silicon to copper and compare atomic-number scaling, remembering that the simple form-factor approximation does not reproduce detailed tabulated scattering factors. In the strain mode, apply +0.5% along one axis and compare (100) with (001): a directional strain field splits equivalent planes. Finally, reduce coherent domain size and watch broadened peaks and wider reciprocal-space spots.
Real-world applications include phase identification, semiconductor wafer metrology, residual-stress analysis, thin-film texture, battery materials, geological mineral identification and protein crystallography. Synchrotron beamlines use related reciprocal-space geometry to map subtle lattice distortions and structural phase transitions.
05 · Assumptions, limits and glossary
The virtual beamline assumes elastic, kinematic scattering from a monatomic basis with an approximate atomic form factor. It neglects absorption, fluorescence, multiple scattering, anomalous dispersion, polarisation-dependent detector efficiency, preferred orientation and detailed instrument optics. Powder peaks use a simplified broadening kernel. The Ewald display uses a finite reciprocal-space envelope; it is not a full dynamical simulation of a finite crystal. All values are internally calculated from the displayed parameters, not measured experimental data.
Ångström (Å): 10⁻¹⁰ m. Miller indices (hkl): integers labelling a family of lattice planes. Reciprocal lattice: the Fourier-space representation of crystal periodicity. Ewald sphere: the geometric construction for elastic diffraction. Structure factor: complex amplitude summed over a unit cell. Mosaic spread: distribution of small crystallite orientations. Coherent domain size: approximate length over which scattering remains phase coherent. Strain: fractional change in length or lattice spacing.