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