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 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