Photonics

Photonics

Topics related to Lumerical and more.

RCWA script_frequency outputs

    • yadong.wang
      Subscriber

      Hi, I have a problem exporting the frequency of the RCWA. In FDTD, the script can be . However, in RCWA, I tried using 

      and there is no information in RCWA.

      What is the code to export the frequency information in RCWA?????

      Thanks a lot!

       

    • Amrita Pati
      Ansys Employee

      Hi Yadong,

      The process to extract frequency domain results in RCWA is almost similar to that in FDTD. The main script command that you would use is getresult. For example, if you would like to extract and plot the total reflection and transmission, you can use something like this:

      tot_energy = getresult("RCWA","total_energy");
      Rs = tot_energy.Rs;
      Ts = tot_energy.Ts;
      Rp = tot_energy.Rp;
      Tp = tot_energy.Tp;
      f = tot_energy.f;

      #Plotting results for s-pol
      plot(f,Rs);
      holdon;
      plot(f,Ts);
      holdoff;

      plot(f,Rp);
      holdon;
      plot(f,Tp);
      holdoff;

      When you select the RCWA object and look at the results view, you can look at the list of results' names that can be used in the getresult as argument:

       

      Regards,
      Amrita

      • yadong.wang
        Subscriber

        Got it. Thanks!

Viewing 1 reply thread
  • The topic ‘RCWA script_frequency outputs’ is closed to new replies.