


{"id":427305,"date":"2025-03-30T12:56:14","date_gmt":"2025-03-30T12:56:14","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/about-inverse-design-of-grating-coupler-2d-example\/"},"modified":"2025-03-30T12:56:14","modified_gmt":"2025-03-30T12:56:14","slug":"about-inverse-design-of-grating-coupler-2d-example","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/about-inverse-design-of-grating-coupler-2d-example\/","title":{"rendered":"About Inverse Design of Grating Coupler (2D) example"},"content":{"rendered":"<p>&lt;p&gt;Hi ,&lt;\/p&gt;&lt;p&gt;I&#8217;ve been trying to run the simulation example of &#8220;Inverse Design of Grating Coupler (2D)&#8221; (https:\/\/optics.ansys.com\/hc\/en-us\/articles\/360042800573-Inverse-Design-of-Grating-Coupler-2D)&lt;br&gt;i ran through all the steps without changing parameters at all.&lt;br&gt;&nbsp;But at step 3 (Step 3: Extract 3D design and GDS) im getting the following error :&lt;br&gt;&nbsp;raise LumApiError(&#8220;Failed to evaluate code&#8221;)&lt;br&gt;lumapi.LumApiError: &#8216;Failed to evaluate code&#8217; &nbsp;&lt;br&gt;(image with the error also attached to this post)&lt;\/p&gt;&lt;p&gt;Its seems like the script cannot execute gds extraction and save the file as gds file. i believe the problem is somewhere in the script &nbsp; &#8220;pid_grating_coupler_3D.py&#8221; &nbsp;at line 112 : fdtd.eval(&#8216;Lumerical_GDS_auto_export;&#8217;)&lt;br&gt;&nbsp;(as suggested from the CMD prompt)&lt;\/p&gt;&lt;p&gt;Did someone encountered this error before? would be happy to get some help with this.&lt;\/p&gt;&lt;p&gt;Thank you,&lt;br&gt;Leroy&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;<img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2025\/03\/30-03-2025-1743339244-mceclip0.png\" \/>&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-427305","topic","type-topic","status-publish","hentry","topic-tag-inverse-design-of-grating-coupler-2","topic-tag-lumerical","topic-tag-python"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27833"],"_bbp_topic_id":["427305"],"_bbp_subscription":["476356","294329"],"_bbp_author_ip":["132.68.68.83"],"_bbp_last_reply_id":["427682"],"_bbp_last_active_id":["427682"],"_bbp_last_active_time":["2025-04-02 10:14:43"],"_bbp_reply_count":["1"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["476356","294329"],"_btv_view_count":["279"],"_bbp_topic_status":["unanswered"],"_edit_lock":["1743387103:473055"]},"test":"leroy-dokcampus-technion-ac-il"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/427305","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\/427305\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=427305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}