Adjust slit width a and wavelength λ to visualize the Fraunhofer single-slit diffraction pattern in real time. Confirm dark-fringe positions, central maximum width and a true-color rendering for optics study.
Optical Parameters
Results
Half-angle of central bright fringe
—
Half-width on screen
—
First dark fringe θ₁
—
Diffraction ratio λ/a
—
Intensity Distribution
Color Visualization
Slit Width Comparison
Intensity
Horizontal axis: screen position (mm). Vertical axis: relative intensity. Dashed lines mark dark fringe positions.
Color
Color
Top: color diffraction pattern using the selected wavelength. Bottom: matching intensity graph.
Slit Width Comparison
Comparison of intensity distributions for four slit widths a, with wavelength held fixed.
💬 Let's Talk About Diffraction
🙋
Why does light produce a striped pattern when passing through a slit? Shouldn't light just travel straight?
🎓
"Light travels in straight lines" is a useful approximation when the slit is much larger than the wavelength. When the slit becomes comparable to the wavelength, light spreads into the shadow region after passing through it. That spreading is diffraction. Huygens' principle explains it nicely: each point in the slit acts like a new wave source, and those waves overlap to create interference fringes.
🙋
It's counterintuitive that making the slit width smaller makes the central bright band "wider." How can it spread out when the slit is narrower?
🎓
This is also related to the uncertainty principle. Making the slit width a smaller localizes the photon's transverse position more tightly. From $\Delta x \cdot \Delta p_x \geq \hbar/2$, reducing position uncertainty increases momentum-direction uncertainty, so the light spreads over a wider range of angles. Since the half-angle of the central bright fringe is approximately $\theta \approx \lambda/a$, halving a doubles the angular width.
🙋
I can't intuitively grasp the meaning of the dark fringe condition a sinθ = mλ...
Theory & Key Formulas
$I(\theta) = I_0 \left(\dfrac{\sin\alpha}{\alpha}\right)^2$
$\alpha = \dfrac{\pi a \sin\theta}{\lambda}$
Think of the slit as two equal halves. For a particular angle θ, the wave from the center of the upper half and the wave from the center of the lower half differ in path length by λ/2, so they cancel. Pairing up all corresponding points across the slit cancels the whole aperture and produces the first dark fringe, m = 1. For m = 2, divide the slit into four parts and the neighboring pairs cancel in the same way. That is the geometric meaning of a sinθ = mλ.
🙋
Is the concept of diffraction used in CAE simulations for ultrasound or electromagnetic waves?
🎓
Very directly. In ultrasonic testing, probe diameter and frequency determine the directional pressure pattern, and diffraction theory is used to calculate it. Antenna aperture patterns are also computed through Fourier transforms, which are mathematically equivalent to diffraction integrals. In semiconductor lithography, optical diffraction limits such as λ/(2NA) help set the minimum feature size. Diffraction is a core idea for wave phenomena, not just light.
Frequently Asked Questions
What is the difference between Fraunhofer and Fresnel diffraction?
Fraunhofer diffraction, or far-field diffraction, applies when the screen satisfies $L \gg a^2/\lambda$ and the intensity becomes a sinc-squared pattern. Fresnel diffraction describes the near field and requires a more detailed integral calculation. In the lab, a focusing lens is often used so the focal plane satisfies the Fraunhofer condition.
What is the principle behind X-ray diffraction (XRD)?
When X-rays with wavelengths around 0.1 to 0.01 nm strike a crystal lattice, scattered waves from atomic planes interfere. Constructive interference occurs at angles that satisfy Bragg's law, $2d\sin\theta = n\lambda$, where d is the lattice spacing. The resulting diffraction peaks can be used to infer crystal structure, lattice constants, and stress state nondestructively.
How does a diffraction grating work?
A diffraction grating contains many parallel slits or grooves. Light from each slit interferes, producing strong peaks at angles that satisfy the grating equation $d\sin\theta = m\lambda$. White light is separated by wavelength because each wavelength is reinforced at a different angle. This is the same principle behind the rainbow colors seen on CDs and DVDs, and it is central to spectrometers and monochromators.
How is telescope resolution related to diffraction?
Diffraction by a circular aperture of diameter D sets the smallest angle at which two point sources can be separated, known as the Rayleigh criterion: $\theta_{min} \approx 1.22\lambda/D$. This is the diffraction limit of an optical system. A larger aperture improves resolution; for example, the Hubble Space Telescope, with D = 2.4 m in visible light, has a diffraction limit of about 0.05 arcseconds.
Why does sound diffract?
Sound waves also follow the same diffraction laws. Low-frequency sound has a long wavelength and bends strongly around corners, which is why voices can be heard around the edge of a building. Ultrasound has a much shorter wavelength and therefore stronger directivity, which is useful in medical ultrasound imaging and industrial ultrasonic testing.
What is Single Slit Diffraction?
Single-slit diffraction shows how light spreads after passing through a narrow opening, producing a central bright band and weaker side fringes.
By combining numerical computation with visual feedback, the simulator bridges the gap between abstract theory and physical intuition — making it an effective learning tool for students and a rapid-verification tool for practicing engineers.
Physical Model & Key Equations
The simulator uses the Fraunhofer single-slit intensity model, where the pattern depends on slit width, wavelength, and screen distance.
Each parameter in the equations corresponds to a slider in the control panel. Moving a slider changes the equation's solution in real time, helping you build a direct connection between mathematical expressions and physical behavior.
Real-World Applications
Engineering Design: Diffraction estimates help optical, ultrasonic, and antenna engineers understand aperture limits, beam spreading, and spatial resolution before moving to higher-fidelity simulation.
Education & Research: Widely used in engineering curricula to connect theory with numerical computation. Also serves as a first-pass validation tool in research settings.
CAE Workflow Integration: Before running finite element (FEM) or computational fluid dynamics (CFD) simulations, engineers use simplified models like this to establish physical scale, identify dominant parameters, and define realistic boundary conditions.
Common Misconceptions and Points of Caution
Model assumptions: The mathematical model used here relies on simplifying assumptions such as linearity, homogeneity, and isotropy. Always verify that your real system satisfies these assumptions before applying results directly to design decisions.
Units and scale: Many calculation errors arise from unit conversion mistakes or order-of-magnitude errors. Pay close attention to the units shown next to each parameter input.
Validating results: Always sanity-check simulator output against physical intuition or hand calculations. If a result seems unexpected, review your input parameters or verify with an independent method.
Set slit width (a) using the slider: range 1–100 µm. Narrower slits produce wider diffraction patterns.
Adjust wavelength (λ) between 400–700 nm to observe color shifts in the intensity distribution I(θ).
Modify observation distance (l) from 0.1–2 m to see Fraunhofer far-field approximation effects on fringe spacing.
The simulator calculates dark minima at θ = mλ/a (m = ±1, ±2, ...) and renders the pattern in real-time.
Worked Example
Slit width a = 20 µm, λ = 550 nm (green), observation distance l = 1.5 m. First dark fringe occurs at θ = 550×10⁻⁹ / 20×10⁻⁶ = 0.0275 rad ≈ 1.58°. Linear distance from center: y₁ = 1.5 × tan(0.0275) ≈ 41 mm. The central bright maximum spans ±41 mm. Reducing a to 10 µm doubles fringe separation to ±82 mm; shifting λ to 650 nm (red) increases spacing proportionally.
Practical Notes
Wavelength 400 nm (violet) produces tighter fringes than 700 nm (red); useful for comparing UV vs. IR diffraction in optical design.
At l < 0.5 m with a < 5 µm, Fresnel effects dominate—far-field approximation breaks down; use only for Fraunhofer regime validation.
Secondary maxima intensity falls as 1/(2m+1)² relative to central peak; visible up to m = ±4 for high-resolution displays.