


{"id":392269,"date":"2024-10-31T15:06:43","date_gmt":"2024-10-31T15:06:43","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/possible-bug-in-popd-calculation\/"},"modified":"2024-10-31T15:06:43","modified_gmt":"2024-10-31T15:06:43","slug":"possible-bug-in-popd-calculation","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/possible-bug-in-popd-calculation\/","title":{"rendered":"Possible BUG in POPD calculation"},"content":{"rendered":"<p>&lt;p&gt;Hi All,&lt;\/p&gt;&lt;p&gt;I would like to ask two separate questions here:&lt;\/p&gt;<\/p>\n<ol>\n<li>I ran the same POP.zmx file on two computers that have the same version of Zemax version, 2023.R2.02. System&nbsp;settings and POP settings are all the same. One gives fiber coupling efficiency 72% and the other one gives 80%. What could be the reasons behind this discrepancy?<\/li>\n<li>I ran that POP.zmx file on one computer that has Zemax version 2024.R2.02. It&rsquo;s a simple optical system using two lenses collimating and coupling laser coming out from one fiber into the other one. I have a dummy surface before the first lens to check the beam. In the Physical Optics option under Surface properties, if I turned off &ldquo;Auto Resample&rdquo;, it gives coupling efficiency of 93% and a 10E+04 times higher total power (while the input is 1.0). However, if I turned on &ldquo;Auto Resample&rdquo;, it gives coupling efficiency of 77% and a 0.99 total power (more reasonable). My questions is: why sampling affects the fiber coupling efficiency calculation and which value is more trustable?<\/li>\n<\/ol>\n<p>&lt;p&gt;&nbsp; &nbsp; &nbsp; &nbsp;Following above, I ran the same POP.zmx file on one computer that has Zemax version 2023.R2.02. Resampling on that same surface&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;does not change the coupling result. My question is: What is the difference between the sampling of 2023.R2 and 2024.R2?&lt;\/p&gt;<\/p>\n<ul>\n<li>Here are some specific examples to illustrate how the sampling choice affecting the total power calculation:<\/li>\n<\/ul>\n<p>&lt;p&gt;&nbsp; &nbsp; &nbsp; &nbsp; As we change the sampling on dummy surface #1, which is just a standard surface sitting in front of all lenses. Beam propagates from source to this surface without anything in between. Here are some results using Zemax 2024.R2.02:&lt;\/p&gt;<\/p>\n<ul>\n<li>When resampling is completely off: Total power is 1, which is desired.<\/li>\n<\/ul>\n<p>&lt;figure&gt;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/uploads-us-west-2.insided.com\/zemax-en\/attachment\/09bf9abb-0d21-4017-8c11-5e7005e38d96.png\" alt=\"\" width=\"778\" height=\"438\" \/>&lt;\/figure&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;<\/p>\n<ul>\n<li>When &ldquo;Auto resample&rdquo; is clicked: Total power drops to 0.2, which is not right.<\/li>\n<\/ul>\n<p>&lt;figure&gt;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/uploads-us-west-2.insided.com\/zemax-en\/attachment\/b4d0b444-4633-4f3f-bc4a-0d9a09840a8f.png\" alt=\"\" width=\"768\" height=\"432\" \/>&lt;\/figure&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;<\/p>\n<ul>\n<li>When I reduced the X-width and Y-width, i.e., the window size while keep the sampling number the same: Total power increases to 1.7, which does not make sense because there is clipping now.<\/li>\n<\/ul>\n<p>&lt;figure&gt;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/uploads-us-west-2.insided.com\/zemax-en\/attachment\/691d9adb-f629-4e50-94c6-f56ceed35621.png\" alt=\"\" width=\"789\" height=\"444\" \/>&lt;\/figure&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;<\/p>\n<ul>\n<li>When I try to over sample it with original grid size by increasing the sampling number, total power increases to 3.9. This is to say the higher&nbsp;the resolution, the higher the total power is.<\/li>\n<\/ul>\n<p>&lt;figure&gt;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/uploads-us-west-2.insided.com\/zemax-en\/attachment\/9d83999f-896d-437e-b206-5a970f2734c4.png\" alt=\"\" width=\"826\" height=\"465\" \/>&lt;\/figure&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;<\/p>\n<ul>\n<li>When I try to under sample it with original grid size by decreasing&nbsp;the sampling number, total power decreases significantly to 0.06. This is to say the lower the&nbsp;resolution, the lower&nbsp;the total power is.<\/li>\n<\/ul>\n<p>&lt;figure&gt;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/uploads-us-west-2.insided.com\/zemax-en\/attachment\/ab867886-8c9f-454a-99f3-5c215ac154f1.png\" alt=\"\" width=\"720\" height=\"405\" \/>&lt;\/figure&gt;&lt;p&gt;Is this possibly a BUG in Zemax POP calculation?&lt;\/p&gt;&lt;p&gt;The version 2024.R1 also has bug: changing sampling does not change total power at all. It remains 1.&lt;\/p&gt;&lt;figure&gt;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/uploads-us-west-2.insided.com\/zemax-en\/attachment\/2438bcaa-ea9c-4622-9017-7f9821cd1ac3.png\" alt=\"\" width=\"458\" height=\"413\" \/>&lt;figcaption&gt;With a big grid size 2 x 2&lt;\/figcaption&gt;&lt;\/figure&gt;&lt;figure&gt;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/uploads-us-west-2.insided.com\/zemax-en\/attachment\/aa7d8c14-5225-40ec-a4b9-2caaa0a8464d.png\" alt=\"\" width=\"472\" height=\"421\" \/>&lt;\/figure&gt;&lt;p&gt;With a small grid size 0.1 x 0.1 so the beam is highly clipped, how come the total power is still 1?&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;Thank you!&lt;\/p&gt;&lt;p&gt;Di&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-392269","topic","type-topic","status-publish","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["477029","50911"],"_bbp_author_ip":["206.47.231.172"],"_btv_view_count":["338"],"_bbp_topic_status":["unanswered"],"_bbp_notification_enabled":["477029"],"_bbp_topic_id":["392269"],"_bbp_forum_id":["27816"],"_bbp_engagement":["50911","477029"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["392386"],"_bbp_last_active_id":["392386"],"_bbp_last_active_time":["2024-11-01 10:39:21"]},"test":"di-changlumentum-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/392269","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":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/392269\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=392269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}