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 Stokes Reply To: Stokes

Guilin Sun
Ansys Employee

Your first script gave you correct numerical result.

The area is calculated by Yee cell. It may differ from theory because of discretization:

In discrete world, the area may not be decribed as in continuous world. If you want to get accurate area, you can use x_span*y_span where

x_span=getdata("monitor","x span")

y_span=getdata("monitor","y span")