Ansys Learning Forum Forums Discuss Simulation Photonics Far-Field 2D FDTD Reply To: Far-Field 2D FDTD

anna.wirth-singh
Ansys Employee

Hi Giovanni,

Thank you for providing that additional information and confirming that the monitor is the correct type. 

I have another follow-up question. Are you able to access the results from this monitor through the GUI? Just to identify whether this is an issue only with the script command, or with the monitor set-up, please go to the Result View and visualize the farfield results. If you are able to visualize the desired results from the GUI, then we can be sure that the issue is with the script and not something else. 

I am a bit confused because the code snippet 

addmode;
[...]
set("wavelength start", wl_start);
set("wavelength stop", wl_stop);

should add a mode expansion monitor, and then modify the start and stop wavelengths of that mode expansion monitor. Unless there are additional commands, I do not think these lines would change the setup for a DFTmonitor that you had set up previously.

In any case, please try to plot the desired result from the GUI. Let me know if there is some error, and if there is no error, it will be helpful if you can share any other parts of your script that may be relevant. 

Best,

Anna