Ansys Learning Forum Forums Discuss Simulation Photonics How to measure transmission coefficients on a given plane . Reply To: How to measure transmission coefficients on a given plane .

anna.wirth-singh
Ansys Employee

Hi,

Thanks, I think I understand your question. I agree, it would not be possible to calculate transmission of 45 degree polarized light if strictly x-polarized light is used at the input.

Would this code snippet accomplish what you would like to achieve?

 

m="monitor";

 

Efield=getresult(m,"E"); # returns E vs x,y,z,f

Hfield=getresult(m,"H");

 

E=pinch(Efield.E); # returns just E field

H=pinch(Hfield.H);

 

x=Efield.x; # monitor x sampling

y=Efield.y;

z=Efield.z;

 

Ex=pinch(E(:,:,1));

Ey=pinch(E(:,:,2));

Ez=pinch(E(:,:,3));

Hx=pinch(H(:,:,1));

Hy=pinch(H(:,:,2));

Hz=pinch(H(:,:,3));

 

poynting=Ex*conj(Hy)-Ey*conj(Hx);

 

Then you can select the desired components of the Poynting vector and integrate to find the power transmitted through the monitor component. Is this on the right track with what you want to achieve?

 

Best,

Anna

Â