Glass type
Deviation: \(\delta = \theta_1 + \theta_4 - A\)
Critical angle: \(\theta_c = \arcsin(1/n)\)
Minimum deviation: \(\delta_{min} = 2\arcsin(n\sin\frac{A}{2}) - A\)
Change the angle of incidence, the prism apex angle and the glass to visualise refraction, dispersion and total internal reflection in real time, and understand Snell's law, the deviation angle and how rainbows form.
Refraction of light inside a prism follows Snell's law \( n_1 \sin\theta_1 = n_2 \sin\theta_2 \), which fixes the angles of incidence and refraction at each interface. For a prism of apex angle \( A \) and refractive index \( n \), the minimum deviation \( \delta_m \) is given by \( \delta_m = 2\sin^{-1}\left(n \sin\frac{A}{2}\right) - A \), and the difference in refractive index between wavelengths produces dispersion. In visible light, for example, blue is bent more than red and a rainbow spectrum forms. When the angle of incidence at the second face exceeds the critical angle \( \theta_c = \sin^{-1}(1/n) \), total internal reflection occurs and the light is reflected instead of leaving through the second face (this tool also draws the path after reflection). The simulator lets you change these parameters in real time and observe the refracted path and the dispersion intuitively.
Early-stage optical design
In spectrometers and camera lenses, the glass (refractive index and dispersion) and the geometry decide how light bends and how the colours separate. Switching the "Glass type" and watching the deviation and dispersion change builds that first intuition. Chromatic aberration is corrected by combining a low-dispersion crown glass with a high-dispersion flint glass; the Abbe number in the table below is the indicator. In an optical fibre only light at angles shallower than the critical angle set by the core–cladding index difference is trapped by total internal reflection, so the critical-angle readout is the direct starting point for design.
Research and education
In university physics laboratories and optics lectures it serves as teaching material for an intuitive grasp of Snell's law and dispersion. When learning how a rainbow forms, for example, the refraction and total internal reflection inside a water droplet can be reproduced with the prism model, and the change of deviation with angle of incidence and wavelength observed in real time. Students can thus acquire, by their own trial and error, concepts such as wavelength dependence and the critical angle that are hard to grasp from the formulas alone.
Relation to CAE and its place in practice
This simulator is for quickly checking the effect of angle of incidence, apex angle and refractive index in the early study of an optical system. It suits getting a rough picture of how the prism geometry matters before doing precise ray tracing in optical design software such as Zemax or Code V. The aberrations and tolerances of a complete lens are evaluated with such dedicated software.
It is tempting to think that "the larger the angle of incidence, the longer the path inside the prism and the stronger the dispersion (colour separation)", but in fact the difference between the red and violet exit directions is set almost entirely by the glass's dispersion (the change of refractive index with wavelength) and the apex angle, and depends only weakly on the angle of incidence. Conversely, if the angle of incidence is made too small, the angle of incidence at the second face exceeds the critical angle, total internal reflection occurs and the light no longer leaves the prism (below 30° incidence for crown glass with a 60° apex).
It is tempting to think that "a larger apex angle always spreads the rainbow spectrum wider", but in fact the larger the apex angle, the more easily total internal reflection occurs at the second face, and once the apex angle exceeds twice the critical angle (about 82° for crown glass) no light is transmitted at any angle of incidence. Even at an 80° apex, transmission is only possible for incidence angles of 73° or more, and near that limit only the violet side, with its larger refractive index, is totally reflected first. Take care with the combination of apex angle and angle of incidence in the simulation.
It is tempting to think that "whatever the glass, a higher refractive index always means a larger deviation (bending angle)", but in fact the deviation is determined by all three: angle of incidence, apex angle and refractive index. At the same 45° incidence and 60° apex, n = 1.52 gives a deviation of 39.3° and n = 1.62 gives 50.3°, but n = 2.42 (diamond) is totally reflected at the second face and nothing emerges. The deviation changes gently with the angle of incidence around minimum deviation and sharply near the total-internal-reflection limit, so take care when fine-tuning design values in practice.
Crown glass (n = 1.52), apex angle 60°, angle of incidence 45°: the refraction angle at the first face follows from sin θ₂ = sin 45°/1.52 ≈ 0.465, so θ₂ = 27.7°. The angle of incidence at the second face is 60° − 27.7° = 32.3°, smaller than the critical angle θc = asin(1/1.52) = 41.1°, so the light is transmitted; the exit angle is asin(1.52·sin 32.3°) ≈ 54.3° and the deviation δ = 45° + 54.3° − 60° = 39.3°. The minimum deviation is 2·asin(1.52·sin 30°) − 60° = 38.9° (at an incidence of about 49.5°). With dispersion shown, the tool's dispersion model gives deviations for red (660 nm, n ≈ 1.518) and violet (440 nm, n ≈ 1.530) that differ by about 1.2°. Below 30° incidence, total internal reflection occurs at the second face.
| Material | Refractive Index n_D | Abbe Number V | Typical Use |
|---|---|---|---|
| Crown Glass | 1.52 | 64 | Front lens groups, eyeglasses |
| Flint Glass | 1.62 | 36 | Chromatic aberration correction, rear groups |
| BK7 Optical Glass | 1.517 | 64.2 | Standard precision optics |
| Dense Flint Glass (SF) | 1.75 | 28 | Periscopes and special-purpose optics |
| Fused Silica (SiO₂) | 1.458 | 68 | UV optics and optical fiber |
| Water (20°C) | 1.333 | 56 | Natural and underwater optics |
| Diamond | 2.417 | 55 | Gemstones and high-pressure optical windows |