-
-
August 17, 2023 at 3:02 pm
xuanlunhuang20
SubscriberHi, 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.
-
August 17, 2023 at 6:31 pm
Guilin Sun
Ansys EmployeeA1: 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.
-
August 18, 2023 at 2:21 pm
xuanlunhuang20
SubscriberOk. Got it, thanks a lot.
-
-
- The topic ‘Questions about the RCWA simulation in the example of metalens’ is closed to new replies.
-
6495
-
1906
-
1458
-
1308
-
1022
© 2026 Copyright ANSYS, Inc. All rights reserved.


