-
-
July 23, 2024 at 3:37 am
Judy Kwan
SubscriberI 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 pm
Amrita Pati
Ansys EmployeeHi 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.
- Difference between answers in version 2024 and 2017 lumerical mode solution
- Import material .txt file with script
- Absorption cross-section of AuNR excited by prism-based TIR
- How to measure transmission coefficients on a given plane .
- TE Polarization Fraction + Waveguide TE/TM Fraction
- Edge Coupler EME Example Issue
- Lumerical Python API Topology Optimization Error 2025 R1
- 2D inverse design grating coupler
- FDE : Simulation waveguides with electrodes
- Loss of lithium niobate phase modulator
-
2422
-
930
-
599
-
591
-
569
© 2025 Copyright ANSYS, Inc. All rights reserved.