Optical machines, traced stage by stage.
Lay out every mount, lens and mirror in code, and trace the light through them before anything is machined or aligned. A ball lens and a prism check the tracer against the textbook first.

A ring cavity, laid out and traced.
Built from the Tensaco.ai PHASER optical-cavity architecture. A red laser feeds light through a beam splitter into a folded ring: a programmable light modulator, relay lenses, a lens array, a phase plate, corner mirrors and a cooled gain crystal, with a tap that sends the output to a camera. The rays are traced around the ring and into the readout.
Every energy figure for this cavity is modelled. No PHASER hardware has been built or measured.

The scanner in its cleanroom, with nothing in the way.
The cell models the bay around a lithography scanner: the raised cleanroom floor, the filter ceiling, the overhead rail that delivers wafer carriers, the wafer loader and an inspection station. The layout is checked so that no machine, enclosure or optical part overlaps another.

From mask to wafer, every stage in one column.
A cutaway shows the stages in order: the light source and its collector, the integrator that evens the light, the photomask on its stage, the lens stack that shrinks the mask's image, and the wafer on its chuck. Rays are traced through every stage, and no lens, ring or stage touches another.

The tracer finds the real focus of a ball lens.
A parallel beam meets a glass ball lens. The outer rays bend more and cross early, so the smallest spot sits nearer the glass than the simple formula says. The tracer finds it there, as the textbook predicts: about a millimetre nearer, where the spot is less than half as wide as at the simple focus. Each point of the curve is one trial with its own run.
The spot narrows from 619 µm at 1.5 mm behind the ball to 116 µm at 3.7 mm, then widens again to 787 µm at 6.5 mm.
The numbers
| Screen behind the ball (mm) | rms spot width |
|---|---|
| 1.5 | 619 µm |
| 1.7 | 564 µm |
| 1.9 | 510 µm |
| 2.1 | 456 µm |
| 2.3 | 403 µm |
| 2.5 | 350 µm |
| 2.7 | 299 µm |
| 2.9 | 248 µm |
| 3.1 | 201 µm |
| 3.3 | 159 µm |
| 3.5 | 128 µm |
| 3.7 | 116 µm |
| 3.9 | 129 µm |
| 4.1 | 162 µm |
| 4.3 | 204 µm |
| 4.5 | 252 µm |
| 4.7 | 302 µm |
| 4.9 | 354 µm |
| 5.1 | 407 µm |
| 5.3 | 460 µm |
| 5.5 | 514 µm |
| 5.7 | 568 µm |
| 5.9 | 623 µm |
| 6.1 | 677 µm |
| 6.3 | 732 µm |
| 6.5 | 787 µm |
The traced prism matches the exact answer.
A glass prism splits blue, green and red light. At its smallest deviation, the traced angle of green matches the closed-form answer to within 0.0001°, so the tracer can be trusted on dispersion before it meets a real lens column.

Steeper light, a wider fan of colour.
A second sweep turns the beam and follows the spread between blue and red. The fan is widest at shallow angles and narrows past the smallest deviation.
The tracer models refraction, dispersion, partial reflection, absorption and scattering. It does not model diffraction, thin-film interference or polarization.
Green's deviation falls from 40.9° to its smallest, 38.9°, at a beam angle of 19.5°, then rises to 45.0° at 41.3°; the blue–red fan narrows from 1.25° to 0.82° over the same angles.
The numbers
| Beam angle (°) | Green's deviation − 38° | Blue–red fan |
|---|---|---|
| 9.2 | 2.94° | 1.25° |
| 10.3 | 2.45° | 1.19° |
| 11.5 | 2.05° | 1.14° |
| 12.6 | 1.71° | 1.1° |
| 13.8 | 1.45° | 1.07° |
| 14.9 | 1.24° | 1.04° |
| 16 | 1.08° | 1.01° |
| 17.2 | 0.97° | 0.99° |
| 18.3 | 0.908° | 0.97° |
| 19.5 | 0.889° | 0.952° |
| 20.6 | 0.91° | 0.936° |
| 21.8 | 0.97° | 0.922° |
| 22.9 | 1.07° | 0.909° |
| 24.1 | 1.2° | 0.898° |
| 25.2 | 1.36° | 0.888° |
| 26.4 | 1.56° | 0.879° |
| 27.5 | 1.8° | 0.871° |
| 28.6 | 2.06° | 0.864° |
| 29.8 | 2.36° | 0.858° |
| 30.9 | 2.69° | 0.852° |
| 32.1 | 3.04° | 0.847° |
| 33.2 | 3.43° | 0.843° |
| 34.4 | 3.85° | 0.839° |
| 35.5 | 4.3° | 0.836° |
| 36.7 | 4.79° | 0.833° |
| 37.8 | 5.3° | 0.83° |
| 39 | 5.84° | 0.828° |
| 40.1 | 6.41° | 0.826° |
| 41.3 | 7.01° | 0.824° |
Design your optical machine.
Declare a laser cavity, a lithography column or a bench sweep in one file and trace the light through it.










