


{"id":369371,"date":"2024-05-31T11:16:54","date_gmt":"2024-05-31T11:16:54","guid":{"rendered":"\/forum\/forums\/topic\/doubts-in-interpolation-in-metalens-example\/"},"modified":"2024-05-31T11:16:54","modified_gmt":"2024-05-31T11:16:54","slug":"doubts-in-interpolation-in-metalens-example","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/doubts-in-interpolation-in-metalens-example\/","title":{"rendered":"Doubts in Interpolation in Metalens Example"},"content":{"rendered":"<p><span style=\"font-size: 12pt\">I am working on Chiral Metasurface. In the metalens example, if we change the parameter, radius, we get a phase shift ranging from 0 to 2*pi. In my problem, I have to vary parameters namely w1, w2 along with the orientation angle of the meta atom (theta) to get a 0 to 2*pi phase shift for circularly polarised light incidence and to maintain a constant transmission coefficient. I use Geometric phase phenomena to get the 0 to 2*pi phase shifts.&nbsp; I have written this code, to find a suitable w1, w2, value for each theta to get a nearly constant transmission and also a phase shift ranging from 0 to 2*pi. I will attach the code below.<\/span><\/p>\n<p><span style=\"font-size: 12pt\">num_theta = length(theta);<\/span><\/p>\n<p><span style=\"font-size: 12pt\"># Initialize variables<\/span><\/p>\n<p><span style=\"font-size: 12pt\">selected_w1_idx = zeros(num_theta, 1);<\/span><\/p>\n<p><span style=\"font-size: 12pt\">selected_w2_idx = zeros(num_theta, 1);<\/span><\/p>\n<p><span style=\"font-size: 12pt\">selected_w1 = zeros(num_theta, 1);<\/span><\/p>\n<p><span style=\"font-size: 12pt\">selected_w2 = zeros(num_theta, 1);<\/span><\/p>\n<p><span style=\"font-size: 12pt\">max_L_R_T = zeros(num_theta, 1);<\/span><\/p>\n<p><span style=\"font-size: 12pt\">selected_phase = zeros(num_theta, 1);<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\">### Define phase conditions for each theta index<\/span><\/p>\n<p><span style=\"font-size: 12pt\">#phase_conditions = [2*pi, 7*pi\/4, 6*pi\/4, 5*pi\/4, pi, pi, 3*pi\/4, 2*pi\/4, pi\/4];<\/span><\/p>\n<p><span style=\"font-size: 12pt\">phase_conditions = [2*pi, 8*pi\/5, 6*pi\/5, 4*pi\/5, 2*pi\/5, pi\/5];<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\">## Loop through each theta value<\/span><\/p>\n<p><span style=\"font-size: 12pt\">for (k = 1:num_theta) {<\/span><\/p>\n<p><span style=\"font-size: 12pt\">current_theta_index = k; # Current theta index<\/span><\/p>\n<p><span style=\"font-size: 12pt\">max_L_R_T(k) = 0; # Initialize to a very low value to ensure it gets updated<\/span><\/p>\n<p><span style=\"font-size: 12pt\">selected_w1_idx(k) = 0;<\/span><\/p>\n<p><span style=\"font-size: 12pt\">selected_w2_idx(k) = 0;<\/span><\/p>\n<p><span style=\"font-size: 12pt\">selected_w1(k) = 0;<\/span><\/p>\n<p><span style=\"font-size: 12pt\">selected_w2(k) = 0;<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\"># Loop through w1 and w2 dimensions for the current theta<\/span><\/p>\n<p><span style=\"font-size: 12pt\">for (i = 1:length(w1)) {<\/span><\/p>\n<p><span style=\"font-size: 12pt\">for (j = 1:length(w2)) {<\/span><\/p>\n<p><span style=\"font-size: 12pt\">current_phase = L_R_phase_T(1, 1, i, j, current_theta_index);<\/span><\/p>\n<p><span style=\"font-size: 12pt\">current_L_R_T = L_R_T(1, 1, i, j, current_theta_index);<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\"># Print the current values for debugging<\/span><\/p>\n<p><span style=\"font-size: 12pt\">?&#8221;w1(&#8221; + num2str(i) + &#8220;) = &#8221; + num2str(w1(i)) + &#8220;, w2(&#8221; + num2str(j) + &#8220;) = &#8221; + num2str(w2(j));<\/span><\/p>\n<p><span style=\"font-size: 12pt\">?&#8221;current_phase = &#8221; + num2str(current_phase) + &#8220;, current_L_R_T = &#8221; + num2str(current_L_R_T);<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\"># Check if phase meets the condition for the current theta<\/span><\/p>\n<p><span style=\"font-size: 12pt\">if (current_phase &lt;= phase_conditions(k)) {<\/span><\/p>\n<p><span style=\"font-size: 12pt\"># Update max_L_R_T if the current transmission coefficient is higher<\/span><\/p>\n<p><span style=\"font-size: 12pt\">if (current_L_R_T &gt; max_L_R_T(k)) {<\/span><\/p>\n<p><span style=\"font-size: 12pt\">max_L_R_T(k) = current_L_R_T;<\/span><\/p>\n<p><span style=\"font-size: 12pt\">selected_w1_idx(k) = i;<\/span><\/p>\n<p><span style=\"font-size: 12pt\">selected_w2_idx(k) = j;<\/span><\/p>\n<p><span style=\"font-size: 12pt\">selected_w1(k) = w1(i);<\/span><\/p>\n<p><span style=\"font-size: 12pt\">selected_w2(k) = w2(j);<\/span><\/p>\n<p><span style=\"font-size: 12pt\">selected_phase(k) = current_phase; # Save the corresponding phase value<\/span><\/p>\n<p><span style=\"font-size: 12pt\">}<\/span><\/p>\n<p><span style=\"font-size: 12pt\">}<\/span><\/p>\n<p><span style=\"font-size: 12pt\">}<\/span><\/p>\n<p><span style=\"font-size: 12pt\">}<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\"># Print the results for the current theta<\/span><\/p>\n<p><span style=\"font-size: 12pt\">?&#8221;Results for theta = &#8221; + num2str(theta(k)) + &#8220;:&#8221;;<\/span><\/p>\n<p><span style=\"font-size: 12pt\">?&#8221;Maximum value of T: &#8221; + num2str(max_L_R_T(k));<\/span><\/p>\n<p><span style=\"font-size: 12pt\">?&#8221;This occurs at w1 index = &#8221; + num2str(selected_w1_idx(k)) + &#8221; and w2 index = &#8221; + num2str(selected_w2_idx(k));<\/span><\/p>\n<p><span style=\"font-size: 12pt\">?&#8221;Selected w1: &#8221; + num2str(selected_w1(k));<\/span><\/p>\n<p><span style=\"font-size: 12pt\">?&#8221;Selected w2: &#8221; + num2str(selected_w2(k));<\/span><\/p>\n<p><span style=\"font-size: 12pt\">?&#8221;Selected phase: &#8221; + num2str(selected_phase(k));<\/span><\/p>\n<p><span style=\"font-size: 12pt\">}<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\">## Plotting of phase and Transmission coefficients for a particular set of dimensions:<\/span><\/p>\n<p><span style=\"font-size: 12pt\">plot(theta,selected_phase *180\/pi,&#8221;phase (degree)&#8221;,&#8221;theta (degrees)&#8221;,&#8221;&#8221;,&#8221;linewidth=2&#8243;);<\/span><\/p>\n<p><span style=\"font-size: 12pt\">plot(theta,max_L_R_T,&#8221;phase (degree)&#8221;,&#8221;Transmission&#8221;,&#8221;&#8221;,&#8221;linewidth=2&#8243;);<\/span><\/p>\n<p><span style=\"font-size: 12pt\">setplot(&#8220;y min&#8221;,0);setplot(&#8220;y max&#8221;,1);setplot(&#8220;show legend&#8221;,false);<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/05\/31-05-2024-1717153191-1.png\" alt=\"\"><br \/><\/span><\/p>\n<p><span style=\"font-size: 12pt\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/05\/31-05-2024-1717153235-2.png\" alt=\"\"><\/span><\/p>\n<p><span style=\"font-size: 12pt\">Now I am struck with how to find the theta_interpolation just like in the metalens Example.&nbsp;<\/span><br \/><span style=\"font-size: 12pt\">In the metalens, unitcell file, to get the radius_interp = spline(radius phase, phase_interp) was used, where phase_interp = linspace(0, 2*pi, 361).<\/span><br \/><span style=\"font-size: 12pt\">For my case, I have other parameters namely w1, w2 along with theta to get constant Transmission coefficients along with the phase shifts ranging from 0 to 2*pi, Now I have to find theta_interp value corresponding to every phase_interp value. The dimension of the theta_interp will be [361,1], Now I have to adjust w1, and w2, values for each 361 theta value, such that I get a 0 to 2*pi phase along with the nearly constant transmission coefficients. How do I go about it?&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 12pt\">I tried to write a code, but nothing worked. The code is attached below.&nbsp;<\/span><br \/><span style=\"font-size: 12pt\">### Define phase_interp with dimension [361,1]<\/span><\/p>\n<p><span style=\"font-size: 12pt\">phase_interp = linspace(0, 2*pi, 361); # 361 points from 0 to 2*pi<\/span><\/p>\n<p><span style=\"font-size: 12pt\">## Initialize the resulting array for interpolated phases<\/span><\/p>\n<p><span style=\"font-size: 12pt\">w1_w2_theta_interp = matrix(361, 6, 6, 6);<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\">theta_test = pinch(theta);<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\"># Iterate over w1 and w2 to interpolate L_R_phase for each phase_interp<\/span><\/p>\n<p><span style=\"font-size: 12pt\">for (i = 1; i &lt;= length(w1); i = i + 1) {<\/span><\/p>\n<p><span style=\"font-size: 12pt\">for (j = 1; j &lt;= length(w2); j = j + 1) {<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\"># Extract the slice of L_R_phase for the current w1, w2, and theta<\/span><\/p>\n<p><span style=\"font-size: 12pt\">L_R_phase_slice = pinch(L_R_phase_T(1, 1, i, j, :));<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\"># Ensure L_R_phase_slice is a 1D array<\/span><\/p>\n<p><span style=\"font-size: 12pt\">L_R_phase_slice = reshape(L_R_phase_slice, length(theta_test));<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\"># Perform spline interpolation for each phase_interp value<\/span><\/p>\n<p><span style=\"font-size: 12pt\">for (p = 1; p &lt;= length(phase_interp); p = p + 1) {<\/span><\/p>\n<p><span style=\"font-size: 12pt\">w1_w2_theta_interp(p, i, j, \ud83d\ude42 = spline(theta_test, L_R_phase_slice, phase_interp(p));<\/span><\/p>\n<p><span style=\"font-size: 12pt\">}<\/span><\/p>\n<p><span style=\"font-size: 12pt\">}<\/span><\/p>\n<p><span style=\"font-size: 12pt\">}<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\">?size(w1_w2_theta_interp);<\/span><br \/><span style=\"font-size: 12pt\">I am sure this approach is wrong. It would be great if someone could help me write the code or even tell me how to approach it instead of just telling use for loop and so on.<br \/>I am looking forward to your reply. Thanks in advance!<\/span><\/p>\n","protected":false},"template":"","class_list":["post-369371","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"I am working on Chiral Metasurface. In the metalens example, if we change the parameter, radius, we get a phase shift ranging from 0 to 2*pi. In my problem, I have to vary parameters namely w1, w2 along with the orientation angle of the meta atom (theta) to get a 0 to 2*pi phase shift\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/doubts-in-interpolation-in-metalens-example\/\" \/>\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=\"Doubts in Interpolation in Metalens Example | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"I am working on Chiral Metasurface. In the metalens example, if we change the parameter, radius, we get a phase shift ranging from 0 to 2*pi. In my problem, I have to vary parameters namely w1, w2 along with the orientation angle of the meta atom (theta) to get a 0 to 2*pi phase shift\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/doubts-in-interpolation-in-metalens-example\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/05\/31-05-2024-1717153191-1.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/05\/31-05-2024-1717153191-1.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-05-31T11:16:54+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-05-31T11:16:54+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Doubts in Interpolation in Metalens Example | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I am working on Chiral Metasurface. In the metalens example, if we change the parameter, radius, we get a phase shift ranging from 0 to 2*pi. In my problem, I have to vary parameters namely w1, w2 along with the orientation angle of the meta atom (theta) to get a 0 to 2*pi phase shift\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/05\/31-05-2024-1717153191-1.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\\\/doubts-in-interpolation-in-metalens-example\\\/#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\\\/doubts-in-interpolation-in-metalens-example\\\/#listItem\",\"name\":\"Doubts in Interpolation in Metalens Example\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/doubts-in-interpolation-in-metalens-example\\\/#listItem\",\"position\":3,\"name\":\"Doubts in Interpolation in Metalens Example\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}}]},{\"@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\\\/doubts-in-interpolation-in-metalens-example\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/doubts-in-interpolation-in-metalens-example\\\/\",\"name\":\"Doubts in Interpolation in Metalens Example | Ansys Learning Forum\",\"description\":\"I am working on Chiral Metasurface. In the metalens example, if we change the parameter, radius, we get a phase shift ranging from 0 to 2*pi. In my problem, I have to vary parameters namely w1, w2 along with the orientation angle of the meta atom (theta) to get a 0 to 2*pi phase shift\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/doubts-in-interpolation-in-metalens-example\\\/#breadcrumblist\"},\"datePublished\":\"2024-05-31T11:16:54+00:00\",\"dateModified\":\"2024-05-31T11:16:54+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":"Doubts in Interpolation in Metalens Example | Ansys Learning Forum","description":"I am working on Chiral Metasurface. In the metalens example, if we change the parameter, radius, we get a phase shift ranging from 0 to 2*pi. In my problem, I have to vary parameters namely w1, w2 along with the orientation angle of the meta atom (theta) to get a 0 to 2*pi phase shift","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/doubts-in-interpolation-in-metalens-example\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/doubts-in-interpolation-in-metalens-example\/#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\/doubts-in-interpolation-in-metalens-example\/#listItem","name":"Doubts in Interpolation in Metalens Example"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/doubts-in-interpolation-in-metalens-example\/#listItem","position":3,"name":"Doubts in Interpolation in Metalens Example","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}}]},{"@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\/doubts-in-interpolation-in-metalens-example\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/doubts-in-interpolation-in-metalens-example\/","name":"Doubts in Interpolation in Metalens Example | Ansys Learning Forum","description":"I am working on Chiral Metasurface. In the metalens example, if we change the parameter, radius, we get a phase shift ranging from 0 to 2*pi. In my problem, I have to vary parameters namely w1, w2 along with the orientation angle of the meta atom (theta) to get a 0 to 2*pi phase shift","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/doubts-in-interpolation-in-metalens-example\/#breadcrumblist"},"datePublished":"2024-05-31T11:16:54+00:00","dateModified":"2024-05-31T11:16:54+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":"Doubts in Interpolation in Metalens Example | Ansys Learning Forum","og:description":"I am working on Chiral Metasurface. In the metalens example, if we change the parameter, radius, we get a phase shift ranging from 0 to 2*pi. In my problem, I have to vary parameters namely w1, w2 along with the orientation angle of the meta atom (theta) to get a 0 to 2*pi phase shift","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/doubts-in-interpolation-in-metalens-example\/","og:image":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/05\/31-05-2024-1717153191-1.png","og:image:secure_url":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/05\/31-05-2024-1717153191-1.png","article:published_time":"2024-05-31T11:16:54+00:00","article:modified_time":"2024-05-31T11:16:54+00:00","twitter:card":"summary_large_image","twitter:title":"Doubts in Interpolation in Metalens Example | Ansys Learning Forum","twitter:description":"I am working on Chiral Metasurface. In the metalens example, if we change the parameter, radius, we get a phase shift ranging from 0 to 2*pi. In my problem, I have to vary parameters namely w1, w2 along with the orientation angle of the meta atom (theta) to get a 0 to 2*pi phase shift","twitter:image":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/05\/31-05-2024-1717153191-1.png"},"aioseo_meta_data":{"post_id":"369371","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:39:54","updated":"2024-10-28 16:39:54","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\tDoubts in Interpolation in Metalens Example\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":"Doubts in Interpolation in Metalens Example","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/doubts-in-interpolation-in-metalens-example\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["302729","33648"],"_bbp_author_ip":["184.24.96.207"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["263"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["369371"],"_bbp_forum_id":["27833"],"_bbp_engagement":["33648","302729"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["370237"],"_bbp_last_active_id":["370237"],"_bbp_last_active_time":["2024-07-03 04:26:56"]},"test":"ph23resch01002iith-ac-in"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/369371","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\/369371\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=369371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}