Mmysimulator.uk
WHAT-IF UNIVERSE / INTERACTIVE OPTICS
GEOMETRIC OPTICS MODEL
CHANGE ONE PROPERTY OF NATURE

How Water’s Refractive Index Shapes a Rainbow

A rainbow is a crowd of rays taking almost the same route. Change how strongly a droplet bends light and watch that crowd gather — or fall apart.

THE HERO OBJECT

One spherical droplet

PRIMARY CAUSTIC FORMS
SUNLIGHT
ONE INTERNAL REFLECTION
SCALED MODEL ANGLE
RED GREEN BLUE

At the textbook water value, the scaled model predicts neighbouring rays bunch near a 42° cone around the antisolar direction.

PRIMARY BOW RADIUS 42.1° SCALED MODEL · ANGULAR RADIUS
AIR-SIDE INCIDENCE 59.4° SCALED MODEL · FROM NORMAL
IN-DROP REFRACTION 40.2° SCALED MODEL · FROM NORMAL
WATER INDEX 1.333 TEXTBOOK BASELINE × 1.00
TRUST, NOT MAGIC

Independent numerical checks

LIVE VALIDATION
Snell’s law at entrynₐ sin i = n sin r · residual
0.000%NUMERICAL DIFFERENCE
Ray meets the sphereExit point radius compared with droplet radius
0.000%GEOMETRY ERROR
Caustic existenceNumerical derivative scan vs 1 < n < 2
0.0%CLASSIFICATION DIFFERENCE
EXPERIMENT VS THEORY

Find the ray crowd

BRUTE-FORCE SWEEP

The analytic equation predicts the stationary ray. A separate sweep tests thousands of incident angles and finds the smallest deviation.

SCALED THEORY · CLOSED FORM42.08°
NUMERICAL SWEEP · SCALED INPUT42.08°
SCALED-MODEL DIFFERENCE0.00%
The independent ray sweep agrees with the scaled analytic caustic.
OPEN THE MODELThe science: why the bow sits near 42° +
1 · REFRACTION AT THE SURFACE

nair sin i = n sin r

Angles i and r are measured from the local surface normal. We set nair = 1.000, so the relative index is n.

2 · ONE INTERNAL REFLECTION

D = 180° + 2i − 4r

D is the total ray deviation after entering, reflecting once, and leaving the spherical drop. The primary bow radius is α = 180° − D = 4r − 2i.

3 · THE CAUSTIC CONDITION

dD/di = 0   ⇒   sin² i = (4 − n²)/3

A real, non-degenerate stationary ray exists only for 1 < n < 2. Below that interval the drop cannot provide total internal reflection; above it the stationary solution is lost. At n = 2 the bow collapses to zero angular radius.

What is simplified?

One spherical drop, one internal reflection, geometric rays, air index fixed at 1, and a representative visible wavelength. The red/green/blue paths use fixed reference indices to show ordinary dispersion. The model omits diffraction, interference, polarization, absorption, multiple scattering, drop deformation and realistic atmospheric distributions.

What stays stable?

For a spherical drop in geometric optics, the caustic angle depends on refractive index, not droplet diameter. The displayed size changes only the illustration. Sun altitude changes which part of the bow clears the horizon, not the single-drop angle.

Independent educational simulation; not affiliated with a university, museum, or optical manufacturer.

Made with 🤖 ChatGPT