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.