How To Model a Mixed Sequential/Non-Sequential System


This article outlines the procedure for modeling a mixed mode system in Zemax, which utilizes both sequential surfaces and non-sequential objects in the same lens file.  The following topics are discussed in detail.
  • Inserting/Creating a non-sequential group within an otherwise sequential design.
  • Defining entry and exit port locations, shapes, and sizes.
  • Common mistakes and considerations.
Authored By: Dan Hill

Introduction

There are two distinct ray tracing modes supported by Zemax (Sequential and Non-Sequential), but often times it is necessary to combine the two techniques.   A design which uses both methods of ray tracing is often referred to as a “mixed-mode” system, a “hybrid” system, “non-sequential ray tracing with ports,” or mixed sequential/non-sequential mode.  The term “mixed-mode” is used most frequently.  The mode selection is found under the File menu from within Zemax:



Mixed mode systems contain one or more non-sequential object (called an NSC group) which is part of an otherwise sequential system.  An example might be a point or extended surface object which is represented by rays which follow a sequential ray path through one or more conventional lenses, then follow a non-sequential path through a prism or light pipe before illuminating the image surface.

This method of ray tracing requires the use of ports, namely the entry and exit ports, for rays to enter and leave each NSC group.  The entry and exit ports are a vital part of constructing a mixed mode system, and will be discussed in more detail in the following pages of this article.  When using ports, rays are launched from defined field positions on the OBJ surface.  All the usual sequential Zemax system data, such as field positions and pupil sizes, determine the properties of rays entering the NSC group. 

Rays enter the group through the entry port, and may only leave the group via the exit port; then continue through the remainder of the sequential system.

The diagram below highlights the progression of rays in a mixed mode design.  A collimated beam passes through the entry port and TIRs a few times from a 30-60-90 prism.  The collimated beam eventually hits the exit port, where the sequential ray trace is resumed, and the light is focused by an equiconvex lens.

3D Layout - Mixed Mode System

So what’s the basic procedure for constructing a mixed mode system in Zemax?  Advance to the next page to find out more!



Inserting the NSC Group - The Entry Port

Rays can only enter a NSC group through the entry port.  NSC groups are first defined by inserting a Non-Sequential Component surface at the desired location in the LDE.  This is performed by simply changing the Surface Type in the Surface Properties dialog for the selected surface.

Surface Properties Dialog - The NSC Surface

Lens Data Editor - The NSC Surface

It is the Non-Sequential Component (NSC) surface in the LDE which describes the location, size and shape of the entry port into the NSC group.  The entry port may be planar, spherical, or conic aspherical, if desired, as described by the Radius and Conic parameters of the NSC surface.  The location of the vertex of the entry port (or NSC surface) is determined by the previous surfaces in the LDE in the usual sequential, local coordinate system.

The NSC surface also supports a surface aperture, and any rays which fall outside of the defined size of the aperture will be terminated.  Those rays pass through the apertured entry port will be traced non-sequentially through the objects defined within the NSC group (more on this later…).

3D Layout - The Entry Port

3D Layout:  Note the rays which fall outside the defined aperture on the entry port are vignetted and are not traced within the NSC group.



Parameters of the NSC Surface - The Exit Port

The NSC surface has a total of 9 parameters, most of which are used to define the location of the exit port with respect to the entry port.

Lens Data Editor - Draw Ports

Lens Data Editor - Reverse Rays

  • Draw Ports?:  This flag is used solely for drawing purposes.  Sometimes, it is useful to be able to display the entry and exit ports in the layout plots.  Use 0 to draw neither the entry or exit port.  Use 1 to draw just the entry port, 2 to draw only the exit port, and 3 to draw both.  The default value is 3.
  • Exit Loc X, Exit Loc Y, Exit Loc Z, Exit Tilt X, Exit Tilt Y, Exit Tilt Z:  These parameters describe the x,y,z positions and tilts of the exit port surface with respect to that of the entry port.  As an example, if only a Exit Loc Z of 10 was specified (all other location and tilt parameter = 0), then the exit port would be located 10 lens units along the local z axis of the NSC surface (the entry port):

3D Layout - Location of Exit Port with Respect to Entry Port

Zemax uses a default Exit Loc Z value of 1, simply to place the exit port some non-zero distance from the entry port.  If the two are co-located, then rays which hit the entry port immediately exit via the exit port, and will never see the objects defined within the group.

  • Order:  The order flag indicates the order in which to perform the tilts/decenters.  This works identical to that of the Order flag for Coordinate Breaks.  For details, click here.
  • Reverse Rays:  This flag is used to indicate the direction of propagation of rays once they leave the exit port.  If the flag is 0, then Zemax assumes that the non-sequential group acts like a refractive lens.  In other words, if the direction of propagation of the rays is the same from entry to exit port, then this flag should be zero.  If, on the other hand, rays reverse direction relative to the incoming direction, then this flag should be 1. 

Since the positions of the exit port with respect to the NSC surface are defined by the parameters of the NSC surface itself, the surface following the NSC surface in the LDE becomes the location of the exit port.  It is this surface which defines the size and shape of the exit port.  Note the Semi-Diameter of the exit port must be a user defined value, and cannot be automatically calculated.

Lens Data Editor - Exit Port Size

Apertures may also be placed on the exit port surface, if the desired shape is non-circular.  When a ray strikes the exit port, the coordinates and direction cosines of the ray in the coordinate system of the exit port are computed, and then the ray is traced sequentially through any remaining surfaces defined in the LDE.  If one of the following surfaces is another Non-Sequential Components surface, then the process begins again for the components defined for that group.  This means that more than one NSC group may be defined, and each group has its own entry and exit port!



Defining the Objects within each NSC Group

So far we have discussed how to define both the entry and exit port for our non-sequential component group.  But what about the Non-Sequential objects themselves?  Where and how are these objects defined?

Objects within each Non-Sequential Group are defined in their own editor, called the Non-Sequential Component Editor, which may be accessed from the Editors menu in Zemax.

Editor's Menu - The Non-Sequential Components Editor

The Non-Sequential Components Editor (NSCE) operates just like a pure non-sequential editor, where objects are defined by positions and object-specific parameters.  Objects may be nested, GRIN media may be applied, faces may be coated; etc.

The important point to note about the NSCE is the global coordinate by which every object in a group is referenced to.  The global (0,0,0) is located at the entry port of each group, so all of the objects defined within the NSCE are referenced to the entry port of that group.  There is no limit to the number of objects which may be defined in the group, but as soon as any ray strikes the exit port, it resumes its sequential path.

The title bar of the NSCE indicates which surface in the LDE that the group corresponds to:

NSC Editor - Title Bar

This means that the objects listed in the NSCE are the components in the NSC group defined by a particular surface in the LDE.  Since more than one NSC group may be defined in a single mixed mode system, more than one NSC Editor is required.  Only one editor may be displayed at a time.  The active NSC editor may be toggled by using the “Next Group” option from within the Edit menu of the NSCE.

NSC Editor - Edit Menu - Switching NSC Groups

For example, if two different NSC groups exist, described by surfaces 4 and 8 in the LDE, then the objects which exist in the first group will be defined by the NSC Editor for “Component Group on Surface 4” and the second group will be defined in its own NSC Editor:  “Component Group on Surface 8.”



Considerations and Comments

There are many sample files included with Zemax which use this mixed mode capability, many of which are located in the Zemax > Samples > Non-Sequential > Prisms directory.  To familiarize yourself with mixed mode within Zemax, you may want to consider opening some of the various files within this folder and observe the definition of the objects within the NSC Editor, the exit port location and size, the sequential aperture definition, and so on.

Additionally, here are some key points to understand about mixed mode systems:

  • All of the normal Zemax sequential analysis features are still available in mixed mode systems, such as Ray Fans, Spot Diagrams, OPD plots; etc.  However, it is important to note that many sequential features are based upon calculations which depend upon paraxial equivalents (such as the location of the paraxial exit pupil to calculate the reference sphere radius necessary for OPD calculations).  As a random NSC group cannot be broken down into a paraxial equivalent, many of the paraxial based calculations will be meaningless.  Perhaps the most commonly used and meaningful analysis features used in mixed mode systems are that of the Spot Diagram and Geometric Image Analysis, since they do not require any paraxial references.
  • Note that the NSC surface in the LDE supports a Glass definition, which may be used to define the “background” material and index of refraction of the media in which NSC objects are placed.  If a material is defined, then both the entry and exit port may serve as refractive boundaries.
  • Ray defined by the sequential system aperture (sequential rays) cannot see the sources and detectors defined within an NSC group.  Likewise, rays from NSC sources cannot leave the NSC group.  As a result, rays from NSC sources cannot be used as part of the sequential based analysis feature.
  • Sequential rays cannot split within an NSC group – only the transmitted ray path is considered.  In sequential Zemax, a deterministic ray path is required, and only the number of rays launched (no more) may reach the image plane (ray splitting could potentially increase the number of rays which eventually reach the image plane).  This is especially essential for optimization, so that Zemax may converge to a solution.


Summary and References
This article has covered the basis of a mixed mode, hybrid system in Zemax which incorporates a group of non-sequential elements in an otherwise sequential design.  Using the concept of ports, rays from sequential field points may be traced non-sequentially within a defined group of NSC objects.  Rays leave the group via the exit port, where the sequential based ray tracing resumes.

REFERENCES

Zemax Optical Design Program User’s Guide, Zemax Development Corporation





© All Rights Reserved.