- Home
- Non Sequential Ray Tracing
- Objects
- How to Perform Freeform Optical Design
How to Perform Freeform Optical Design
- By Mark Nicholson
- Published 1 May 2009
- Objects
-
Rating:




The Starting Design
The file 'starting point.zmx' (which is provided as a ZAR file at the end of this article) shows an OSRAM LB_T67_C LED emitting light into a simple 4 mm wide, 40 mm long lightpipe produced by the Freeform-Z object:

Our goal is to produce a collimated beam from this LED. The LED is modeled using a CAD object and source datafile provided by Osram. We use the 100k ray source file in this case. As the CAD object used does not affect the ray-tracing and is for display only, it is omitted from the other examples to reduce download size.
The lightpipe is modeled by a Freeform-z object. This object is defined by a number of points, which can be between 5 and 124. We recommend that you always use the minimum number of points needed, and add further points as the design progresses, if necessary. This is discussed later in the article.
Note that the detector object uses pickup solves on its z-location and x, y aperture size, and that these lock the detector relative to the end of the Freeform-z object. This is one of the key benefits of the NSC editor, in that relationships between multiple objects can be easily defined.
The merit function for this design is simple, and consists of three major sections. The first section simply clears the detector and traces rays. Then the second section computes the desired optical performance of the system. This consists of two goals: the first is that the RMS angular radius be as small as possible (best collimation) and the second is that the total power on the detector be as high as possible. We are therefore balancing best collimation with maximum efficiency.
The third section uses the FREZ operand to constrain the lightpipe shape. With most parametric objects, it is adequate to control the optimization by defining limits on the parameters using NPGT and NPLT (non-sequential parameter greater than, less than) operands. However, because freeform surfaces are formed by fits to the defined data points, it is possible for the fitted surface to deviate strongly at points away from the control points. The FREZ operand allows control of the shape of the object at all points on the surafce, not just the specified control points, and this provides stable optimization without multiple turning points ("ringing") between the defining data.
The Freeform-z object allows up to 124 (y, z) data points along its length, and there is no requirement for these to be equi-spaced. This means that the control points can be optimized in z as well as y, so the control points can move to where they do most good. In order to provide smooth optimization, FREZ can be used to control:
- maximum and minimum y-values
- maximum z-values (the minimum z-value is always zero by definition)
- maximum and minimum y and z increments
- maximum and minimum slope
- monotonic deviation
- object volume
In this example, we use the FREZ operand to constrain the overall length of the pipe, and to prevent it becoming too thick or too thin.
The starting design has the following optical performance:
- peak brightness = .48 lm/sr
- RMS angular radius = 49 degrees
- total received power = .99 lm.