


{"id":301932,"date":"2023-08-17T15:02:46","date_gmt":"2023-08-17T15:02:46","guid":{"rendered":"\/forum\/forums\/topic\/questions-about-the-rcwa-simulation-in-the-example-of-metalens\/"},"modified":"2023-08-18T15:23:32","modified_gmt":"2023-08-18T15:23:32","slug":"questions-about-the-rcwa-simulation-in-the-example-of-metalens","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/questions-about-the-rcwa-simulation-in-the-example-of-metalens\/","title":{"rendered":"Questions about the RCWA simulation in the example of metalens"},"content":{"rendered":"<p class=\"MsoNormal\"><span lang=\"EN-US\">Hi, I&rsquo;m trying to use the RCWA example but some problems confuse me. Could anyone help on this:<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-US\">1. In the &ldquo;optimizations and sweeps&rdquo;, there is a sweep named &ldquo;radius&rdquo; which will return the E and H field in xy plane. As shown in the picture, in the structure tree, there is no object called &ldquo;xy_field&rdquo;. How can it get the E field results.<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-US\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/08\/17-08-2023-1692284486-mceclip0.png\"><\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-US\">2. In the script &ldquo;unit_cell.lsf&rdquo;, which is for the RCWA simulation, it wants to interpolate the E and H field. However, the extracted Ex from the sweep &ldquo;radius&rdquo; only contains 11 points in the third dimension, while that from the sweep &ldquo;height&rdquo; is 51 points. This will lead to a mismatch error. Hence, I am wondering if the original script misses a line of code to get the radius from the sweep &ldquo;radius&rdquo;. As shown in the following picture, if I add line 82, this error will disappear.<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-US\"><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/08\/17-08-2023-1692284509-mceclip1.png\"><\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-US\">3. A question about RCWA, can RCWA return the output E and H field? As stated in question #1, the E field is extracted from &ldquo;xy_field&rdquo; object, not from the RCWA object.<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-US\">Thanks in advance.<\/span><\/p>\n","protected":false},"template":"","class_list":["post-301932","topic","type-topic","status-closed","hentry","topic-tag-metalens-1","topic-tag-RCWA-1"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["240859","2592"],"_bbp_author_ip":["96.7.218.223"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["433"],"_bbp_status":["publish"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["301932"],"_bbp_forum_id":["27833"],"_bbp_engagement":["2592","240859"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["302129"],"_bbp_last_active_id":["302129"],"_bbp_last_active_time":["2023-08-18 14:21:10"]},"test":"xuanlunhuang20fudan-edu-cn"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/301932","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\/301932\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=301932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}