Kyle
Ansys Employee
Hello Array,nThe model setup script sets the properties of the simulation objects based on the model setup parameters/properties. When the kx property is changed by the parameter sweep, all of the simulation objects should be updated with the correct settings for this kx value by the model setup script. It should be changing the bloch units to SI in line 24, but based on your screenshot of the FDTD boundary conditions dialog window it's not working. I think this is why the results aren't changing over the kx sweep. What happens when you click the Test button for the model setup script in Layout mode? Does the script complete successfully?nIt's up to you whether or not you want to use bandstructure or SI units. In the example the sweep parameter is set using bandstructure units, but this is converted to SI units by the model setup script.n