Ansys Learning Forum Forums Discuss Simulation Photonics Stokes Reply To: Stokes

Guilin Sun
Ansys Employee

You can use script like this:

for only Ex, Ex=pinch(getdata("monitor","Ex"));

"pinch" is to remove singletons.

You can also use

E=getresult("monitor","E");

Ex=pinch(E.Ex)

then use abs(Ex)^2 to get the intensity of Ex.

But usually we need total intensity.Â