Clever Quest Lab ← Labs

Telescope Diffraction Simulator

Draw or pick the opening of a telescope or lens and see the star it makes: spikes, rings, focusing masks, the star test and double stars, in arcseconds.

The far-field (Fraunhofer) image of a point star through this aperture, without the atmosphere.

Examples

Telescope and light

Light

Aperture

Vanes holding the secondary

Rings of hexagonal segments

Bright parts of the picture become open. The picture is read on your device and is not uploaded.

Mask and apodizing screen

Holes

Focus and optical errors

Star test

Left: inside focus. Right: outside focus, by the same amount. A perfect telescope shows two identical images.

Double star

Display

Brightness scale

Profile and contrast

── this aperture and optics   ┄┄ perfect clear aperture. Spatial frequency from 0 to the cut-off D/λ.

Runs on your device. Nothing you type or record is uploaded. Keeps working without a connection while the page is open. Works with touch. Saves your telescope, aperture, mask, error and display settings and your drawn aperture on this device.

Added

What the lab shows

A telescope never turns a star into a point. Light that passes a round opening spreads into a small bright disc with faint rings around it, and every straight edge in the light path throws a spike across the image at right angles to that edge. How large the disc is, how much light goes into the rings and how many spikes appear depends on the shape of the opening and on the errors of the optics. The lab works this out for the aperture you choose, from a clear refractor to a camera iris or a shape you draw yourself, and asks one question: which part of the instrument makes which part of the star image?

Things to try

What to observe

Spikes

A straight edge sends light out perpendicular to itself, in both directions. Four vanes in a cross form two pairs of parallel edges, so their spikes overlap into four. Three vanes 120° apart give six, and one vane gives two. A camera iris works the same way: with an even number of straight blades, opposite blades are parallel and you see as many rays as blades; with an odd number every blade has its own pair of rays, so seven blades make fourteen. Curved vanes and rounded blades turn the edge through many directions, so the same light is spread around the star instead of piling up in a few spikes.

Central obstruction

A secondary mirror in the middle of the beam pushes light out of the central disc into the rings and makes the disc slightly smaller. For a clear aperture the first bright ring reaches 1.75% of the peak brightness and the central disc holds 83.8% of the light; with an obstruction of 30% of the diameter the ring rises to 4.75% and the disc falls to 68%. The readout under the image shows the first bright ring and the light inside the first dark ring for any aperture you set, rounded: 1.7% and 84% for the clear aperture, 4.7% and 68% for Reflector with a 30% obstruction and no vanes. The contrast chart shows the cost: less contrast for detail of middle size, slightly more near the finest detail the telescope can show.

Focusing masks

A Bahtinov mask has three gratings: one half of the aperture with slots in one direction and two quarters with slots turned by a small angle either way (20° unless you change it). Each grating makes its own spike, and because the half and the two quarters sit on opposite sides of the centre, defocus moves their spikes in opposite directions. In focus the middle spike runs exactly through the centre of the X; on one side of focus it sits left of the centre, on the other side right, and its distance from the centre grows in proportion to the focus error. The Tri-Bahtinov mask repeats this in three sectors, one for each third of the aperture, so its three middle spikes show whether every part of the optics focuses at the same place. A Hartmann mask has only holes: out of focus each hole makes its own spot, and the spots merge into one, crossed by interference fringes, as you reach focus.

The star test

Move the focus a little inside and outside and compare the two blurred discs. In a perfect telescope they look the same. Spherical aberration makes them different: under-correction gives a bright outer ring inside focus and a soft edge with a brighter centre outside focus, and over-correction swaps the two. Astigmatism makes both discs oval, turned 90° from each other. Pinched optics give a three-cornered pattern, a turned-down edge blurs the outer edge of the disc on one side of focus, and coma from poor collimation pushes the rings off centre. A secondary mirror leaves a dark centre in both discs, often with a small bright spot in its middle.

Double stars

Two stars that are too close merge into one blob. At the Rayleigh limit, 1.22 λ/D, the centre of one star lies on the first dark ring of the other and the brightness between them dips by about a quarter; for green light that is 138/D arcseconds with D in millimetres. The Dawes limit, 116/D, comes from what experienced observers could still split by eye with white stars, and there the dip has almost gone. A central obstruction makes the discs smaller, so it splits a pair at these limits a little better, even though it lowers contrast for larger detail.

How it works

The lab uses scalar Fraunhofer diffraction, the far-field model of Fourier optics. The aperture is a pupil function P(x, y): how much light passes at each point (1 where it is open, 0 where it is blocked, values in between under an apodizing screen) together with a wavefront error W(x, y) in waves. The image of a star at the angle θ is the squared size of the Fourier transform of that pupil:

I(θx, θy) ∝ | &iint; P(x, y) ei 2π W(x, y) e−i 2π (xθx + yθy)/λ dx dy |²

For a clear round aperture this gives the Airy pattern with its first dark ring at 1.22 λ/D. The page samples the pupil on a grid of 96 to 512 points across the diameter, places it in an empty grid of 1024 × 1024 points (512 × 512 on a narrow screen) and computes the transform with its own fast Fourier transform, in short steps so the page keeps responding. A grid point cut by an edge passes the share of its area that is open, so vanes thinner than one point still block the right amount of light. The image is measured in units of λ/D: it changes shape only when the shape of the aperture changes, and the diameter sets the arcsecond scale (λ/D = 113.4/D arcseconds at 550 nm, D in millimetres).

The optical errors are Zernike polynomials normalised so that each slider value is the RMS error in waves at 550 nm: spherical aberration, coma, astigmatism and trefoil, the three-lobed error of a mirror pinched by its supports. The turned-down edge is a separate term that bends only the outer 20% of the radius. Focus is the term W020ρ²: moving the focuser by Δz adds W020 = Δz / (8N²λ) waves at the focal ratio N, so one wave of defocus at f/5 is 110 µm. The Strehl ratio is the peak brightness compared with a perfect aperture of the same shape; for small errors it is close to the extended Maréchal approximation exp(−(2πσ)²) for an RMS error σ in waves.

In white light the page repeats the calculation for nine wavelengths from 430 to 670 nm with equal power, turns them into colour with the CIE 1931 colour-matching functions and sRGB, and scales the wavefront error in waves by 550/λ. A double star is two images of the same pupil, tilted apart and added, the second one fainter by a factor of 10−0.4 Δm. The contrast chart is the modulation transfer function: the Fourier transform of the star image, averaged over all directions, next to the curve of a clear round aperture, (2/π)(arccos ν − ν√(1 − ν²)) for the frequency ν as a share of the cut-off D/λ.

Limits

Controls

Sources