LensForge icon

Ray trace meritoid

The ray trace meritoid allows you to trace an arbitrary ray through the lens and use its final position or momentum in your merit functions.

Parameters

Field specification
Presently the only option is "Reduced", meaning that the quantities Hx and Hy are the reduced field coordinates (between -1 and 1) of the ray to be traced.
Field specification
Presently the only option is "Reduced", meaning that the quantities Hx and Hy are the reduced field coordinates (between -1 and 1) of the ray to be traced.
Pupil specification
Presently the only option is "Reduced", meaning that the quantities Px and Py are the reduced pupil coordinates (between -1 and 1) of the ray to be traced.
Wavelength
You can use the arrow to pick from any of the defined wavelengths or you can enter your own value. The wavelength is specified in nanometers (nm).
Quantity
The quantity popup lets you select which ray quantity is to be used. You can use the popup to select position components x, y, z or momentum components px, py, pz. Or you can enter a ray key path of your choice.
Use local coordinates
If checked, the ray is transformed to the coordinate frame of the image surface. If not checked, the ray is left in the global coordinate frame.
Units
units popup menu The units pop-up menu (only visible if the selected quantity is a length) allows you to select what units of length are to be used to display the result and to calculate the residual.

Selecting "waves" from the units menu causes the result to be expressed in terms of the wavelength of the primary wave.
Target
The target is specified in the same units as the displayed value. If the target is zero (the usual case) the meritoid is multi-residual as described above.
Tolerance
The tolerance is specified in the same units as the displayed value and specified target. Using this tolerance a dimensionless residual is created in the usual way.

See also