


{"id":275350,"date":"2023-03-17T17:43:09","date_gmt":"2023-03-17T17:43:09","guid":{"rendered":"\/forum\/forums\/topic\/unable-to-get-the-result-from-mode-expansion\/"},"modified":"2023-03-17T17:43:09","modified_gmt":"2023-03-17T17:43:09","slug":"unable-to-get-the-result-from-mode-expansion","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/unable-to-get-the-result-from-mode-expansion\/","title":{"rendered":"Unable to get the result from mode expansion"},"content":{"rendered":"<p>Hi, I am trying to duplicate the apodized grating from https:\/\/optics.ansys.com\/hc\/en-us\/articles\/360042800573-Inverse-Design-of-Grating-Coupler-2D-<\/p>\n<p>I came across an issue when adding the sweep result. In the official document (available from the link above). The sweep result T is defined in the model: analysis as:<\/p>\n<p>temp = getresult(&#8220;fom_exp&#8221;, &#8220;expansion for fom&#8221;);<\/p>\n<p>T = -temp.T_backward;<\/p>\n<p>&nbsp;<\/p>\n<p>I followed the same definition in my lsf file, but it kept telling me that Can not find result &#8216;expansion for fom&#8217; in the result provider &#8216;fom_exp&#8217;.<\/p>\n<p>I have checked the difference between the official file and my file, and to be honest, I did not find any term named &#8220;expansion for fom&#8221; in the original file either.&nbsp;<\/p>\n<p>Can someone help me find what did I miss or mistake here?&nbsp;<\/p>\n<p>Thank you for all the help and suggestion.<\/p>\n<p><img decoding=\"async\" title=\"code from original file\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/03\/17-03-2023-1679074889-code from official file.JPG\" alt=\"\"><\/p>\n<p><img decoding=\"async\" title=\"my lsf \" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/03\/17-03-2023-1679074914-lsf.JPG\" alt=\"\"><\/p>\n<p><img decoding=\"async\" title=\"error notice\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/03\/17-03-2023-1679074941-error.JPG\" alt=\"\"><\/p>\n<p><img decoding=\"async\" title=\"current sweep, sweep result is not added\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/03\/17-03-2023-1679074962-current_sweep.JPG\" alt=\"\"><\/p>\n<p>Yours sincerely<\/p>\n<p>Peng<\/p>\n","protected":false},"template":"","class_list":["post-275350","topic","type-topic","status-closed","hentry","topic-tag-2dmaterialsandmetals-1"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["279476","33648"],"_bbp_author_ip":["23.56.168.214"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["2352"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["275350"],"_bbp_forum_id":["27833"],"_bbp_engagement":["33648","279476"],"_bbp_voice_count":["2"],"_bbp_reply_count":["8"],"_bbp_last_reply_id":["275753"],"_bbp_last_active_id":["275753"],"_bbp_last_active_time":["2023-03-21 17:10:04"]},"test":"pl1n16soton-ac-uk"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/275350","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\/275350\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=275350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}