Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

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. 

[bingo_chatbox]