


{"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":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"I wanted to reproduce the phase figures from Decker et al. (Adv. Optical Mat., 2015) article:I was given something similar by using the &#039;s_grating_components&#039; script, present in this model:With this one being the unwrapped graph. Using f() = angle() I get this graph, which is the &#039;wrapped&#039; version:My intention was to accommodate the upper graph\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-do-phase-wrapping\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to do \u2018Phase Wrapping\u2019? | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"I wanted to reproduce the phase figures from Decker et al. (Adv. Optical Mat., 2015) article:I was given something similar by using the &#039;s_grating_components&#039; script, present in this model:With this one being the unwrapped graph. Using f() = angle() I get this graph, which is the &#039;wrapped&#039; version:My intention was to accommodate the upper graph\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-do-phase-wrapping\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/12-03-2024-1710240801-mceclip0.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/12-03-2024-1710240801-mceclip0.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-03-22T14:44:46+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-03-22T14:44:46+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to do \u2018Phase Wrapping\u2019? | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I wanted to reproduce the phase figures from Decker et al. (Adv. Optical Mat., 2015) article:I was given something similar by using the &#039;s_grating_components&#039; script, present in this model:With this one being the unwrapped graph. Using f() = angle() I get this graph, which is the &#039;wrapped&#039; version:My intention was to accommodate the upper graph\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/12-03-2024-1710240801-mceclip0.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-do-phase-wrapping\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/phase-change\\\/#listItem\",\"name\":\"phase-change\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/phase-change\\\/#listItem\",\"position\":3,\"name\":\"phase-change\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/phase-change\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-do-phase-wrapping\\\/#listItem\",\"name\":\"How to do &#8216;Phase Wrapping&#8217;?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-do-phase-wrapping\\\/#listItem\",\"position\":4,\"name\":\"How to do &#8216;Phase Wrapping&#8217;?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/phase-change\\\/#listItem\",\"name\":\"phase-change\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-do-phase-wrapping\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-do-phase-wrapping\\\/\",\"name\":\"How to do \\u2018Phase Wrapping\\u2019? | Ansys Learning Forum\",\"description\":\"I wanted to reproduce the phase figures from Decker et al. (Adv. Optical Mat., 2015) article:I was given something similar by using the 's_grating_components' script, present in this model:With this one being the unwrapped graph. Using f() = angle() I get this graph, which is the 'wrapped' version:My intention was to accommodate the upper graph\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-do-phase-wrapping\\\/#breadcrumblist\"},\"datePublished\":\"2024-03-22T14:44:46+00:00\",\"dateModified\":\"2024-03-22T14:44:46+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to do \u2018Phase Wrapping\u2019? | Ansys Learning Forum","description":"I wanted to reproduce the phase figures from Decker et al. (Adv. Optical Mat., 2015) article:I was given something similar by using the 's_grating_components' script, present in this model:With this one being the unwrapped graph. Using f() = angle() I get this graph, which is the 'wrapped' version:My intention was to accommodate the upper graph","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-do-phase-wrapping\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-do-phase-wrapping\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/forum\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/phase-change\/#listItem","name":"phase-change"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/phase-change\/#listItem","position":3,"name":"phase-change","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/phase-change\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-do-phase-wrapping\/#listItem","name":"How to do &#8216;Phase Wrapping&#8217;?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-do-phase-wrapping\/#listItem","position":4,"name":"How to do &#8216;Phase Wrapping&#8217;?","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/phase-change\/#listItem","name":"phase-change"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-do-phase-wrapping\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-do-phase-wrapping\/","name":"How to do \u2018Phase Wrapping\u2019? | Ansys Learning Forum","description":"I wanted to reproduce the phase figures from Decker et al. (Adv. Optical Mat., 2015) article:I was given something similar by using the 's_grating_components' script, present in this model:With this one being the unwrapped graph. Using f() = angle() I get this graph, which is the 'wrapped' version:My intention was to accommodate the upper graph","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-do-phase-wrapping\/#breadcrumblist"},"datePublished":"2024-03-22T14:44:46+00:00","dateModified":"2024-03-22T14:44:46+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"How to do \u2018Phase Wrapping\u2019? | Ansys Learning Forum","og:description":"I wanted to reproduce the phase figures from Decker et al. (Adv. Optical Mat., 2015) article:I was given something similar by using the 's_grating_components' script, present in this model:With this one being the unwrapped graph. Using f() = angle() I get this graph, which is the 'wrapped' version:My intention was to accommodate the upper graph","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-do-phase-wrapping\/","og:image":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/12-03-2024-1710240801-mceclip0.png","og:image:secure_url":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/12-03-2024-1710240801-mceclip0.png","article:published_time":"2024-03-22T14:44:46+00:00","article:modified_time":"2024-03-22T14:44:46+00:00","twitter:card":"summary_large_image","twitter:title":"How to do \u2018Phase Wrapping\u2019? | Ansys Learning Forum","twitter:description":"I wanted to reproduce the phase figures from Decker et al. (Adv. Optical Mat., 2015) article:I was given something similar by using the 's_grating_components' script, present in this model:With this one being the unwrapped graph. Using f() = angle() I get this graph, which is the 'wrapped' version:My intention was to accommodate the upper graph","twitter:image":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/12-03-2024-1710240801-mceclip0.png"},"aioseo_meta_data":{"post_id":"358501","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"content","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2024-10-28 16:52:38","updated":"2024-10-28 16:52:38","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/phase-change\/\" title=\"phase-change\">phase-change<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to do \u2018Phase Wrapping\u2019?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/forum\/topics\/"},{"label":"phase-change","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/phase-change\/"},{"label":"How to do &#8216;Phase Wrapping&#8217;?","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-do-phase-wrapping\/"}],"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":["2094"],"_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}]}}