Home▸Physics & Mechanics▸Crystal Diffraction (Bragg's Law) Simulator

🔬 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.

Physics & Mechanics3DModerate60 FPS📱 Mobile-adapted⇄ 2D version
Crystal Diffraction (Bragg's Law) Simulator ↗ Open standalone
⚙ 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)