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.
Photonics

Photonics

Topics related to Lumerical and more.

Automatically press ‘OK’ in the frequency selection window for far field profile

    • mp17mp17
      Subscriber

      I am currently using MODE Solutions to solve the electric field inside a waveguide, and I need to extract the far-field mode. In my script, I wrote:

      farfield=getresult("FDE::data::mode1","farfield");


      However, this script prompts the frequency selection window to appear. How can I modify my script to automatically press 'OK' in the frequency selection window?

      I have already included:
      farfieldsettings("far field filter", 0.2); farfieldsettings("override near field mesh", 1); setanalysis("wavelength", 1.03*um);
      Any suggestions?

    • Amrita Pati
      Ansys Employee

      Hi Guan,

      Instead of using getresult, you can use the standard farfield commands similar to what we do in FDTD. Here is a sample code:

      mode_number=1; #The mode number
      mon_name="FDE::data::mode"+num2str(mode_number);
      res = 151;#resolution of farfield data

      E2=farfield3d(mon_name,1,res,res);
      ux=farfieldux(mon_name,1,res,res);
      uy=farfieldux(mon_name,1,res,res);
      image(ux,uy,E2,"","","|E|^2 at 1 m","polar");

       

      Let me know in case you have questions. 

       

       

      Regards,
      Amrita

    • mp17mp17
      Subscriber

       

      Hi,Amrita
      Thanks for your help, but I still have a question.

      Is it feasible to change the far-field projection coordinates to a screen at a fixed distance from the waveguide and convert them to Cartesian coordinates?

      By the way, the solver what I using is the FDE solver in MODE solusion.

      Regards,
      Guan Hong

       

       

    • xin zhang
      Subscriber

      Hi!

      Do you know how to select the “farfieldfilter” parameters correctly? If the monitor edge electric field is large, do I also need to filter it to 0.

Viewing 3 reply threads
  • The topic ‘Automatically press ‘OK’ in the frequency selection window for far field profile’ is closed to new replies.