Ansys Learning Forum Forums Discuss Simulation Photonics Question about “Defect on a metal surface” Reply To: Question about “Defect on a metal surface”

Guilin Sun
Ansys Employee

This example uses plane wave and periodic-type BCs so it is for periodic structure. If you want to simulate non-periodic structure you can use Gaussian beam.

For the script, Lines 172~175 are not Ex,Ey. The subscripts xy are meant for incident xy polarization.