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

E2=getelectric("monitor");

or

E2=E.E2;

Or 

E2=abs(Ex)^2+abs(Ey)^2+abs(Ez)^2;

as long as you get E dataset using getresult("monitor","E");

Please note that, your monitor is a 2D monitor, so its data is spaially distributed. If you are sure it is a plane wave, you can use any point 's E to reprent the plane wave. Otherwise you will need 2D data in physics.

 

[bingo_chatbox]