Ansys Learning Forum Forums Discuss Simulation Photonics RCWA Reply To: RCWA

Amrita Pati
Ansys Employee

Hi Yi,

You can set the interface position using the set or setnamed script commands for the "interface reference positions" property. The argument is a cell array of cell arrays where there is an inner cell array for each enabled reference position. The cell array for the interface has three fields: name, type and interfaces. So an example cell array would be:
 
{{"::model::rectangle", "max", 1},{"::model::rectangle", "min", 1}}
 
An example script command to set this property would be:

setnamed("RCWA", "interface reference positions", {{"::model::rectangle", "max", 1},{"::model::rectangle", "min", 1}});

Regards,
Amrita