Drop a .zmx, .stl, .jekray or .jekpack file

Search the glass catalogues

Schott, Ohara, Hoya, CDGM and Sumita, by name as the makers and the lens files spell it, with the crystals and plastics.

Import a material

  1. Find the material on refractiveindex.info and choose a data set that covers your wavelengths.
  2. Under the graph, use Data [CSV - nk] (or [CSV - n]) to download the file, or select the numbers and copy them.
  3. Drop the file below or paste the numbers. Wavelengths are in micrometres, which is what that site exports.

Tolerance the bench

Perturbs the swept parameters at random and traces the bench many times, to see how much the result moves. Each sweep’s From–To range is its tolerance range.

Optimise the bench

Varies the swept parameters you tick, each within its From–To range, for the best result on the goals below. Give a value a sweep first; its range is where it is searched. With several goals, each counts against its size at the start, times its weight.

Vary

Goals

Shortcuts

Selecting

Click
select an element, a fibre or a tab
Shift- or Ctrl-click
add to the selection, or take out
Drag on empty bench
select a boxful (Shift adds)
Ctrl+A
everything on this tab
Esc
select nothing

Adding

A or /
add a part: search, or pick from the tabs
Shift-click a part
add several, the list staying open
Drag a part
from the list or the rail onto the bench, to put it there
View \u25be
show or hide the parts rail

Changing

Drag
move (the whole selection); the handle turns one
Arrow keys
nudge by the snap step; Shift: 10 mm
Ctrl+C, Ctrl+X, Ctrl+V
copy, cut, paste, between tabs too
R, Shift+R
turn 90° anticlockwise, clockwise
Ctrl+D
duplicate
Delete
remove
Right-click
rotate, turn round, lock, move to a tab and more
Ctrl+Z, Ctrl+Shift+Z
undo, redo

Looking

Scroll
zoom about the pointer
Middle-drag, or Space and drag
pan (one finger on a touch screen)
Z
zoom to the selection
Minimap
click or drag it to move about

3D view

Drag a part
move it on the table (snapped)
Click a part
its arrows, out of both sides: orange along x, green along y, blue up (snapped; up in 0.5 mm steps, Shift: 0.1 mm)
Click it again
its rings, crossing: drag a ring or its dot; blue turns it (facing), green tips it, orange rolls it about its own axis; Shift: 15° steps, Alt: a tenth as fast
Click it a third time
its arrows again
Right-drag
turn (or drag, set to Trackpad)
Middle-drag, Ctrl+right-drag
pan
Scroll
zoom about the pointer
F, Z
fit, zoom to the selection
Shift+1 to 7
front, back, left, right, top, bottom, isometric

Measuring

M
measure: drag a ruler, or pick Angle and click three points
On a beam
the ruler gives the optical path too
Shift
place a point freely, not snapped
Delete, Esc
remove the last one, stop measuring

Plots

Scroll, drag
zoom and pan (Shift: across only, Alt: up only)
Double-click
back to the whole plot
PNG, CSV
save the plot, or the numbers behind it

Files

Ctrl+S
save a .jekray file
Drop a .zmx or .jekray
onto the bench to open it
?
this list

Want an AI assistant to design a bench, or rebuild one from a paper? Give it the JEKray guide for AI assistants, ask for a .jekray file, and paste its answer onto the bench with Ctrl+V.

Examples

Each example opens in place of your bench; Undo brings your bench back. Want one built for you? Give an AI assistant the JEKray guide and paste its answer with Ctrl+V.

Share this bench

Embed in a web page

Paste this into a web page, a course site or a blog: readers can drag, zoom and play the sweeps (or only look, with the parts locked), and open the bench in JEKray. Nothing they do changes your copy.

Opened, with changes

Some of what the file asked for could not be used as written. This is what was done instead: check it, or copy the report back to whoever (or whatever) wrote the file so they can fix it.

AI guide

What’s new in JEKray

Cite JEKray

If JEKray helped with your work, a citation helps others find it. Your benches and results are yours to publish.

Text

BibTeX

Report a bug

This opens an email to [email protected] with your report, the version and your browser filled in. Nothing is sent until you send the email.

What happened?

What did you expect?

Earlier versions

This browser keeps a copy of your project every few minutes as you work, and just before you open another project or clear the bench. Opening one replaces what is on the bench; Undo brings it back.

University licence

Compare

Merge

Your account

Team

Delete your account


JEKrayPro

Keep your benches in the cloud: open them on any computer, go back to any earlier version, fork one to try an idea without touching the original, organise them in folders on a page of their own, and keep your own parts and assemblies to use on any bench. The simulator itself stays free.

Prices include VAT where it applies. Payment is taken securely by Stripe; cancel any time from Billing in the account menu. By subscribing you agree to the JEKrayPro Terms.

Saved somewhere else

Start a new project?

The current bench will be cleared. Save it as a .jekray file first if you want to keep it. You can still undo this.

What this models, and what it does not

In three dimensions. Every free-space part at a height of its own, tipped and rolled; rays traced exactly through real surfaces in 3D, skew and rising alike; Gaussian beams through turned optics as general astigmatic beams, their higher-order modes with them; the diffracted field through tipped, rolled and off-centre optics; periscopes that turn the polarisation and the image as real ones do; and misaligned cavities, whose light walks round to their own axis and settles there. The 3D view shows it all, and moves and turns any part along all six axes.

Modelled. Exact tracing of conic and aspheric surfaces with real glass dispersion; reflection, refraction and total internal reflection; Fresnel coefficients and thin-film coatings with phase; polarisation as complex s and p amplitudes, with waveplates and polarisers; optical path, so wavefront error, interference and cavity round trips; Gaussian beam propagation along the axis, including every branch at splitters and round trips in cavities; physical optics propagation of the beam's diffracted field through the system, with each surface a ray-traced phase screen, as a round field or, where tilts and decentres break the symmetry, a full 2D one that carries the polarisation at every point (each sample through its own Fresnel, coating or waveplate matrix), with branches of one beam adding as fields, phases and polarisation included, wherever they meet on the bench or on a screen; stops (iris, slit, double slit, slit comb, knife edge or beam block, anywhere across the beam) and mask elements with any amplitude and delay you write as a formula, acting on the field and on the rays; and, zoomed in below 50 µm, a close-up that samples the field on every pixel, so standing waves and crossing-beam fringes show, with the fields added as vectors; and at each screen the field that arrives, from Gaussian beams and from ray fans taken as uniform pupils, giving its irradiance map, point spread, Strehl ratio, MTF and enclosed energy. Also diffraction gratings, each order a branch of its own; birefringent crystals (beam displacers with walk-off, Wollaston and Glan–Taylor prisms), where s and p go their own ways; Faraday rotators and isolators, non-reciprocal as they should be; filters and dichroics; cylindrical lenses and axicons; a gain medium that saturates, so a cavity shows whether it lases and, above threshold, the power it settles at and sends out of each partly transmitting mirror as a beam; atomic vapour cells (rubidium, caesium, potassium; D1 and D2) with their hyperfine, Doppler-broadened absorption and dispersion at the vapour's temperature, saturated by the light itself slice by slice along the cell and point by point across each beam (by its real profile, so a vortex pump leaves its dark core unsaturated), and saturated absorption between beams crossing them, head on or at an angle, where they overlap; and fibres and photodiodes, which take in the arriving field as a real one would and report coupled power, photocurrent, output voltage and signal to noise. Sources can have a line of their own (a coherence length, Lorentzian or Gaussian), so fringes fade as two paths grow apart (by their group paths, so glass counts by its group index) and a cavity builds up the average over the line, and a beam quality M² above 1, carried as a sum of Hermite–Gauss modes added as powers, as from a multimode laser or an LED; or they can launch a higher-order mode, Hermite–Gauss HGmn or Laguerre–Gauss LGpl (a vortex of any charge), carried as a coherent sum of Hermite–Gauss modes each with its own Gouy phase, so a cylindrical-lens mode converter works as in the lab. Mask presets cover spatial light modulator patterns: spiral phase plates, fork holograms, blazed gratings and a π step, and a mask whose detail is finer than the field's grid is flagged rather than quietly smoothed. A source can be split from another (two fibre launches off one coupler): the two are one laser, so their light interferes, with a phase and an extra length of fibre between them; separate lasers add as powers. A project can hold several benches, each on a tab of its own, joined by link planes: a pair of them is one plane seen from two benches, so beams, fields and cavities carry across. Fibre subsystems (lasers, couplers, WDMs, circulators, isolators, attenuators, polarisation controllers and polarisers, Faraday mirrors, Bragg gratings, terminators, photodiodes and feedthroughs between tabs) are joined port to port by fibres, with fibres that keep polarisation, scramble it as laid fibre does, or maintain it (PM, with a key angle and extinction ratio), multimode fibre and tips, and fibre amplifiers that saturate and add their spontaneous emission and its noise, and solved by following each path with its own phase and delay, so rings, reflections and a laser's coherence come out exactly; fibre tips take free-space light in by mode overlap and send the network's light back out as part of the same laser's launch. Short pulses: a source or fibre laser given a pulse duration traces reference rays at 33 wavelengths across its spectrum, and their optical paths through glass, prisms, gratings, chirped mirrors and fibre are the pulse's spectral phase, so a screen or photodiode shows the pulse that arrives (its duration, group delay, GDD and TOD, spatial chirp and pulse-front tilt), and prism and grating compressors, stretchers and delay lines come out without formulas. The diffracted field (on the bench, at each screen, in a cavity and in the close-up) is worked out in a background thread, so the page stays responsive while it runs.

Not modelled. Fibre, electronic and chip parts in 3D: the 3D view leaves them out (free-space parts take all six degrees of freedom: x, y, z, facing, tip and roll). Aberrations across the field are the tangential section only. Also no scatter, no thermal effects, no coating dispersion. A laser runs on one mode with a homogeneous gain line, with no spatial hole burning, relaxation or Q-switching; a vapour cell has no buffer gas or optical pumping between levels (saturated-absorption dips are where and as wide as they should be, their depths only roughly), and beams in it cross in the bench plane only; a multimode fibre's speckle is averaged away. Nonlinear optics is second-harmonic generation in poled crystals (continuous-wave, by Boyd and Kleinman's focusing) and self-phase modulation in fibre only: no Kerr lensing, sum- or difference-frequency mixing, parametric oscillation, Raman scattering or self-steepening. The pulse is taken on the traced reference rays, at the centre of the beam; fringes between two paths of a pulsed laser on the ordinary screen views use the phase path and a Gaussian line of the pulse's bandwidth (sech² spectra taken as Gaussian), so for the pulse itself use the Pulse tab. Beat notes on a free-space photodiode leave out the radio-frequency delay of the free-space path after a modulator (a phase of 2πf L/c, 2.4° per 100 mm at 20 MHz): the cavity’s round trips and fibre carry it. Power figures ignore absorption unless you set it on a material.

How far to trust it. The validation page sets JEKray against published results and independent codes, live in your browser; the list grows as each part of the model is checked. For anything that gets built, funded or published, reproduce the number in an established package first.

Import a lens file (.zmx)

  1. Open the maker’s product page for the lens, mirror, beam splitter or prism. Most optics makers publish a Zemax file for each part, usually beside the part number or under its downloads.
  2. Download the .zmx file (or a .zar archive). If it arrives as a .zip, extract it first.
  3. Choose the file below, or drop it straight onto the bench.

The part is placed at the centre of the view with light travelling left to right, as in the file. Lenses and mirrors come across with their exact surfaces. The file describes cubes and prisms with tilted, folded surfaces that can't be read back reliably, so for those the importer takes the glass and size and builds the part itself. Pick the type above if it guesses wrong.

Glass the tracer doesn't recognise uses the nd and Vd values from the file, which is less accurate far from the visible.