增加伽马倾斜变量
更改MCFILE.MAC为
PANT
VY 14 TH
VY 5 GPG ! Vary group gamma tilt on surfaces 5, 7, 9, and 12 (but not surface 1).
VY 7 GPG
VY 9 GPG
VY 12 GPG
END
AANT
M 0 1 A P YA ! Control the boresight error this way.
M 0 1 A P XA
GSR .5 10 5 M 0 0 0 F ! Correct over the full pupil since the lens no longer has
GNR .5 2 3 M .7 0 0 F ! bilateral symmetry.
GNR .5 1 3 M 1 0 0 F
GNR .5 2 3 M -.7 0 0 F ! For the same reason we also control the negative field.
GNR .5 1 3 M -1 0 0 F
END
SYNOPSYS 10
MC
更改MCFILE
在MCFILE.MAC中的命令SYNOPSYS 10和MC之间添加如下命令
Z1 = XA IN COLOR 1 ! Get the actual X coordinate of the chief ray in color 1.
RMS 1 0 555 ! Run the RMS command, which also finds the centroid.
Z2 = FILE 4 ! This is the X-centroid location, relative to the chief ray,
Z3 = FILE 5 ! and this is the Y.
Z4 = YA IN COLOR 1 ! Also get the actual Y coordinate.
Z5 = XA IN COLOR 3 ! Do the same thing in color 3.
RMS 3 0 555
Z6 = FILE 4
Z7 = FILE 5
Z8 = YA IN COLOR 3
= SQRT((Z1 + Z2 - Z5 - Z6)**2 + (Z3 + Z4 - Z7 - Z8)**2) ! The separation.
Z9 = FILE 1 ! Load it into variable Z9, and tell MC
MC IZ9 "RedCen-BlueCen" ! to gather the statistics and plot Z9 with this label.