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 Isolating data Reply To: Isolating data

Dev
Ansys Employee

You can get the complex S parameters by using ports. The phase information can be found in complex S parameters.

In general, phase of a field component can be obtained by use of "angle":

 

https://support.lumerical.com/hc/en-us/articles/360034405614-angle-Script-command

for example, if you want to get the phase of Ex, you can use

phase=angle(Ex);

Usually Ex (and other field components) has dimension of 4: x,y,z,f. If it is a line monitor,

the dimension is (1,ny,1,nf) where ny=length(y), and nf=length(f).

 

You can use "pinch" to remove the singletons, eg,

phase=pinch(angle(Ex));

 

then the phase will have the dimension of (ny,nf).

 

Hope this helps.

Regards

Devika

[bingo_chatbox]