Amrita Pati
Ansys Employee

Hi 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