INTERACTIVE LAB · 01 / THREE-DIMENSIONAL

Turn the crystal.
Find the peak.

X-rays scatter from atoms. In a crystal, the scattered waves can reinforce one another in some directions and cancel in others. Rotate the crystal and watch when a bright diffraction spot appears on the detector.

Drag the 3D scene to change your view. Use the slider to rotate the crystal itself.

CRYSTAL / INCIDENT BEAM / DETECTORTHREE.JS
Loading the 3D scene. If WebGL or the external module is unavailable, the 2D lab remains available.
INCOMING WAVE
DETECTOR
CRYSTAL
DRAG TO ORBIT · SCROLL TO ZOOM
Lattice atoms are shown schematically; beam brightness follows the calculated Bragg-spot signal.
EXPERIMENT01 / 02
−16.9°
−42°+10°
0.58
0.360.90
FIRST-ORDER BRAGG ANGLE16.9°
INTENSITY AT BRAGG DIRECTION1.000

The normalized value is 1 at the model's ideal Bragg condition. It is not a measured photon count.

What changes when you turn it?

The detector image and rocking curve use the same finite-lattice model. The strongest spot appears when the rotated crystal meets the diffraction condition.

DETECTOR PLANEy / z
Calculated intensity for each detector direction; contrast is enhanced to make weak spots visible.
ROCKING CURVEI / Imax
Intensity along one fixed Bragg direction as the sample rotates. The vertical marker shows the current angle.
02 / 02

What is actually calculated?

The crystal contains 9 × 7 × 7 identical point scatterers on a simple-cubic lattice. For each detector direction, the program sums their scattered complex amplitudes and squares the magnitude. For this regular lattice, the sum becomes a product of three finite-lattice interference factors.

I(q) ∝ |Σj exp(iq · rj)|² ·   q = kout − kin

The first-order Bragg angle obeys 2d sin θ = λ. This is a kinematic, single-scattering demonstration. It does not model multiple scattering, dynamical diffraction, absorption, strain, detector resolution, or photon noise. No experimental dataset is reproduced here.