We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

Ansys Learning Forum Forums Discuss Simulation Photonics Extinction spectra of gold nanoparticle Reply To: Extinction spectra of gold nanoparticle

Guilin Sun
Ansys Employee

Sweeping size parameters are easy: https://optics.ansys.com/hc/en-us/articles/360034922873-Parameter-sweep-utility
However, to sweep material, you may need to script in “model”, say you have 2 materials to be swept, you may sweep the material number “nmaterial”, and use script
select(“object1”);
if(nmaterial==1){
set(“material”,“5CB – Li”);
if(get("material")=="") 
{ set("index",index1); }

if(nmaterial==2){
set(“material”, “Si (Silicon) - Palik”);
if(get("material")=="") 
{ set("index",index2); }

This suggests that the material 1 is ”5CB – Li” or index1, and material 2 is “Si (Silicon) - Palik”. If you know it is dispersive material from the material database, the other “if” can be deleted.