We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.

Ansys Learning Forum Forums Discuss Simulation Photonics Isolating data Reply To: Isolating data

Devika Padmakumar Nair
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