


{"id":358501,"date":"2024-03-22T14:44:46","date_gmt":"2024-03-22T14:44:46","guid":{"rendered":"\/forum\/forums\/topic\/how-to-do-phase-wrapping\/"},"modified":"2024-03-22T14:44:46","modified_gmt":"2024-03-22T14:44:46","slug":"how-to-do-phase-wrapping","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-do-phase-wrapping\/","title":{"rendered":"How to do &#8216;Phase Wrapping&#8217;?"},"content":{"rendered":"<p>I wanted to reproduce the phase figures from <a href=\"https:\/\/doi.org\/10.1002\/adom.201400584\">Decker et al. (Adv. Optical Mat., 2015)<\/a> article:<\/p>\n<p><a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/12-03-2024-1710240801-mceclip0.png\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/12-03-2024-1710240801-mceclip0.png\"><\/a><\/p>\n<p>I was given something similar by using the &#8216;s_grating_components&#8217; script, present in this <a href=\"https:\/\/www.dropbox.com\/scl\/fi\/luvto8loa84ijebrz5pol\/phase_calc_final.zip?rlkey=899idyhva3rb1saxyezbp27xq&amp;dl=0\">model<\/a>:<\/p>\n<p><a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/02\/20-02-2024-1708419167-angle_calculation.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/02\/20-02-2024-1708419167-angle_calculation.png\" alt=\"\" width=\"350\" height=\"241\"><\/a><\/p>\n<p>With this one being the unwrapped graph. Using <em>f() = angle()<\/em> I get this graph, which is the &#8216;wrapped&#8217; version:<\/p>\n<p><a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/02\/25-02-2024-1708900052-mceclip0.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/02\/25-02-2024-1708900052-mceclip0.png\" width=\"351\" height=\"234\"><\/a><\/p>\n<p>My intention was to accommodate the upper graph to the range of the latter (so I can have a realistic phase characteristic with [pi,-pi] limits). To do so, I was suggested to use an approximation basing myself over the &#8216;center frequency&#8217;. I guessed to use this own-made MATLAB script:<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/14-03-2024-1710420109-mceclip0.png\"><\/p>\n<p>Where the term &#8216;pi\/2&#8217; serves as a y-axis correction. It depends on where is your final graph located at. Using it, I have been able to plot something like this:<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/14-03-2024-1710382027-mceclip0.png\" width=\"519\" height=\"403\" loading=\"lazy\"><\/p>\n<p>Which is somehow better, but still gets outside the real phase limits, and that is something I cannot tolerate because it lacks physical meaning. Is this script correct? Can Lumerical implement it without getting out of it?<\/p>\n<p><strong>Besides this, <\/strong>using this simulation I find a shift in phase (you can see this as in the reference picture the middle-point of the phase gets at 1200 nm, meanwhile in my case I find this point at 1300 nm), which I don&#8217;t see why happens as my model is identical to that of the article.&nbsp;<\/p>\n<p>Hope you can answer both questions. Appreciate your help.&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-358501","topic","type-topic","status-closed","hentry","topic-tag-metasurface-1","topic-tag-mie-theory-2","topic-tag-phase-change","topic-tag-scattering-matrix-2"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["75200","2592"],"_bbp_author_ip":["23.206.193.41"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1459"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["358501"],"_bbp_forum_id":["27833"],"_bbp_engagement":["2592","75200"],"_bbp_voice_count":["2"],"_bbp_reply_count":["5"],"_bbp_last_reply_id":["358570"],"_bbp_last_active_id":["358570"],"_bbp_last_active_time":["2024-03-22 19:00:07"]},"test":"100521665alumnos-uc3m-es"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/358501","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\/358501\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=358501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}