Ansys Learning Forum Forums Discuss Simulation Photonics Information regarding the measurement of Phase spectrum in FDTD Reply To: Information regarding the measurement of Phase spectrum in FDTD

Guilin Sun
Ansys Employee

I am not quite sure what exactly you want to get. you want to get "phase spectrum as a funtion of refractive index"? usually the phase and the refractive index is a function of frequency or wavelength. Since both can be nonlinear and monotonically change, I am not sure if you can use refractive index as the absissa. Once you get both of them as a function of frequency/wavelength, you could try to plot phase as a function of refractive index (most likely the real part).

probably you can sweep refractive index, could you later find a material with specified reftractive index as the function of frequency?

If you want to see the map of phase vs frequency and swept refrative index, you can image them:

image(f,index,phase)

where f is the frequency of the source;

index is what you swept;

phase is what you get from a monitor, most likely it is a line monitor. If it is 2D monitor, then you will have 3D matrix result that cannot be directly imaged.

Phase is always associated with field components. For example, if you want to get phse of Ex from a xy plane monitor , you can

E=getresult("monitor","E");

x=E.x;

y=E.y;

f=E.f;

Ex=E.Ex;

phase_x=pinch(angle(Ex)));

then phase_x will be a function of x,y and f.

Please try.