Ansys Learning Forum › Forums › Discuss Simulation › Photonics › Amplitude and phase In FDTD or MODE › Reply To: Amplitude and phase In FDTD or MODE
Hi Pengzheng,
Thank you for contacting us,
In FTDT you could introduce a mode expansion monitor (Using and understanding Mode Expansion Monitors) and ports (Ports (FDTD) - Simulation Object) at the positions of your interest for both the amplitude and the phase. From this point you can extract the phase, which is connected with S-parameters, as well as with field component and mode. So taking advantage of S-parameters of FTDT you can use angle script command ( angle - Script command) to get the phase. The same case with S-parameters applies on EME solver by using ports.
Â
A simple example how you can use the S-parameters is quoted below:
SS=getresult("FDTD::ports::port 2","S");
S21=SS.S;
Phase=angle(S21);
?phase*180/pi;Â Â #in deg
Â
You could also get the phase by using a frequency-domain monitor (Frequency-domain Profile and Power monitor - Simulation object) of an individual E component. However, special care should be taken as getting the phase from a frequency monitor it depends on the position on the monitor.
Â
I hope that was helpful, let me know if I can be of further assistance.
Kind Regards,
Niki