RayCrafterdocumentation

Simple ray tracing with off-the-shelf optics. Very early software: expect rough edges.

Analysis plots

What each plot under the side view shows, and the other results RayCrafter works out.

Contents: Where the plots are · About the plots · Image and focus · Contrast and wavefront · Across the field · Distortion · Vignetting · Back aperture · Colour · Collimated output · Transmission and dispersion · Image simulation

Check important results elsewhere. RayCrafter is pre-alpha and has not yet been validated in detail against Zemax. See known problems.

Where the plots are

Under the side view are three groups of plots. Click a tab to choose what each group shows:

GroupTabs
LeftSpot, Through-focus, Focus rays, Detector, PSF
MiddleMTF, Ray fan, Footprint, RMS/field, Vignetting
RightField curvature, Distortion, Back aperture, Strehl/field, Colour

While you add a catalogue lens or edit fields, the lens browser or field panel takes the place of the right-hand group. The plots are described below, starting with the common rules.

The window with the through-focus tab selected
The Through-focus tab.

About the plots

Image and focus

Contrast and wavefront

A single lens with three wavelengths, showing the point spread function, RMS spot radius against field angle and Strehl ratio against field angle
A plano-convex lens with three wavelengths: PSF, RMS spot radius against field angle, and Strehl ratio against field angle.

The PSF and Strehl ratio are computed from RayCrafter’s own rays, so a beam’s offset, a filled stop and vignetting count. They describe the current image plane, so focus first. The MTF tab ignores a field’s offset and is not to be trusted off the axis in designs with paraxial lenses.

Across the field

Distortion

Distortion shows how a square grid is imaged (Grid), or the distortion Against height or Against angle.

Vignetting and relative illumination

The Vignetting tab shows, against field angle:

Hover over the plot for the assumptions. Losses in the glass are not included.

Transmitted light and relative illumination falling with field angle, and the share lost at the second lens rising
A small second lens cuts off beams at more than about 3.6°.

Back aperture

Right-click a lens or aperture and tick Back aperture. The tab then has two views:

The 4f scan system example, with a collimated output, the vignetting plot and the beams on the back aperture
The 4f scan system example. The three scanned beams coincide on the back aperture, and the status bar describes the collimated output.

For beams at several angles that leave collimated, the web report adds a section, Where the beams cross: how far the beam moves against scan angle, and how far each plane is from where an ideal 4f relay would have it.

Colour

The Colour tab takes the selected field at every wavelength of the design, each with equal power, so it has most to show when your fields differ in wavelength.

Rays at focus for three wavelengths, the footprint and field of view, and the combined spot at all wavelengths
The same singlet: rays at focus, footprint, and the spot at all wavelengths.

Collimated output

When the selected field leaves the last lens collimated (an RMS divergence below 1 mrad), spots and other image-plane results say little. The status bar then shows, in their place:

Autofocus treats such an output differently, and a gap can be found that collimates the light.

Transmission and pulse dispersion

With at least one lens of real glass, a button at the right of the status bar gives the transmission of the lenses and the group delay dispersion (GDD) of their glass, along the central ray of the selected field. Press it for the numbers of each lens, and for how long a short pulse of the duration you type becomes.

A table of transmission and GDD for two lenses at 920 nm, and the output duration of a 100 fs pulse
Two near-infrared achromats at 920 nm.

Image simulation

View → Image simulation shows a picture beside the design’s image of it on the current image plane, with blur, distortion, colour fringes and shading all at once.

  1. Keep the Chessboard, or Load picture.
  2. Set the Width (degrees for beams, mm for a finite object). Automatic puts the picture’s corners at the farthest field.
  3. Choose the Light and the number of pixels, and press Render. It takes a few seconds; Stop ends it.
A chessboard and its image through a single lens, with colour fringes and blur
A chessboard through a plano-convex lens, in white light.

The simulation is geometric: it has no diffraction, so a very good system looks perfect, and losses in the glass are not included. A collimated output makes no image. The picture does not update by itself: press Render again after changing the design.