


{"id":349456,"date":"2024-02-06T17:35:06","date_gmt":"2024-02-06T17:35:06","guid":{"rendered":"\/forum\/forums\/reply\/349456\/"},"modified":"2024-02-06T17:35:06","modified_gmt":"2024-02-06T17:35:06","slug":"349456","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/349456\/","title":{"rendered":"Reply To: Lumerical help, dielectric slab waveguide"},"content":{"rendered":"<p>&lt;p&gt;Hi Marton,&lt;\/p&gt;&lt;p&gt;I think the change in RIs are not being taken to account in the parameter sweep. I will ask you to add two parameters to the strcture group (let&#8217;s call them index and index2), which will be the RIs of layer_2 and layer_4. Note that their &#8220;<strong>Type<\/strong>&#8221; is &#8220;<strong>Number<\/strong>&#8220;. Then in the &#8220;<strong>Script<\/strong>&#8221; tab of the <strong>structure group<\/strong>, add the following lines of code:&lt;\/p&gt;<\/p>\n<pre>setnamed(\"layer_2\",\"index\",index1);&lt;br&gt;setnamed(\"layer_4\",\"index\",index2);<\/pre>\n<p>&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;&nbsp;&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;Then go to the Parameter sweep and add index1 and index2 as the parameters of the sweep. The screenshots of the three steps are below:&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;<img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/02\/06-02-2024-1707240800-mceclip0.png\" width=\"859\" height=\"572\" \/>&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;&nbsp;&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;Let me know if this doesn&#8217;t help.&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;&nbsp;&lt;\/p&gt;&lt;p style=&#8221;-qt-block-indent: 0; text-indent: 0px; margin: 0px;&#8221;&gt;Regards,&lt;br&gt;Amrita&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-349456","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/349456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/reply"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/349456\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=349456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}