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.

getelectric problem

TAGGED: 

    • Frederic Wu
      Subscriber

      May I ask what is the output of getelectric?

      Here, the monitor is a 3D monitor. Is there a way I can find the sum of the E field intensity across the entire 3D area the monitor covers by fixing my current code? How can I find the total electric field intensity in the volumn the monitor covers and plot it against different wavelengths the monitor measures?

    • Niki Papachristou
      Ansys Employee

      Hi Frederic,

      Thank you for reaching out to us! getelectric returns the E field intensity, whatever the dimension of the simulation and/or monitor: getelectric - Script command. You can also pick up the wavelength from a monitor using the getdata - Script command

      f = getdata(monitorname,"f");
      wavelength = c/f;

      Kind Regards,

      Niki

      • Frederic Wu
        Subscriber

         

        I understand but this does not really answer my question. As shown by the screenshot above, line 6 has a problem. The lumerical application says that the data getelectric() returns is not an array. So I do not really know how to fix my code. According to you, the data returned should be a 3D array because I used a 3D monitor. However, this does not seem to be the case.

         

Viewing 1 reply thread
  • The topic ‘getelectric problem’ is closed to new replies.