mysimulator.uk
Interactive physics · optics
What-if universe / optical physics

When Water Changes: The Physics of a Vanishing Rainbow

Change one property of a raindrop. Watch real refraction and reflection stay intact while the stationary ray that makes a primary rainbow appears — or disappears.

Live geometric-optics model
ONE INTERNAL REFLECTION
Illustration of light rays passing through a spherical water drop
Incoming sunlight · parallel rays
Spherical drop · cross-section
Drag to pan
Drop refractive index
1.333
TEXTBOOK WATER × SCALED INPUT · UNIT 1
Primary rainbow angle
41.9°
MODEL · FROM ANTISOLAR AXIS
Probe ray scatter
41.9°
NUMERICAL EXPERIMENT · DEGREES
Entry critical angle
None
MODEL AIR → DROP · DEGREES

At the water reference value, neighbouring rays bunch near a 42° scattering angle and form the primary-rainbow caustic.

Experiment vs theory
Ray exits · comparison ready
ONE-REFLECTION PROBE
Ray-traced measurement
41.9°
NUMERICAL · DEGREES
Deviation equation
41.9°
THEORY · 4r − 2i
Difference
0.00%
RELATIVE TO THEORY

Numerical checks

Live verification · % difference
Snell boundary law
Entry and exit sine relations are checked against the traced ray.
0.00%
Equation residual · lower is better
Reflection law
Incoming and reflected angles at the drop surface.
0.00%
Angle mismatch · lower is better
Caustic search
Closed-form stationary condition compared with a numerical angle sweep.
0.00%
Analytic vs numerical · lower is better
The science · equations and simplifications

1. Refraction at the surface

n_air sin(i) = n sin(r)   with n_air = 1

Angles are measured from the surface normal. The ray bends toward the normal when it enters a higher-index drop. If the drop index is below air's index, sufficiently grazing incoming rays are totally internally reflected before entering.

2. One internal reflection

θ = 4r − 2i

For a spherical drop and one internal reflection, θ is the scattering angle measured from the antisolar direction. The reflection itself obeys equal incidence and reflection angles.

3. Stationary ray and the rainbow

2 cos(i) = n cos(r)cos²(r) = (4/3)(1 − 1/n²)

The interior stationary solution exists for 1 < n < 2. At n = 1.333, the model recovers a primary-rainbow angle close to 42°.

What is simplified?

The drop is a perfect stationary sphere; the light is monochromatic; air has index 1.000; and only the primary path with one internal reflection is drawn. Fresnel intensity weights, dispersion, absorption, wave interference, diffraction, the Sun's finite angular size, drop deformation and secondary bows are omitted. The diameter control changes display scale only.

Independent educational simulation. The what-if index values are mathematical experiments, not claims that ordinary water can be manufactured at those values.

Made with 🤖 ChatGPT