QiLing Tools

🩻X-ray Physics Simulator - Tube Spectrum, Moseley’s Law, Bragg Diffraction, Compton Scattering

Four classic pieces of X-ray physics on one page: the continuous and characteristic spectrum of an X-ray tube, Moseley’s law, Bragg diffraction from crystals, and Compton scattering. The tube spectrum follows Kramers’ law with the Duane–Hunt cutoff and tabulated Kα and Kβ energies for each anode, with optional Ni, Zr or Al filters. The diffraction panel uses the lattice and atomic form factors to list every allowed (hkl) with 2θ and relative intensity, draws a powder pattern, and shows 2d sinθ = nλ on a draggable diagram.

Free · No sign-up · Runs in your browserLast updated:

Loading tool...

How to use X-ray Physics: Tube Spectrum, Bragg & Compton

  1. 1In Tube spectrum choose an anode, voltage and filter, and read λ_min, efficiency and the Kβ/Kα ratio
  2. 2In Moseley’s law pick an element, or enter a Kα energy to work out the atomic number
  3. 3In Bragg diffraction choose a crystal and wavelength, read the peak table and powder pattern, and drag the diagram to change the angle
  4. 4In Compton scattering choose the photon energy and drag the scattering angle to read E′, Δλ, electron recoil and cross-sections

FAQ

Why does an X-ray spectrum have a shortest wavelength?
An electron accelerated through V volts has kinetic energy eV, and at most all of it goes into one photon. So photon energies stop at eV, giving λ_min = hc/eV ≈ 12.398/V(kV) Å — the Duane–Hunt limit, which does not depend on the anode. The characteristic lines, by contrast, sit at energies set by the anode’s atomic levels.
How does a nickel filter remove Cu Kβ?
Nickel’s K edge at 8.333 keV falls between Cu Kα (8.048 keV) and Kβ (8.905 keV). Above the edge absorption jumps about sevenfold, so 20 μm of Ni cuts Kβ to below 1% of Kα while keeping about half of Kα. Molybdenum tubes use a zirconium filter for the same reason.
Why is the NaCl (111) peak weak and the KCl one almost missing?
In the rock-salt structure the structure factor is 4(f_A + f_B) for all-even indices and 4(f_A − f_B) for all-odd ones. Na⁺ and Cl⁻ have very different electron counts, so (111) is still visible. K⁺ and Cl⁻ both have 18 electrons, their form factors nearly cancel, and KCl’s pattern looks like simple cubic.
Why doesn’t the Compton shift depend on the incident wavelength?
Conservation of energy and momentum for a photon hitting a free electron gives Δλ = (h/m_ec)(1 − cosθ), where h/m_ec = 2.426 pm depends only on the electron mass. For visible light this is negligible, but for X-rays and gamma rays it is large, which is how Compton’s 1923 experiment with Mo Kα showed that light comes in particle-like quanta.
How accurate are the intensities?
Peak positions (2θ, d-spacings, line energies) are exact. Powder intensities use |F|² × multiplicity × LP with Cromer–Mann form factors and ignore absorption, preferred orientation and extinction, so they agree with reference patterns to within roughly 10–20%. In the tube spectrum the height of the lines relative to the continuum is an empirical, illustrative scaling.

Features

  • Kramers continuum plus Kα₁/Kα₂/Kβ lines for Cu, Mo, W, Rh, Ag, Co, Fe and Cr, on an energy or wavelength axis with optional log scale
  • Be window and Ni, Cu, Zr or Al filter attenuation including absorption edges — see how a β filter works
  • Moseley √f vs Z plot with measured Kα₁ for 57 elements, the theory line and a fitted screening constant
  • NaCl, KCl, Si, diamond, Cu, Al, Fe, W, CsCl and Po: structure factor, multiplicity, LP factor and Kα₂ doublet
  • Draggable Bragg reflection diagram with the N-plane interference function
  • Compton shift, electron recoil angle and energy, Compton edge, Klein–Nishina polar plot and total cross-section