Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Photonics

Photonics

Topics related to Lumerical and more.

Questions about the RCWA simulation in the example of metalens

TAGGED: ,

    • xuanlunhuang20
      Subscriber

      Hi, I’m trying to use the RCWA example but some problems confuse me. Could anyone help on this:

      1. In the “optimizations and sweeps”, there is a sweep named “radius” which will return the E and H field in xy plane. As shown in the picture, in the structure tree, there is no object called “xy_field”. How can it get the E field results.

      2. In the script “unit_cell.lsf”, which is for the RCWA simulation, it wants to interpolate the E and H field. However, the extracted Ex from the sweep “radius” only contains 11 points in the third dimension, while that from the sweep “height” is 51 points. This will lead to a mismatch error. Hence, I am wondering if the original script misses a line of code to get the radius from the sweep “radius”. As shown in the following picture, if I add line 82, this error will disappear.

      3. A question about RCWA, can RCWA return the output E and H field? As stated in question #1, the E field is extracted from “xy_field” object, not from the RCWA object.

      Thanks in advance.

    • Guilin Sun
      Ansys Employee

      A1: when did you download the files? I just downloaded and the monitors are there. 

      However, if you are using an older version, the monitors are not supported. If this is the case, please upgrade the software.

       

      A2: you are right. It seems it uses the radius from height+radius sweep. Please add this line before the interpolation:

      radius=E.radius;

      I tested and it works fine.

      A3: yes, the new version can have field profile monitor that records E and H. Please try the newest version.

       

      • xuanlunhuang20
        Subscriber

        Ok. Got it, thanks a lot.

Viewing 1 reply thread
  • The topic ‘Questions about the RCWA simulation in the example of metalens’ is closed to new replies.
[bingo_chatbox]