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.

using getdata to grab mode profiles

    • Nirvan Gajadharsingh
      Subscriber

      Hello,

      solving for the FDE modes in my waveguide gives fields in Ex, Ey, Ez, Hx, Hy and Hz. The Ey field is shown in the built-in viewer as:

      when I use the command :

      Ey_mode1 = pinch(getdata("mode1","Ey"))

      I get an array with all elements assigned with a value of 0. The same thing happens for Hy. 

      This does not happen with Ex_mode1,Hx_mode1,Ez_mode1 and Hz_mode1. Both Ey and Hy have fields which are shown in the built in viewer, yet when this data is exported to array , all the elements of the array gets stored as 0.

      Can someone please explain why this is happening and how I can get the data associated with the Ey and Hy modes?Thanks

    • Guilin Sun
      Ansys Employee

      Your script is correct. Make sure you visualize the same Ey.

      You can also use

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

      to get the vectorial fields, and then extract Ey from the dataset;

      Ey=E.Ey

    • Nirvan Gajadharsingh
      Subscriber

      thanks for clarifying.

Viewing 2 reply threads
  • The topic ‘using getdata to grab mode profiles’ is closed to new replies.