-
-
April 18, 2024 at 10:53 am
yadong.wang
SubscriberHi, 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!
Â
-
April 18, 2024 at 6:25 pm
Amrita Pati
Ansys EmployeeHi 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-
April 19, 2024 at 8:43 am
yadong.wang
SubscriberGot it. Thanks!
-
-
- The topic ‘RCWA script_frequency outputs’ is closed to new replies.
-
4597
-
1495
-
1386
-
1209
-
1021
© 2025 Copyright ANSYS, Inc. All rights reserved.
