


{"id":430825,"date":"2025-05-05T18:43:26","date_gmt":"2025-05-05T18:43:26","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/zemax-tolerancing-and-reporting-for-wavefront-error\/"},"modified":"2025-05-08T16:21:59","modified_gmt":"2025-05-08T16:21:59","slug":"zemax-tolerancing-and-reporting-for-wavefront-error","status":"answered","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/zemax-tolerancing-and-reporting-for-wavefront-error\/","title":{"rendered":"(Zemax) Tolerancing and Reporting for Wavefront Error"},"content":{"rendered":"<p>&lt;p&gt;Hello!&lt;\/p&gt;&lt;p&gt;&lt;span style=&#8221;text-decoration: underline;&#8221;&gt;Preamble&lt;\/span&gt;: I am using a tolerance script which calls a merit function (MF) that is optimizng for RMS wavefront error (WFE). Among others, there is an operand RWCE for WFE in that MF with weight 0.000. I have a whole tolerance table as usual, and some run-of-the-mill compensators in my script. At the end of the script, I report RWCE, which by manual inspection appears to be a reasonable and correct number.&nbsp;&lt;\/p&gt;&lt;p&gt;In my tolerance report, in the Sensitivity Analysis and the Monte Carlo simulation, I am getting two things: My WFE value from the RWCE operand as expected when using the <em>REPORT<\/em> command in my script, and also the &#8220;Nominal Criterion&#8221; which is the literal merit function value since I am using a user-defined script. For me, the WFE is the actual useful thing for real life assessment of the system.&nbsp;&lt;\/p&gt;&lt;p&gt;&lt;span style=&#8221;text-decoration: underline;&#8221;&gt;Here is my question:&lt;\/span&gt; It is well and good that my report lists the WFE for each tolerance extreme in the Sensitivity analysis and each Monte Carlo output because I can read it manually and make sure I am within my performance constraints. However, what I really want is the <strong>summaries<\/strong> (see two screenshots) for the Sensivity analysis and the Monte Carlo analysis to be in WFE, not merit function value.&nbsp;&lt;\/p&gt;&lt;p&gt;If I were to not use a user-defined script, I&#8217;m aware I could select any criterion I want as the &#8220;nominal criterion&#8221; from the Criterion menu of the Tolerancing function. However, I have to use a script because I need to define tilt as compensators using CPAR and my tolerance data editor flips out if I try to use CPAR there.&lt;\/p&gt;&lt;p&gt;Thank you very much.&lt;\/p&gt;&lt;p&gt;&lt;span style=&#8221;text-decoration: underline;&#8221;&gt;Attachments:&lt;\/span&gt;&lt;\/p&gt;&lt;p&gt;<em>sensitivity-summary<\/em>: Sensitivity analysis summary which is reporting the merit function. I&#8217;d like this to be in WFE.&lt;\/p&gt;&lt;p&gt;<em>montecarlo-summary<\/em>: Monte Carlo analysis summary which is reporting the merit function. I&#8217;d like this also to be in WF&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;E.&lt;\/span&gt;&lt;\/p&gt;&lt;p&gt;<img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2025\/05\/05-05-2025-1746470483-sensitivity-summary.png\" alt=\"Sensitivity analysis summary which is reporting the merit function. I'd like this to be in WFE.\" \/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2025\/05\/05-05-2025-1746470534-montecarlo-summary.png\" alt=\"\" width=\"332\" height=\"123\" \/>&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-430825","topic","type-topic","status-answered","hentry","topic-tag-merit-function","topic-tag-tolerance","topic-tag-wavefront"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27816"],"_bbp_topic_id":["430825"],"_bbp_subscription":["541317","284763"],"_bbp_author_ip":["198.53.201.229"],"_bbp_last_reply_id":["431365"],"_bbp_last_active_id":["431365"],"_bbp_last_active_time":["2025-05-12 13:31:57"],"_bbp_reply_count":["3"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["541317","284763"],"_btv_view_count":["337"],"_bbp_topic_status":["answered"]},"test":"elliot-saivewyvern-space"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/430825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/430825\/revisions"}],"predecessor-version":[{"id":431104,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/430825\/revisions\/431104"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=430825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}