


{"id":359893,"date":"2024-04-01T19:30:33","date_gmt":"2024-04-01T19:30:33","guid":{"rendered":"\/forum\/forums\/reply\/359893\/"},"modified":"2024-04-01T19:30:33","modified_gmt":"2024-04-01T19:30:33","slug":"359893","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/359893\/","title":{"rendered":"Reply To: How to do nested parameter sweep using lumerical script?"},"content":{"rendered":"<p>&lt;p&gt;If the source and the monitor are inside the analysis group, you should be able to find it through sweep utility:&lt;\/p&gt;&lt;p&gt;<a href=\"https:\/\/optics.ansys.com\/hc\/en-us\/search\/click?data=BAh7DjoHaWRsKwh58cDTUwA6D2FjY291bnRfaWRpA02AjDoJdHlwZUkiDGFydGljbGUGOgZFVDoIdXJsSSJUaHR0cHM6Ly9vcHRpY3MuYW5zeXMuY29tL2hjL2VuLXVzL2FydGljbGVzLzM2MDAzNDkyMjg3My1QYXJhbWV0ZXItc3dlZXAtdXRpbGl0eQY7CFQ6DnNlYXJjaF9pZEkiKTE5NjM4NmIxLWMxNTAtNGNiMC1hMTY2LWEzNjM0OWU2MjIxZAY7CEY6CXJhbmtpBjoLbG9jYWxlSSIKZW4tdXMGOwhUOgpxdWVyeUkiEnN3ZWVwIHV0aWxpdHkGOwhUOhJyZXN1bHRzX2NvdW50aQLgAg%3D%3D--828959ac7444780ad8c8ed0aeef8b526249e26a9\">Parameter sweep utility<\/a>&lt;\/p&gt;&lt;p&gt;However you will need to set parameters for them, eg the wavelength, or incident angle and use script to assign the parameters to them. Please refer to this example:&lt;\/p&gt;&lt;p&gt;<a href=\"https:\/\/optics.ansys.com\/hc\/en-us\/search\/click?data=BAh7DjoHaWRsKwjxai7UUwA6D2FjY291bnRfaWRpA02AjDoJdHlwZUkiDGFydGljbGUGOgZFVDoIdXJsSSJkaHR0cHM6Ly9vcHRpY3MuYW5zeXMuY29tL2hjL2VuLXVzL2FydGljbGVzLzM2MDA0MjA5NzM5My1NZXRhbWF0ZXJpYWwtcGFyYW1ldGVyLWV4dHJhY3Rpb24tU21pdGgGOwhUOg5zZWFyY2hfaWRJIilmZDY5NDMyZC0xYTY0LTQwNDctYTdlZS1iOTZhMzdiM2Y5ZDYGOwhGOglyYW5raQY6C2xvY2FsZUkiCmVuLXVzBjsIVDoKcXVlcnlJIgpzbWl0aAY7CFQ6EnJlc3VsdHNfY291bnRpHA%3D%3D--faf9a92ec222ea45d020c534f9570a872b2f0a48\">Metamaterial parameter extraction &#8211; Smith<\/a>&lt;\/p&gt;&lt;p&gt;However your script is to run it through script (you have &#8220;run&#8221;, but not set the sweep yet).&lt;\/p&gt;&lt;p&gt;Please refer the above links and modify your script significantly. You need to set up the sweep in the sweep utility.&lt;\/p&gt;&lt;p&gt;When you sweep wavelength, make sure the simulation bandwidth is chosen in order to have the mesh and material fitting:&lt;\/p&gt;&lt;p&gt;<img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/04\/01-04-2024-1711999747-Set_simulation bandwidth.png\" alt=\"\" \/>&lt;\/p&gt;&lt;p&gt;Make sure PML thickness (muber of layers multiplied by mesh size in front of PML) is proper to absorb light striking on it.&nbsp;&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-359893","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/359893","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\/359893\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=359893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}