-
-
July 23, 2024 at 3:37 amJudy KwanSubscriber
I am working on planar concave grating. May I know there is any tutorial on that?
I tried to start with the tutorial on Blazed grating(https://optics.ansys.com/hc/en-us/articles/360041613174-Blazed-grating). However, I cannot get the second graph (reflection of all orders) following the instruction. I also tried to change the range for the light source and target wavelength in the setting but the graphs are not changing corresphondingly. Could you please advise how to amend the script?
Thanks a lot
-
July 23, 2024 at 4:58 pmAmrita PatiAnsys Employee
Hi Judy,
The example is a single wavelength simulation. If you are running a broadband simulation, then make sure that the monitor is accounting for a large number of wavelengths. Currently, if you look at the global monitor the data is being recorded at 1 frequency point. You can change it to include more frequencies.Â
Once you do that, the dimension of the results would change, so we have to make sure that the plot command is modified (put in a loop) accordingly. As an example, here I have only used 5 frequency points, so I plot the reflection orders and the corresponding power 5 times, for each frequency/wavelength point using a for loop:
for(i=1:1:5)#for 5 frequency points
{
plot(theta(:,i),R_grating(:,i),
"angle (degrees)",
"fraction of reflected power",
"order strength",
"plot points");
}Â
If you use 100 frquency points, you will see 100 plots, so if you are interested only in specific wavelengths you can find their indices and plot the corresponding orders. Please feel free to let me know in case I missed anything.
Â
Regards,
Amrita
-
- The topic ‘Blazed grating’ is closed to new replies.
- Errors Running Ring Modulator Example on Cluster
- Difference between answers in version 2024 and 2017 lumerical mode solution
- INTERCONNECT – No results unless rerun simulation until it gives any
- Import material .txt file with script
- Trapezoidal ring
- Help for qINTERCONNECT
- Issues with getting result from interconnent analysis script
- Topology Optimization Error
- Edge Coupler EME Example Issue
- The two modes overlap the integral
-
1191
-
513
-
488
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.