


{"id":356596,"date":"2024-03-12T10:58:37","date_gmt":"2024-03-12T10:58:37","guid":{"rendered":"\/forum\/forums\/topic\/how-to-show-phase-units-appropiately\/"},"modified":"2024-03-12T10:58:37","modified_gmt":"2024-03-12T10:58:37","slug":"how-to-show-phase-units-appropiately","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-show-phase-units-appropiately\/","title":{"rendered":"How to show phase units appropiately?"},"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><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/12-03-2024-1710240801-mceclip0.png\"><\/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>But of course, the units of the phase are not the same. I have already asked for a solution to this issue, and been given to use either the functions unwrap(angle()) or angle(), which do the job by getting the phase isolated for each component:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/02\/25-02-2024-1708900052-mceclip0.png\" width=\"351\" height=\"234\"><\/p>\n<p>But I would like to automatically get the green figure, with the appropiate scaling of the phase. In addition, I see that the script is not getting the exact same phase, and I don&#8217;t see any difference between the model and the figure illustrated in the article. What is the &#8216;shift&#8217; in phase due to?&nbsp;<\/p>\n<p>Appreciate your help.&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-356596","topic","type-topic","status-closed","hentry","topic-tag-grating-1","topic-tag-metasurface-1","topic-tag-phase-change","topic-tag-phase-change-materials-1"],"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:But of course, the units of the phase are not the same. I have already asked for a solution to this issue, and been given to use\" \/>\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-show-phase-units-appropiately\/\" \/>\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 show phase units appropiately? | 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:But of course, the units of the phase are not the same. I have already asked for a solution to this issue, and been given to use\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-show-phase-units-appropiately\/\" \/>\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-12T10:58:37+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-03-12T10:58:37+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to show phase units appropiately? | 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:But of course, the units of the phase are not the same. I have already asked for a solution to this issue, and been given to use\" \/>\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-show-phase-units-appropiately\\\/#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-show-phase-units-appropiately\\\/#listItem\",\"name\":\"How to show phase units appropiately?\"},\"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-show-phase-units-appropiately\\\/#listItem\",\"position\":4,\"name\":\"How to show phase units appropiately?\",\"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-show-phase-units-appropiately\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-show-phase-units-appropiately\\\/\",\"name\":\"How to show phase units appropiately? | 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:But of course, the units of the phase are not the same. I have already asked for a solution to this issue, and been given to use\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/how-to-show-phase-units-appropiately\\\/#breadcrumblist\"},\"datePublished\":\"2024-03-12T10:58:37+00:00\",\"dateModified\":\"2024-03-12T10:58:37+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 show phase units appropiately? | 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:But of course, the units of the phase are not the same. I have already asked for a solution to this issue, and been given to use","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-show-phase-units-appropiately\/","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-show-phase-units-appropiately\/#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-show-phase-units-appropiately\/#listItem","name":"How to show phase units appropiately?"},"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-show-phase-units-appropiately\/#listItem","position":4,"name":"How to show phase units appropiately?","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-show-phase-units-appropiately\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-show-phase-units-appropiately\/","name":"How to show phase units appropiately? | 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:But of course, the units of the phase are not the same. I have already asked for a solution to this issue, and been given to use","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-show-phase-units-appropiately\/#breadcrumblist"},"datePublished":"2024-03-12T10:58:37+00:00","dateModified":"2024-03-12T10:58:37+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 show phase units appropiately? | 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:But of course, the units of the phase are not the same. I have already asked for a solution to this issue, and been given to use","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-show-phase-units-appropiately\/","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-12T10:58:37+00:00","article:modified_time":"2024-03-12T10:58:37+00:00","twitter:card":"summary_large_image","twitter:title":"How to show phase units appropiately? | 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:But of course, the units of the phase are not the same. I have already asked for a solution to this issue, and been given to use","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":"356596","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:54:40","updated":"2024-10-28 16:54:40","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 show phase units appropiately?\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 show phase units appropiately?","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-show-phase-units-appropiately\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["75200","2592"],"_bbp_author_ip":["23.206.193.154"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["264"],"_bbp_topic_status":["unanswered"],"_edit_lock":["1711117791:288793"],"_bbp_topic_id":["356596"],"_bbp_forum_id":["27833"],"_bbp_engagement":["2592","75200"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["356990"],"_bbp_last_active_id":["356990"],"_bbp_last_active_time":["2024-03-14 02:10:51"]},"test":"100521665alumnos-uc3m-es"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/356596","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\/356596\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=356596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}