-
-
January 14, 2025 at 8:10 am
jthujian
SubscriberThe formula for calculating RMS in the Zemax manual is as follows:
In Wavefront Map, when "Remove Tilt " is chosen, using the data shown in the txt and the formula above,I calculated the RMS by Matlab.
Why is the RMS I calculated different from what Zemax displays?The difference between two RMS is 0.003 wave.
Why is the calculated RMS different from what Zemax displays, even if all data and RMS formulas are provided by Zemax?
-
January 23, 2025 at 1:42 pm
Flurin Herren
Ansys EmployeeHi jthu-jian,Thanks for positing here in the forum!I think you calculation is correct; However, the is one specific caveat which you will need to consider. When OpticStudio is calculation the RMS Wavefront error it ignores pixels where there is no data. They are reported as zeros in the raw data output, but not used for the internal OpticStudio RMS calculations. Have you used the raw data output for your Matlab calculation?You can always create a mask to filter out the zeros from the raw data. I have taken the Single Lens Example from the sample files (Field 2):If you take that into account, do your calculations match up?Best, -
January 24, 2025 at 5:38 am
jthujian
SubscriberHi Flurin Herren,Thank you for your reply!1、In my calcucation, zero data in the boundary is ignored, however, the zero data in the center is keeped.2、I completely agree with your method, when "Remove tilt" is not selected, and the RMS calculated by your method is the same as Zemax.However, when "Remove Tilt" is selected, the RMS calculated by your method is different from the RMS shown by Zemax. How to explain this phenomenon?3、To explain this problem better, we choose the "Cooke 40 degree field.zmx" in Zemax Samples(.\Zemax\Samples\Sequential\Objectives\Cooke 40 degree field.zmx).The setup in Wavefront Map is shown as follow. When "Remove Tilt" is not selected, the RMS shown by Zemax is 0.4909, which is same as the result calculated myself(0.490939135936001)However, when "Remove Tilt" is selected, the RMS shown by Zemax is 0.4022, which is different from the result myself(0.399791317298713)
-
Viewing 2 reply threads
- You must be logged in to reply to this topic.
Ansys Innovation Space
Trending discussions
- STEP File Exports
- Optic studio-zemax operand values are different from the plot (Genc and Denc)
- Assistance Needed for Wavelength Adjustment in Optical Ring Modulator Simulation
- Matlab linkage Zemax memory overflow problem
- Relay Lens Optimization
- Gaussian beam propagation and field by angle
- RMS Spot size in Non-Sequential Method in Zemax Opticstudio
- How to calculate Wavefront RMS when “Remove Tilt” is chosen in Wavefront Map?
- Issues opening Zemax files
- Zemax: creating an array of tilted source
Top Contributors
-
2337
-
925
-
599
-
591
-
527
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.