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