HomePhysics & MechanicsCrystal Diffraction (Bragg's Law) Simulator

Crystal Diffraction (Bragg's Law) Simulator

Interactive Bragg diffraction simulator: choose a simple-cubic, BCC or FCC crystal lattice, tune the X-ray wavelength, lattice constant and grazing angle, and watch the diffracted beam light up exactly where nλ = 2d·sinθ is satisfied.

Physics & Mechanics3DModerate60 FPS
physics-ext-topic-38 ↗ Open standalone

Crystals are built from atoms arranged on a periodic lattice, and that periodicity is exactly what makes X-ray diffraction work: waves reflecting off successive atomic planes interfere constructively only at specific angles set by Bragg's law, nλ = 2d·sinθ. This simulator renders a real 3D simple-cubic, body-centered-cubic or face-centered-cubic lattice, fires a beam at a chosen grazing angle, and lights up the diffracted beam whenever the path-length difference between planes lands on a whole number of wavelengths. Tune the lattice constant, wavelength and angle — or let the angle sweep automatically — to see how the allowed reflections shift with crystal structure, exactly as they do in real X-ray crystallography.

⚙ Under the hood

Choose a simple-cubic, BCC or FCC crystal lattice, tune the X-ray wavelength, lattice constant and grazing angle, and watch the diffracted beam light up exactly where nλ = 2d·sinθ is satisfied.

Three.jsCrystallographyBragg diffractionX-ray diffractionInstancedMesh

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)