Skip to main content
Question

Suspect Bug: RMS WFE Plot - Chief Ray vs Centroid

  • April 3, 2026
  • 1 reply
  • 9 views

CharlieG

Hi all,

I think I found a bug in the RMS wavefront error plotting tool - initially saw it in the 2025 R4 version, but I downloaded the latest 2026 R1 and it’s still there.

I was working through some analysis and noticed a discrepancy in the RMS wavefront error values reported on the plot vs evaluation in the merit function. As seen in the example below, the merit function operand RWCE was reporting a fairly different value compared to the plot. Initially I assumed this was due to sampling, but the difference persisted (I also tried comparing rectangular array vs Gaussian quadrature).

 

Next, on a whim, I evaluated the RWCH (chief ray reference) operand and noticed it did match the plot value, which I found odd, because the default for the plot is to reference the centroid. Looking closer at the plot, I noticed that although Centroid is selected as the reference in the settings, the title block reports “Reference: Chief Ray”. Likewise, when Chief Ray is selected in the settings, the plot shows “Reference: Centroid”.

 

At this point I wasn’t sure what to trust, but after digging a little more I convinced myself that the merit function operands were reporting the correct values, but the plots are displaying incorrectly (Chief Ray shows Centroid, Centroid shows Chief Ray). 

Hoping someone else can validate this or otherwise tell me if I’m missing something. I probably wouldn’t have noticed if I weren’t digging through MC files that had some coma present to introduce a difference between the centroid/chief ray reference evaluations. 

Thanks,

Charlie

1 reply

MichaelH
Ansys Staff
Forum|alt.badge.img+2
  • Ansys Staff
  • April 3, 2026

Hey Charlie,

You mentioned you saw this issue in 2025 R4 version.  In earlier versions, was there no issue?  Was this a regression from an older version of you think this RCWE was never matching the analysis?

I ask because I do not expect the Merit Function Operand to ever produce the same result as an analysis.  By default, the MF operand has some assumptions like ignoring vignetting/apertures when calculating operand values.  The thought process behind the MFE is “make it as fast as possible”.  So, when dealing with an MF operand, unless you take extra care to ensure the values are absolutely correct, I would always treat MF operands as being relatively correct.

If you need a final value for validation, always use the actual Analysis but if you need a quick relative measure of performance, especially between 2 different optimizations/systems, then you can use the MF operand.

For your specific situation, if you can share you file that is producing different results, the community might be able to help out more.