ZEMAX Users' Knowledge Base - http://www.zemax.com/kb
Why Do Rays Trace Behind a Fold Mirror Surface?
http://www.zemax.com/kb/articles/146/1/Why-Do-Rays-Trace-Behind-a-Fold-Mirror-Surface/Page1.html
By Andrew Locke
Published on 25 October 2006
 

This article explains:

  • Why rays sometimes appear to trace behind fold mirror surfaces
  • How to fix this problem
  • The benefits of the “Add Fold Mirror” tool

Introduction

If you have modeled fold mirrors in ZEMAX before, you may have noticed that ZEMAX has produced layouts where the rays appear to propagate behind the fold mirror:

Zoomed 3D Layout showing rays tracing behind fold mirror



This article explains what the most common cause of this problem is and how to fix it. As you will see, proper understanding of the coordinate system transformations involved in modeling fold mirrors is essential to avoiding problems like this one.


Analyzing the problem

Please download the attached sequential ZEMAX file on the last page of this article:

 

            F FILE:  “Fold_Mirror_Start.ZMX”

 

This is a simple infinite conjugate system with a 90 degree fold mirror followed by a lens:

3D Layout showing entire system



This file, at first glance, may appear to be setup correctly. In reality, a closer look at the fold mirror indicates otherwise:

Zoomed up 3D Layout showing problem


Rays appear to be tracing behind the fold mirror which, given the geometry of our system, is physically impossible. So, why, then, are rays tracing as shown?

 

The answer is in how the surface following the fold mirror is setup in the Lens Data Editor. Take a look at the Thickness column in the Lens Data Editor:


Lens Data Editor for system

Notice that the Thickness of surfaces 3 and 4 is zero. This means that the next surface, surface 5, is co-located with surface 3.

 

Click anywhere on the row corresponding to surface 5 in the Lens Data Editor and observe the 3D Layout:


Zoomed up 3D Layout showing surface 5


Notice that surface 5 is co-located with the fold mirror. The two surfaces are co-located because there is no thickness change between the two surfaces. Surface 5 has a different orientation than surface 3 due to the Coordinate Break (surface 4) between the two surfaces. This Coordinate Break completes the coordinate system transformation required to model a fold mirror correctly. Thus, surface 5 has the proper orientation but it is not positioned at the correct location. This results in the virtual propagation of rays behind the mirror.

 

How can this be fixed?


Fixing the problem

Surface 5, the problematic surface, is a “dummy” surface—it has no optical properties. Thus, the surface is simply a placeholder surface. As such, moving the thickness value of surface 5 to surface 4 has no effect, from an optical perspective, on our system. Try this now.

 

Copy the Thickness value of surface 5 to surface 4 and then set the Thickness of surface 5 to zero:

Lens Data Editor showing adjusted thicknesses

Update and unzoom the 3D Layout window. Notice that the system is optically equivalent but the dummy surface has been moved beyond the fold mirror surface location and the virtual ray propagation is no longer present:

3D Layout showing original system with rays propagating behind mirror  3D Layout showing fixed system

Since surface 5 is a dummy surface, this problem is purely a visual one. The optical performance of this system is not affected by the original location of surface 5. As a result, there is another way to fix this problem.

 

Re-open the original starting file:

 

            F FILE: “Fold_Mirror_Start.ZMX”

 

Open the Surface Properties dialog for surface 5 and check the “Skip Rays To This Surface” and “Do Not Draw This Surface” check boxes:


Settings for "Draw" tab of Surface Properties dialog

Update the 3D Layout. Once again, the problem has been addressed. Rays are no longer propagating behind the fold mirror and the dummy surface co-located with the fold mirror is hidden from view:

Zoomed up 3D Layout showing problem is fixed


"Add Fold Mirror" tool

The problem described on the previous pages of this article will only occur when fold mirrors are added manually to an optical system. Why add such components manually to a system when there is a tool to do so automatically?

 

Re-open the original starting file:

 

            F FILE: “Fold_Mirror_Start.ZMX”

 

Delete surfaces 2 through 4. You will also need to honor the Thickness sign convention in ZEMAX by setting the Thickness of all of the surfaces to be positive (since there no longer is a mirror in this system). An easy way to reverse the sign of a parameter is to type in *-1 in each cell that you wish to reverse the sign of. Here is the resulting Lens Data Editor:

Lens Data Editor showing surfaces removed/sign of Thickness values reversed

Update the 3D Layout. Notice the rays are still focusing at the image surface just as they were with the fold mirror in the system. We are now modeling our system as if there had never been a fold mirror in it:


3D Layout showing "unfolded" system



Now, use the “Add Fold Mirror” tool via the menu option, “Tools > Coordinates > Add Fold Mirror”. Set the “Fold Surface” to “2” (our dummy surface) and click “OK”:


Settings for Add Fold Mirror tool

Notice that ZEMAX has done all of the work for you! The Coordinate Breaks have been setup and the fold surface has been assigned the Glass type “MIRROR”. Notice also that the Thickness of each surface is setup correctly such that the layout is drawn correctly:


3D Layout showing results of using Add Fold Mirror tool


Summary

This article has explained the symptoms and source of a common problem that can occur when modeling fold mirrors in sequential mode. There are multiple ways to fix this problem, both easily accessible. While the problem is purely a visual one, fixing it results in graphical layouts which are less confusing and more professional in appearance. The best way to fix the problem is to avoid it to begin with. The “Add Fold Mirror” tool avoids the problem and takes care of all of the setup necessary to model a fold mirror for you, automatically!