Rainbow Formation (3D meadow)

Sunlight enters a raindrop, reflects once or twice and leaves: dispersion and the minimum deviation angle put the bows at 42 and 51 degrees.

Switch to 2D

Presets

Playback

Sun and shower

Drop and ray

Camera

Layers

Quality

Model check

The science

Why a rainbow is a circle of fixed angular radius. Sunlight enters a spherical raindrop, is refracted, reflects once (primary bow) or twice (secondary bow) from the back of the drop and leaves refracted again. For parallel light the deviation depends on where the ray hits the drop, and it has a minimum. Rays near that minimum leave almost parallel and pile up in one direction, so an observer sees a bright ring around the antisolar point (the shadow of your own head), at a radius set only by the refractive index of water, and different for each colour because water disperses light.

Equations used by the page

  • Snell's law at the surface: sin i = n sin r, with the wavelength dependent index of water from the Daimon-Masumura (2007) Sellmeier fit, n^2 - 1 = sum B_j l^2 / (l^2 - C_j).
  • Deviation after k internal reflections: D_k(i) = k pi + 2 i - 2 (k + 1) r. It is stationary where dD/di = 0, which gives Descartes' result cos^2 i_m = (n^2 - 1) / (k (k + 2)).
  • Bow radius seen from the antisolar point: primary psi = pi - D_1,min (about 42.4 deg red, 40.6 deg violet), secondary psi = D_2,min - pi (about 50.4 deg red, 53.4 deg violet, colours reversed). The region between them is Alexander's dark band. The apex of the primary arc is at elevation 42 deg - (sun elevation), so no primary bow is visible with the sun higher than about 42 deg.
  • Intensity profile near the minimum (Airy): I(psi) ~ F_k Ai^2(u) with u = (D_min - D) (k_0 a)^(2/3) (2 / D'')^(1/3), k_0 = 2 pi / lambda, drop radius a and D'' = d^2D/di^2 at the minimum. Large drops give narrow, saturated bows with faint supernumerary arcs on the inner side; small drops give wide, pale bows.
  • Reflectance: the strength of each bow is multiplied by the unpolarised Fresnel factor (1 - R_ext)^2 R_int^k evaluated at the minimum-deviation angle, which is why the secondary is roughly ten times fainter than the primary.
  • Colours: for each wavelength 380-720 nm the Airy intensity is weighted by the solar blackbody (5778 K) and by atmospheric reddening exp(-0.0095 m / l^4) (m is the air mass for the chosen elevation), integrated against the CIE colour matching functions (Wyman et al. 2013 fit) and converted to linear sRGB.

Honest simplifications

The Airy profile is the ray-optics approximation with a cubic phase: it is excellent for drops larger than about 0.3 mm but fails for fog-sized droplets, where a full Mie calculation would show a white fogbow and the colour structure is different (the page clamps the radius at 0.05 mm and does not claim to model fogbows). The drops are assumed spherical and of one size (real rain flattens above about 1 mm and the bow brightens or fades with the size distribution), polarisation is only used in the Fresnel factor, multiple scattering and sky light are not modelled and the shower is a smooth shape in azimuth instead of real rain curtains. The sky colours, clouds and the brightness of the bows relative to the sky are artistic choices; the bow angles, the order of colours and the dark band are physical.

Checks run in the page

(1) The index of water at the sodium D line, a brute-force minimum of D(i) against the closed form, and the bow angles against the literature. (2) A vector ray tracer (refraction and mirror reflections on the circle, no formulas for the deviation) against the closed form for 200 rays. (3) The Airy function implementation: known values, the first maximum and the differential equation Ai'' = x Ai across the seams between the series and the asymptotic expansions.

Loading model...
Loading Blender model...
Ray path through one drop for red, green and violet light (grey: the whole bundle)
Deviation versus angle of incidence: minimum deviation concentrates the light
Colour channels of the bow versus angle from the antisolar point
Made with ๐ŸŸ  Blender ยท Three.js