Ansys Learning Forum › Forums › Discuss Simulation › Photonics › RCWA › Reply To: RCWA
November 7, 2023 at 5:14 pm
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