🔬 Crystal Diffraction (Bragg's Law) Simulator
Turn a cubic crystal in an X-ray beam, sweep the detector at twice the angle and watch sharp reflections appear exactly where 2 d sin(theta) = n lambda; see how the number of planes sets the peak width and how every plane amplitude adds up as an arrow chain.
⚙ 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