Ansys Learning Forum › Forums › Discuss Simulation › Photonics › Isolating data › Reply To: Isolating data
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