Presets
Playback
Map view
Time
Event and survey
Lens geometry and survey settings. The map is re-computed after a short pause.
Experiment
Model checks
The science
Gravitational microlensing
A foreground star bends the light of a background source. Lengths are in units of the Einstein radius θE of the total mass. For a single point lens the magnification is A(u) = (u²+2)/(u√(u²+4)), where u is the source-lens separation; the event is the symmetric Paczynski curve with timescale tE. A planet adds a second lens and the lens equation ζ = z − Σ mi / conj(z − zi) becomes a mapping with caustics: closed curves in the source plane where the point-source magnification diverges (red). Crossing or approaching them makes a short anomaly on top of the smooth curve.
How the map is made
The map is computed by inverse ray shooting: rays are shot from the image plane through the lens equation onto source-plane bins, each carrying the image-plane area it represents, so the magnification of a bin is the summed area over the bin area (and A = 1 far from the lens). An adaptive quadtree and log-polar patches around the lenses spend the rays where the footprint is small, and the same rays also pass through the host star alone as a control variate to cancel most of the noise. Caustics come from the critical curve (a quartic root problem for each phase angle). Finite sources are averaged over a disc of radius ρ.
Detection
The noisy synthetic survey is fitted with the best single-lens model; Δχ² is the extra chi-squared of that fit over the true binary model, and a threshold (160 by default) decides detection. Short anomalies, small planets and sparse sampling lower Δχ²: with one point per day an Earth-mass anomaly lasting hours falls between samples. The Einstein radius is θE = √(4GM/c² (1/DL − 1/DS)).
Honest simplifications: a static two-body lens (no orbital motion, no parallax), a source of uniform brightness, Gaussian photometric noise scaled as √A, no blending beyond a free baseline, a coarse ray budget so the map has some speckle, and a fixed source distance of 8.2 kpc. This 2D view shares its lens module with the 3D lab; the observatory renders there are not used here.
What to try
- 1 Jupiter-mass planet: the track crosses the planetary caustic and the bump is obvious in the light curve.
- 4 Same Earth, one point a day, then Run cadence sweep: Δχ² collapses as the sampling interval grows.
- 5 Resonant caustic (s = 1): one large merged caustic and a complicated curve; try the zoom.
- 6 No planet: the cumulative Δχ² just wanders with the noise.