


{"id":222664,"date":"2022-07-29T09:58:41","date_gmt":"2022-07-29T09:58:41","guid":{"rendered":"\/forum\/forums\/topic\/cant-setup-the-plane-wave-in-lumerical-fdtd\/"},"modified":"2022-11-06T19:30:52","modified_gmt":"2022-11-06T19:30:52","slug":"cant-setup-the-plane-wave-in-lumerical-fdtd","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/cant-setup-the-plane-wave-in-lumerical-fdtd\/","title":{"rendered":"Can&#8217;t setup the plane wave in lumerical fdtd."},"content":{"rendered":"<p>I set the dimesnions of the plane wave through script but when I ran the simulation, the dimensions of the plane wave change back.<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2022\/07\/29-07-2022-1659088327-mceclip0.png\"><\/p>\n<p>In the picture is shown after I set it through script but when I ran the simulation, the plane wave becomes wide again<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2022\/07\/29-07-2022-1659088384-mceclip1.png\"><\/p>\n<p>&nbsp;<\/p>\n<p>When running the simulation it changes back again and doesn&#8217;t keep the dimensions I have set up through script.&nbsp;<\/p>\n<p>Here is the example script:<\/p>\n<p>&nbsp;<\/p>\n<p>switchtolayout;<\/p>\n<p>redrawoff;<\/p>\n<p>deleteall;<\/p>\n<p>&nbsp;<\/p>\n<p>addfdtd;<\/p>\n<p>set(&#8216;dimension&#8217;,1);&nbsp;<\/p>\n<p>set(&#8216;x max&#8217;,50e-6);<\/p>\n<p>set(&#8216;x min&#8217;,0e-6);<\/p>\n<p>set(&#8216;y&#8217;,0);<\/p>\n<p>set(&#8216;y min&#8217;,-2e-6);<\/p>\n<p>set(&#8216;y max&#8217;,2e-6);<\/p>\n<p>set(&#8216;z&#8217;,0.0e-6);<\/p>\n<p>&nbsp;<\/p>\n<p>set(&#8216;mesh accuracy&#8217;,8);<\/p>\n<p>set(&#8220;mesh refinement&#8221;,&#8221;conformal variant 0&#8243;);<\/p>\n<p>set(&#8220;mesh type&#8221;,&#8221;uniform&#8221;);<\/p>\n<p>set(&#8220;dx&#8221;,20e-6);<\/p>\n<p>set(&#8220;dy&#8221;,20e-6);<\/p>\n<p>&nbsp;<\/p>\n<p>addplane;<\/p>\n<p>set(&#8220;name&#8221;,&#8221;plane wave&#8221;);<\/p>\n<p>set(&#8220;injection axis&#8221;,&#8221;y&#8221;);<\/p>\n<p>set(&#8220;direction&#8221;,&#8221;backward&#8221;);<\/p>\n<p>set(&#8216;x&#8217;,30e-6);<\/p>\n<p>set(&#8216;y&#8217;, 1e-6);<\/p>\n<p>set(&#8216;x span&#8217;,20e-6);<\/p>\n<p>set(&#8216;z span&#8217;,2-6);<\/p>\n<p>set(&#8216;z&#8217;,0.0e-6);<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-222664","topic","type-topic","status-closed","hentry","topic-tag-FDTDgeometry-1","topic-tag-LumericalFDTD-1","topic-tag-plane-wave"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["246495","2592"],"_bbp_author_ip":["23.218.93.111"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1119"],"_bbp_status":["publish"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["222664"],"_bbp_forum_id":["27833"],"_bbp_engagement":["2592","246495"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["222798"],"_bbp_last_active_id":["222798"],"_bbp_last_active_time":["2022-07-29 18:57:56"]},"test":"vahram-voskerchyan3uvigo-es"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/222664","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\/222664\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=222664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}