This article explains:
The sample files used in this article can be downloaded from the last page of the article.
Tolerancing surface irregularity is difficult because surface irregularity is not deterministic. Often times, the RMS surface error introduced on an optic during manufacturing is specified by the lens supplier by taking the average of RMS surface error for a single sample or a statistical batch of samples. It is common to hear that a surface is "flat to l/10 or l/20" As we shall see, the spatial frequency of the irregularity is also important.
Tolerancing for RMS surface error is straightforward using the TEZI tolerance operand, assuming :
- The original surface type is Standard or Even Aspheric
- Zernike polynomials can reasonably represent the physical surface error. This is usually a good assumption if an interferometer is used for surface testing, as the interferometer software can normally list the error between the real surface sag and that produced by a specified number of Zernike terms.
The RMS amplitude of the surface irregularity does not define the shape of the irregularity. ZEMAX replaces the Standard or Even Aspheric surface used to describe the nominal system with a Zernike Standard Sag surface for tolerancing. This has the same basis surface shape as the Standard or Even Asphere surface, and Zernike coefficients represent the deviation from nominal surface shape. For more information about the Zernike Standard Sag surface, please refer to the user manual.
We will illustrate the use of the TEZI operand through a simple example. First, open the included lens file TEZI.ZMX. This file uses the afocal image space mode.

and it represents looking at a flat window. Of course, the surface can be any shape supported by the Even Asphere surface, but we will use a flat surafce for simplicity. Set the tolerance data editor as following.
The tolerance is set to 1mm RMS surface error on surface 2. The min tolerance value is automatically set to the negative of the max value; this is done to yield both positive and negative coefficients on the Zernike Standard Sag surface. The resulting RMS is of course always a positive number whose magnitude is equal to the max tolerance value.
The number of Zernike terms is given by MAX# and MIN# parameters. Generally speaking, if lower order terms are used, the irregularity will be of low frequency, with fewer "bumps" across the surface. If higher order terms are used, there will be higher frequency irregularity, with more "bumps" across the surface. The maximum and minimum number to be used can be chosen by looking at pieces produced by the manufacturer with an interferometer, and setting the minimum and maximum terms required to give good fit to the surfaces produced by the manufacturing process. This will be discussed in more detail later. For this example, we will use between term 2 and term 9
The 1st term of the Zernike standard polynomial corresponds to piston which ZEMAX always ignores; therefore, the smallest possible Min# parameter value is 2. The maximum possible Max# parameter value is 231, although such high terms are almost never required: terms up to 28 or so are usually the highest required.






References
1. Optical System Design, R. E. Fischer and B. Tadic-Galeb, McGraw-Hill, ISBN0-07-134916-2, Chapter 16